/* Grayskills web — components + page layouts. Load after tokens.css.
   Asset url()s are relative to this file. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--f-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-70); }
.dim { color: var(--ink-40); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--w-main) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: calc(var(--w-wide) + 2 * var(--gutter)); }
.wrap--text { max-width: calc(var(--w-text) + 2 * var(--gutter)); }
.wrap--narrow { max-width: calc(var(--w-narrow) + 2 * var(--gutter)); }
.section { padding-top: var(--sec-gap); }
.center { text-align: center; }
@media (max-width: 1024px) { :root { --gutter: 32px; --sec-gap: 120px; } }
@media (max-width: 640px)  { :root { --gutter: 16px; --sec-gap: 96px; --head-gap: 40px; } }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 6px; }
.logo__mark { position: relative; width: 21px; height: 21px; background: var(--logo-tile); flex: none; }
.logo__mark::after { content: ""; position: absolute; left: 14px; top: 14px; width: 6px; height: 6px; background: var(--yellow); }
.logo__word { font: 500 21.45px/1.2 var(--f-mono); color: var(--ink); white-space: nowrap; }
.logo__word span { color: var(--ink-60); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 24px; border-radius: var(--r-btn);
  font: 500 18px/1.3 var(--f-sans); letter-spacing: -1px; white-space: nowrap;
  color: var(--on-accent); background: var(--ink);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:active { transform: translateY(0); }
.btn--yellow { background: var(--yellow); }
.btn--yellow:hover { box-shadow: 0 8px 28px rgba(255,218,10,.22); }
.btn--white { background: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { padding: 9px 16px; font-size: 16px; }
.btn--block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-row .btn--min { min-width: 221px; }

/* ---------- tags + chips ---------- */
.tag {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line);
  font: 400 16px/1.3 var(--f-sans); color: rgba(255,255,255,.8); white-space: nowrap;
}
.tag--sm { padding: 3px 5px; font: 500 11px/1.3 var(--f-sans); letter-spacing: .33px; text-transform: uppercase; }
.tag--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--on-accent); }
.chip { display: inline-flex; padding: 6px 12px; border-radius: var(--r-chip); background: var(--surface-2); font: 400 15px/1.3 var(--f-sans); color: rgba(255,255,255,.8); }

/* ---------- section head ---------- */
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.sec-head__text { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sec-head h1, .sec-head h2 { max-width: 964px; }
.sec-head p { max-width: 586px; color: var(--ink-70); }
.sec-head + * { margin-top: var(--head-gap); }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color .25s ease, backdrop-filter .25s ease; }
.nav.is-scrolled { background: rgba(16,15,15,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: var(--w-page); margin: 0 auto; padding: 31px 49.5px 20px; }
.nav.is-scrolled .nav__in { padding-top: 16px; padding-bottom: 16px; }
.nav__links { display: flex; align-items: center; gap: 12px; }
.nav__links a { font: 400 16px/1.3 var(--f-sans); color: rgba(255,255,255,.7); padding: 3px 10px; border: 1px solid transparent; border-radius: 50px; transition: color .2s, border-color .2s; }
/* hover = outlined pill (Figma); the current page keeps the pill */
.nav__links a:hover, .nav__links a.is-active { color: #fff; border-color: var(--line); }
.nav__end { justify-self: end; display: flex; align-items: center; gap: 16px; }
.nav__signin { font: 400 16px/1.3 var(--f-sans); color: rgba(255,255,255,.7); }
.nav__signin:hover { color: #fff; }
.nav__menu { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); align-items: center; justify-content: center; }
.nav__menu span, .nav__menu span::before, .nav__menu span::after { display: block; width: 16px; height: 1.5px; background: #fff; position: relative; transition: transform .2s; }
.nav__menu span::before, .nav__menu span::after { content: ""; position: absolute; left: 0; }
.nav__menu span::before { top: -5px; } .nav__menu span::after { top: 5px; }
.nav.is-open .nav__menu span { background: transparent; }
.nav.is-open .nav__menu span::before { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav__menu span::after { transform: translateY(-5px) rotate(-45deg); }
.nav__drawer { display: none; }
@media (max-width: 960px) {
  .nav__in { grid-template-columns: 1fr auto; padding: 20px var(--gutter); }
  .nav__links, .nav__signin { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__end .btn { display: none; }
  .nav__drawer { display: block; max-height: 0; overflow: hidden; transition: max-height .3s ease; background: var(--bg); }
  .nav.is-open .nav__drawer { max-height: 480px; border-bottom: 1px solid var(--hair); }
  .nav__drawer nav { display: flex; flex-direction: column; padding: 8px var(--gutter) 24px; }
  .nav__drawer a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 18px; color: var(--ink-80); }
  .nav__drawer .btn { margin-top: 20px; }
}

/* ---------- hero ---------- */
.hero { position: relative; z-index: 5; padding-top: 106px; text-align: center; } /* above .cats so the "+5 more" popover is never covered */
.hero__in { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.hero__copy { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { max-width: 1009px; }
.hero__sub { color: var(--ink-70); }
.hero h1 .w { display: inline-block; }
/* hero entrance: runs on page load */
@keyframes rise { from { opacity: 0; translate: 0 28px; filter: blur(10px); } }
@keyframes rise-sm { from { opacity: 0; translate: 0 14px; filter: blur(6px); } }
.js .hero .tag { animation: rise-sm .9s var(--ease-out) .05s both; }
.js .hero h1 .w { animation: rise 1.1s var(--ease-out) both; animation-delay: calc(.15s + var(--i) * 55ms); }
.js .hero__sub { animation: rise-sm 1s var(--ease-out) .75s both; }
.js .hero .btn { animation: rise-sm 1s var(--ease-out) both; animation-delay: .9s; }
.js .hero .btn + .btn { animation-delay: 1s; }
.js .cats__label { animation: rise-sm 1s var(--ease-out) 1.4s both; }
.js .marquee__set .cat { animation: rise 1.2s var(--ease-spring) both; animation-delay: calc(1.45s + var(--i, 0) * 70ms); }
@media (max-width: 640px) { .hero { padding-top: 56px; } .hero .tag { font-size: 13px; white-space: normal; } .hero .btn-row { width: 100%; flex-direction: column; } .hero .btn { width: 100%; } }

/* ---------- category cards (marquee) ---------- */
.cats { position: relative; z-index: 1; padding-top: 128px; }
.cats__label { text-align: center; font: 400 20px/1.3 var(--f-sans); color: var(--ink-70); margin-bottom: 36px; }
.marquee { overflow: hidden; padding: 28px 0; margin: -28px 0; /* room for the hover lift + tilt so cards aren't clipped */ -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; gap: 16px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee { overflow-x: auto; } }

.cat {
  position: relative; flex: none; width: 237px; height: 350px; border-radius: var(--r-card); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; padding: 24px; text-align: center;
  transition: transform .3s ease;
}
.cat:hover { transform: translateY(-6px) rotate(-1deg); }
.cat__title { font: 700 33px/1.1 var(--f-card); letter-spacing: -2px; color: #fff; }
.cat__art { position: relative; flex: none; }
.cat__art img { position: absolute; max-width: none; pointer-events: none; }
.cat--bottom { justify-content: flex-end; }
/* exact Figma crops */
.cat--mobile  { background: var(--c-olive); gap: 16px; padding: 24px 54px; }
.cat--mobile  .cat__art { width: 201px; height: 218px; } .cat--mobile .cat__art img { width: 197.94%; height: 121.62%; left: -48.97%; top: -10.81%; }
.cat--mobile  .cat__title { width: 164px; }
.cat--website { background: var(--c-coral); gap: 48px; padding: 24px 19px; }
.cat--website .cat__art { width: 210px; height: 174px; } .cat--website .cat__art img { width: 145.18%; height: 116.63%; left: -24.2%; top: -8.31%; }
.cat--deck    { background: var(--c-green); gap: 44px; padding: 24px 54px; }
.cat--deck    .cat__art { width: 214px; height: 188px; } .cat--deck .cat__art img { width: 158.15%; height: 119.88%; left: -29.07%; top: -9.94%; }
.cat--deck    .cat__title { width: 164px; }
.cat--component { background: var(--c-cyan); gap: 20px; padding: 24px 20px; }
.cat--component .cat__title { font-size: 32px; width: 215px; }
.cat--component .cat__art { width: 216px; height: 185px; margin: 11px 0 0 20px; transform: rotate(6.38deg); } .cat--component .cat__art img { width: 167.69%; height: 130.78%; left: -33.84%; top: -18.39%; }
.cat--social  { background: var(--c-lilac); gap: 31px; padding: 24px 42px; }
.cat--social  .cat__art { width: 228px; height: 207px; } .cat--social .cat__art img { width: 160.93%; height: 117.79%; left: -28.03%; top: -7.26%; }
.cat--social  .cat__title { width: 168px; }
.cat--illus   { background: var(--c-sand); gap: 25px; padding: 24px 42px; }
.cat--illus   .cat__art { width: 197px; height: 208px; } .cat--illus .cat__art img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.cat--webapp  { background: var(--c-sage); gap: 68px; padding: 24px 42px; }
.cat--webapp  .cat__art { width: 218px; height: 187px; } .cat--webapp .cat__art img { width: 155.69%; height: 121.04%; left: -31.38%; top: -8.85%; }

/* ---------- scroll reveal (grayskills.js tags elements with .rv and adds .in when they enter) ---------- */
.js .rv { opacity: 0; translate: 0 26px; filter: blur(6px); }
.js .rv.in {
  opacity: 1; translate: 0 0; filter: blur(0);
  transition: opacity .9s var(--ease-out), translate 1.1s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .vline { scale: 1 0; transform-origin: top; }
.js .vline.in { scale: 1 1; transition: scale 1.4s var(--ease-io) .1s; }
/* cards re-rendered by Browse filters */
@keyframes card-in { from { opacity: 0; translate: 0 18px; } }
.skill-grid > .pop { animation: card-in .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .vline, .js .stats .stat { opacity: 1 !important; translate: none !important; filter: none !important; scale: none !important; rotate: var(--r, 0deg) !important; transition: none !important; }
  .js .hero *, .js .cat, .js .cats__label { animation: none !important; }
}

/* ---------- statement ---------- */
.statement { padding-top: 140px; }
.statement p { max-width: 893px; margin: 0 auto; text-align: center; font: 400 36px/1.2 var(--f-sans); letter-spacing: -1.44px; }
.statement p + p { margin-top: 43px; }
.reveal-word { color: var(--ink-40); transition: color .25s ease; }
.reveal-word.is-on { color: var(--ink); }
.vline { width: 1.5px; height: 134px; margin: 53px auto 0; background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(16,15,15,.1)); }
.vline + .section { padding-top: 47px; }
@media (max-width: 1024px) { .statement p { font-size: 30px; letter-spacing: -1.1px; } }
@media (max-width: 640px) { .statement { padding-top: 96px; } .statement p { font-size: 24px; letter-spacing: -.8px; } .statement p + p { margin-top: 28px; } }

/* ---------- step cards (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--surface); border-radius: var(--r-card); padding: 32px; min-height: 520px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 32px;
}
.step__art { display: flex; justify-content: center; align-items: center; width: 100%; clip-path: inset(0 -200px); }
.step__art img { max-width: none; }
/* exact SVG exports of the Figma illustrations (nodes 3:67, 3:119, 3:182) at native size */
.step__art--1 { height: 273px; } .step__art--1 img { width: 340px; }
.step__art--2 { height: 293px; } .step__art--2 img { width: 394px; }
.step__art--3 { height: 268px; } .step__art--3 img { width: 360px; }
.step__body { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.step__body p { font: 400 18px/1.5 var(--f-sans); }
.step__body p span { color: var(--ink-70); }
@media (max-width: 1100px) { .steps { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } .step { min-height: 0; } }
@media (max-width: 640px) { .step { padding: 24px; } .step__art { transform: scale(.86); margin: -18px 0; } }

/* ---------- skill cards ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skill-grid--3 { grid-template-columns: repeat(3, 1fr); }
.skill-card { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.skill-card__link { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* Live preview: website, web-app and component skills only */
.skill-card__preview, .gallery__preview {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--r-pill); background: rgba(16,15,15,.78); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 13px/1.2 var(--f-sans); color: #fff; white-space: nowrap; transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
.skill-card__preview { top: 12px; right: 12px; opacity: 0; transform: translateY(-4px); }
.skill-card:hover .skill-card__preview, .skill-card__preview:focus-visible { opacity: 1; transform: none; }
.skill-card__preview:hover, .gallery__preview:hover { background: var(--yellow); border-color: var(--yellow); color: var(--on-accent); }
@media (hover: none) { .skill-card__preview { opacity: 1; transform: none; } }
.gallery__main { position: relative; }
.gallery__preview { right: 16px; bottom: 16px; padding: 10px 16px; font-size: 14px; }
.skill-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.skill-card__name { font: 400 14px/1.5 var(--f-sans); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skill-card__name b { font-weight: 400; }
.skill-card:hover .thumb > * { transform: scale(1.03); }
.btn[hidden] { display: none; }
.skill-card.is-soon { pointer-events: none; }
.skill-card.is-soon .skill-card__name { color: var(--ink-60); }
@media (max-width: 1280px) { .skill-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .skill-grid, .skill-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .skill-grid, .skill-grid--3 { grid-template-columns: 1fr; } }

/* thumbnails — 364×285 in Figma, kept to that ratio at every width */
.thumb { display: block; position: relative; aspect-ratio: 364 / 285; border-radius: var(--r-tile); overflow: hidden; background: var(--surface); container-type: inline-size; }
.thumb > * { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.thumb img { position: absolute; max-width: none; }
.thumb--cover img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb--salix img { width: 122.53%; height: 117.37%; left: -2.51%; top: -1.75%; object-fit: cover; }
.thumb--kirlo { background: linear-gradient(180deg, #742EE4, #FFD8D8); }
.thumb--kirlo img { left: 3.3%; top: 4.56%; width: 107.14%; height: 102.1%; border-radius: 8px; object-fit: cover; object-position: left top; }
.thumb--vanlo { background: linear-gradient(180deg, #242424, #171616); }
.thumb--vanlo img { left: -20.05%; top: 5.61%; width: 126.92%; height: 101.4%; object-fit: cover; }
.thumb--popshot { background: var(--c-plum); }
.thumb--popshot .shots { position: absolute; inset: 0; }
.thumb--popshot .shots img { width: 30.6cqw; aspect-ratio: 111 / 241; height: auto; border-radius: 8px; object-fit: cover; }
.thumb--popshot .shots img:nth-child(1) { left: 2.2cqw; top: -14.8cqw; }
.thumb--popshot .shots img:nth-child(2) { left: 2.2cqw; top: 53cqw; }
.thumb--popshot .shots img:nth-child(3) { left: 34.6cqw; top: -36.5cqw; }
.thumb--popshot .shots img:nth-child(4) { left: 34.6cqw; top: 31.3cqw; }
.thumb--popshot .shots img:nth-child(5) { left: 66.8cqw; top: -15.7cqw; }
.thumb--popshot .shots img:nth-child(6) { left: 66.8cqw; top: 52.5cqw; }
.thumb--soon { display: grid; place-items: center; }
.thumb--soon img { position: relative; width: 62%; height: auto; opacity: .9; }
.thumb--soon .tag { position: absolute; top: 12px; left: 12px; }
.thumb__badge { position: absolute; top: 12px; right: 12px; z-index: 2; }

/* ---------- trust stats (tilted cards) ---------- */
.stats { display: grid; grid-template-columns: 394px 394px; gap: 8px; justify-content: center; }
.stats__col { display: flex; flex-direction: column; gap: 8px; }
.stat {
  border-radius: var(--r-card); padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; color: #fff;
}
.stat p:last-child { font: 400 18px/1.5 var(--f-sans); }
.stat p:last-child span { color: var(--ink-70); }
.stat--sky { background: var(--c-sky); --r: -1.99deg; --r0: 9deg; --x0: 70px; --d: 0ms; margin: 7px 0 0; }
.stat--sky p:last-child { max-width: 227px; }
.stat--sage { background: var(--c-sage); height: 382px; --r: 2.97deg; --r0: -10deg; --x0: 90px; --d: 240ms; margin: 18px 0 0 6px; }
.stat--violet { background: var(--c-violet); height: 382px; --r: -4.83deg; --r0: 12deg; --x0: -80px; --d: 120ms; margin-top: 48px; }
.stat--sand { background: var(--c-sand); --r: -2.61deg; --r0: -8deg; --x0: -60px; --d: 360ms; margin-top: 22px; }
.stat--sand p:last-child { max-width: 303px; }
.stat { rotate: var(--r, 0deg); transition: rotate .5s var(--ease-spring), scale .5s var(--ease-spring); }
.stat:hover { rotate: 0deg; scale: 1.02; }
.t-stat { font-variant-numeric: tabular-nums; }
/* entrance: the four cards start as one stacked pile and deal out into their tilts (grayskills.js adds .in once) */
.js .stats:not(.in) .stat { opacity: 0; translate: var(--x0, 0) 160px; rotate: var(--r0); scale: .9; }
.js .stats.in:not(.settled) .stat {
  transition: opacity .5s ease var(--d), translate 1.15s var(--ease-spring) var(--d), rotate 1.3s var(--ease-spring) var(--d), scale 1.15s var(--ease-spring) var(--d);
}
@media (max-width: 900px) {
  .stats { grid-template-columns: minmax(0, 420px); }
  .stat--sage, .stat--violet { height: 300px; }
  .stat--violet { --r: -2.4deg; } .stat--sage { --r: 1.6deg; } .stat--sky { --r: -1.2deg; } .stat--sand { --r: -1.5deg; }
  .stat { margin: 0 !important; }
  .stat { --x0: 0px !important; }
}

/* ---------- pricing ---------- */
.price-card {
  width: 394px; max-width: 100%; min-height: 520px; margin-left: auto; margin-right: auto; padding: 32px; border-radius: var(--r-card);
  background: var(--surface); box-shadow: 0 4px 0 rgba(0,0,0,.25);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.price-card__top { display: flex; flex-direction: column; gap: 16px; }
.price-card__name { font: 500 20px/1.5 var(--f-sans); }
.price-card__desc { font: 300 16px/1.5 var(--f-sans); color: var(--ink-70); margin-top: 6px; }
.price { display: flex; align-items: center; gap: 6px; font-family: var(--f-serif); white-space: nowrap; }
.price__old { position: relative; font-size: 58px; letter-spacing: -4.64px; color: var(--ink-60); line-height: normal; }
.price__strike { position: absolute; left: 5px; top: 39px; width: 122px; height: 20px; overflow: visible; pointer-events: none; }
.price__strike path { fill: none; stroke: var(--strike); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.price__now { display: inline-block; font-variant-numeric: tabular-nums; }

/* price reveal — plays once, the first time the card scrolls into view (grayskills.js adds .is-pending, then .is-played) */
.price.is-pending .price__old { color: #fff; transform: scale(1.17); }
.price.is-pending .price__strike path { stroke-dashoffset: 1; }
.price.is-pending .price__now { opacity: 0; transform: translateX(-14px); filter: blur(8px); }
.price__old { transform-origin: left 70%; }
.price.is-played .price__old { transition: color .5s ease .95s, transform .7s cubic-bezier(.2,.8,.2,1) .95s; }
.price.is-played .price__strike path { transition: stroke-dashoffset .55s cubic-bezier(.65,0,.35,1) .45s; }
.price.is-played .price__now { transition: opacity .5s ease 1.05s, transform .7s cubic-bezier(.2,.8,.2,1) 1.05s, filter .5s ease 1.05s; }
.price.is-played .price__now { animation: price-pop .45s cubic-bezier(.2,.8,.2,1) 2.05s both; }
@keyframes price-pop { 40% { transform: scale(1.08); } 100% { transform: none; } }
.price__now { font-size: 68px; letter-spacing: -5.44px; line-height: normal; }
.price__per { font: 300 16px/1.5 var(--f-sans); color: var(--ink-60); letter-spacing: 0; align-self: flex-end; margin: 0 0 18px 4px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 6px; font: 300 16px/1.5 var(--f-sans); color: var(--ink-90); }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: url(assets/icons/hugeicons/tick.svg) center / 20px no-repeat; mask: url(assets/icons/hugeicons/tick.svg) center / 20px no-repeat; }
.checks li.is-off { color: var(--ink-40); }
.checks li.is-off::before { opacity: .35; }
.price-card--muted { box-shadow: none; background: transparent; border: 1px solid var(--line); }
.price-grid { display: grid; grid-template-columns: repeat(3, 394px); gap: 18px; justify-content: center; align-items: stretch; }
.price-grid .price-card { margin: 0; }
@media (max-width: 1300px) { .price-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 394px)); } }

/* early-bird tier meter */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 600px; margin-left: auto; margin-right: auto; }
.tier { border-radius: 14px; padding: 14px 16px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.tier b { font: 400 28px/1.2 var(--f-serif); letter-spacing: -1.5px; font-weight: 400; }
.tier span { font: 400 13px/1.4 var(--f-sans); color: var(--ink-60); }
.tier.is-gone b { color: var(--ink-40); text-decoration: line-through; text-decoration-color: var(--strike); text-decoration-thickness: 2px; }
.tier.is-now { background: var(--yellow); color: var(--on-accent); }
.tier.is-now span { color: rgba(16,15,15,.7); }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 600px; margin-left: auto; margin-right: auto; }
.faq__item { border-bottom: 1px solid var(--hair); }
.faq__item:last-child { border-bottom: 0; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; text-align: left; font: 400 18px/1.8 var(--f-sans); letter-spacing: -.36px; }
.faq__item:first-child .faq__q { padding-top: 0; }
.faq__q::after { content: ""; flex: none; width: 24px; height: 24px; background: currentColor; -webkit-mask: url(assets/icons/hugeicons/arrow-down.svg) center / 24px no-repeat; mask: url(assets/icons/hugeicons/arrow-down.svg) center / 24px no-repeat; transition: transform .25s ease; }
.faq__item.is-open .faq__q::after { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { margin-bottom: 24px; padding: 20px 24px; border-radius: var(--r-tile); background: var(--surface); font: 300 16px/1.7 var(--f-sans); color: var(--ink-80); }
.faq__item.is-open .faq__q { padding-bottom: 16px; }

/* ---------- final CTA + footer ---------- */
.cta { padding: var(--sec-gap) 0 0; text-align: center; }
.cta__box { position: relative; overflow: hidden; border-radius: 28px; background: var(--surface); padding: 88px 32px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta__box p { color: var(--ink-70); max-width: 520px; }
.cta__box .btn-row { margin-top: 12px; }
.cta__deco { position: absolute; width: 150px; height: 150px; border-radius: 20px; opacity: .95; }
.cta__deco--a { background: var(--c-coral); left: -38px; top: 36px; transform: rotate(-10deg); }
.cta__deco--b { background: var(--c-cyan); right: -30px; bottom: 30px; transform: rotate(8deg); }
.cta__deco--c { background: var(--c-lilac); right: 110px; top: -96px; transform: rotate(-6deg); width: 120px; height: 120px; }
@media (max-width: 760px) { .cta__deco { display: none; } .cta__box { padding: 56px 20px; } }

.footer { margin-top: 128px; border-top: 1px solid var(--hair); }
.footer__in { max-width: calc(var(--w-wide) + 2 * var(--gutter)); margin: 0 auto; padding: 56px var(--gutter) 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer__brand p { margin-top: 16px; max-width: 300px; font: 300 15px/1.6 var(--f-sans); color: var(--ink-60); }
.footer h4 { font: 400 13px/1.3 var(--f-mono); letter-spacing: .5px; text-transform: uppercase; color: var(--ink-40); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font: 400 15px/1.5 var(--f-sans); color: var(--ink-70); }
.footer ul a:hover { color: #fff; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 13px/1.5 var(--f-sans); color: var(--ink-40); }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* =========================================================
   INNER PAGES
   ========================================================= */
.page-head { padding-top: 90px; }
.page-head h1 { font: 400 72px/1.05 var(--f-serif); letter-spacing: -4px; }
@media (max-width: 1024px) { .page-head h1 { font-size: 58px; } }
@media (max-width: 640px) { .page-head { padding-top: 48px; } .page-head h1 { font-size: 42px; letter-spacing: -2px; } }

/* search + filter pills */
.toolbar { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 40px; }
.search { position: relative; width: 100%; max-width: 560px; }
.search input { width: 100%; height: 55px; padding: 0 24px 0 52px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); color: #fff; font: 400 17px/1 var(--f-sans); outline: none; transition: border-color .2s; }
.search input::placeholder { color: var(--ink-40); }
.search input:focus { border-color: rgba(255,255,255,.4); }
.search kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 500 12px/1 var(--f-mono); color: var(--ink-40); border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); font: 400 15px/1.3 var(--f-sans); color: var(--ink-70); transition: background-color .2s, color .2s; }
.pill:hover { color: #fff; background: var(--surface); }
.pill.is-active { background: #fff; color: var(--on-accent); border-color: #fff; }
.pill i { width: 10px; height: 10px; border-radius: 3px; }
.pill small { font-size: 12px; opacity: .6; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 48px 0 20px; font: 400 14px/1.5 var(--f-sans); color: var(--ink-60); }
.empty { text-align: center; padding: 80px 0; color: var(--ink-60); }
.empty h3 { font: 400 32px/1.2 var(--f-serif); letter-spacing: -1.5px; color: #fff; margin-bottom: 8px; }

/* skill detail */
.crumbs { display: flex; gap: 8px; font: 400 14px/1.5 var(--f-sans); color: var(--ink-40); margin-bottom: 28px; }
.crumbs a:hover { color: #fff; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery__main { aspect-ratio: 16 / 11; border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery__thumbs button { aspect-ratio: 16 / 11; border-radius: 12px; overflow: hidden; border: 1px solid transparent; opacity: .6; transition: opacity .2s, border-color .2s; }
.gallery__thumbs button.is-active, .gallery__thumbs button:hover { opacity: 1; border-color: var(--line); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.detail__side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.detail__side h1 { font: 400 58px/1.05 var(--f-serif); letter-spacing: -3px; }
.detail__side .lead { font: 300 18px/1.6 var(--f-sans); color: var(--ink-70); }
.facts { border-radius: var(--r-card); background: var(--surface); padding: 8px 24px; }
.fact { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hair); font: 400 15px/1.5 var(--f-sans); }
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--ink-40); }
.fact dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(255,255,255,.12); }
.mini { padding: 2px 8px; border-radius: 6px; background: var(--surface-2); font-size: 13px; color: var(--ink-80); }
@media (max-width: 1100px) { .detail { grid-template-columns: 1fr; } .detail__side { position: static; } }
@media (max-width: 640px) { .detail__side h1 { font-size: 44px; } }

/* terminal / prompt box */
.term { border-radius: 16px; background: #171515; border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.06); font: 400 12px/1 var(--f-sans); color: #6E6E74; }
.term__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3A3838; }
.term__bar span { margin-left: auto; margin-right: auto; }
.term__body { position: relative; padding: 18px 18px 18px 36px; font: 400 15px/1.6 var(--f-mono); color: #F4F4F5; }
.term__body::before { content: "›"; position: absolute; left: 18px; top: 18px; color: #8A8A90; }
.term__body u { color: #C8C8CC; text-underline-offset: 3px; }
.copy { position: absolute; top: 12px; right: 12px; padding: 6px 12px; border-radius: 40px; background: var(--yellow); color: var(--on-accent); font: 500 13px/1.3 var(--f-sans); }
.copy.is-done { background: #fff; }
.term__body .copy + * { padding-right: 70px; }

/* tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--hair); flex-wrap: wrap; justify-content: center; }
.tabs button { padding: 8px 16px; border-radius: var(--r-pill); font: 400 15px/1.3 var(--f-sans); color: var(--ink-70); }
.tabs button.is-active { background: #fff; color: var(--on-accent); }
.tab-panel[hidden] { display: none; }

/* feature list (how it works) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { border-radius: var(--r-card); background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--on-accent); margin-bottom: 12px; }
/* icons: Hugeicons free, stroke-rounded (assets/icons/hugeicons) — inline SVG, inherits currentColor */
.hi { display: block; flex: none; }
.feature__icon .hi { width: 22px; height: 22px; }
.feature:hover .feature__icon .hi, .help-card:hover .feature__icon .hi { animation: icon-nudge .6s var(--ease-spring); }
@keyframes icon-nudge { 40% { rotate: -10deg; scale: 1.12; } }
.search .hi { position: absolute; left: 20px; top: 50%; translate: 0 -50%; color: var(--ink-40); }
.help-mail { display: flex; align-items: center; gap: 8px; }
.help-mail .hi { color: var(--ink-40); }
.done__badge .hi { color: var(--on-accent); }
.feature h3 { font: 500 20px/1.4 var(--f-sans); }
.feature p { font: 300 16px/1.6 var(--f-sans); color: var(--ink-70); }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 820px; margin-left: auto; margin-right: auto; }
.tools span { padding: 10px 18px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--hair); font: 400 16px/1.3 var(--f-sans); color: var(--ink-80); }

/* compare table */
.compare { width: 100%; max-width: 900px; margin-left: auto; margin-right: auto; border-collapse: collapse; font: 400 16px/1.5 var(--f-sans); }
.compare th, .compare td { padding: 18px 16px; border-bottom: 1px solid var(--hair); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink-80); }
.compare thead th { font: 400 14px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .5px; color: var(--ink-40); }
.compare .yes { color: var(--yellow); }
.compare .no { color: var(--ink-40); }
.table-scroll { overflow-x: auto; }

/* forms */
.auth { min-height: calc(100vh - 90px); display: grid; place-items: center; padding: 48px var(--gutter) 96px; }
.auth__card { width: 100%; max-width: 440px; border-radius: 24px; background: var(--surface); padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.auth__card h1 { font: 400 44px/1.1 var(--f-serif); letter-spacing: -2.4px; }
.auth__card > p { color: var(--ink-70); font-weight: 300; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font: 400 14px/1.3 var(--f-sans); color: var(--ink-70); }
.field input, .field textarea, .field select { width: 100%; height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: #fff; font: 400 16px/1 var(--f-sans); outline: none; transition: border-color .2s; }
.field textarea { height: 140px; padding: 14px 18px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: rgba(255,255,255,.45); }
.field input::placeholder { color: var(--ink-40); }
.field--mono input { font-family: var(--f-mono); letter-spacing: .5px; }
.or { display: flex; align-items: center; gap: 12px; font: 400 13px/1 var(--f-sans); color: var(--ink-40); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.form-note { font: 400 13px/1.5 var(--f-sans); color: var(--ink-40); text-align: center; }
.form-note a { color: var(--ink-80); text-decoration: underline; text-underline-offset: 3px; }
.alert { border-radius: 12px; padding: 12px 16px; font: 400 14px/1.5 var(--f-sans); background: rgba(255,218,10,.1); color: var(--yellow); }
.alert[hidden] { display: none; }
@media (max-width: 480px) { .auth__card { padding: 28px 20px; } }

/* account */
.acct { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding-top: 48px; }
.acct__nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 100px; align-self: start; }
.acct__nav a { padding: 10px 14px; border-radius: 12px; color: var(--ink-70); font: 400 15px/1.3 var(--f-sans); }
.acct__nav a.is-active { background: var(--surface); color: #fff; }
.acct__nav a:hover { color: #fff; }
.acct__main { display: flex; flex-direction: column; gap: 18px; }
.acct__main h1 { font: 400 48px/1.1 var(--f-serif); letter-spacing: -2.6px; margin-bottom: 8px; }
.panel { border-radius: var(--r-card); background: var(--surface); padding: 28px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.panel__head h2 { font: 500 18px/1.4 var(--f-sans); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kpi { border-radius: var(--r-card); background: var(--surface); padding: 24px; }
.kpi span { font: 400 14px/1.4 var(--f-sans); color: var(--ink-60); }
.kpi b { display: block; margin-top: 10px; font: 400 40px/1.1 var(--f-serif); letter-spacing: -2px; font-weight: 400; }
.key { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font: 500 15px/1.3 var(--f-mono); letter-spacing: .5px; overflow-x: auto; }
.key code { flex: 1; white-space: nowrap; }
.key button { flex: none; font: 400 13px/1 var(--f-sans); color: var(--ink-70); padding: 8px 12px; border-radius: 30px; border: 1px solid var(--line); }
.key button:hover { color: #fff; }
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.row:last-child { border-bottom: 0; }
.row__thumb { width: 56px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.row b { display: block; font: 400 15px/1.4 var(--f-sans); }
.row small { font: 400 13px/1.4 var(--f-sans); color: var(--ink-40); }
.status { display: inline-flex; align-items: center; gap: 6px; font: 400 13px/1 var(--f-sans); color: var(--ink-70); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-green); }
.status--warn::before { background: var(--yellow); }
@media (max-width: 900px) { .acct { grid-template-columns: minmax(0, 1fr); } .acct__nav { position: static; flex-direction: row; overflow-x: auto; } .kpis { grid-template-columns: 1fr; } }

/* success */
.done { text-align: center; padding-top: 72px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.done__badge { width: 88px; height: 88px; border-radius: 24px; background: var(--yellow); display: grid; place-items: center; transform: rotate(-6deg); }
.done__steps { max-width: 640px; margin: 48px auto 0; text-align: left; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.done__steps li { list-style: none; position: relative; padding: 20px 20px 20px 64px; border-radius: 16px; background: var(--surface); font: 300 16px/1.6 var(--f-sans); color: var(--ink-80); counter-increment: s; }
.done__steps li b { color: #fff; font-weight: 400; }
.done__steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font: 500 14px/1 var(--f-mono); color: #fff; }

/* changelog */
.log { max-width: 760px; margin-left: auto; margin-right: auto; display: flex; flex-direction: column; }
.log__item { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--hair); }
.log__item time { font: 400 14px/1.6 var(--f-mono); color: var(--ink-40); }
.log__item h3 { font: 400 32px/1.2 var(--f-serif); letter-spacing: -1.6px; margin: 10px 0 12px; }
.log__item p { font: 300 16px/1.7 var(--f-sans); color: var(--ink-70); }
.log__item .thumb { margin-top: 20px; max-width: 420px; }
@media (max-width: 640px) { .log__item { grid-template-columns: 1fr; gap: 8px; } }

/* legal prose */
.prose { max-width: 720px; margin: 0 auto; font: 300 17px/1.75 var(--f-sans); color: var(--ink-80); }
.prose h2 { font: 400 30px/1.25 var(--f-serif); letter-spacing: -1.4px; color: #fff; margin: 48px 0 12px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 20px; }
.prose a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { font: 400 14px/1.5 var(--f-mono); color: var(--ink-40); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 32px; }

/* 404 */
.lost { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 24px; padding: 80px var(--gutter); }
.lost__num { display: flex; gap: 12px; }
.lost__num span { width: 150px; height: 190px; border-radius: 24px; display: grid; place-items: center; font: 700 120px/1 var(--f-card); color: #fff; letter-spacing: -4px; }
.lost__num span:nth-child(1) { background: var(--c-coral); transform: rotate(-6deg); }
.lost__num span:nth-child(2) { background: var(--c-lilac); transform: rotate(3deg) translateY(10px); }
.lost__num span:nth-child(3) { background: var(--c-cyan); transform: rotate(-2deg); }
@media (max-width: 560px) { .lost__num span { width: 92px; height: 120px; font-size: 72px; border-radius: 16px; } }

/* utility spacing */
.mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-56 { margin-top: 56px; }

/* ---------- support (form posts to GraySupport) ---------- */
.support { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; max-width: 1000px; margin: var(--head-gap) auto 0; align-items: start; }
.support__side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 100px; }
.help-card { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-card); background: var(--surface); border: 1px solid transparent; transition: border-color .25s ease, translate .35s var(--ease-out); }
.help-card:hover { border-color: var(--line); translate: 0 -2px; }
.help-card .feature__icon { margin: 0; flex: none; }
.help-card b { display: block; font: 500 16px/1.4 var(--f-sans); }
.help-card small { display: block; font: 300 14px/1.5 var(--f-sans); color: var(--ink-60); }
.help-mail { padding: 6px 4px; font: 400 14px/1.5 var(--f-sans); color: var(--ink-60); }
.help-mail a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.support__card { border-radius: 24px; background: var(--surface); padding: 32px; }
.support__card form { display: flex; flex-direction: column; gap: 20px; }
.support__card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.support__card legend { padding: 0; margin-bottom: 10px; font: 400 14px/1.3 var(--f-sans); color: var(--ink-70); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { cursor: pointer; position: relative; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic:has(input:checked) { background: #fff; color: var(--on-accent); border-color: #fff; }
.topic:has(input:focus-visible) { outline: 2px solid var(--yellow); outline-offset: 2px; }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--strike); }
.form-error { border-radius: 12px; padding: 12px 16px; font: 400 14px/1.5 var(--f-sans); background: rgba(233,64,64,.12); color: #FF8A8A; }
.form-error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading .btn__label::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.sent { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 48px 8px; }
.sent[hidden] { display: none; }
.sent h2 { font: 400 40px/1.1 var(--f-serif); letter-spacing: -2px; }
.sent p { max-width: 420px; font: 300 17px/1.6 var(--f-sans); color: var(--ink-70); }
.sent p b { color: #fff; font-weight: 400; }
.sent .done__badge { animation: badge-in .8s var(--ease-spring) both; }
@keyframes badge-in { from { opacity: 0; scale: .4; rotate: -40deg; } }
@media (max-width: 900px) { .support { grid-template-columns: minmax(0, 1fr); } .support__side { position: static; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .support__card { padding: 22px 18px; } }

/* ---------- "Works with" AI-tool logos (Lobe Icons, monochrome) ---------- */
.ai-row { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 20px; }
.ai-row__label { font: 400 13px/1.3 var(--f-mono); letter-spacing: .6px; text-transform: uppercase; color: var(--ink-40); }
.ai-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; max-width: 1000px; }
.ai-row li { display: inline-flex; align-items: center; gap: 8px; font: 400 15px/1 var(--f-sans); color: var(--ink-60); transition: color .25s ease; }
.ai-row li:hover { color: #fff; }
.ai-logo { display: block; flex: none; }
.js .ai-row__label { animation: rise-sm 1s var(--ease-out) 1.05s both; }
.js .ai-row > ul > li { animation: rise-sm .9s var(--ease-out) both; animation-delay: calc(1.12s + var(--i, 0) * 50ms); }
.ai-row > ul > li:nth-child(1) { --i: 0; } .ai-row > ul > li:nth-child(2) { --i: 1; } .ai-row > ul > li:nth-child(3) { --i: 2; } .ai-row > ul > li:nth-child(4) { --i: 3; }
.ai-row > ul > li:nth-child(5) { --i: 4; } .ai-row > ul > li:nth-child(6) { --i: 5; } .ai-row > ul > li:nth-child(7) { --i: 6; } .ai-row > ul > li:nth-child(8) { --i: 7; } .ai-row > ul > li:nth-child(9) { --i: 8; }
.tools span { display: inline-flex; align-items: center; gap: 8px; }
.tools .ai-logo { color: var(--ink-60); }
@media (max-width: 640px) { .ai-row ul { gap: 14px 20px; } .ai-row li { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .js .ai-row > ul > li, .js .ai-row__label { animation: none !important; } }

/* "+5 more": hover / focus / tap reveals the rest of the supported tools */
.ai-more { position: relative; }
.ai-more__btn { font: 400 15px/1 var(--f-sans); color: var(--ink-60); padding: 4px 0; border-bottom: 1px dashed rgba(255,255,255,.28); transition: color .25s ease, border-color .25s ease; cursor: default; }
.ai-more:hover .ai-more__btn, .ai-more.is-open .ai-more__btn, .ai-more__btn:focus-visible { color: #fff; border-color: rgba(255,255,255,.6); }
.ai-more__pop {
  position: absolute; z-index: 20; top: calc(100% + 14px); left: 50%; min-width: 190px; padding: 8px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; translate: -50% 6px; scale: .97; transform-origin: top center;
  transition: opacity .25s var(--ease-out), translate .35s var(--ease-out), scale .35s var(--ease-out), visibility 0s linear .25s;
}
.ai-more__pop::before { content: ""; position: absolute; left: 50%; top: -6px; width: 10px; height: 10px; background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); translate: -50% 0; rotate: 45deg; }
.ai-more__pop::after { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.ai-more:hover .ai-more__pop, .ai-more:focus-within .ai-more__pop, .ai-more.is-open .ai-more__pop {
  opacity: 1; visibility: visible; translate: -50% 0; scale: 1; transition-delay: 0s;
}
.ai-more__pop ul { display: flex; flex-direction: column; gap: 2px; max-width: none; }
.ai-more__pop li { padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-80); gap: 10px; justify-content: flex-start; }
.ai-more__pop li:hover { background: var(--surface-2); color: #fff; }
@media (max-width: 640px) { .ai-more__btn { font-size: 14px; } .ai-more__pop { left: auto; right: -8px; translate: 0 6px; } .ai-more:hover .ai-more__pop, .ai-more:focus-within .ai-more__pop, .ai-more.is-open .ai-more__pop { translate: 0 0; } .ai-more__pop::before { left: auto; right: 24px; translate: 0 0; } }

/* =========================================================
   EARLY-BIRD HERO — countdown pill, drawn underline, typed sub, CTA sheen
   ========================================================= */
/* live countdown in the launch tag */
.launch { gap: 10px; padding-left: 10px; }
.launch__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); flex: none; }
.launch__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--yellow); animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { scale: 2.6; opacity: 0; } }
.launch__text { display: inline-flex; align-items: center; gap: 6px; }
.cd { display: inline-flex; align-items: baseline; gap: 4px; font: 500 15px/1 var(--f-mono); color: #fff; font-variant-numeric: tabular-nums; }
.cd__sep { color: var(--ink-40); }
.cd__u { display: inline-flex; align-items: baseline; }
.cd__u small { font: 400 12px/1 var(--f-mono); color: var(--ink-60); margin-left: 1px; }
.cd__n { display: inline-block; overflow: hidden; height: 1em; line-height: 1; }
.cd__n b { display: inline-block; font-weight: 500; }
.cd__n b.roll { animation: roll .45s var(--ease-out); }
@keyframes roll { from { translate: 0 -100%; opacity: 0; } }

/* hand-drawn yellow underline under "senior designers" */
.hl { position: relative; display: inline-block; white-space: nowrap; }
.hl__line { position: absolute; left: -1%; right: -1%; width: 102%; bottom: -.06em; height: .2em; overflow: visible; pointer-events: none; }
.hl__line path { fill: none; stroke: var(--yellow); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .hl__line path { stroke-dashoffset: 1; animation: draw 1s var(--ease-io) 1.05s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 640px) { .hl__line path { stroke-width: 5.5; } }

/* typed sub-line with a yellow block caret (the logo's corner square) */
.type__caret { display: inline-block; width: .5em; height: .95em; margin-left: 4px; margin-right: calc(-.5em - 4px); /* takes no line width, so it never wraps alone */ vertical-align: -.12em; background: var(--yellow); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.js .hero__sub[data-type] { animation: none; }

/* periodic light sweep across the early-bird CTA */
.btn--sheen { position: relative; overflow: hidden; isolation: isolate; }
.btn--sheen::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
  translate: -120% 0; animation: sheen 5.5s var(--ease-io) 2.8s infinite;
}
@keyframes sheen { 0% { translate: -120% 0; } 22%, 100% { translate: 120% 0; } }
.btn--sheen:hover::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .launch__dot::after, .type__caret, .btn--sheen::after, .cd__n b.roll { animation: none !important; }
  .js .hl__line path { animation: none; stroke-dashoffset: 0; }
}

/* =========================================================
   TRUST STATS — depth without gradients: paper grain, edge light, soft lift, and a visual per card
   ========================================================= */
.stat { position: relative; overflow: hidden; isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.08), 0 24px 48px -18px rgba(0,0,0,.55); }
.stat::before { /* fine paper grain (SVG noise), not a gradient */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stat > p { position: relative; z-index: 1; }
.stat__art { position: absolute; z-index: 0; pointer-events: none; }
/* art pieces pop in after their card lands */
.js .stats:not(.in) .stat__art > * { opacity: 0; scale: .6; }
.stats .stat__art > * { transition: opacity .5s ease, scale .7s var(--ease-spring), translate .6s var(--ease-out), rotate .6s var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + 650ms + var(--i, 0) * 70ms); }
.stats.settled .stat__art > * { transition-delay: 0ms; }

/* 32k+ customers — avatar stack */
.art-people { top: 30px; right: 30px; display: flex; }
.art-people span { position: relative; width: 44px; height: 44px; margin-left: -12px; border-radius: 50%; overflow: hidden;
  background: #2F2D2D; box-shadow: 0 0 0 3px var(--c-sky); }
.art-people span:first-child { margin-left: 0; }
.art-people img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art-people .more { width: auto; padding: 0 14px 0 16px; display: grid; place-items: center; border-radius: 40px; background: #100F0F; color: #fff;
  font: 500 13px/1 var(--f-sans); letter-spacing: .2px; }
.stat--sky:hover .art-people span { translate: calc(var(--i) * 3px) 0; }

/* 29+ team — one dot per person */
.art-team { top: 30px; right: 30px; display: grid; grid-template-columns: repeat(10, 10px); gap: 7px; }
.art-team i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.75); }
.art-team i:nth-child(7n+3) { background: #100F0F; }
.art-team i:nth-child(9n+5) { background: var(--yellow); }
.stats .art-team i { transition-delay: calc(var(--d, 0ms) + 650ms + var(--i, 0) * 22ms); }
.stat--sand:hover .art-team i { scale: 1.25; }

@media (max-width: 480px) {
  .art-people span { width: 36px; height: 36px; } .art-people .more { font-size: 12px; }
  .art-team { grid-template-columns: repeat(10, 8px); gap: 5px; } .art-team i { width: 8px; height: 8px; }
}
@media (prefers-reduced-motion: reduce) { .js .stats .stat__art > * { opacity: 1 !important; scale: none !important; } }

/* tall stat cards: 1.5× numbers to fill the space */
.stat--sage .t-stat, .stat--violet .t-stat { font-size: 87px; line-height: 1.05; letter-spacing: -6px; }
@media (max-width: 640px) { .stat--sage .t-stat, .stat--violet .t-stat { font-size: 69px; letter-spacing: -4px; } }

/* ---------- "Rolling out after launch" roadmap strip (under the Try-real-skills grid) ---------- */
.road { margin-top: 40px; border-radius: var(--r-card); background: var(--surface); padding: 36px 40px 40px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: center; }
.road__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.road__title { font: 400 36px/1.1 var(--f-serif); letter-spacing: -1.8px; margin-top: 4px; }
.road__sub { font: 300 14px/1.5 var(--f-sans); color: var(--ink-60); }
.road__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.road__item { position: relative; padding: 4px 22px; border-left: 1px solid var(--hair); }
.road__item i { display: block; width: 12px; height: 12px; border-radius: 3px; margin-bottom: 18px; }
.road__num { font: 400 48px/1 var(--f-serif); letter-spacing: -2.4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.road__label { margin-top: 12px; font: 500 15px/1.3 var(--f-sans); }
.road__hint { margin-top: 6px; font: 300 13px/1.5 var(--f-sans); color: var(--ink-60); }
.road__item i { transition: rotate .4s var(--ease-spring), scale .4s var(--ease-spring); }
.road__item:hover i { rotate: 45deg; scale: 1.15; }
@media (max-width: 1200px) { .road { grid-template-columns: minmax(0, 1fr); gap: 28px; } .road__head { max-width: 560px; } }
@media (max-width: 820px) {
  .road { padding: 28px 22px; }
  .road__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .road__item { padding: 0 16px; }
  .road__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .road__item:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .road__num { font-size: 40px; }
}

/* =========================================================
   DEVICE APPROVAL — browser-authorized sign-in for AI tools (device.html)
   ========================================================= */
.device { max-width: 480px; gap: 0; }
.device__view { display: none; flex-direction: column; gap: 18px; }
.device[data-state="enter"] [data-view="enter"], .device[data-state="review"] [data-view="review"],
.device[data-state="approved"] [data-view="approved"], .device[data-state="denied"] [data-view="denied"],
.device[data-state="expired"] [data-view="expired"], .device[data-state="signin"] [data-view="signin"], .device[data-state="locked"] [data-view="locked"] { display: flex; animation: card-in .5s var(--ease-out) both; }
.device h1 { font: 400 36px/1.1 var(--f-serif); letter-spacing: -1.8px; }
.device p { color: var(--ink-70); font-weight: 300; }
.device__enter { display: flex; flex-direction: column; gap: 16px; }
.device__enter input { text-transform: uppercase; font-size: 20px; letter-spacing: 3px; text-align: center; }

.device__pair { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.device__tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: #100F0F; flex: none; }
.device__tile--gs { background: var(--bg); border: 1px solid var(--line); }
.device__tile--gs .logo__mark { transform: scale(1.25); }
.device__link { display: flex; gap: 5px; }
.device__link i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-40); animation: hop 1.2s ease-in-out infinite; }
.device__link i:nth-child(2) { animation-delay: .15s; } .device__link i:nth-child(3) { animation-delay: .3s; }
@keyframes hop { 0%, 60%, 100% { opacity: .35; translate: 0 0; } 30% { opacity: 1; translate: 0 -3px; background: var(--yellow); } }

.device__code { align-self: stretch; text-align: center; padding: 18px 12px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--line);
  font: 500 34px/1 var(--f-mono); letter-spacing: 6px; color: #fff; }
.device__facts { margin: 0; border-radius: 14px; background: var(--bg); padding: 4px 16px; }
.device__facts div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hair); font: 400 14px/1.4 var(--f-sans); }
.device__facts div:last-child { border-bottom: 0; }
.device__facts dt { color: var(--ink-40); }
.device__facts dd { margin: 0; color: var(--ink-90); overflow-wrap: anywhere; }
.device__facts a { color: var(--ink-60); text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.device__perms { display: grid; gap: 8px; }
.device__perms > p { font: 400 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .6px; color: var(--ink-40); margin-top: 4px; }
.device__perms .checks li { font-size: 15px; }
.checks--no li::before { -webkit-mask-image: url(assets/icons/hugeicons/cancel.svg); mask-image: url(assets/icons/hugeicons/cancel.svg); opacity: .6; }
.checks--no li { color: var(--ink-60); }
.device__note { font-size: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,218,10,.08); color: var(--ink-80) !important; }
.device__note b { color: #fff; font-weight: 500; }
.device__actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.device__done { align-items: center; text-align: center; padding: 18px 0; }
.device__done p b { color: #fff; font-weight: 400; }
.device__done .done__badge { animation: badge-in .8s var(--ease-spring) both; }

/* account: connected devices */
.device-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
.device-row__logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: #100F0F; display: grid; place-items: center; }
.device-row b .mini { margin-left: 6px; vertical-align: 1px; }
.device-row.is-gone { opacity: .45; }
@media (max-width: 480px) { .device h1 { font-size: 30px; } .device__code { font-size: 28px; letter-spacing: 4px; } .device__actions { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .device-row { grid-template-columns: 44px minmax(0, 1fr); } .device-row .btn { grid-column: 2; justify-self: start; } }

.tiers--2 { grid-template-columns: repeat(2, 1fr); max-width: 420px; }
.device__lock { width: 64px; height: 64px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--yellow); }
.device__done p b { color: #fff; font-weight: 400; }
.skill-install { display: flex; flex-direction: column; gap: 10px; }
.skill-install[hidden] { display: none; }
.skill-install__note { font: 400 14px/1.5 var(--f-sans); color: var(--ink-70); }
.skill-install__note b { color: #fff; font-weight: 500; }
.access-chip { display: inline-flex; align-items: center; gap: 8px; font: 400 14px/1.4 var(--f-sans); color: var(--ink-70); }
.access-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); }
.btn-price { font-weight: 400; opacity: .7; margin-left: 2px; }
