/* Clickque: clickque.app
   Brand from Reel 7: ink, paper, amber. Tokens are the only place with raw colours. */

:root {
  color-scheme: light dark;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: #f6f2ea;
  --bg-alt: #efe8dc;
  --surface: #fffdf9;
  --surface-2: #f3ede3;
  --text: #1d1a17;
  --muted: #6b6359;
  --line: rgba(29, 26, 23, 0.1);
  --accent: #e8a33d;
  --accent-strong: #b87514;
  --on-accent: #1d1a17;
  --accent-soft: rgba(232, 163, 61, 0.2);
  --ok: #23835a;
  --ok-soft: rgba(47, 158, 106, 0.16);
  --wait: #3d6a96;
  --wait-soft: rgba(61, 106, 150, 0.14);
  --tint-1: #eecdbf;
  --tint-2: #c9d8e4;
  --tint-3: #c8d6c4;
  --tint-ink: #1d1a17;
  --mark-tile: #1d1a17;
  --mark-check: #f3ede3;
  --shadow: rgba(29, 26, 23, 0.1);
  --shadow-strong: rgba(29, 26, 23, 0.18);
  --spot: rgba(232, 163, 61, 0.14);
  --focus: #b87514;

  --r-card: 12px;
  --r-ctl: 8px;
  --wrap: 1200px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151311;
    --bg-alt: #1b1916;
    --surface: #23201d;
    --surface-2: #2c2925;
    --text: #f3ede3;
    --muted: #aca295;
    --line: rgba(243, 237, 227, 0.1);
    --accent-strong: #f0b65c;
    --accent-soft: rgba(232, 163, 61, 0.18);
    --ok: #5cc493;
    --ok-soft: rgba(92, 196, 147, 0.16);
    --wait: #8fb5dc;
    --wait-soft: rgba(143, 181, 220, 0.14);
    --tint-1: #6b4c41;
    --tint-2: #3f5466;
    --tint-3: #48593f;
    --tint-ink: #f3ede3;
    --mark-tile: #f3ede3;
    --mark-check: #1d1a17;
    --shadow: rgba(0, 0, 0, 0.35);
    --shadow-strong: rgba(0, 0, 0, 0.55);
    --spot: rgba(232, 163, 61, 0.1);
    --focus: #f0b65c;
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(32px, 5vw, 48px); }
h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: 16px; top: -60px; padding: 8px 16px; background: var(--surface); border-radius: var(--r-ctl); z-index: 100; }
.skip:focus { top: 16px; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* The Clickque mark (Reel 7) */
.mark { width: 32px; height: 32px; flex: none; }
.mark--sm { width: 24px; height: 24px; }
.mark--lg { width: 72px; height: 72px; margin-bottom: 24px; }
.mark__tile { fill: var(--mark-tile); }
.mark__shoe { fill: var(--accent); }
.mark__ring { stroke: var(--accent); }
.mark__check { stroke: var(--mark-check); }

.muted { color: var(--muted); }
.hl { color: var(--accent-strong); }
.lede { font-size: 18px; color: var(--muted); max-width: 600px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 12px; }
.fine { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- surfaces */
.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: 0 1px 2px var(--shadow), 0 8px 24px -8px var(--shadow);
}

/* Card effect: lift, slight tilt toward the pointer and an amber spotlight under it (pointer devices only) */
[data-tilt] {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
[data-tilt]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 70%);
  opacity: 0;
  transition: opacity 250ms var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  [data-tilt]:hover { --lift: -4px; box-shadow: 0 2px 4px var(--shadow), 0 24px 48px -16px var(--shadow-strong); }
  [data-tilt]:hover::before { opacity: 1; }
  .js [data-tilt].is-tracking { transition: transform 80ms linear, box-shadow 250ms var(--ease-out), opacity 250ms var(--ease-out), translate 250ms var(--ease-out); transition-delay: 0ms; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--r-ctl);
  font: 700 16px/1 var(--font);
  color: var(--on-accent); background: var(--accent);
  text-decoration: none; cursor: pointer;
  transition: background-color 150ms var(--ease-out), transform 100ms var(--ease-out);
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--full { width: 100%; }
.btn--ghost { color: var(--text); background: var(--surface); box-shadow: 0 1px 2px var(--shadow), 0 4px 12px -4px var(--shadow); }
@media (hover: hover) {
  .btn:hover { background: var(--accent-strong); }
  .btn--ghost:hover { background: var(--surface-2); }
}
@media (hover: hover) and (prefers-color-scheme: dark) { .btn:hover { color: var(--on-accent); } }

/* ---------------------------------------------------------------- header */
.bar { position: sticky; top: 0; z-index: 50; background: var(--bg); transition: box-shadow 250ms var(--ease-out); }
.bar.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -12px var(--shadow); }
.bar__in { display: flex; align-items: center; gap: 24px; max-width: var(--wrap); margin: 0 auto; padding: 12px 16px; }
@media (min-width: 720px) { .bar__in { padding: 12px 32px; } }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; }
.bar__nav { display: none; gap: 4px; margin-left: auto; }
.bar__nav a { padding: 10px 12px; border-radius: var(--r-ctl); color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
@media (hover: hover) { .bar__nav a:hover { color: var(--text); background: var(--surface-2); } }
.bar .btn { margin-left: auto; }
@media (min-width: 900px) { .bar__nav { display: flex; } .bar .btn { margin-left: 8px; } }

/* ---------------------------------------------------------------- hero */
.hero { padding: 48px 0 72px; }
.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 88px 0 112px; } .hero__grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.hero__copy { display: grid; gap: 24px; justify-items: start; }
.hero__title { font-size: clamp(44px, 8vw, 76px); letter-spacing: -0.04em; line-height: 1.02; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--accent-soft); font-size: 14px; font-weight: 700; }
.pill .i { width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; padding: 24px 0 48px; }
.app { padding: 8px 8px 12px; }
.app__top { display: flex; align-items: center; gap: 10px; padding: 12px 12px 16px; border-bottom: 1px solid var(--line); }
.app__tabs { display: none; gap: 4px; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); }
.app__tabs span { padding: 4px 10px; border-radius: 999px; }
.app__tabs .is-on { background: var(--surface-2); color: var(--text); }
@media (min-width: 420px) { .app__tabs { display: flex; } }

.rows { display: grid; gap: 4px; padding-top: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-ctl); }
.row:first-child { background: var(--surface-2); }
.row__main { display: grid; min-width: 0; flex: 1; }
.row__main b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__main small { font-size: 13px; color: var(--muted); }
.row .src { display: none; }
@media (min-width: 520px) { .row .src { display: inline-flex; } }

.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--hue); color: var(--tint-ink); font-weight: 800; font-size: 14px; }
.src { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.src .i { width: 14px; height: 14px; }
.src--ok { background: var(--ok-soft); color: var(--ok); }
.tag { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag--new { background: var(--accent-soft); color: var(--accent-strong); }
.tag--wait { background: var(--wait-soft); color: var(--wait); }
.tag--ok { background: var(--ok-soft); color: var(--ok); }

.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; font-size: 14px; line-height: 1.3; max-width: 270px; translate: 0 var(--py, 0px); }
.float b { display: block; font-size: 14px; }
.float small { color: var(--muted); font-size: 12px; }
.float--a { left: -8px; top: -12px; }
.float--b { right: -4px; bottom: 0; }
.float--c { display: none; }
@media (min-width: 600px) {
  .float--a { left: -24px; }
  .float--c { display: flex; left: -24px; bottom: 4px; }
  .float--b { right: -24px; bottom: -28px; }
}
@media (max-width: 599px) { .float--a { display: none; } .float--b { right: 8px; } }
.dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.dot .i { width: 18px; height: 18px; }
.dot--accent { background: var(--accent-soft); color: var(--accent-strong); }
.dot--ok { background: var(--ok-soft); color: var(--ok); }
.stars { display: inline-flex; gap: 2px; color: var(--accent); flex: none; }
.stars .i { width: 14px; height: 14px; fill: currentColor; stroke-width: 1.5; }

/* hero entrance: rows arrive one by one, floats pop in */
@media (prefers-reduced-motion: no-preference) {
  .js .row { opacity: 0; transform: translateY(8px); animation: rowIn 250ms var(--ease-out) forwards; animation-delay: calc(500ms + var(--d) * 160ms); }
  .js .float { opacity: 0; animation: popIn 250ms var(--ease-out) forwards; }
  .js .float--a { animation-delay: 1050ms; }
  .js .float--c { animation-delay: 1250ms; }
  .js .float--b { animation-delay: 1450ms; }
}
@keyframes rowIn { to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- sections */
.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section--alt { background: var(--bg-alt); }
.head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.head .eyebrow { margin-bottom: -4px; }
.head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

.tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); flex: none; }

/* problems */
.problems { display: grid; gap: 16px; }
@media (min-width: 640px) { .problems { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .problems { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.problem { display: grid; gap: 12px; align-content: start; padding: 24px; }
.problem p { color: var(--muted); }

/* ---------------------------------------------------------------- sort (scroll scene) */
.sort { position: relative; background: var(--bg-alt); }
.sort__sticky { padding: 80px 0; }
.sort__grid { display: grid; gap: 40px; align-items: center; }
.sort__copy { display: grid; gap: 16px; }
.sort__copy .eyebrow { margin-bottom: -4px; }
.sort__state { position: relative; height: 28px; font-weight: 700; font-size: 15px; }
.sort__state span { position: absolute; inset: 0; transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
[data-sort-before] { color: var(--muted); }
[data-sort-after] { color: var(--ok); }
.sort:not(.is-sorted) [data-sort-after], .sort.is-sorted [data-sort-before] { opacity: 0; transform: translateY(6px); }

.sort__stage { position: relative; padding: 56px 16px 16px; max-width: 560px; width: 100%; justify-self: center; }
.sort__board { position: absolute; inset: 0; opacity: var(--board, 1); }
.sort__board-title { position: absolute; left: 16px; top: 14px; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.sort__list { position: relative; display: grid; gap: 8px; }
.chip {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--surface-2); border-radius: var(--r-ctl);
  box-shadow: 0 1px 2px var(--shadow), 0 6px 16px -6px var(--shadow);
  font-size: 14px;
  will-change: transform;
}
.chip__text { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .tag { opacity: var(--tag, 1); }
@media (min-width: 980px) {
  .sort { height: 220vh; }
  .sort__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 0; }
  .sort__grid { grid-template-columns: 1fr 1.1fr; gap: 64px; }
}
/* On phones and tablets the scene plays once on entry instead of being scroll-driven. */
@media (max-width: 979px) {
  .js .sort .chip { transition: transform 600ms var(--ease-out); transition-delay: calc(var(--n, 0) * 60ms); }
  .js .sort .chip .tag { transition: opacity 250ms var(--ease-out) 500ms; }
}

/* ---------------------------------------------------------------- steps */
.steps__line { display: none; }
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { display: grid; gap: 12px; padding: 28px 24px; align-content: start; }
.step p { color: var(--muted); }
.step__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .steps__line { display: block; position: relative; height: 2px; margin: 0 16.66% 28px; background: var(--line); border-radius: 2px; }
  .steps__line span { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); border-radius: 2px; }
}

/* ---------------------------------------------------------------- features (bento) */
.bento { display: grid; gap: 16px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feat { display: grid; gap: 12px; align-content: start; padding: 24px; overflow: hidden; }
.feat p { color: var(--muted); }
.feat .tile { margin-bottom: 4px; }
.feat__text { display: grid; gap: 12px; align-content: start; }
@media (min-width: 720px) { .feat--wide { grid-column: 1 / -1; } }
@media (min-width: 1040px) {
  .feat--wide { grid-column: span 2; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
  .bento .feat--wide:last-child { grid-template-columns: 1fr 1.3fr; }
}
.srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.demo { margin-top: 12px; padding: 16px; border-radius: var(--r-ctl); background: var(--surface-2); }
.feat--wide .demo { margin-top: 0; }

/* chat */
.chat { display: grid; gap: 8px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.bubble--in { background: var(--surface); justify-self: start; border-bottom-left-radius: 4px; }
.bubble--out { background: var(--accent); color: var(--on-accent); justify-self: end; border-bottom-right-radius: 4px; font-weight: 600; }
.chat__saved { display: inline-flex; align-items: center; gap: 6px; justify-self: center; margin-top: 4px; padding: 4px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 700; }
.chat__saved .i { width: 14px; height: 14px; stroke-width: 3; }

/* board */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.col { display: grid; gap: 6px; align-content: start; }
.col__h { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.col__h i { font-style: normal; color: var(--text); }
.mini { height: 22px; border-radius: 6px; background: var(--surface); box-shadow: 0 1px 2px var(--shadow); }
.mini--ok { background: var(--ok-soft); box-shadow: none; }

/* pay */
.pay { display: grid; gap: 10px; }
.pay__row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.pay__row span { color: var(--muted); }
.bar { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w); background: var(--ok); border-radius: inherit; transform-origin: left; }
.pay__note { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-strong); }
.pay__note .i { width: 16px; height: 16px; }

/* team */
.team { display: grid; gap: 6px; }
.team li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-ctl); background: var(--surface); font-size: 14px; font-weight: 700; }
.team li > span:nth-child(2) { flex: 1; display: grid; line-height: 1.3; }
.team small { font-size: 12px; font-weight: 500; color: var(--muted); }
.team .avatar { width: 30px; height: 30px; font-size: 12px; }
.tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: transparent; transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out); }
.tick .i { width: 14px; height: 14px; stroke-width: 3; }
.tick.is-on { background: var(--ok); color: var(--surface); }

/* spend */
.spend { display: grid; gap: 8px; }
.spend__bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin-bottom: 6px; }
.spend__bars span { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--line); transform-origin: bottom; }
.spend__bars .is-now { background: var(--accent); }
.spend__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.spend__row b { color: var(--text); }

/* review */
.review { display: grid; gap: 12px; }
.review .bubble { max-width: 100%; }
.review__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.stars--fill .i { width: 18px; height: 18px; }

/* calendar */
.cal { overflow: hidden; }
.cal__head, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__head { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.cal__grid { grid-template-rows: repeat(2, 44px); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 50px; }
.ev { grid-column: var(--c) / span 1; grid-row: var(--r); align-self: stretch; padding: 6px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 1.25; overflow: hidden; background: var(--ok-soft); color: var(--ok); }
.ev--call { background: var(--wait-soft); color: var(--wait); }
.ev--big { grid-column: var(--c) / span 2; grid-row: 1 / span 2; background: var(--accent); color: var(--on-accent); font-size: 12px; }
@media (max-width: 480px) { .ev { font-size: 0; } .ev--big { font-size: 11px; } }

/* demos come alive when their card enters view */
@media (prefers-reduced-motion: no-preference) {
  .js .feat .bubble, .js .feat .chat__saved { opacity: 0; transform: translateY(6px); transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
  .js .feat.is-in .bubble, .js .feat.is-in .chat__saved { opacity: 1; transform: none; }
  .js .feat.is-in .chat > :nth-child(1) { transition-delay: 250ms; }
  .js .feat.is-in .chat > :nth-child(2) { transition-delay: 700ms; }
  .js .feat.is-in .chat > :nth-child(3) { transition-delay: 1150ms; }
  .js .feat.is-in .chat > :nth-child(4) { transition-delay: 1500ms; }
  .js .feat.is-in .review .bubble { transition-delay: 250ms; }

  .js .feat .mini { opacity: 0; transform: translateY(6px); transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
  .js .feat.is-in .mini { opacity: 1; transform: none; }
  .js .feat.is-in .col:nth-child(2) .mini { transition-delay: 150ms; }
  .js .feat.is-in .col:nth-child(3) .mini { transition-delay: 300ms; }

  .js .feat .bar span { transform: scaleX(0); transition: transform 700ms var(--ease-out) 300ms; }
  .js .feat.is-in .bar span { transform: none; }

  .js .feat .spend__bars span { transform: scaleY(0); transition: transform 500ms var(--ease-out); }
  .js .feat.is-in .spend__bars span { transform: none; }
  .js .feat.is-in .spend__bars span:nth-child(2) { transition-delay: 60ms; }
  .js .feat.is-in .spend__bars span:nth-child(3) { transition-delay: 120ms; }
  .js .feat.is-in .spend__bars span:nth-child(4) { transition-delay: 180ms; }
  .js .feat.is-in .spend__bars span:nth-child(5) { transition-delay: 240ms; }
  .js .feat.is-in .spend__bars span:nth-child(6) { transition-delay: 300ms; }

  .js .feat .stars--fill .i { opacity: 0.25; transform: scale(0.7); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  .js .feat.is-in .stars--fill .i { opacity: 1; transform: none; }
  .js .feat.is-in .stars--fill .i:nth-child(1) { transition-delay: 600ms; }
  .js .feat.is-in .stars--fill .i:nth-child(2) { transition-delay: 700ms; }
  .js .feat.is-in .stars--fill .i:nth-child(3) { transition-delay: 800ms; }
  .js .feat.is-in .stars--fill .i:nth-child(4) { transition-delay: 900ms; }
  .js .feat.is-in .stars--fill .i:nth-child(5) { transition-delay: 1000ms; }

  .js .feat .ev { opacity: 0; transform: scale(0.94); transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
  .js .feat.is-in .ev { opacity: 1; transform: none; }
  .js .feat.is-in .ev:nth-child(2) { transition-delay: 150ms; }
  .js .feat.is-in .ev:nth-child(3) { transition-delay: 300ms; }
  .js .feat.is-in .ev:nth-child(4) { transition-delay: 450ms; }
}

/* ---------------------------------------------------------------- pricing */
.plans { display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; } }
.plan { display: grid; gap: 16px; padding: 28px; }
.plan--pro { box-shadow: 0 0 0 2px var(--accent), 0 16px 40px -16px var(--shadow-strong); }
.plan__badge { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; font-weight: 700; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 48px; letter-spacing: -0.04em; line-height: 1; }
.price span { color: var(--muted); font-weight: 600; }
.plan__sub { color: var(--muted); }
.plan__list { display: grid; gap: 10px; margin: 4px 0 8px; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan__list .i { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); stroke-width: 2.5; }

/* ---------------------------------------------------------------- faq */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: var(--r-card); box-shadow: 0 1px 2px var(--shadow), 0 6px 16px -8px var(--shadow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); max-width: 680px; }

/* ---------------------------------------------------------------- start */
.start__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .start__grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.start__copy h2 { font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.03em; margin-bottom: 16px; }
.form { display: grid; gap: 16px; padding: 28px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.form input {
  min-height: 48px; padding: 0 14px;
  font: 500 16px var(--font); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-ctl);
}
.form input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.form__note { font-size: 13px; color: var(--muted); }
.form__done { padding: 12px 14px; border-radius: var(--r-ctl); background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 14px; }

/* ---------------------------------------------------------------- footer */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot__nav { display: flex; gap: 4px; }
.foot__nav a { padding: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
@media (hover: hover) { .foot__nav a:hover { color: var(--text); } }
.foot__copy { color: var(--muted); font-size: 14px; }
@media (min-width: 720px) { .foot__copy { margin-left: auto; } }
.foot__note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; translate: 0 16px; transition: opacity 250ms var(--ease-out), translate 250ms var(--ease-out), transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out); transition-delay: var(--stagger, 0ms); }
  .js [data-reveal].is-in { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
