/* ==========================================================================
   Recreate — liquid glass theme
   Deep black background with slow gold / steel light, frosted glass
   panels with light-catching rims, glossy "liquid" buttons, and a
   realistic phone whose cracked screen heals on load.
   ========================================================================== */
@property --heal { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --bg: #060608;
  --text: #f3f0ea;
  --text-2: rgba(243, 240, 234, .72);
  --muted: rgba(243, 240, 234, .48);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --ember: #f2b233;
  --ember-2: #ffdc85;
  --rose: #b9761c;
  --indigo: #4b5568;
  --teal: #c9ccd3;
  --ok: #4ade9b;
  --warn: #f5b443;
  --violet: #e3c98f;
  --danger: #ff6b5e;

  --glass: linear-gradient(160deg, rgba(255,255,255,.11) 0%, rgba(255,255,255,.04) 45%, rgba(255,255,255,.06) 100%);
  --rim: linear-gradient(140deg, rgba(255,255,255,.55), rgba(255,255,255,.08) 28%, rgba(255,255,255,0) 50%, rgba(255,255,255,.10) 72%, rgba(255,255,255,.35));
  --shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 -1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(0,0,0,.8), 0 12px 24px -12px rgba(0,0,0,.5);
  --blur: blur(22px) saturate(170%);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --r: 22px;
  --r-lg: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--text); background: transparent; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--ember); color: #1b1406; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); }
img { max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 .45em; color: var(--text); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.02em; line-height: 1.2; }
h4 { font-size: 1rem; }
/* Accent words: elegant serif italic with a warm gradient */
.u, h1 em, h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
  background: linear-gradient(100deg, #fff3cf 0%, var(--ember-2) 35%, var(--ember) 65%, var(--rose) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em;
}
.red { color: var(--ember-2); }

.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 760px; }
.xnarrow { max-width: 440px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.pre { white-space: pre-wrap; }
.inline { display: inline; margin: 0; }

.label { font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .2em; color: var(--muted); display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.label.dot::before, .pulse { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); animation: pulse 2.2s infinite; display: inline-block; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,178,51,.55); } 70% { box-shadow: 0 0 0 10px rgba(242,178,51,0); } 100% { box-shadow: 0 0 0 0 rgba(242,178,51,0); } }

/* -------------------------------------------------- ambient light + grain */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(120% 80% at 50% -10%, #15120a 0%, var(--bg) 60%); }
.ambient span { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.ambient span:nth-child(1) { width: 46vw; height: 46vw; left: 52%; top: -12vw; background: var(--ember); opacity: .38; animation: drift1 26s ease-in-out infinite alternate; }
.ambient span:nth-child(2) { width: 40vw; height: 40vw; left: -12vw; top: 18vh; background: var(--indigo); opacity: .42; animation: drift2 32s ease-in-out infinite alternate; }
.ambient span:nth-child(3) { width: 30vw; height: 30vw; left: 30%; top: 60vh; background: var(--rose); opacity: .22; animation: drift3 28s ease-in-out infinite alternate; }
.ambient span:nth-child(4) { width: 22vw; height: 22vw; right: -6vw; top: 70vh; background: var(--teal); opacity: .16; animation: drift1 36s ease-in-out infinite alternate-reverse; }
.ambient::after { /* film grain: stops gradient banding and adds a tactile, photographic feel */
  content: ""; position: absolute; inset: -50%; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes drift1 { to { transform: translate(-14vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(16vw, -8vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-10vw, -14vh) scale(1.2); } }

/* ---------------------------------------------------------- glass system */
.glass, .frame, .panel {
  position: relative; isolation: isolate; border-radius: var(--r);
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow); border: 0;
}
.glass::before, .frame::before, .panel::before { /* light-catching rim */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glass::after, .frame::after, .panel::after { /* specular highlight that follows the cursor (set by app.js) */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, -20%), rgba(255,255,255,.10), transparent 45%);
}

/* ---------------------------------------------------------------- header */
.topbar { position: sticky; top: 14px; z-index: 40; width: min(1200px, calc(100% - 28px)); margin: 14px auto 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: .55rem .55rem .55rem 1.3rem; border-radius: 999px; background: linear-gradient(160deg, rgba(30,30,38,.55), rgba(20,20,26,.35)); }
.brand { display: flex; align-items: center; font: 700 1.45rem/1 var(--display); letter-spacing: -0.045em; color: var(--text); }
.brand .dot { color: var(--ember); }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; margin-right: .6rem; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 18px rgba(255,170,60,.35); }
.brand small { margin-left: .8rem; font: 500 .62rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { font-size: .92rem; color: var(--text-2); transition: color .15s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav-actions { display: flex; gap: .45rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; overflow: hidden;
  padding: .95rem 1.55rem; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
  font: 600 .95rem/1 var(--sans); letter-spacing: -0.01em; color: #1b1406;
  background: radial-gradient(120% 140% at 30% 0%, var(--ember-2) 0%, var(--ember) 45%, #a86a12 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 6px rgba(110,66,0,.35), 0 10px 30px -10px rgba(242,178,51,.7), 0 2px 6px rgba(0,0,0,.3);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, filter .2s;
}
.btn::after { /* glossy top reflection */
  content: ""; position: absolute; left: 6%; right: 6%; top: 1px; height: 48%; border-radius: 999px 999px 40% 40%;
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0)); pointer-events: none;
}
.btn:hover { transform: translateY(-1px); filter: saturate(1.1) brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 6px rgba(110,66,0,.35), 0 16px 40px -10px rgba(242,178,51,.85), 0 2px 6px rgba(0,0,0,.3); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-glass { color: var(--text); background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 0 1px rgba(255,255,255,.12), 0 10px 30px -14px rgba(0,0,0,.6); }
.btn-glass::after { background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0)); }
.btn-glass:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.22), 0 14px 34px -14px rgba(0,0,0,.7); }
.btn-sm { padding: .7rem 1.1rem; font-size: .86rem; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-wa { background: radial-gradient(120% 140% at 30% 0%, #7af0a8 0%, #25d366 45%, #128c4a 100%); color: #05250f; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 6px rgba(0,60,20,.35), 0 10px 30px -10px rgba(37,211,102,.7); }
.btn-wa:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 16px 40px -10px rgba(37,211,102,.85); }
.btn-wa svg { width: 18px; height: 18px; position: relative; z-index: 1; }
.link-u { font-weight: 600; border-bottom: 1px solid var(--ember); padding-bottom: .2rem; }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; padding: 5rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; min-height: min(78vh, 760px); }
.chip { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1rem; border-radius: 999px; font-size: .85rem; color: var(--text-2); margin-bottom: 1.8rem; }
.hero h1 { font-size: clamp(3.2rem, 7.6vw, 6.4rem); line-height: .95; letter-spacing: -0.055em; margin-bottom: .35em; }
.hero h1 em { font-size: 1.04em; }
.hero .lead { font-size: 1.15rem; color: var(--text-2); max-width: 31em; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: .9rem; margin-top: 2.4rem; }
.hero-proof img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; box-shadow: 0 0 0 2px rgba(255,255,255,.2), 0 0 0 5px rgba(242,178,51,.25); }
.hero-proof p { margin: 0; font-size: .92rem; line-height: 1.4; }
.hero-proof span { color: var(--muted); font-size: .84rem; }

/* The stage: a realistic phone with a healing screen */
.stage { position: relative; height: 640px; display: grid; place-items: center; perspective: 1400px; }
.halo { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(242,178,51,.45), rgba(185,118,28,.18) 40%, transparent 70%); filter: blur(30px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.device {
  position: relative; width: 292px; height: 600px; border-radius: 56px; padding: 11px;
  transform: rotateY(var(--ry, -16deg)) rotateX(var(--rx, 6deg)) rotateZ(1.5deg); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.8,.2,1);
  background:
    linear-gradient(120deg, rgba(255,255,255,.35) 0%, transparent 18%, transparent 60%, rgba(255,255,255,.18) 75%, transparent 90%),
    linear-gradient(160deg, #6b6f77 0%, #2c2f35 22%, #8e939b 48%, #2a2c31 70%, #5c6068 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.35), inset 0 0 0 3px #0c0c0e, inset 0 0 18px rgba(0,0,0,.6),
    40px 60px 90px -30px rgba(0,0,0,.9), -20px 30px 60px -30px rgba(242,178,51,.35);
}
.device::before, .device::after { /* side buttons */
  content: ""; position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #3a3d42, #8a8f97, #3a3d42);
}
.device::before { left: -3px; top: 130px; height: 64px; box-shadow: 0 84px 0 #6b6f77; }
.device::after { right: -3px; top: 170px; height: 96px; }
.screen { position: relative; height: 100%; border-radius: 46px; overflow: hidden; background: #000; animation: heal 1.7s cubic-bezier(.65,0,.25,1) 1.3s forwards; }
@keyframes heal { to { --heal: 1; } }
.wall { position: absolute; inset: 0;
  background:
    radial-gradient(80% 50% at 80% 10%, rgba(255,220,133,.95), transparent 60%),
    radial-gradient(70% 55% at 10% 45%, rgba(75,85,104,.95), transparent 62%),
    radial-gradient(70% 50% at 70% 85%, rgba(185,118,28,.9), transparent 60%),
    linear-gradient(180deg, #1a1408, #0a0a14);
  filter: brightness(calc(.32 + var(--heal) * .68)) saturate(calc(.25 + var(--heal) * .9));
}
.island { position: absolute; top: 12px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); z-index: 3; }
.island::after { content: ""; position: absolute; right: 14px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3b4a7a, #0a0d18 60%); }
.statusbar { position: absolute; top: 16px; left: 30px; right: 26px; display: flex; justify-content: space-between; font: 600 .78rem var(--sans); color: rgba(255,255,255,.92); z-index: 2; opacity: calc(.3 + var(--heal) * .7); }
.sb-icons { display: flex; gap: 4px; align-items: center; }
.sb-icons i { width: 3px; height: 9px; border-radius: 1px; background: #fff; display: inline-block; }
.sb-icons i:first-child { height: 6px; }
.sb-icons b { width: 22px; height: 10px; border-radius: 3px; border: 1.2px solid rgba(255,255,255,.8); position: relative; }
.sb-icons b::after { content: ""; position: absolute; top: 1.2px; bottom: 1.2px; left: 1.2px; width: calc(2px + var(--heal) * 14px); border-radius: 1px; background: #fff; }
.lock { position: absolute; top: 66px; left: 0; right: 0; text-align: center; color: #fff; opacity: calc(.45 + var(--heal) * .55); }
.lock-date { display: block; font: 500 .9rem var(--sans); opacity: .85; }
.lock-time { display: block; font: 600 5rem/1 var(--display); letter-spacing: -0.04em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.notif {
  position: absolute; left: 12px; right: 12px; top: 250px; display: grid; grid-template-columns: 36px 1fr; gap: .65rem; align-items: start;
  padding: .7rem .8rem; border-radius: 18px; color: #fff; font-size: .74rem; line-height: 1.35;
  background: linear-gradient(160deg, rgba(255,255,255,.32), rgba(255,255,255,.14)); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 30px -10px rgba(0,0,0,.4);
  opacity: clamp(0, calc((var(--heal) - .55) * 3), 1); transform: translateY(calc((1 - var(--heal)) * 26px)) scale(calc(.94 + var(--heal) * .06));
}
.notif.n2 { top: 330px; opacity: clamp(0, calc((var(--heal) - .75) * 4), 1); }
.notif p { margin: 0; }
.notif-top { display: flex; justify-content: space-between; margin-bottom: .1rem !important; }
.notif-top span { opacity: .7; }
.notif-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font: 700 1rem var(--display); letter-spacing: -0.04em;
  background: linear-gradient(145deg, #2a2a33, #0d0d12); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
img.notif-icon { padding: 0; object-fit: cover; background: #000; }
.notif-icon.bolt { background: linear-gradient(145deg, #4ade9b, #16a34a); font-size: .95rem; }
.cracks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; }
.cracks path { fill: none; stroke: rgba(255,255,255,.88); stroke-width: 1.3; stroke-linejoin: bevel; filter: drop-shadow(0 0 1.5px rgba(255,255,255,.8)) drop-shadow(0 0 6px rgba(255,225,150,.35));
  stroke-dasharray: 720; stroke-dashoffset: calc(var(--heal) * 720); }
.cracks path.t { stroke-width: .8; stroke: rgba(255,255,255,.6); }
.cracks circle { fill: rgba(255,255,255,.18); stroke: rgba(255,255,255,.7); stroke-width: 1; opacity: calc(1 - var(--heal) * 1.4); }
.sheen { position: absolute; inset: -20%; z-index: 5; pointer-events: none; transform: translateX(-120%) rotate(12deg);
  background: linear-gradient(90deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
  animation: sweep 1.5s cubic-bezier(.6,0,.2,1) 1.5s forwards; }
@keyframes sweep { to { transform: translateX(120%) rotate(12deg); } }
.glare { position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.06) 28%, transparent 42%, transparent 78%, rgba(255,255,255,.07) 100%); }
.float { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1rem; border-radius: 16px; font-size: .88rem; font-weight: 550; white-space: nowrap;
  translate: calc(var(--px, 0) * var(--depth, 30px)) calc(var(--py, 0) * var(--depth, 30px)); animation: bob 6s ease-in-out infinite; }
.float .ok { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: .8rem; color: #1b1406; background: radial-gradient(120% 120% at 30% 0%, var(--ember-2), var(--ember)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.f1 { left: 0; top: 18%; --depth: -40px; animation-delay: -1s; }
.f2 { right: -2%; top: 46%; --depth: 50px; animation-delay: -3s; }
.f2 .ok { background: radial-gradient(120% 120% at 30% 0%, #8af5b9, #22b864); }
.f3 { left: 6%; bottom: 12%; --depth: -30px; animation-delay: -4.5s; }
.f3 .ok { background: radial-gradient(120% 120% at 30% 0%, #c3cad6, var(--indigo)); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Scroll-scrubbed repair (enabled by app.js): the phone pins while you scroll,
   cracks seal as you go down and come back as you scroll up. */
.stage-track { position: relative; }
.hero.scrub .hero-grid { align-items: start; }
.hero.scrub .hero-copy { position: sticky; top: max(96px, calc(50vh - 290px)); padding-top: 3.5rem; }
.hero.scrub .stage-track { height: calc(640px + 70vh); }
.hero.scrub .stage { position: sticky; top: max(84px, calc(50vh - 320px)); }
.hero.scrub .screen { animation: none; }
.hero.scrub .sheen { animation: none; transform: translateX(calc(-120% + var(--heal) * 240%)) rotate(12deg); opacity: calc(1 - var(--heal) * .6); }
.hero.scrub .float { opacity: clamp(0, calc((var(--heal) - var(--at)) * 5), 1); }
.hero.scrub .f1 { --at: .3; } .hero.scrub .f2 { --at: .55; } .hero.scrub .f3 { --at: .78; }
.scroll-cue { display: none; }
.hero.scrub .scroll-cue { display: flex; position: absolute; left: 50%; bottom: -6px; translate: -50% 0; z-index: 6; margin: 0; flex-direction: column; align-items: center; gap: .5rem;
  font: 500 .68rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); opacity: clamp(0, calc(1 - var(--heal) * 4), 1); pointer-events: none; }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--ember), transparent); animation: cue 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* --------------------------------------------------------------- marquee */
.marquee { overflow: hidden; padding: 2.2rem 0; border-block: 1px solid var(--line); -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; gap: 3.2rem; white-space: nowrap; animation: marquee 50s linear infinite; }
.marquee span { font: 650 clamp(1.8rem, 3.6vw, 2.8rem)/1 var(--display); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.28); }
.marquee span:nth-child(3n+1) { color: rgba(255,255,255,.85); -webkit-text-stroke: 0; }
.marquee span:nth-child(5n+3) { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ember-2); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------- stats */
.stats-sec { padding: 4.5rem 0 2rem; }
.stats-glass { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-lg); }
.stat-cell { padding: 2rem 1.8rem; position: relative; }
.stat-cell + .stat-cell::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: linear-gradient(transparent, var(--line-2), transparent); }
.stat-cell b { display: block; font: 650 clamp(2.6rem, 4.5vw, 3.6rem)/1 var(--display); letter-spacing: -0.05em; }
.stat-cell b em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .55em; color: var(--ember-2); margin-left: .12em; letter-spacing: 0; }
.stat-cell span { display: block; margin-top: .55rem; color: var(--muted); font-size: .9rem; }

/* --------------------------------------------------------------- sections */
.section { padding: 6rem 0; position: relative; }
.section.tight { padding: 3rem 0 5rem; }
.section-head { text-align: center; margin-bottom: 3.2rem; }
.section-head h2 { margin-bottom: .35em; }
.section-lead { color: var(--text-2); font-size: 1.08rem; max-width: 36em; margin: 0 auto; }
.page-head { padding: 5rem 0 2.5rem; }
.page-head .section-lead { margin: 0; }

/* device tiles */
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.dev { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.4rem 1.4rem 1.5rem; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.dev:hover, .svc:hover, .steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow), 0 30px 60px -30px rgba(242,178,51,.35); }
.dev-icon { grid-row: 1 / 3; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #1b1406;
  background: radial-gradient(120% 120% at 30% 0%, rgba(255,220,133,.9), rgba(242,178,51,.85) 50%, rgba(168,106,18,.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -3px 8px rgba(100,60,0,.35), 0 10px 20px -8px rgba(242,178,51,.6); }
.dev:nth-child(2) .dev-icon, .dev:nth-child(5) .dev-icon { background: radial-gradient(120% 120% at 30% 0%, #e6e9ef, var(--indigo) 55%, #2a303c); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 20px -8px rgba(75,85,104,.6); }
.dev:nth-child(3) .dev-icon, .dev:nth-child(6) .dev-icon { background: radial-gradient(120% 120% at 30% 0%, #f0c27a, var(--rose) 55%, #7a4a0c); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 20px -8px rgba(185,118,28,.6); }
.dev:nth-child(7) .dev-icon { background: radial-gradient(120% 120% at 30% 0%, #ffffff, var(--teal) 55%, #7d828c); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 20px -8px rgba(201,204,211,.6); }
.dev-icon svg { width: 24px; height: 24px; }
.dev h3 { margin: .15rem 0 .3rem; font-size: 1.12rem; padding-right: 1.4rem; }
.dev p { grid-column: 2; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.dev .arrow { position: absolute; right: 1.3rem; top: 1.3rem; color: var(--muted); transition: transform .25s, color .25s; }
.dev:hover .arrow { color: var(--ember-2); transform: translateX(4px); }

/* model picker */
.picker { padding: 5rem 0; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 2rem auto 0; position: relative; max-width: 980px; }
.tabs > input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.tabs > label { order: 0; margin: 0; cursor: pointer; padding: .6rem 1.05rem; border-radius: 999px; font: 550 .86rem var(--sans); color: var(--text-2); text-transform: none; letter-spacing: 0;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); transition: all .2s; }
.tabs > label:hover { color: var(--text); background: rgba(255,255,255,.08); }
.tabs > input:checked + label { color: #1a0c08; background: linear-gradient(180deg, #fff, #e9e4dc); box-shadow: inset 0 1px 0 #fff, 0 8px 20px -8px rgba(255,255,255,.35); }
.tabs > input:focus-visible + label { outline: 2px solid var(--ember); outline-offset: 3px; }
.models { order: 1; flex-basis: 100%; display: none; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 1.6rem; }
.tabs > input:checked + label + .models { display: flex; animation: fadeUp .4s cubic-bezier(.2,.8,.2,1); }
.models a { padding: .65rem 1.15rem; border-radius: 999px; font-size: .94rem; color: var(--text);
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.08); transition: all .2s; }
.models a:hover { color: #1b1406; background: radial-gradient(120% 140% at 30% 0%, var(--ember-2), var(--ember) 50%, #a86a12); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 24px -10px rgba(242,178,51,.7); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
.svc { display: flex; flex-direction: column; padding: 1.6rem; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.svc-top { display: flex; justify-content: space-between; align-items: center; font: 500 .68rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.svc-top b { font-weight: 500; padding: .3rem .6rem; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }
.svc h3 { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.25rem; }
.svc h3 .arrow { color: var(--muted); font-weight: 300; transition: transform .25s, color .25s; }
.svc:hover h3 .arrow { transform: translateX(4px); color: var(--ember-2); }
.svc p { color: var(--muted); margin: 0 0 1.4rem; flex: 1; font-size: .95rem; }
.svc-price { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; border-top: 1px solid var(--line); }
.svc-price strong { font: 650 1.75rem/1 var(--display); letter-spacing: -0.04em; }
.svc-price small { font: italic 400 .85rem var(--serif); color: var(--muted); margin-right: .35rem; letter-spacing: 0; }
.svc-price span { font-size: .82rem; color: var(--muted); }

/* process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.steps li { padding: 1.7rem 1.6rem; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.steps .n { display: block; font: italic 400 3.4rem/1 var(--serif); margin-bottom: 1.4rem;
  background: linear-gradient(180deg, var(--ember-2), var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* team */
.team-grid { display: grid; grid-template-columns: .85fr 1fr; gap: 4.5rem; align-items: center; }
.team-photo { margin: 0; aspect-ratio: 5 / 6; overflow: hidden; border-radius: var(--r-lg); padding: 10px; }
.team-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; border-radius: calc(var(--r-lg) - 10px); filter: contrast(1.04) saturate(.95); }
.team-photo figcaption { position: absolute; inset: 10px; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.4rem 1.5rem; border-radius: calc(var(--r-lg) - 10px);
  background: linear-gradient(180deg, rgba(6,6,8,.9) 0%, rgba(6,6,8,.25) 22%, transparent 40%, transparent 60%, rgba(6,6,8,.88) 100%); }
.team-photo figcaption .label { margin-bottom: .4rem; color: var(--text-2); }
.team-photo figcaption strong { font: 650 2.3rem/1 var(--display); letter-spacing: -0.04em; }
.team-years { display: flex; align-items: center; gap: 1rem; margin: .4rem 0 1.6rem; }
.team-years b { font: 650 5.4rem/.85 var(--display); letter-spacing: -0.06em; background: linear-gradient(180deg, #fff3cf, var(--ember) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.team-years span { font: 500 .74rem/1.45 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--text-2); }
.team .section-lead { margin: 0 0 1.6rem; }
.team-points { list-style: none; padding: 0; margin: 0 0 2rem; }
.team-points li { padding: .8rem 0 .8rem 1.9rem; border-top: 1px solid var(--line); position: relative; }
.team-points li:last-child { border-bottom: 1px solid var(--line); }
.team-points li::before { content: "✦"; position: absolute; left: 0; color: var(--ember-2); }

/* promise */
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.big-quote { font: 650 clamp(2.2rem, 4.2vw, 3.4rem)/1.04 var(--display); letter-spacing: -0.045em; margin: 0; }
.big-quote .red { font-family: var(--serif); font-style: italic; font-weight: 400; background: linear-gradient(100deg, #fff3cf, var(--ember-2) 40%, var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promise-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.promise-list li { display: grid; grid-template-columns: 2.8rem 1fr; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line); }
.promise-list svg { width: 22px; height: 22px; color: var(--ember-2); margin: 2px auto 0; }
.promise-list strong { display: block; font-weight: 600; margin-bottom: .15rem; }
.promise-list span { color: var(--muted); font-size: .93rem; }

/* CTA band */
.cta-band { padding: 2rem 0 5rem; }
.cta-band .wrap { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding: 3.6rem 3.4rem; border-radius: 36px;
  background: radial-gradient(90% 140% at 0% 0%, rgba(255,220,133,.55), transparent 55%), radial-gradient(80% 140% at 100% 100%, rgba(75,85,104,.55), transparent 55%), linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.14); }
.cta-band h2 { margin: 0; max-width: 15em; }
.cta-band .btn { background: linear-gradient(180deg, #fff, #ebe6de); color: #1a0c08; box-shadow: inset 0 1px 0 #fff, 0 14px 30px -12px rgba(0,0,0,.6); }
.cta-band .btn::after { background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0)); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact-list { margin: 2rem 0 0; padding: 0; list-style: none; }
.contact-list li { display: grid; grid-template-columns: 6.5rem 1fr; padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-list li span { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); padding-top: .3rem; }
.contact-list a:hover { color: var(--ember-2); }

/* ------------------------------------------------------------------ forms */
.panel { padding: 2rem; margin-bottom: 1.2rem; }
.panel.dim { opacity: .5; }
.panel h3 { margin-bottom: 1.1rem; }
label { display: block; font: 500 .7rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 1.25rem; }
label small { text-transform: none; letter-spacing: 0; font-family: var(--sans); }
input, select, textarea {
  display: block; width: 100%; margin-top: .55rem; padding: .9rem 1rem; border-radius: 14px; border: 0;
  font: 400 1rem/1.4 var(--sans); background: rgba(0,0,0,.28); color: var(--text); text-transform: none; letter-spacing: normal;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.10); transition: box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: rgba(243,240,234,.3); }
input:focus, select:focus, textarea:focus { outline: none; background: rgba(0,0,0,.36); box-shadow: inset 0 1px 2px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,220,133,.7), 0 0 0 4px rgba(242,178,51,.16); }
input[type="date"] { color-scheme: dark; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select option, select optgroup { background: #16161c; color: var(--text); }
.check-row { display: flex; align-items: center; gap: .6rem; font: 400 .95rem var(--sans); text-transform: none; letter-spacing: 0; color: var(--text); }
.check-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--ember); box-shadow: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
.span-2 { grid-column: 1 / -1; }
.has-error input, .has-error select { box-shadow: inset 0 0 0 1px rgba(255,107,94,.8); }
.field-error { display: block; color: var(--danger); font: 400 .84rem var(--sans); text-transform: none; letter-spacing: 0; margin-top: .4rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: .3rem; }
.form-foot p { margin: 0; max-width: 30em; }
.alert { padding: .95rem 1.15rem; margin: 1rem 0; font-size: .95rem; border-radius: 14px; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.alert-ok { background: rgba(74,222,155,.10); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(74,222,155,.35); }
.alert-error { background: rgba(255,107,94,.10); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255,107,94,.4); }

.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.aside { position: sticky; top: 110px; }
.aside ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.aside li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; padding: .85rem 0; border-top: 1px solid var(--line); font-size: .94rem; color: var(--text-2); }
.aside li::before { content: counter(s); font: italic 400 1.2rem/1 var(--serif); color: var(--ember-2); padding-top: .1rem; }

/* --------------------------------------------------------------- tracking */
.ticket-code { font: 600 2.2rem/1 var(--mono); letter-spacing: .1em; margin: .4rem 0 1.4rem; }
.ticket-code.sm { font-size: 1.3rem; margin: 0; }
.track-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.track-head p { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.1rem; margin: 1.2rem 0 1.6rem; }
.facts dt { font: .66rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .14em; margin-bottom: .25rem; }
.facts dd { margin: 0; font-weight: 600; }
.timeline { list-style: none; padding: 0 0 0 1.4rem; border-left: 1px solid var(--line-2); margin: 0 0 1rem .35rem; }
.timeline li { position: relative; padding: 0 0 1.2rem .4rem; }
.timeline li::before { content: ""; position: absolute; left: -1.83rem; top: .42rem; width: 11px; height: 11px; border-radius: 50%; background: #2a2a33; box-shadow: 0 0 0 3px var(--bg); }
.timeline li:first-child::before { background: var(--ember); box-shadow: 0 0 0 3px var(--bg), 0 0 14px var(--ember); }
.timeline p { margin: .25rem 0 0; color: var(--text-2); }

.status { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .7rem; border-radius: 999px; font: 600 .72rem/1 var(--sans); white-space: nowrap;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px currentColor; color: var(--text-2); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-booked, .status-received { color: #9cc3ff; }
.status-diagnosing, .status-in_repair { color: var(--violet); }
.status-awaiting_approval { color: var(--warn); }
.status-ready { color: var(--ok); }
.status-collected { color: var(--muted); }
.status-cancelled { color: var(--danger); }

/* ------------------------------------------------------------------ admin */
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pill { padding: .5rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #1b1406; background: radial-gradient(120% 140% at 30% 0%, var(--ember-2), var(--ember)); }
.stats { display: grid; grid-template-columns: repeat(8, 1fr); gap: .5rem; margin: 1.5rem 0; }
.stat { padding: 1rem 1.05rem; display: flex; flex-direction: column; gap: .4rem; border-radius: 16px; background: rgba(255,255,255,.045); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s; }
.stat b { font: 650 2rem/1 var(--display); letter-spacing: -0.04em; }
.stat span { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.stat:hover { background: rgba(255,255,255,.08); }
.stat.active { background: radial-gradient(120% 140% at 30% 0%, rgba(255,220,133,.9), rgba(242,178,51,.85)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.stat.active span { color: rgba(255,255,255,.85); }
.filters { display: flex; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; align-items: center; }
.filters select, .filters input { width: auto; margin: 0; }
.filters input { flex: 1; min-width: 220px; }
.table-wrap { overflow-x: auto; border-radius: var(--r); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: .95rem 1.05rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font: 500 .64rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255,255,255,.04); }
.table tr:last-child td { border-bottom: 0; }
.table a { font-weight: 600; }
.table a:hover { color: var(--ember-2); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; align-items: start; }
.back { font-size: .9rem; color: var(--muted); }
.back:hover { color: var(--ember-2); }

/* ----------------------------------------------------------------- footer */
.footer { padding: 5rem 0 2rem; font-size: .95rem; color: var(--text-2); position: relative; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer h4 { font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-bottom: 1.1rem; }
.footer p { margin: 0; }
.footer a:hover { color: var(--ember-2); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer .brand { margin-bottom: 1rem; }
.footer-logo { display: inline-block; margin-bottom: 1.2rem; border-radius: 50%; }
.footer-logo img { display: block; width: 132px; height: 132px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 18px 50px -12px rgba(255,170,60,.45); }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.hours span:last-child { font: .85rem var(--mono); color: var(--text); }
.wordmark { font: 700 clamp(4.5rem, 19vw, 16rem)/.82 var(--display); letter-spacing: -0.07em; margin: 0; padding: 2rem 0 .1em; white-space: nowrap; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.02) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark span { background: linear-gradient(180deg, var(--ember-2), var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.copyright { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .82rem; color: var(--muted); }

/* -------------------------------------------------- scroll reveal (app.js) */
/* uses the separate `translate` property so hover lifts (transform) still work */
.reveal { opacity: 0; translate: 0 26px; filter: blur(6px); transition: opacity .9s cubic-bezier(.2,.8,.2,1) var(--d, 0ms), translate .9s cubic-bezier(.2,.8,.2,1) var(--d, 0ms), filter .9s var(--d, 0ms), transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.reveal.in { opacity: 1; translate: none; filter: none; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .stage { height: 600px; }
  .hero.scrub .hero-copy { position: static; padding-top: 0; }
  .hero.scrub .stage-track { height: calc(600px + 70vh); }
  .hero.scrub .stage { top: max(76px, calc(50vh - 300px)); }
  .promise, .contact-grid, .split, .two-col, .team-grid { grid-template-columns: 1fr; }
  .team-photo { max-width: 460px; }
  .aside { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .nav > a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 28px); }
  .topbar { top: 8px; margin-top: 8px; width: calc(100% - 16px); }
  .topbar-inner { padding: .45rem .45rem .45rem 1rem; }
  .brand small { display: none; }
  .nav-actions .btn { padding: .6rem .85rem; font-size: .8rem; }
  .hero { padding: 3rem 0 1rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4rem); }
  .hero-cta .btn { flex: 1; }
  .stage { height: 520px; }
  .hero.scrub .stage-track { height: calc(520px + 70vh); }
  .hero.scrub .stage { top: max(70px, calc(50vh - 250px)); }
  .device { width: 236px; height: 486px; border-radius: 46px; padding: 9px; }
  .screen { border-radius: 38px; }
  .lock-time { font-size: 4rem; }
  .notif { top: 200px; font-size: .66rem; }
  .notif.n2 { top: 272px; }
  .float { font-size: .78rem; padding: .55rem .75rem; }
  .f1 { left: 0; top: 8%; } .f2 { right: 0; top: auto; bottom: 18%; } .f3 { left: 2%; bottom: 5%; }
  .hide-sm { display: none; }
  .section { padding: 4rem 0; }
  .stats-glass { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(3)::before { display: none; }
  .stat-cell { padding: 1.5rem 1.3rem; }
  .svc-grid, .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 1.5rem; }
  .cta-band .wrap { padding: 2.4rem 1.6rem; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .marquee-track { animation: none; }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .frame, .panel, .table-wrap { background: rgba(28,28,34,.92); }
}

/* ------------------------------------------------ dashboard: WhatsApp + team */
.status-approved { color: #7af0a8; }
.wa-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.wa-bar p { margin: .2rem 0 0; }
.btn-wa.btn-sm svg { width: 16px; height: 16px; }
.wa-mini { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #25d366; background: rgba(37,211,102,.12); box-shadow: inset 0 0 0 1px rgba(37,211,102,.35); transition: background .2s, transform .2s; }
.wa-mini:hover { background: rgba(37,211,102,.25); transform: scale(1.06); }
.wa-mini svg { width: 17px; height: 17px; }
.table tr.dim { opacity: .5; }
.team-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.reset-form { display: inline-flex; gap: .4rem; align-items: center; }
.reset-form input { width: 150px; margin: 0; padding: .5rem .7rem; font-size: .85rem; }
.team-add { margin-top: 1.6rem; max-width: 720px; }
.admin .stats { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
