/* Tenio — product mockups drawn in HTML/CSS (phone scanner, dashboard). Decorative only. */

/* Hero layout */
.tn-hero { position: relative; isolation: isolate; padding-top: clamp(2rem, 5vw, 3rem); overflow: clip; }
.tn-hero::before, .tn-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.tn-hero::before { width: 24rem; height: 24rem; top: -4rem; right: -4rem; background: rgba(255, 201, 168, .3); }
.tn-hero::after { width: 20rem; height: 20rem; top: 50%; left: -5rem; background: rgba(255, 218, 211, .35); }
.tn-hero__cols { gap: clamp(2rem, 5vw, 2.5rem); }
.tn-hero__copy > * { margin-block: 0; }
.tn-hero__copy > * + * { margin-top: 1rem; }
.tn-hero__copy h1 { margin-top: 1.25rem; }
.tn-hero__copy .wp-block-buttons { margin-top: 1.5rem; }
.tn-hero__visual { display: flex; justify-content: center; }

/* Phone */
.tn-phone { position: relative; width: min(320px, 100%); margin-inline: auto; padding: .75rem; border-radius: 40px; background: var(--tn-plum); box-shadow: 0 32px 64px -20px rgba(42, 27, 61, .45); }
.tn-phone::before { content: ""; position: absolute; inset: -10%; z-index: -1; border-radius: 3rem; background: linear-gradient(45deg, rgba(255, 201, 168, .4), rgba(233, 113, 91, .2)); filter: blur(40px); }
.tn-phone__notch { width: 6rem; height: 1rem; margin: 0 auto .5rem; border-radius: 9999px; background: rgba(42, 27, 61, .8); display: grid; place-items: center; }
.tn-phone__notch span { width: 2.5rem; height: 4px; border-radius: 9999px; background: rgba(233, 225, 220, .2); }
.tn-phone__screen { position: relative; height: 520px; border-radius: 32px; overflow: hidden; background: var(--wp--preset--color--sand); display: flex; flex-direction: column; justify-content: space-between; padding: 1rem; }
.tn-phone__screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.tn-phone__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(42, 27, 61, .55), transparent 40%, transparent 55%, rgba(42, 27, 61, .8)); }
.tn-phone__frame { position: absolute; inset: 1.75rem; z-index: 1; pointer-events: none; }
.tn-phone__frame span { position: absolute; width: 20px; height: 20px; border: 0 solid var(--tn-coral); }
.tn-phone__frame span:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 4px; }
.tn-phone__frame span:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 4px; }
.tn-phone__frame span:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 4px; }
.tn-phone__frame span:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 4px; }
.tn-phone__frame .tn-i { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; font-size: 28px; color: #fff; opacity: .45; }
.tn-phone__top, .tn-phone__metrics { position: relative; z-index: 2; }
.tn-phone__top { display: flex; justify-content: space-between; align-items: center; }
.tn-chip--glass { background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--tn-plum); padding: .3rem .65rem; }
.tn-live { width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: tn-pulse 2s infinite; display: inline-block; }
@keyframes tn-pulse { 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.tn-phone__metrics { display: grid; gap: .5rem; }

.tn-metric { display: flex; align-items: center; gap: .5rem; padding: .625rem; border-radius: var(--tn-r-md); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--tn-shadow-1); }
.tn-metric--action { padding: .75rem; border-radius: var(--tn-r-lg); background: rgba(255, 255, 255, .95); }
.tn-metric__icon { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: var(--wp--preset--color--sand); }
.tn-metric--action .tn-metric__icon { width: 36px; height: 36px; border-radius: var(--tn-r-md); background: var(--wp--preset--color--sand-dark); }
.tn-metric__icon .tn-i { font-size: 18px; color: var(--tn-plum); }
.tn-metric__icon--blush { background: var(--wp--preset--color--blush); }
.tn-metric__icon--blush .tn-i { color: var(--wp--preset--color--brick); }
.tn-round { border-radius: 50% !important; width: 32px; height: 32px; }
.tn-metric__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tn-metric__body small { font-size: 12px; font-weight: 600; color: var(--wp--preset--color--muted); line-height: 1.3; }
.tn-metric__body b { font-size: 20px; font-weight: 800; color: var(--tn-plum); line-height: 1.1; }
.tn-metric__body em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--wp--preset--color--muted); }
.tn-metric__body em.is-up { color: #059669; font-weight: 600; }
.tn-metric__body b.tn-metric__sku { font-size: 12px; font-weight: 600; color: var(--wp--preset--color--ink); }
.tn-mini-btn { padding: .4rem .6rem; border-radius: 8px; background: var(--tn-coral); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tn-float-badge { position: absolute; left: -1.5rem; bottom: -1rem; z-index: 3; display: flex; align-items: center; gap: .625rem; padding: .75rem; border-radius: var(--tn-r-lg); background: #fff; box-shadow: var(--tn-shadow-3); }
.tn-float-badge b { display: block; font-size: 12px; color: var(--tn-plum); }
.tn-float-badge small { color: var(--wp--preset--color--muted); }
@media (max-width: 599px) {
	.tn-float-badge { display: none; }
	.tn-phone__screen { height: 480px; }
}

/* Dashboard */
.tn-dash { background: #fff; border-radius: var(--tn-r-2xl); box-shadow: 0 20px 40px -12px rgba(42, 27, 61, .14); border: 1px solid var(--tn-line); padding: clamp(1rem, 3vw, 1.5rem); display: grid; gap: 1rem; font-size: 12px; color: var(--wp--preset--color--muted); }
.tn-dash__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding-bottom: .5rem; }
.tn-dash__title { display: flex; align-items: center; gap: .5rem; font-size: 14px; font-weight: 700; color: var(--tn-plum); }
.tn-dash__title .tn-live { animation: none; }
.tn-dash__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.tn-widget { padding: 1rem; border-radius: var(--tn-r-lg); background: var(--wp--preset--color--sand); display: grid; gap: .6rem; align-content: start; }
.tn-widget__title { font-size: 12px; font-weight: 700; color: var(--tn-plum); margin-bottom: .2rem; }
.tn-meter { display: grid; grid-template-columns: 1fr auto; gap: .25rem; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.tn-meter b { color: var(--wp--preset--color--muted); }
.tn-meter .tn-bar { grid-column: 1 / -1; }
.tn-funnel { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem; border-radius: 8px; background: #fff; color: var(--wp--preset--color--ink); }
.tn-funnel b { color: var(--tn-plum); white-space: nowrap; }
.tn-funnel b.tn-coral { color: var(--tn-coral); }
.tn-funnel b.tn-green { color: #2f7d57; }
.tn-dash__skus { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }
.tn-sku { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem; border-radius: var(--tn-r-md); background: #fff; }
.tn-sku b { display: block; color: var(--wp--preset--color--ink); }
.tn-sku strong { font-size: 20px; font-weight: 800; }
.tn-sku strong.tn-coral { color: var(--tn-coral); }
