/* ============================================================
   Gabokeke: dashboard template marketplace
   Layout + motion system. Animations are progressive enhancement:
   reveal states only engage once <html> gets .anim-ready.
   ============================================================ */

/* ---------- tokens ---------- */
:root{
  --ink:#121214;
  --ink-2:#2a2a2e;
  --muted:#6e6e76;
  --faint:#9b9ba3;
  --line:#e7e7ea;
  --line-2:#f0f0f2;
  --paper:#ffffff;
  --paper-2:#f7f7f8;
  --sand:#f2efea;

  --accent:#ff4a28;
  --accent-ink:#e03a1b;
  --blue:#0b99ff;
  --lime:#d4f25c;
  --violet:#7c5cff;
  --pink:#ffd9d1;

  --peach-1:#ffe4dc;
  --peach-2:#fff1ec;

  --r-sm:10px;
  --r-md:16px;
  --r-lg:24px;
  --r-xl:34px;

  --pad:clamp(20px, 4vw, 56px);
  --maxw:1240px;

  --ease:cubic-bezier(.22,1,.36,1);
  --ease-io:cubic-bezier(.65,0,.35,1);

  --nav-h:68px;
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto !important}
.lenis.lenis-stopped{overflow:hidden}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Inter","Segoe UI",system-ui,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
body.is-locked{overflow:hidden}

img,svg{display:block;max-width:100%}
h1,h2,h3,h4{font-family:"Inter Tight","Inter",system-ui,sans-serif;font-weight:600;letter-spacing:-.025em;line-height:1.06;margin:0}
p{margin:0}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
ul{margin:0;padding:0;list-style:none}

.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--pad)}

.section-title{
  font-size:clamp(30px,4.4vw,56px);
  text-align:center;
  margin-bottom:clamp(36px,5vw,64px);
}

.eyebrow{
  display:inline-block;font-size:12px;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:var(--faint);margin-bottom:18px;
}

/* ---------- buttons ---------- */
.btn{
  --bg:var(--ink); --fg:#fff;
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:15px 26px;border-radius:999px;background:var(--bg);color:var(--fg);
  font-size:14.5px;font-weight:500;letter-spacing:-.01em;white-space:nowrap;
  overflow:hidden;isolation:isolate;
  transition:color .35s var(--ease), box-shadow .4s var(--ease);
}
.btn > *{position:relative;z-index:2}
.btn svg{width:17px;height:17px;transition:transform .4s var(--ease)}
.btn::after{
  content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;
  background:var(--hov,rgba(255,255,255,.16));
  transform:translateY(101%);transition:transform .5s var(--ease);
}
.btn:hover::after{transform:translateY(0)}
.btn:hover svg{transform:translateX(4px)}
.btn:active{transform:scale(.97)}
.btn--accent{--bg:var(--accent);--hov:var(--accent-ink)}
.btn--dark{--bg:var(--ink);--hov:#38383e}
.btn--ghost{--bg:transparent;--fg:var(--ink);box-shadow:inset 0 0 0 1px var(--line);--hov:var(--paper-2)}
.btn--sm{padding:11px 20px;font-size:13.5px}
.btn--block{display:flex;width:100%}

/* ---------- chrome: progress, cursor, to-top ---------- */
.progress{position:fixed;top:0;left:0;right:0;height:2px;z-index:200;pointer-events:none}
.progress i{display:block;height:100%;width:100%;background:var(--accent);transform:scaleX(0);transform-origin:0 50%}

/* dot + ring are centred by GSAP (xPercent/yPercent) so inline transforms
   from quickTo don't wipe out a CSS translate */
.cursor{position:fixed;top:0;left:0;z-index:250;pointer-events:none;mix-blend-mode:difference;opacity:0}
.cursor__dot,.cursor__ring{position:absolute;top:0;left:0;border-radius:50%}
.cursor__dot{width:6px;height:6px;background:#fff}
.cursor__ring{width:34px;height:34px;border:1px solid rgba(255,255,255,.65)}
@media (hover:none),(pointer:coarse){.cursor{display:none}}

.totop{
  position:fixed;right:22px;bottom:22px;z-index:120;width:46px;height:46px;border-radius:50%;
  background:var(--ink);color:#fff;display:grid;place-items:center;
  opacity:0;transform:translateY(16px) scale(.8);pointer-events:none;
  transition:opacity .4s var(--ease),transform .4s var(--ease);
}
.totop svg{width:18px;height:18px}
.totop.is-on{opacity:1;transform:none;pointer-events:auto}
.totop:hover{background:var(--accent)}

/* ---------- nav ---------- */
/* centred with auto margins, never a transform, GSAP owns .nav's transform */
.nav{
  position:fixed;top:14px;left:0;right:0;z-index:140;
  width:min(calc(100% - 2*var(--pad)), var(--maxw));
  margin-inline:auto;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  height:var(--nav-h);padding:0 10px 0 20px;border-radius:999px;
  background:rgba(255,255,255,.72);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  box-shadow:0 1px 0 rgba(18,18,20,.05), 0 12px 34px -20px rgba(18,18,20,.3);
  transition:background .4s var(--ease), box-shadow .4s var(--ease);
  will-change:transform;
}
.nav.is-solid{background:rgba(255,255,255,.93);box-shadow:0 1px 0 rgba(18,18,20,.07), 0 18px 40px -24px rgba(18,18,20,.45)}
/* class-based hide is the no-GSAP fallback only */
.no-gsap .nav{transition:background .4s var(--ease), box-shadow .4s var(--ease), transform .55s var(--ease)}
.no-gsap .nav.is-hidden{transform:translateY(calc(-100% - 20px))}

.nav__logo{display:flex;align-items:center;gap:9px;font-family:"Inter Tight",sans-serif;font-weight:600;font-size:17px;letter-spacing:-.03em}
.nav__mark{
  width:30px;height:30px;flex:none;object-fit:contain;
  transition:transform .45s var(--ease);
}
.nav__logo:hover .nav__mark{transform:rotate(-6deg) scale(1.08)}
.nav__links{position:relative;display:flex;align-items:center;gap:4px}
.nav__links a{position:relative;z-index:2;padding:9px 15px;border-radius:999px;font-size:14px;color:var(--muted);transition:color .3s var(--ease)}
.nav__links a:hover,.nav__links a.is-active{color:var(--ink)}
.nav__pill{
  position:absolute;z-index:1;top:0;left:0;height:100%;border-radius:999px;
  background:var(--paper-2);opacity:0;transition:opacity .3s var(--ease);
}
.nav__right{display:flex;align-items:center;gap:8px}
.nav__icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:var(--muted);transition:background .3s,color .3s}
.nav__icon svg{width:18px;height:18px}
.nav__icon:hover{background:var(--paper-2);color:var(--ink)}
.nav__burger{
  display:none;width:38px;height:38px;border-radius:50%;
  /* column flex: the bars stack on the MAIN axis, so vertical centring is
     justify-content. place-items would set justify-items, which flex ignores. */
  flex-direction:column;align-items:center;justify-content:center;gap:5px;
}
.nav__burger i{display:block;width:17px;height:1.6px;background:var(--ink);border-radius:2px;transition:transform .4s var(--ease),opacity .3s}
.nav__burger.is-on i:first-child{transform:translateY(3.3px) rotate(45deg)}
.nav__burger.is-on i:last-child{transform:translateY(-3.3px) rotate(-45deg)}

.menu{
  position:fixed;inset:0;z-index:130;background:var(--ink);color:#fff;
  display:flex;flex-direction:column;justify-content:center;gap:40px;padding:110px var(--pad) 48px;
  clip-path:inset(0 0 100% 0);transition:clip-path .7s var(--ease);pointer-events:none;
  overflow-y:auto;overscroll-behavior:contain;
}
.menu.is-open{clip-path:inset(0 0 0 0);pointer-events:auto}
.menu__links a{display:block;overflow:hidden;font-family:"Inter Tight",sans-serif;font-size:clamp(34px,10vw,60px);font-weight:600;letter-spacing:-.035em;padding:4px 0}
.menu__links a span{display:block;transform:translateY(110%);transition:transform .6s var(--ease)}
.menu.is-open .menu__links a span{transform:none}
.menu__links a:nth-child(1) span{transition-delay:.1s}
.menu__links a:nth-child(2) span{transition-delay:.16s}
.menu__links a:nth-child(3) span{transition-delay:.22s}
.menu__links a:nth-child(4) span{transition-delay:.28s}
.menu__links a:nth-child(5) span{transition-delay:.34s}
/* while the menu is open the pill sits on the dark overlay, where a
   translucent white surface just reads as a grey slab — invert it so the bar
   belongs to the menu, and give the close control a surface of its own */
.nav.is-menu{
  background:rgba(255,255,255,.07);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
.nav.is-menu .nav__name{color:#fff}
.nav.is-menu .nav__burger i{background:#fff}
.nav__burger.is-on{background:rgba(255,255,255,.1)}

.menu__foot{
  margin-top:auto;display:flex;flex-direction:column;align-items:flex-start;gap:15px;
  padding-top:22px;border-top:1px solid rgba(255,255,255,.12);
  color:var(--faint);font-size:14px;
}
.menu__mail{
  font-family:"Inter Tight",sans-serif;font-size:clamp(17px,4.4vw,21px);
  font-weight:500;letter-spacing:-.02em;color:#fff;
}
/* chips, not a row of 12px text links — three real tap targets */
.menu__social{display:flex;gap:10px}
.menu__social a{
  display:grid;place-items:center;width:44px;height:44px;border-radius:50%;
  color:rgba(255,255,255,.7);background:rgba(255,255,255,.07);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);
  transition:color .3s var(--ease), background .3s var(--ease), transform .35s var(--ease);
}
.menu__social a:hover{color:#fff;background:rgba(255,255,255,.16);transform:translateY(-3px)}
.menu__social svg{width:18px;height:18px}

/* ---------- hero ---------- */
.hero{position:relative;padding-top:calc(var(--nav-h) + 60px);overflow:hidden}
.hero__bg{position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,var(--peach-1) 0%,var(--peach-2) 42%,#fff 78%)}
.blob{position:absolute;border-radius:50%;filter:blur(70px);opacity:.75;will-change:transform}
.blob--1{width:46vw;height:46vw;left:-10vw;top:-14vw;background:radial-gradient(circle,#ffc9b8,transparent 68%)}
.blob--2{width:38vw;height:38vw;right:-8vw;top:-6vw;background:radial-gradient(circle,#ffd8cf,transparent 70%)}
.blob--3{width:30vw;height:30vw;left:38%;top:12vw;background:radial-gradient(circle,#ffe9d2,transparent 70%)}
.hero__grain{
  position:absolute;inset:0;opacity:.3;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.hero__inner{position:relative;z-index:1;display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(24px,5vw,80px);align-items:end;padding-bottom:clamp(40px,6vw,72px)}
.hero__title{font-size:clamp(34px,5.6vw,70px);letter-spacing:-.035em;line-height:1.02}
.chip{
  display:inline-grid;place-items:center;vertical-align:-.14em;
  width:.92em;height:.92em;border-radius:.26em;margin:0 .06em;
  background:linear-gradient(145deg,var(--blue),#0070d6);
  box-shadow:0 10px 24px -10px rgba(11,153,255,.9);
}
.chip svg{width:58%;height:58%}

.hero__aside{display:flex;flex-direction:column;gap:20px;padding-bottom:6px}
.trusted{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
/* the photos keep their size; if the sentence no longer fits beside them it
   takes its own line rather than being run over by the last avatar */
.avatars{flex:none}
.trusted p{flex:1 1 200px;min-width:0;font-size:13.5px;color:var(--muted)}
.trusted b{color:var(--ink);font-weight:600}
.avatars{display:flex}
.avatars > *,.av{
  width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  font-size:10.5px;font-weight:600;color:#fff;letter-spacing:.02em;
  background:linear-gradient(145deg,var(--a),var(--b));
  box-shadow:0 0 0 2.5px var(--paper);
}
img.av,.avatars img{display:block;object-fit:cover;background:var(--line-2)}
.avatars > * + *{margin-left:-11px}
.avatars--sm > *{width:28px;height:28px;font-size:9.5px}
.avatars--sm > * + *{margin-left:-9px}
.hero__copy{font-size:15px;color:var(--muted);max-width:40ch}
.hero__cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px}
.hero__note{font-size:13px;color:var(--faint)}

/* hero rail */
.rail{
  position:relative;z-index:1;display:flex;gap:clamp(18px,2.4vw,32px);
  padding:0 var(--pad) clamp(50px,7vw,90px);
  width:100%;max-width:var(--maxw);margin-inline:auto;will-change:transform;
}
.tcard{position:relative;flex:1 1 0;min-width:0;cursor:pointer}

/* a pool of product-tinted light the window sits in */
.tcard__glow{
  position:absolute;z-index:0;left:7%;right:7%;top:20%;bottom:16%;
  border-radius:50%;filter:blur(40px);opacity:.45;pointer-events:none;
  transition:opacity .55s var(--ease), transform .55s var(--ease);
}
.tcard[data-open="mylora"] .tcard__glow{background:radial-gradient(closest-side,rgba(198,145,38,.55),transparent)}
.tcard[data-open="corvane"] .tcard__glow{background:radial-gradient(closest-side,rgba(47,125,79,.45),transparent)}
.tcard:hover .tcard__glow{opacity:.8;transform:translateY(-6px) scale(1.05)}

/* browser chrome, so the shot reads as a running app rather than a flat PNG */
.tcard__frame{
  position:relative;z-index:1;border-radius:var(--r-md);overflow:hidden;background:var(--paper);
  box-shadow:0 1px 0 rgba(18,18,20,.06), 0 22px 44px -28px rgba(18,18,20,.5);
  transition:transform .55s var(--ease), box-shadow .55s var(--ease);
}
.tcard:hover .tcard__frame{transform:translateY(-8px);box-shadow:0 1px 0 rgba(18,18,20,.07), 0 40px 70px -34px rgba(18,18,20,.62)}
/* fixed side columns keep the address pill optically centred */
.tcard__bar{
  display:grid;grid-template-columns:37px 1fr 37px;align-items:center;gap:10px;
  height:clamp(28px,2.6vw,36px);padding:0 12px;
  background:linear-gradient(#fcfcfd,#f1f1f4);box-shadow:inset 0 -1px 0 var(--line);
}
.tcard__dots{display:flex;gap:5px}
.tcard__dots i{width:9px;height:9px;border-radius:50%}
.tcard__dots i:nth-child(1){background:#ff5f57}
.tcard__dots i:nth-child(2){background:#febc2e}
.tcard__dots i:nth-child(3){background:#28c840}
.tcard__url{
  max-width:min(100%,300px);margin-inline:auto;height:21px;padding:0 11px;
  display:flex;align-items:center;justify-content:center;gap:6px;
  border-radius:999px;background:var(--paper);box-shadow:inset 0 0 0 1px var(--line);
  font-size:11px;color:var(--faint);white-space:nowrap;overflow:hidden;
}
.tcard__url svg{width:9px;height:9px;flex:none;opacity:.65}
.tcard__shot{position:relative;aspect-ratio:1920/970;overflow:hidden;background:var(--paper)}
.tcard:hover .tcard__shot img{transform:scale(1.03)}
.tcard__meta{display:flex;align-items:baseline;gap:10px;margin-top:14px}
.tcard__meta h3{font-size:19px}
.tcard__meta .price{margin-left:auto}
.price{font-size:15px;font-weight:600;color:var(--accent)}
.price--free{color:var(--blue)}
.tcard__sub{font-size:12.5px;color:var(--faint);margin-top:2px}

/* ---------- real product screenshots ----------
   Desktop shots are 1920x970 (1.98:1), phone shots 393x853 (0.46:1).
   Card ratios below match the source exactly, so nothing is cropped. */
.tcard__shot img,.gcard__shot img{
  width:100%;height:100%;object-fit:cover;object-position:top left;
  display:block;transition:transform .8s var(--ease);
}
.price--mylora{color:#b07d1f}
.price--corvane{color:#2f7d4f}

/* ---------- marquee ---------- */
.marquee{overflow:hidden;border-block:1px solid var(--line);padding:18px 0;background:var(--paper)}
.marquee__track{display:flex;align-items:center;gap:30px;width:max-content;will-change:transform}
.marquee__track span{
  font-family:"Inter Tight",sans-serif;font-size:clamp(17px,2vw,25px);font-weight:500;
  letter-spacing:-.02em;color:var(--ink);white-space:nowrap;
}
.marquee__track i{color:var(--accent);font-size:9px;font-style:normal}

/* ---------- clients ---------- */
.clients{padding:clamp(46px,6vw,78px) 0 clamp(10px,1.6vw,20px)}
.clients__inner{display:flex;flex-direction:column;align-items:center;gap:clamp(24px,3.2vw,36px)}
.clients__label{
  font-size:12px;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:var(--faint);text-align:center;
}
.clients__list{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:clamp(20px,3.6vw,56px)}
.clients__link{
  display:inline-flex;align-items:center;gap:10px;
  font-family:"Inter Tight",sans-serif;font-weight:600;letter-spacing:-.03em;
  font-size:clamp(17px,2vw,23px);line-height:1.1;color:var(--muted);
  transition:color .4s var(--ease),transform .4s var(--ease);
}
.clients__link span{white-space:nowrap}
.clients__link svg{
  width:clamp(19px,2.1vw,24px);height:auto;flex:none;color:var(--faint);
  transition:color .4s var(--ease),transform .5s var(--ease);
}
.clients__link:hover{color:var(--ink);transform:translateY(-2px)}
.clients__link:hover svg{color:var(--accent);transform:rotate(-7deg)}
.clients__link:focus-visible{outline:2px solid var(--accent);outline-offset:7px;border-radius:var(--r-sm);color:var(--ink)}

/* ---------- features (bento grid) ----------
   Tall visual card down the left, dark quote spanning two columns,
   three equal cards along the bottom. Sizes come from the grid,
   never from the card, so nothing needs a fixed width.            */
.features{position:relative;background:var(--paper);padding:clamp(60px,8vw,110px) 0}
.features__grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-template-rows:clamp(150px,16vw,196px) clamp(150px,16vw,196px) clamp(240px,25vw,300px);
  gap:clamp(14px,1.6vw,22px);
}

.fcard{
  position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:9px;
  padding:clamp(19px,2.1vw,27px);border-radius:var(--r-lg);overflow:hidden;min-width:0;
  background:var(--paper-2);box-shadow:inset 0 0 0 1px var(--line);
  transform-style:preserve-3d;
}
.fcard h3{font-size:clamp(17px,1.8vw,23px)}
.fcard p{font-size:13.5px;color:var(--muted);max-width:38ch}
.fcard--dark{background:var(--ink);color:#fff;box-shadow:none}
.fcard--dark p{color:var(--faint)}
.fcard--accent{background:linear-gradient(165deg,var(--peach-1),#fff);box-shadow:inset 0 0 0 1px var(--line)}

/* bento placement: tall cards flank, the two wide ones stack in the
   middle, and a wide chart + square stat close it out
   ┌────────┬───────────────┬────────┐
   │ phones │     quote     │ motion │
   │        ├───────────────┤        │
   │        │    states     │        │
   ├────────┴───────────────┼────────┤
   │         chart          │  stat  │
   └────────────────────────┴────────┘ */
.fcard--phones{grid-column:1;grid-row:1 / span 2}
.fcard--quote {grid-column:2 / span 2;grid-row:1}
.fcard--motion{grid-column:4;grid-row:1 / span 2}
.fcard--states{grid-column:2 / span 2;grid-row:2}
.fcard--chart {grid-column:1 / span 3;grid-row:3}
.fcard--stat  {grid-column:4;grid-row:3}

.fcard__art{flex:1;position:relative;margin-bottom:6px}
/* Three devices fanned out. Width drives the size, and this slot is close to
   square, so sizing off its height makes each phone ~46% of the card and the
   fan collides with the heading. Feet sit on the slot floor; any surplus
   height runs off the top of the card, which overflow:hidden crops.
   .phone is shared with the custom-build collage, so the chrome is drawn once. */
.fcard__art--phones .phone{
  position:absolute;bottom:0;width:32%;
  border-radius:19px;padding:3px;transform-origin:bottom center;
}
.fcard__art--phones .phone img{border-radius:16px}
.fcard__art--phones .phone::after{inset:3px;border-radius:16px}
.fcard__art--phones .phone:nth-child(1){left:0;rotate:-7deg;z-index:1}
.fcard__art--phones .phone:nth-child(2){left:32%;bottom:6%;width:36%;rotate:1deg;z-index:3}
.fcard__art--phones .phone:nth-child(3){right:0;rotate:7deg;z-index:1}

/* single desktop screenshot filling the card's art slot */
.fcard__art--shot{overflow:hidden;border-radius:12px;box-shadow:inset 0 0 0 1px var(--line)}
.fcard__art--shot img{width:100%;height:100%;object-fit:cover;object-position:top left;display:block}

.fcard__count{flex:1;display:flex;align-items:center}
.fcard__count b{font-family:"Inter Tight",sans-serif;font-size:clamp(48px,7vw,76px);font-weight:600;letter-spacing:-.05em;line-height:1}

.fcard__pills{flex:1;display:flex;flex-wrap:wrap;align-content:center;gap:9px}
.pill{padding:8px 15px;border-radius:999px;font-size:13px;font-weight:500;white-space:nowrap}
.pill--pink{background:var(--pink);color:#8a3a26}
.pill--blue{background:#d9ecff;color:#0a5ea8}
.pill--lime{background:var(--lime);color:#4a5a14}
.pill--grey{background:#e9e9ec;color:#55555c}

.fcard__quote{width:34px;height:34px;color:var(--accent);flex:none}
.fcard--quote blockquote{
  margin:0;font-family:"Inter Tight",sans-serif;font-size:clamp(15px,1.7vw,21px);
  font-weight:500;letter-spacing:-.022em;line-height:1.3;
}
/* quote + attribution stacked beside the mark; the row height is fixed,
   so this has to stay inside it or overflow:hidden clips the name off */
.fcard--quote .fcard__said{
  flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:12px;
}
.fcard__cite{display:flex;align-items:center;gap:10px}
.fcard__cite .av{width:33px;height:33px;font-size:10.5px;box-shadow:0 0 0 2.5px var(--ink)}
.fcard__cite strong{display:block;font-size:13.5px;font-weight:600;color:#fff}
.fcard__cite small{font-size:12px;color:var(--faint)}

/* The two cards that span two columns are wider than they are tall, so a
   bottom-aligned column strands their content. Lay them out side to side. */
.fcard--states,.fcard--quote{
  flex-direction:row;align-items:center;justify-content:flex-start;
  gap:clamp(18px,2.6vw,38px);
}
.fcard--states .fcard__text{flex:0 0 42%;min-width:0;display:flex;flex-direction:column;gap:8px}
.fcard--states .fcard__text p{max-width:36ch}
.fcard--states .fcard__pills{flex:1;min-width:0;justify-content:flex-end}
.fcard--quote .fcard__quote{align-self:flex-start}
.fcard--quote blockquote{flex:none;min-width:0}

/* chart card: copy left, screenshot filling the right at full card height */
.fcard--chart{flex-direction:row;align-items:stretch;gap:clamp(18px,2.4vw,34px)}
.fcard--chart .fcard__text{
  flex:0 0 32%;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:8px;
}
.fcard--chart .fcard__art--shot{flex:1;min-width:0;margin:0}
.fcard--motion{background:#0b0b0e;color:#fff;box-shadow:none;justify-content:flex-end}
.fcard--motion p{color:rgba(255,255,255,.55)}
.fcard__orb{
  position:absolute;inset:-30% -10% auto -10%;height:72%;border-radius:50%;
  background:radial-gradient(circle at 50% 60%,#ff7a3c,#ff2d55 42%,transparent 70%);
  filter:blur(26px);opacity:.9;animation:drift 9s ease-in-out infinite alternate;
}
@keyframes drift{to{transform:translate3d(8%,10%,0) scale(1.14)}}
.fcard__motion-title{font-size:clamp(26px,3.4vw,42px);letter-spacing:-.04em;line-height:1}

/* ---------- catalog ---------- */
.catalog{padding:clamp(70px,9vw,120px) 0}
.catalog__head{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:clamp(30px,4vw,48px);flex-wrap:wrap}
.catalog__head h2{font-size:clamp(26px,3.6vw,44px);max-width:16ch}
.tag{
  display:inline-block;vertical-align:.1em;padding:4px 13px;border-radius:999px;
  background:var(--lime);color:#4a5a14;font-size:.42em;font-weight:600;letter-spacing:0;
  transform:rotate(-2deg);
}
.toggle{position:relative;display:flex;gap:2px;padding:4px;border-radius:999px;background:var(--paper-2);box-shadow:inset 0 0 0 1px var(--line)}
.toggle button{position:relative;z-index:2;padding:9px 20px;border-radius:999px;font-size:13.5px;font-weight:500;color:var(--muted);transition:color .3s var(--ease)}
.toggle button.is-on{color:#fff}
.toggle__thumb{position:absolute;z-index:1;top:4px;left:4px;height:calc(100% - 8px);border-radius:999px;background:var(--ink)}

.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(18px,2.4vw,32px)}
.gcard{cursor:pointer}
.gcard.is-out{display:none}
.gcard__shot{
  position:relative;aspect-ratio:1920/970;border-radius:var(--r-md);overflow:hidden;background:var(--paper);
  box-shadow:0 1px 0 rgba(18,18,20,.06), 0 20px 44px -30px rgba(18,18,20,.55);
  transition:transform .55s var(--ease), box-shadow .55s var(--ease);
}
.gcard:hover .gcard__shot{transform:translateY(-9px);box-shadow:0 1px 0 rgba(18,18,20,.07), 0 44px 76px -36px rgba(18,18,20,.6)}
.gcard:hover .gcard__shot img{transform:scale(1.05)}
.gcard__cue,.tcard__cue{
  position:absolute;z-index:3;left:14px;bottom:14px;display:inline-flex;align-items:center;gap:9px;
  padding:11px 17px;border-radius:999px;background:var(--ink);color:#fff;
  font-size:13px;font-weight:500;letter-spacing:-.01em;
  opacity:0;transform:translateY(12px);
  transition:opacity .4s var(--ease), transform .4s var(--ease);
}
.gcard__cue i,.tcard__cue i{font-style:normal}
.gcard__cue svg,.tcard__cue svg{width:15px;height:15px}
.gcard:hover .gcard__cue,.gcard:focus-visible .gcard__cue,
.tcard:hover .tcard__cue,.tcard:focus-visible .tcard__cue{opacity:1;transform:none}
@media (hover:none){.gcard__cue,.tcard__cue{opacity:1;transform:none}}
.gcard:focus-visible,.tcard:focus-visible{outline:2px solid var(--accent);outline-offset:7px;border-radius:var(--r-sm)}
.badge{
  position:absolute;z-index:3;top:12px;right:12px;padding:5px 11px;border-radius:999px;
  background:var(--lime);color:#3f4d10;font-size:11px;font-weight:600;letter-spacing:.02em;
}
.badge::after{
  content:"";position:absolute;inset:0;border-radius:inherit;
  background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.75) 50%,transparent 70%);
  transform:translateX(-120%);animation:shimmer 3.4s ease-in-out infinite;
}
@keyframes shimmer{0%,62%{transform:translateX(-120%)}88%,100%{transform:translateX(120%)}}
.catalog__hint{font-size:14px;line-height:1.5;color:var(--faint);max-width:32ch;padding-bottom:6px}
.gcard__meta{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-top:16px}
.gcard__meta h3{font-size:18px;display:flex;align-items:center;gap:8px}
.gcard__meta em{
  font-style:normal;font-size:10.5px;font-weight:600;letter-spacing:.03em;
  padding:3px 8px;border-radius:999px;background:var(--paper-2);color:var(--muted);
  font-family:"Inter",sans-serif;
}
.gcard__meta p{font-size:13px;color:var(--faint);margin-top:4px}
.gcard__price{
  flex:none;font-family:"Inter Tight",sans-serif;font-size:19px;font-weight:600;
  letter-spacing:-.03em;line-height:1.1;
}
.catalog__foot{display:flex;justify-content:center;gap:12px;margin-top:clamp(36px,5vw,60px);flex-wrap:wrap}

/* ---------- dashboard detail sheet ---------- */
.sheet{position:fixed;inset:0;z-index:160;display:flex;justify-content:flex-end}
.sheet[hidden]{display:none}
.sheet__scrim{position:absolute;inset:0;background:rgba(18,18,20,.52);cursor:pointer}
.sheet__panel{
  position:relative;width:min(1060px,100%);height:100%;background:var(--paper);
  box-shadow:-40px 0 110px -50px rgba(18,18,20,.75);
}
.sheet__scroll{height:100%;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.sheet__scroll:focus:not(:focus-visible){outline:none}
.sheet__scroll::-webkit-scrollbar{width:9px}
.sheet__scroll::-webkit-scrollbar-thumb{background:var(--line);border-radius:999px}
.sheet__x{
  position:absolute;z-index:4;top:16px;right:16px;width:42px;height:42px;border-radius:50%;
  display:grid;place-items:center;background:var(--paper);color:var(--ink);
  box-shadow:0 1px 0 rgba(18,18,20,.07), 0 14px 30px -14px rgba(18,18,20,.55);
  transition:transform .4s var(--ease), background .3s var(--ease);
}
.sheet__x:hover{transform:rotate(90deg);background:var(--paper-2)}
.sheet__x svg{width:18px;height:18px}

.detail{--brand:var(--accent);padding:72px clamp(20px,3.4vw,52px) clamp(50px,6vw,84px)}
.detail[hidden]{display:none}
.detail--mylora{--brand:#b07d1f}
.detail--corvane{--brand:#2f7d4f}

.detail__top{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:clamp(26px,3vw,46px);align-items:start}
.detail__id{padding-right:46px}
.detail__kind{
  display:inline-block;padding:5px 13px;border-radius:999px;font-size:11.5px;font-weight:600;
  letter-spacing:.04em;color:var(--brand);background:color-mix(in srgb,var(--brand) 12%,transparent);
}
.detail__top h2{font-size:clamp(40px,5.6vw,68px);letter-spacing:-.045em;line-height:.96;margin-top:16px}
.detail__strap{margin-top:16px;font-size:clamp(15px,1.5vw,18px);line-height:1.5;color:var(--muted);max-width:42ch}

/* fills the column beside the buy card, which is taller than the heading */
.detail__hero{margin-top:clamp(24px,3vw,34px)}

.detail__buy{padding:24px;border-radius:var(--r-lg);background:var(--paper-2);box-shadow:inset 0 0 0 1px var(--line)}
.detail__price{margin-bottom:18px}
.detail__price b{
  display:block;font-family:"Inter Tight",sans-serif;font-size:42px;font-weight:600;
  letter-spacing:-.045em;line-height:1;
}
.detail__price span{display:block;margin-top:7px;font-size:12.5px;line-height:1.45;color:var(--faint)}
.detail__buy .btn + .btn{margin-top:10px}
.detail__buy .btn--ghost{box-shadow:inset 0 0 0 1px var(--line);background:var(--paper)}
.detail__buy h4{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--faint);margin:24px 0 13px}
.detail__buy .plan__list li{font-size:13.5px;margin-bottom:9px}

.detail__facts{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;
  margin:clamp(32px,4vw,50px) 0;background:var(--line);
  border-radius:var(--r-md);overflow:hidden;
}
.detail__facts div{background:var(--paper);padding:clamp(16px,2vw,22px)}
.detail__facts b{
  display:block;font-family:"Inter Tight",sans-serif;font-size:clamp(28px,3.4vw,40px);
  font-weight:600;letter-spacing:-.045em;line-height:1;color:var(--brand);
}
.detail__facts span{display:block;margin-top:8px;font-size:12.5px;line-height:1.4;color:var(--faint);max-width:20ch}

.detail__label{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  font-size:11.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--faint);
  margin:clamp(40px,5vw,62px) 0 clamp(18px,2vw,26px);
  padding-bottom:14px;border-bottom:1px solid var(--line);
}
.detail__demo{
  display:inline-flex;align-items:center;gap:8px;flex:none;
  padding:8px 15px;border-radius:999px;font-size:10.5px;letter-spacing:.1em;
  color:var(--brand);background:color-mix(in srgb,var(--brand) 11%,transparent);
  transition:background .3s var(--ease);
}
.detail__demo:hover{background:color-mix(in srgb,var(--brand) 20%,transparent)}
.detail__demo svg{width:13px;height:13px;transition:transform .35s var(--ease)}
.detail__demo:hover svg{transform:translate(2px,-2px)}
.detail__gallery{display:grid;gap:clamp(24px,3.2vw,40px)}
.shot img{
  width:100%;height:auto;border-radius:var(--r-md);background:var(--paper-2);
  box-shadow:0 1px 0 rgba(18,18,20,.06), 0 24px 50px -32px rgba(18,18,20,.55);
}
.shot figcaption{margin-top:12px;font-size:13px;line-height:1.5;color:var(--faint);max-width:68ch}
.shot figcaption b{display:block;font-weight:600;color:var(--ink);font-size:13.5px;margin-bottom:2px}

.shot-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2vw,26px)}
.shot--phone figcaption{margin-top:10px;font-size:12.5px;text-align:center}

.detail__foot{
  margin-top:clamp(40px,5vw,64px);padding:clamp(28px,3.6vw,44px);
  border-radius:var(--r-lg);background:var(--ink);color:#fff;
}
.detail__foot h3{font-size:clamp(20px,2.4vw,28px);line-height:1.18;max-width:24ch}
.detail__foot p{margin-top:14px;font-size:14px;line-height:1.6;color:rgba(255,255,255,.62);max-width:52ch}
.detail__foot-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.btn--invert{--fg:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.26);--hov:rgba(255,255,255,.12)}
.btn--demo svg{width:15px;height:15px}
.btn--demo:hover svg{transform:translate(3px,-3px)}

/* ---------- bundle ---------- */
.bundle{padding-bottom:clamp(60px,8vw,110px)}
.bundle__card{
  position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:30px;
  padding:clamp(28px,4vw,52px);border-radius:var(--r-xl);overflow:hidden;
  background:var(--ink);color:#fff;
}
.bundle__card::before{
  content:"";position:absolute;inset:auto -10% -60% 30%;height:120%;border-radius:50%;
  background:radial-gradient(circle,rgba(255,74,40,.4),transparent 65%);filter:blur(60px);
}
.bundle__copy{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:18px}
.bundle__copy h2{font-size:clamp(24px,3.2vw,40px)}
.bundle__copy p{font-size:14.5px;color:var(--faint);max-width:38ch}
.bundle__accent{color:var(--accent)}
.bundle__meta{
  font-size:11.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  color:#7b7b85;margin-top:-8px;
}
/* a fanned trio of devices running off the card's bottom edge
   (the card's overflow:hidden does the cropping). The fan uses the
   independent rotate/scale properties, not transform, so GSAP can own
   transform for the intro and float without flattening the layout. */
.bundle__phones{
  position:relative;z-index:2;display:flex;align-items:flex-end;justify-content:center;
  gap:clamp(4px,.8vw,12px);perspective:1100px;
  margin-bottom:clamp(-72px,-6vw,-34px);
}
/* pool of light the devices sit in, picked up from the card's own glow */
.bundle__phones::before{
  content:"";position:absolute;z-index:0;left:4%;right:4%;bottom:18%;height:44%;
  background:radial-gradient(58% 54% at 50% 100%,rgba(255,74,40,.26),transparent 72%);
  filter:blur(28px);pointer-events:none;
}
.phone{
  position:relative;z-index:1;flex:none;
  padding:4px;border-radius:22px;
  background:linear-gradient(152deg,#4a4a55 0%,#202027 24%,#0f0f13 62%,#32323b 100%);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.55),
    0 2px 5px rgba(0,0,0,.5),
    0 16px 26px -12px rgba(0,0,0,.72),
    0 46px 66px -28px rgba(0,0,0,.95);
  will-change:transform;
}
.phone img{display:block;width:100%;height:auto;border-radius:18px}
/* sleep/volume rocker on the outer edge */
.phone::before{
  content:"";position:absolute;right:-1.5px;top:24%;width:2px;height:12%;
  border-radius:2px;background:linear-gradient(#55555f,#23232a);
}
/* one diagonal glass highlight, faint enough to leave the UI readable */
.phone::after{
  content:"";position:absolute;inset:4px;border-radius:18px;pointer-events:none;
  background:linear-gradient(147deg,rgba(255,255,255,.17),rgba(255,255,255,.05) 23%,transparent 42%);
}
.bundle__phones .phone{width:clamp(104px,10.5vw,152px)}
.bundle__phones .phone:nth-child(1){rotate:-7deg;scale:.95}
.bundle__phones .phone:nth-child(2){
  z-index:3;width:clamp(112px,11.2vw,164px);
  margin-bottom:clamp(20px,2.6vw,38px);margin-inline:clamp(-22px,-1.8vw,-9px);
}
.bundle__phones .phone:nth-child(3){rotate:7deg;scale:.95}

/* ---------- story carousel ---------- */
.story{padding-bottom:clamp(70px,9vw,120px)}
.story__head{text-align:center}
.story__head .eyebrow{margin-bottom:12px}
.story__head .section-title{font-size:clamp(28px,4.1vw,50px)}

.tcar{position:relative;max-width:880px;margin-inline:auto}
/* the viewport clips; the track is the only thing that moves */
/* pan-y keeps a vertical flick scrolling the page, horizontal comes to us */
.tcar__viewport{overflow:hidden;border-radius:var(--r-lg);touch-action:pan-y}
.tcar__track{
  display:flex;margin:0;padding:0;list-style:none;
  transition:transform .75s var(--ease);will-change:transform;
}
.tcar.is-dragging .tcar__track{transition:none}
.tcar.is-dragging{user-select:none;cursor:grabbing}

.tslide{flex:0 0 100%;min-width:0;display:flex}
.tslide__card{
  position:relative;flex:1;margin:0;padding:clamp(28px,4vw,52px);
  display:flex;flex-direction:column;gap:clamp(22px,3vw,34px);
  border-radius:var(--r-lg);background:var(--sand);
  box-shadow:inset 0 0 0 1px rgba(18,18,20,.05);
}
.tslide__mark{width:34px;height:34px;color:var(--accent);flex:none}
.tslide__card blockquote{
  margin:0;font-family:"Inter Tight",sans-serif;
  font-size:clamp(19px,2.5vw,30px);font-weight:500;letter-spacing:-.028em;line-height:1.3;
  text-wrap:balance;
}
.tslide__by{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:auto}
.tslide__by .av{width:52px;height:52px;flex:none;box-shadow:0 0 0 3px var(--paper)}
.tslide__who strong{display:block;font-size:15px;font-weight:600}
.tslide__who small{font-size:12.5px;color:var(--faint)}
.tslide__stats{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}
.tstat{
  padding:7px 13px;border-radius:999px;background:var(--paper);
  font-size:12px;font-weight:600;color:var(--accent-ink);white-space:nowrap;
  box-shadow:0 10px 22px -16px rgba(0,0,0,.5);
}
.tstat--good{color:#2f7d4f}

.tcar__ui{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:clamp(22px,3vw,32px)}
.tcar__arrow{
  width:44px;height:44px;flex:none;display:grid;place-items:center;
  border:0;border-radius:50%;background:var(--paper);color:var(--ink);cursor:pointer;
  box-shadow:inset 0 0 0 1px var(--line);
  transition:background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.tcar__arrow svg{width:18px;height:18px}
.tcar__arrow:hover{background:var(--ink);color:#fff;transform:translateY(-2px)}
.tcar__dots{display:flex;align-items:center;gap:8px}
.tcar__dots button{
  width:8px;height:8px;padding:0;border:0;border-radius:999px;background:var(--line);
  cursor:pointer;transition:width .4s var(--ease), background .4s var(--ease);
}
.tcar__dots button[aria-current="true"]{width:26px;background:var(--ink)}

/* ---------- pricing ---------- */
.pricing{padding:clamp(70px,9vw,120px) 0;background:var(--paper-2)}
.plans{display:grid;grid-template-columns:1fr 1fr;gap:clamp(18px,2.4vw,28px);align-items:start;max-width:960px;margin-inline:auto}
.plan{
  position:relative;padding:clamp(24px,3vw,36px);border-radius:var(--r-lg);
  background:var(--paper);box-shadow:inset 0 0 0 1px var(--line);
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.plan--featured{box-shadow:inset 0 0 0 1px var(--line), 0 34px 70px -40px rgba(18,18,20,.6)}
.plan:hover{transform:translateY(-6px)}
.plan__flag{
  position:absolute;top:18px;right:18px;padding:5px 12px;border-radius:999px;
  background:var(--ink);color:#fff;font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
}
.plan header h3{font-size:21px;margin-bottom:8px}
.plan header p{font-size:13.5px;color:var(--muted);max-width:32ch;min-height:40px}
.plan__price{
  font-family:"Inter Tight",sans-serif;font-size:clamp(46px,6vw,68px);font-weight:600;
  letter-spacing:-.05em;line-height:1;margin:22px 0 22px;
}
/* the reference price sits above the live one rather than beside it, so the
   counter animation keeps a clean baseline and the strike never collides
   with the big figure's descenders */
.plan__was{
  display:block;font-family:"Inter Tight",sans-serif;
  font-size:clamp(19px,2.3vw,26px);font-weight:500;letter-spacing:-.03em;line-height:1;
  color:var(--faint);text-decoration:line-through;
  text-decoration-thickness:1.5px;text-decoration-color:var(--accent);
  margin-bottom:6px;
}
/* a custom build has no list price, so this slot carries a short phrase
   instead of a figure and drops to a size that will not wrap */
.plan__price--quote{font-size:clamp(30px,3.6vw,42px)}
.plan__launch{
  margin-top:-14px;margin-bottom:22px;
  font-size:12.5px;font-weight:600;color:var(--accent-ink);
}
.detail__price .plan__was{font-size:22px;margin-bottom:4px}
.plan h4{font-size:11.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--faint);margin:26px 0 14px}
.plan__list li{position:relative;padding-left:26px;font-size:14px;color:var(--ink-2);margin-bottom:11px}
.plan__list li::before{
  content:"";position:absolute;left:0;top:7px;width:16px;height:16px;border-radius:50%;
  background:var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f4d10' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4.5 4.5L19 7'/%3E%3C/svg%3E") center/10px no-repeat;
}
.plan__note{display:block;margin-top:18px;font-size:12px;color:var(--faint)}
.pricing__fine{max-width:52ch;margin:clamp(30px,4vw,48px) auto 0;text-align:center;font-size:13px;color:var(--faint)}

/* ---------- support ---------- */
.support{padding:clamp(70px,9vw,120px) 0}
.support__inner{display:grid;grid-template-columns:1fr 1fr;gap:clamp(30px,5vw,70px);align-items:start}
.support__copy h2{font-size:clamp(26px,3.6vw,44px);max-width:14ch;margin-bottom:18px}
.support__copy > p{font-size:14.5px;color:var(--muted);max-width:40ch}
.rating{margin-top:30px;display:flex;flex-direction:column;gap:12px}
.stars{display:flex;gap:3px}
.stars i{
  width:17px;height:17px;background:var(--line);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.5 6.1 20.6l1.2-6.5L2.5 9.5l6.6-.9z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.5 6.1 20.6l1.2-6.5L2.5 9.5l6.6-.9z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.rating__row{display:flex;align-items:center;gap:11px}
.rating__row p{font-size:13px;color:var(--muted)}

.form{display:flex;flex-direction:column;gap:6px}
.field{position:relative;display:block;padding-top:22px}
.field input,.field textarea{
  width:100%;border:0;background:none;padding:6px 0 12px;font:inherit;font-size:15px;color:var(--ink);
  resize:none;outline:none;
}
.field span{
  position:absolute;left:0;top:28px;font-size:15px;color:var(--faint);pointer-events:none;
  transition:transform .4s var(--ease), font-size .4s var(--ease), color .3s;
  transform-origin:0 50%;
}
.field input:focus + span,.field textarea:focus + span,
.field input:not(:placeholder-shown) + span,.field textarea:not(:placeholder-shown) + span{
  transform:translateY(-24px) scale(.78);color:var(--muted);
}
.field i{position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--line)}
.field i::after{content:"";position:absolute;inset:0;background:var(--ink);transform:scaleX(0);transform-origin:0 50%;transition:transform .5s var(--ease)}
.field input:focus ~ i::after,.field textarea:focus ~ i::after{transform:scaleX(1)}
.field.is-bad i::after{background:var(--accent);transform:scaleX(1)}
.form .btn{align-self:flex-start;margin-top:22px}
.form__done{
  margin-top:14px;font-size:13.5px;color:#2f7d4f;opacity:0;transform:translateY(6px);
  transition:opacity .4s,transform .4s;
}
.form__done.is-on{opacity:1;transform:none}
.form__done--err{color:var(--accent-ink)}
.form__done--err a{color:inherit;text-decoration:underline}
/* honeypot: offscreen rather than display:none, which some bots skip */
.form__trap{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}

/* ---------- steps ---------- */
.steps{padding-bottom:clamp(70px,9vw,120px)}
.steps__inner{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(24px,4vw,56px)}
.steps__line{position:absolute;left:0;right:0;top:7px;height:1px;background:var(--line)}
.steps__line i{display:block;height:100%;width:0;background:var(--ink)}
.step{position:relative;padding-top:34px}
.step__dot{position:absolute;left:0;top:2px;width:11px;height:11px;border-radius:50%;background:var(--paper);box-shadow:inset 0 0 0 2px var(--line);transition:box-shadow .4s,background .4s}
.step.is-on .step__dot{background:var(--accent);box-shadow:inset 0 0 0 2px var(--accent), 0 0 0 5px rgba(255,74,40,.16)}
.step__no{display:block;font-size:12px;font-weight:600;letter-spacing:.1em;color:var(--faint);margin-bottom:12px}
.step h3{font-size:clamp(18px,2.1vw,24px);margin-bottom:9px}
.step p{font-size:14px;color:var(--muted);max-width:34ch}

/* ---------- faq ---------- */
.faq{padding-bottom:clamp(80px,10vw,130px)}
.acc{max-width:820px;margin-inline:auto}
.acc__item{border-top:1px solid var(--line)}
.acc__item:last-child{border-bottom:1px solid var(--line)}
.acc__item summary{
  position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:24px 0;cursor:pointer;list-style:none;
  font-family:"Inter Tight",sans-serif;font-size:clamp(16px,1.9vw,20px);font-weight:500;letter-spacing:-.02em;
  transition:color .3s;
}
.acc__item summary::-webkit-details-marker{display:none}
.acc__item summary:hover{color:var(--accent)}
.acc__item summary i{
  position:relative;flex:none;width:30px;height:30px;border-radius:50%;background:var(--paper-2);
  transition:background .4s var(--ease),transform .4s var(--ease);
}
.acc__item summary i::before,.acc__item summary i::after{
  content:"";position:absolute;left:50%;top:50%;width:11px;height:1.6px;border-radius:2px;background:var(--ink);
  transform:translate(-50%,-50%);transition:transform .4s var(--ease),background .3s;
}
.acc__item summary i::after{transform:translate(-50%,-50%) rotate(90deg)}
.acc__item[open] summary i{background:var(--accent);transform:rotate(180deg)}
.acc__item[open] summary i::before,.acc__item[open] summary i::after{background:#fff}
.acc__item[open] summary i::after{transform:translate(-50%,-50%) rotate(0)}
.acc__body{overflow:hidden}
.acc__body p{padding:0 60px 26px 0;font-size:14.5px;color:var(--muted);max-width:66ch}

/* ---------- referrals ---------- */
.refer{padding-bottom:clamp(70px,9vw,120px)}
.refer__card{
  position:relative;display:grid;grid-template-columns:1.3fr .7fr;align-items:center;
  gap:clamp(24px,4vw,56px);overflow:hidden;
  padding:clamp(28px,4vw,52px);border-radius:var(--r-xl);
  background:linear-gradient(140deg,var(--peach-1),#fff 62%);
  box-shadow:inset 0 0 0 1px var(--line);
}
.refer__card::after{
  content:"";position:absolute;right:-8%;top:-44%;width:46%;aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle,rgba(255,74,40,.22),transparent 66%);
  filter:blur(40px);pointer-events:none;
}
.refer__copy{position:relative;z-index:2}
.refer__tag{
  display:inline-block;margin-bottom:16px;padding:6px 13px;border-radius:999px;
  background:rgba(18,18,20,.06);color:var(--ink);
  font-size:11.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
}
.refer__card h2{font-size:clamp(25px,3.5vw,44px);margin-bottom:14px}
.refer__pct{color:var(--accent)}
.refer__card p{font-size:14.5px;color:var(--muted);max-width:48ch}
.refer__act{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.refer__note{font-size:13px;color:var(--faint)}

/* ---------- footer ---------- */
.foot{position:relative;padding-top:clamp(20px,3vw,40px);overflow:hidden}

.foot__panel{
  position:relative;margin:0 auto;width:min(calc(100% - 2*var(--pad)), var(--maxw));
  background:var(--ink);color:#fff;border-radius:var(--r-xl) var(--r-xl) 0 0;
  padding:clamp(28px,4vw,48px) clamp(24px,4vw,48px) clamp(22px,3vw,34px);
  display:flex;flex-direction:column;gap:clamp(30px,5vw,60px);
}

.foot__main{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:24px}
.foot__pitch{font-family:"Inter Tight",sans-serif;font-size:clamp(19px,2.4vw,30px);font-weight:500;letter-spacing:-.025em;max-width:18ch;line-height:1.18}
.foot__mail{
  font-family:"Inter Tight",sans-serif;font-size:clamp(17px,2vw,26px);font-weight:500;letter-spacing:-.02em;
  color:var(--accent);position:relative;
}
.foot__mail::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:1.4px;background:currentColor;transform:scaleX(0);transform-origin:100% 50%;transition:transform .5s var(--ease)}
.foot__mail:hover::after{transform:scaleX(1);transform-origin:0 50%}

.foot__bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-top:22px;border-top:1px solid rgba(255,255,255,.1)}
.foot__social{display:flex;gap:10px}
.foot__social a{
  display:grid;place-items:center;width:40px;height:40px;border-radius:50%;
  color:var(--faint);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
  transition:color .3s var(--ease), background .3s var(--ease), transform .35s var(--ease);
}
.foot__social a:hover{color:#fff;background:rgba(255,255,255,.1);transform:translateY(-3px)}
.foot__social svg{width:17px;height:17px}
.foot__bar small{font-size:12.5px;color:#55555e}

/* ============================================================
   Animation base states: only active once JS confirms GSAP.
   Without .anim-ready everything renders normally (no FOUC trap).
   ============================================================ */
.anim-ready [data-reveal]{opacity:0}
.anim-ready [data-split] .line__in{display:block;transform:translateY(110%)}
.anim-ready [data-split="words"] .word{display:inline-block;opacity:0}
.anim-ready [data-rail-card]{opacity:0}
.anim-ready [data-item]{opacity:0}
.anim-ready [data-plan]{opacity:0}
.anim-ready [data-step]{opacity:0}
.anim-ready .fcard{opacity:0}
.anim-ready .bundle__phones .phone{opacity:0}

/* padding/margin pair keeps descenders (g, y, p) out of the mask's clip */
[data-split] .line{display:block;overflow:hidden;padding-bottom:.14em;margin-bottom:-.14em}
[data-tilt]{transform-style:preserve-3d}

/* ---------- responsive ---------- */
@media (max-width:1080px){
  .hero__inner{grid-template-columns:1fr;align-items:start;gap:30px}
  .hero__aside{max-width:520px}
  .grid{grid-template-columns:repeat(2,1fr)}
  .support__inner,.bundle__card,.refer__card{grid-template-columns:1fr}
  .bundle__phones{max-width:460px}
  /* two columns: phones stays tall, the dark motion card runs full width */
  .features__grid{grid-template-columns:repeat(2,1fr);grid-template-rows:auto}
  .fcard--phones{grid-column:1;grid-row:1 / span 2;min-height:380px}
  .fcard--quote {grid-column:2;grid-row:1;min-height:200px}
  .fcard--states{grid-column:2;grid-row:2;min-height:200px}
  .fcard--chart {grid-column:1 / span 2;grid-row:3;min-height:240px}
  .fcard--motion{grid-column:1;grid-row:4;min-height:230px}
  .fcard--stat  {grid-column:2;grid-row:4;min-height:230px}

  /* those two are only one column wide here, so stack them again */
  .fcard--states,.fcard--quote{
    flex-direction:column;align-items:stretch;justify-content:center;gap:14px;
  }
  .fcard--states .fcard__text{flex:none}
  .fcard--states .fcard__pills{flex:none;justify-content:flex-start}
  .fcard--quote blockquote{flex:none}

  /* body has overflow-x:hidden, so the rail must scroll itself
     or the last cards become unreachable on a phone */
  .rail{width:auto;max-width:none;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
  .rail::-webkit-scrollbar{display:none}
  .tcard{flex:none;width:min(78vw,440px);scroll-snap-align:start}

  /* single column: the heading, not the buy card, sits under the close button */
  .detail{padding-top:clamp(30px,4vw,48px)}
  .detail__top{grid-template-columns:1fr;gap:28px}
  .detail__id{padding-right:52px}
  .detail__buy{max-width:420px}
}
@media (max-width:860px){
  .nav__links{display:none}
  .nav__burger{display:flex}
  .nav__icon{display:none}

  /* the CTA made the bar's contents wider than the pill itself, so the
     burger spilled out past the rounded edge. It lives in the menu now. */
  .nav__right .btn{display:none}
  /* only the logo and the burger are left, so the pill is padded evenly and
     both round controls sit the same distance from its edges */
  .nav{padding:0 12px;gap:12px}
  .nav__logo{min-width:0}
  .nav__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .nav__right{flex:none}

  .menu__cta{align-self:flex-start;margin-top:-18px}
  .plans{grid-template-columns:1fr}
  .steps__inner{grid-template-columns:1fr;gap:28px}
  .steps__line{display:none}
  .step{padding-top:0;padding-left:26px}
  .step__dot{top:5px}
}
@media (max-width:620px){
  .grid{grid-template-columns:1fr}
  .catalog__head{flex-direction:column;align-items:flex-start}
  .detail__label{flex-direction:column;align-items:flex-start;gap:12px}
  .detail__facts{grid-template-columns:1fr}
  .detail__facts span{max-width:none}
  .shot-row{grid-template-columns:1fr 1fr}
  .shot-row .shot--phone:last-child{grid-column:1 / -1;max-width:50%;margin-inline:auto}
  .detail__foot-cta .btn{width:100%}
  .acc__body p{padding-right:0}

  /* one column: every card falls back to auto placement */
  .features__grid{grid-template-columns:1fr;grid-template-rows:auto}
  .fcard--phones,.fcard--states,.fcard--quote,
  .fcard--stat,.fcard--chart,.fcard--motion{
    grid-column:1;grid-row:auto;min-height:250px;
  }
  /* the dark-mode card is a full-height gradient with two words on it.
     At one column that reads as a red void, so drop it on phones. */
  .fcard--motion{display:none}
  .fcard--phones{min-height:340px}
  /* chart is single-column now too, so stack its copy above the screenshot */
  .fcard--chart{flex-direction:column;align-items:stretch}
  .fcard--chart .fcard__text{flex:none}
  .fcard--chart .fcard__art--shot{min-height:140px}

  /* the stats pills get their own line rather than squeezing the name */
  .tslide__stats{margin-left:0;width:100%}
  .tcar__ui{gap:12px}

  /* 8px dots are a fine target for a mouse and a poor one for a thumb,
     so widen the hit area without changing how they look */
  .tcar__dots{gap:4px}
  .tcar__dots button{position:relative}
  .tcar__dots button::after{content:"";position:absolute;inset:-12px}

  /* the trio has to fit the card's own inner width once the card is a
     single column: at phone widths the desktop sizes overflowed it and
     the card's overflow:hidden quietly sliced the outer two */
  .bundle__phones{max-width:none;gap:4px}
  .phone{width:23vw;max-width:104px}
  .phone:nth-child(1){rotate:-5deg}
  .phone:nth-child(3){rotate:5deg}
  .phone:nth-child(2){
    width:25vw;max-width:112px;
    margin-inline:-1.4vw;margin-bottom:clamp(14px,4vw,20px);
  }

  /* these ch limits shape a column that sits beside a neighbour on desktop.
     On a phone the element owns the full width, so the limit just leaves a
     narrow ragged block with empty space to its right. */
  .catalog__head h2,.support__copy h2,.detail__foot h3,.foot__pitch{max-width:none}
  .support__copy > p,.bundle__copy p,.step p,.catalog__hint{max-width:none}
  .plan header p{max-width:none;min-height:0}

  /* two per row, and never a wordmark broken across lines */
  .clients__list{gap:16px 22px}
}


/* short viewports: landscape phones and small windows. The menu centres its
   links on a tall screen; here there is no room for that, so it starts at the
   top and scrolls rather than pushing the last links off-screen. */
@media (max-height:560px){
  .menu{justify-content:flex-start;gap:20px;padding-top:88px;padding-bottom:32px}
  .menu__links a{font-size:clamp(24px,6vh,34px);padding:2px 0}
  .menu__foot{margin-top:28px}
}
/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
  .anim-ready [data-reveal],
  .anim-ready [data-rail-card],
  .anim-ready [data-item],
  .anim-ready [data-plan],
  .anim-ready [data-step],
  .anim-ready .fcard,
  .anim-ready .bundle__phones .phone,
  .anim-ready [data-sheet-in],
  .anim-ready [data-split="words"] .word{opacity:1 !important}
  .anim-ready [data-split] .line__in{transform:none !important}
}
