/* StackedOn.AI — main styles. Uses tokens.css variables only. */

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-primary); font-weight: var(--fw-regular);
  font-size: var(--text-body-lg); line-height: var(--lh-body-lg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; } p { text-wrap: pretty; }
::selection { background: rgba(var(--rgb-amber), .35); color: var(--color-white); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--space-3); top: -80px; z-index: 200; background: var(--bg); color: var(--text);
  padding: var(--space-2) var(--space-4); border: 1px solid var(--focus); border-radius: var(--radius-sm); }
.skip:focus { top: var(--space-3); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.overline { font-size: var(--text-label); line-height: var(--lh-label); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: var(--space-3); }
.overline::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--color-accent); }
.h-hero { font-size: var(--text-hero); line-height: .98; font-weight: var(--fw-extrabold); letter-spacing: -0.04em; color: var(--text); }
.h-section { font-size: var(--text-section); line-height: 1.06; font-weight: var(--fw-extrabold); letter-spacing: -0.035em; color: var(--text); }
.h3 { font-size: var(--text-h3); line-height: var(--lh-h3); font-weight: var(--fw-semibold); letter-spacing: var(--ls-h3); color: var(--text); }
.lead { font-size: var(--text-lead); line-height: 1.6; color: var(--text-muted); max-width: 36em; }
.muted { color: var(--text-muted); }
.accent-amber { color: var(--color-amber); }
.accent-green { color: var(--color-green); }
.accent-on { color: var(--color-accent); }

/* ---------- Buttons ----------
   White on Vermillion is 4.2:1, so CTA text is 19px bold ("large text", AA needs 3:1). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 56px; padding: 14px 28px; border-radius: var(--radius-pill);
  font: var(--fw-bold) 19px/1.2 var(--font-primary); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn-cta { background: var(--cta-bg); color: var(--cta-text); }
.btn-cta:hover { background: var(--cta-bg-hover); }
.btn-cta:focus-visible { outline-color: var(--color-light); outline-offset: 4px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); font-weight: var(--fw-semibold); font-size: var(--text-body-lg); min-height: 52px; }
.btn-ghost:hover { border-color: var(--color-light); background: rgba(var(--rgb-light), .06); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: var(--text-body-lg); }
.btn-cta.btn-sm { font-size: 19px; } /* keep white-on-Vermillion at large-text size (AA 3:1) */
.btn .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background-color var(--dur), border-color var(--dur), backdrop-filter var(--dur);
  border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top, 0px); }
.site-header.scrolled { background: rgba(var(--rgb-primary), .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); height: 76px; }
.brand { display: inline-flex; padding: 0; flex-shrink: 0; border-radius: var(--radius-sm); }
.brand img { height: 44px; width: auto; min-width: var(--logo-min-width); }
.nav-links { display: flex; align-items: center; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-block; padding: 10px 14px; border-radius: var(--radius-pill); text-decoration: none;
  font-size: var(--text-body); font-weight: var(--fw-semibold); color: var(--text-muted); transition: color var(--dur-fast), background-color var(--dur-fast); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(var(--rgb-light), .06); }
.nav-cta { display: flex; align-items: center; gap: var(--space-3); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform var(--dur-fast), background-color var(--dur-fast); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .brand img { height: 34px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-head { display: grid; gap: var(--space-4); max-width: 820px; margin-bottom: var(--space-8); }
.section-head .lead { margin-top: var(--space-2); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Hero B: statement ---------- */
.hero-b { min-height: 100svh; display: flex; align-items: center; padding-top: 120px; padding-bottom: var(--space-8); position: relative; overflow: hidden; }
.hero-b::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--rgb-amber), .10), rgba(var(--rgb-amber), 0)); }
.hero-b .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-8); align-items: center; }
.hero-b .copy { display: grid; gap: var(--space-5); position: relative; z-index: 1; }
.hero-b .h-hero .line { display: block; }
.hero-b .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }
.hero-b .meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-4); padding: 0; list-style: none; font-size: var(--text-body); color: var(--text-muted); }
.hero-b .meta li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-b .meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-green); }
@media (max-width: 960px) {
  .hero-b { min-height: auto; padding-top: 112px; }
  .hero-b .grid { grid-template-columns: 1fr; gap: var(--space-7); }
}

/* Sample-screen stack (hero B visual) */
.stack { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; margin-inline: auto; perspective: 1600px; }
.screen { position: absolute; border-radius: var(--radius-lg); background: var(--color-secondary); border: 1px solid rgba(var(--rgb-light), .08);
  box-shadow: 0 30px 80px -20px rgba(var(--rgb-primary), .9), 0 0 0 1px rgba(var(--rgb-primary), .6); overflow: hidden; }
.screen .bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(var(--rgb-light), .06); }
.screen .bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--rgb-muted), .45); }
.screen .bar b { margin-left: 8px; font-size: var(--text-body-sm); font-weight: var(--fw-semibold); color: var(--text-muted); letter-spacing: .02em; }
.tag-sample { position: absolute; z-index: 5; top: 0; right: 0; font-size: var(--text-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: uppercase; font-weight: var(--fw-medium);
  color: var(--text-muted); border: 1px dashed var(--line-strong); padding: 2px 8px; border-radius: var(--radius-pill); background: var(--bg); }

.s-dash { inset: 6% 0 22% 14%; transform: rotate(-1deg); }
.s-book { left: 0; bottom: 6%; width: 52%; transform: rotate(1.5deg); }
.s-chat { right: 2%; bottom: 0; width: 44%; transform: rotate(-2deg); }
.s-body { padding: 16px; display: grid; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: rgba(var(--rgb-primary), .55); border-radius: var(--radius-md); padding: 10px 12px; }
.kpi small { display: block; font-size: var(--text-label); color: var(--text-muted); letter-spacing: .02em; }
.kpi strong { display: block; font-size: var(--text-h3); font-weight: var(--fw-bold); color: var(--text); letter-spacing: -0.02em; margin-top: 2px; }
.kpi .up { color: var(--color-green); font-size: var(--text-label); font-weight: var(--fw-semibold); }
.chart { height: 110px; display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: rgba(var(--rgb-primary), .55); border-radius: var(--radius-md); }
.chart span { flex: 1; border-radius: 4px 4px 2px 2px; background: rgba(var(--rgb-amber), .75); transform-origin: bottom; }
.chart span:last-child { background: var(--color-green); }
.cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cal span { aspect-ratio: 1.2; border-radius: 6px; border: 1px solid rgba(var(--rgb-muted), .25); font-size: var(--text-label); color: var(--text-muted); display: grid; place-items: center; }
.cal span.on { background: var(--color-amber); border-color: var(--color-amber); color: var(--color-primary); font-weight: var(--fw-bold); }
.cal span.taken { background: transparent; border-style: dashed; color: var(--text-muted); text-decoration: line-through; }
.confirm { display: flex; align-items: center; gap: 8px; font-size: var(--text-body-sm); font-weight: var(--fw-semibold); color: var(--color-green); }
.confirm::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--color-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 0h16v16H0z M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.bubble { max-width: 85%; font-size: var(--text-body-sm); line-height: var(--lh-body-sm); padding: 8px 12px; border-radius: 14px; }
.bubble.in { background: rgba(var(--rgb-primary), .7); color: var(--text); border-bottom-left-radius: 4px; }
.bubble.out { justify-self: end; background: rgba(var(--rgb-green), .14); color: var(--text); border-bottom-right-radius: 4px; }
.typing { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(var(--rgb-primary), .7); width: max-content; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
@media (prefers-reduced-motion: no-preference) {
  .typing i { animation: blink 1.2s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
}

/* ---------- Hero A / story: sticky scroll scene ---------- */
.story { position: relative; height: 820vh; }
.story .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story .scene { position: absolute; top: 96px; bottom: 6%; left: 34%; right: 4%; }
.story .scene svg { width: 100%; height: 100%; }
.story .stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 55% 60% at 0% 100%, rgba(var(--rgb-primary), .95), rgba(var(--rgb-primary), 0) 70%); }
.caps { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(40px, 11vh, 120px); width: min(40vw, 600px); height: 17rem; pointer-events: none; }
.cap { position: absolute; inset: auto 0 0 0; opacity: 0; will-change: opacity, transform; }
.cap .step { font-size: var(--text-label); letter-spacing: var(--ls-overline); font-weight: var(--fw-bold); text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-3); display: block; }
.cap .step b { color: var(--color-amber); font-weight: var(--fw-bold); }
.cap .big { font-size: clamp(44px, 6vw, 96px); line-height: .95; font-weight: var(--fw-extrabold); letter-spacing: -0.045em; color: var(--text); }
.cap .acc { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.3; font-weight: var(--fw-semibold); letter-spacing: -0.01em; color: var(--color-amber); margin: var(--space-3) 0 var(--space-3); }
.cap .sen { color: var(--text-muted); font-size: var(--text-lead); line-height: 1.55; max-width: 30em; }
.cap .hint { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--space-5); font-size: var(--text-label); letter-spacing: var(--ls-overline); font-weight: var(--fw-bold); text-transform: uppercase; color: var(--text-muted); }
.cap .hint i { display: block; width: 1px; height: 32px; background: linear-gradient(var(--color-amber), transparent); }
.story-progress { position: absolute; z-index: 4; right: clamp(10px, 2vw, 28px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.story-progress button { display: block; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; border-radius: var(--radius-pill); }
.story-progress button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; border: 1px solid var(--text-muted); transition: background-color .2s, border-color .2s, transform .2s; }
.story-progress button[aria-current="step"]::after { background: var(--color-amber); border-color: var(--color-amber); transform: scale(1.4); }
.story .end { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 96px var(--gutter) var(--space-7); opacity: 0; pointer-events: none; gap: var(--space-4); }
.story .end.on { pointer-events: auto; }
.story .end .h-hero { max-width: 12em; }
.story .end .lead { margin-inline: auto; }
.story .end .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-4); }
.story-gallery { display: none; }
@media (prefers-reduced-motion: reduce) {
  .story { height: auto; } .story .stage { display: none; }
  .story-gallery { display: block; padding-top: 112px; }
  .story-gallery .g-item { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-6); align-items: center; padding-block: var(--space-6); border-top: 1px solid var(--line); }
  .story-gallery .cap { position: static; opacity: 1; }
}
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .story .scene { top: 84px; left: 8px; right: 36px; bottom: calc(15rem + 40px); }
  .story .stage::before { background: linear-gradient(to top, rgba(var(--rgb-primary), .96) 0%, rgba(var(--rgb-primary), .75) 32%, rgba(var(--rgb-primary), 0) 52%); }
  .caps { left: var(--gutter); right: var(--gutter); width: auto; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); height: 15rem; }
  .cap .big { font-size: clamp(40px, 12vw, 60px); }
  .story-progress { top: calc(84px + 24%); gap: 0; }
  .story-progress button { width: 24px; height: 24px; }
  .story-gallery .g-item { grid-template-columns: 1fr !important; }
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
.svc { grid-column: span 2; position: relative; display: grid; align-content: start; gap: var(--space-3); padding: var(--space-6); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(var(--rgb-secondary), .7), rgba(var(--rgb-secondary), .35)); border: 1px solid var(--line);
  text-decoration: none; transition: border-color var(--dur), transform var(--dur) var(--ease-out), background-color var(--dur); overflow: hidden; }
.svc:nth-child(4), .svc:nth-child(5) { grid-column: span 3; }
.svc:hover { border-color: rgba(var(--rgb-amber), .55); transform: translateY(-4px); }
.svc .ico { width: 48px; height: 48px; border-radius: var(--radius-md); display: grid; place-items: center; background: rgba(var(--rgb-amber), .12); color: var(--color-amber); margin-bottom: var(--space-3); }
.svc .ico svg { width: 24px; height: 24px; }
.svc p { color: var(--text-muted); }
.svc .eg { margin-top: var(--space-3); padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.svc .eg li { font-size: var(--text-body-sm); line-height: var(--lh-body-sm); color: var(--text); padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); }
.svc .more { margin-top: var(--space-3); font-size: var(--text-body); font-weight: var(--fw-semibold); color: var(--text); display: inline-flex; gap: 6px; align-items: center; }
.svc .more span { color: var(--color-amber); transition: transform var(--dur-fast) var(--ease-out); }
.svc:hover .more span { transform: translateX(4px); }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } .svc, .svc:nth-child(4), .svc:nth-child(5) { grid-column: span 1; } .svc:nth-child(5) { grid-column: span 2; } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } .svc, .svc:nth-child(5) { grid-column: span 1; } .svc { padding: var(--space-5); } }

/* ---------- Process (how we work) ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; counter-reset: step; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.process::after { content: ""; position: absolute; left: 0; top: 23px; height: 2px; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--color-amber), var(--color-green)); }
.process li { position: relative; padding-right: var(--space-5); counter-increment: step; }
.process .dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line-strong);
  font-size: var(--text-body); font-weight: var(--fw-bold); color: var(--text-muted); position: relative; z-index: 1; transition: border-color var(--dur), color var(--dur), background-color var(--dur); }
.process li.on .dot { border-color: var(--color-amber); color: var(--color-amber); }
.process li:last-child.on .dot { border-color: var(--color-green); color: var(--color-green); }
.process h3 { margin-top: var(--space-5); }
.process p { margin-top: var(--space-2); color: var(--text-muted); font-size: var(--text-body); line-height: var(--lh-body); }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; gap: var(--space-6); }
  .process::before, .process::after { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process::after { transform: scaleY(var(--p, 0)); transform-origin: top; background: linear-gradient(180deg, var(--color-amber), var(--color-green)); }
  .process li { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--space-5); padding-right: 0; }
  .process .dot { grid-row: span 2; }
  .process h3 { margin-top: 10px; }
}
.care { margin-top: var(--space-8); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5);
  padding: var(--space-6); border-radius: var(--radius-lg); border: 1px solid rgba(var(--rgb-green), .25); background: rgba(var(--rgb-green), .04); }
.care p { color: var(--text-muted); max-width: 40em; }
.care strong { color: var(--text); display: block; font-size: var(--text-h3); line-height: var(--lh-h3); margin-bottom: 4px; }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .hero-b .rise { opacity: 0; transform: translateY(24px); animation: rise var(--dur-slow) var(--ease-out) forwards; animation-delay: var(--d, 0s); }
  .js .stack .screen { opacity: 0; animation: settle 1.1s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
  .js .hero-b:not(.in) .rise, .js .hero-b:not(.in) .stack .screen, .js .hero-b:not(.in) .chart span { animation-play-state: paused; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes settle { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
  .js .chart span { animation: grow 1s var(--ease-out) both; animation-delay: calc(.9s + var(--i) * .07s); }
  @keyframes grow { from { transform: scaleY(0); } }
}


/* =====================================================================
   Site components (pages beyond the draft)
   ===================================================================== */

/* Placeholders that Raz must fill: deliberately visible */
.ph { display: inline-block; border: 1px dashed var(--color-amber); color: var(--color-amber); border-radius: var(--radius-sm);
  padding: 0 6px; font-size: .9em; font-weight: var(--fw-semibold); line-height: 1.5; }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--bg); padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gutter) var(--space-7);
  display: flex; flex-direction: column; gap: var(--space-6); overflow-y: auto; }
.mobile-menu[hidden] { display: none !important; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-menu li a { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) 0; border-bottom: 1px solid var(--line);
  font-size: 28px; line-height: 1.2; font-weight: var(--fw-bold); letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.mobile-menu li a[aria-current="page"] { color: var(--color-amber); }
.mobile-menu li a::after { content: "→"; color: var(--text-muted); font-weight: var(--fw-regular); }
.mobile-menu .btn { width: 100%; }
.mobile-menu .small { color: var(--text-muted); font-size: var(--text-body); }
body.menu-open { overflow: hidden; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.site-header.menu-on { background: var(--bg); border-bottom-color: var(--line); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding-top: calc(76px + clamp(var(--space-8), 9vw, 140px)); padding-bottom: clamp(var(--space-7), 6vw, var(--space-9)); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; right: -15%; top: -40%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--rgb-amber), .09), rgba(var(--rgb-amber), 0)); }
.page-hero .inner { position: relative; display: grid; gap: var(--space-5); max-width: 900px; }
.page-hero .h-hero { font-size: clamp(var(--text-h1), 5.4vw, 80px); }
.page-hero .jump { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); padding: 0; list-style: none; }
.page-hero .jump a { display: inline-block; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); text-decoration: none;
  font-size: var(--text-body); font-weight: var(--fw-semibold); color: var(--text); transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.page-hero .jump a:hover { border-color: var(--color-amber); background: rgba(var(--rgb-amber), .08); }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }

/* ---------- Generic layout helpers ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(var(--space-6), 6vw, var(--space-9)); align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; align-items: center; }
.sticky-col { position: sticky; top: 110px; display: grid; gap: var(--space-4); }
.split > *, .contact-grid > * { min-width: 0; }
@media (max-width: 960px) { .split, .split.even { grid-template-columns: 1fr; } .sticky-col { position: static; } }
.card { background: linear-gradient(180deg, rgba(var(--rgb-secondary), .7), rgba(var(--rgb-secondary), .35)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.card p { color: var(--text-muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .card { padding: var(--space-5); } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(var(--rgb-green), .14); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 9px; width: 8px; height: 4px; border-left: 2px solid var(--color-green); border-bottom: 2px solid var(--color-green); transform: rotate(-45deg); }
.kv { display: grid; gap: var(--space-1); }
.kv dt { font-size: var(--text-label); letter-spacing: var(--ls-overline); text-transform: uppercase; font-weight: var(--fw-bold); color: var(--text-muted); }
.kv dd { margin: 0; color: var(--text); font-weight: var(--fw-semibold); }

/* ---------- Service detail blocks (Services page) ---------- */
.svc-block { padding-block: clamp(var(--space-8), 8vw, 128px); border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.svc-block:last-of-type { border-bottom: 0; }
.svc-block .num { font-size: var(--text-label); letter-spacing: var(--ls-overline); font-weight: var(--fw-bold); color: var(--color-amber); text-transform: uppercase; }
.svc-block .ico { width: 56px; height: 56px; border-radius: var(--radius-md); display: grid; place-items: center; background: rgba(var(--rgb-amber), .12); color: var(--color-amber); }
.svc-block .ico svg { width: 28px; height: 28px; }
.svc-block .details { display: grid; gap: var(--space-5); }
.svc-block .meta-row { display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-7); padding: var(--space-5) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips li { font-size: var(--text-body); color: var(--text); padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); }
.subhead { font-size: var(--text-h4); line-height: var(--lh-h4); font-weight: var(--fw-semibold); color: var(--text); }

/* ---------- Sample screens (Home) ---------- */
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.sample { display: grid; gap: var(--space-4); align-content: start; }
figure.sample { margin: 0; }
.sample .frame { position: relative; border-radius: var(--radius-lg); background: var(--color-secondary); border: 1px solid rgba(var(--rgb-light), .08); overflow: hidden; min-height: 280px;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur); }
.sample:hover .frame { transform: translateY(-4px); border-color: rgba(var(--rgb-amber), .4); }
.sample .frame .tag-sample { top: 12px; right: 12px; }
.sample figcaption { display: grid; gap: var(--space-1); }
.sample figcaption strong { font-size: var(--text-h3); line-height: var(--lh-h3); font-weight: var(--fw-semibold); letter-spacing: var(--ls-h3); color: var(--text); }
.sample figcaption span { color: var(--text-muted); font-size: var(--text-body); line-height: var(--lh-body); }
.mini { padding: 16px; display: grid; gap: 10px; font-size: var(--text-body-sm); line-height: var(--lh-body-sm); color: var(--text); }
.mini .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); background: rgba(var(--rgb-primary), .55); }
.mini .row small { color: var(--text-muted); font-size: var(--text-label); }
.mini .pill { font-size: var(--text-label); font-weight: var(--fw-semibold); padding: 2px 8px; border-radius: var(--radius-pill); white-space: nowrap; }
.mini .pill.ok { background: rgba(var(--rgb-green), .14); color: var(--color-green); }
.mini .pill.wait { background: rgba(var(--rgb-amber), .16); color: var(--color-amber); }
.mini .pill.new { background: rgba(var(--rgb-light), .1); color: var(--text); }
.mini .title { font-size: var(--text-body); font-weight: var(--fw-bold); color: var(--text); padding-right: 80px; }
.mini .bar-track { height: 8px; border-radius: 4px; background: rgba(var(--rgb-muted), .2); overflow: hidden; }
.mini .bar-track i { display: block; height: 100%; border-radius: 4px; background: var(--color-amber); }
.mini .bar-track i.done { background: var(--color-green); }
.mini .lesson { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--radius-md); background: rgba(var(--rgb-primary), .55); }
.mini .lesson div { display: flex; justify-content: space-between; }
.mini .slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mini .slots span { text-align: center; padding: 7px 0; border-radius: 6px; border: 1px solid rgba(var(--rgb-muted), .25); color: var(--text-muted); font-size: var(--text-label); }
.mini .slots span.on { background: var(--color-amber); border-color: var(--color-amber); color: var(--color-primary); font-weight: var(--fw-bold); }
.mini .slots span.taken { background: transparent; border-style: dashed; text-decoration: line-through; }
@media (max-width: 960px) { .samples { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .samples { grid-template-columns: 1fr; } }
.note-sample { margin-top: var(--space-5); font-size: var(--text-body-sm); line-height: var(--lh-body-sm); color: var(--text-muted); }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.why .card { display: grid; gap: var(--space-3); align-content: start; }
.why .mark { width: 40px; height: 4px; border-radius: 2px; background: var(--color-amber); margin-bottom: var(--space-3); }
.why .card:nth-child(2) .mark { background: var(--color-green); }
.why .card:nth-child(3) .mark { background: var(--color-light); }
.why .card:nth-child(4) .mark { background: var(--color-accent); }
@media (max-width: 960px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .why { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-5) 0;
  font-size: var(--text-h3); line-height: var(--lh-h3); font-weight: var(--fw-semibold); letter-spacing: var(--ls-h3); color: var(--text); border-radius: var(--radius-sm); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: linear-gradient(var(--text), var(--text)) center / 12px 2px no-repeat, linear-gradient(var(--text), var(--text)) center / 2px 12px no-repeat;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur-fast); }
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--color-amber); }
.faq summary:hover::after { border-color: var(--color-amber); }
.faq .answer { padding: 0 var(--space-8) var(--space-5) 0; color: var(--text-muted); max-width: 46em; }
.faq .answer a { color: var(--text); }
@media (max-width: 620px) { .faq summary { font-size: var(--text-h4); line-height: var(--lh-h4); } .faq .answer { padding-right: 0; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--line); padding: clamp(var(--space-7), 7vw, 112px) clamp(var(--space-5), 6vw, var(--space-9));
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(var(--rgb-amber), .14), rgba(var(--rgb-amber), 0) 70%),
              radial-gradient(ellipse 50% 70% at 0% 100%, rgba(var(--rgb-green), .07), rgba(var(--rgb-green), 0) 70%), rgba(var(--rgb-secondary), .45);
  display: grid; gap: var(--space-5); justify-items: start; }
.cta-band .h-section { max-width: 14em; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }
.cta-band .small { font-size: var(--text-body); color: var(--text-muted); }
.cta-band .small a { color: var(--text); }

/* ---------- Steps detail (How we work page) ---------- */
.steps-detail { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step-row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: var(--space-6); padding-block: var(--space-7); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.step-row .n { font-size: clamp(48px, 5vw, 72px); line-height: 1; font-weight: var(--fw-extrabold); letter-spacing: -0.04em; color: rgba(var(--rgb-muted), .7); }
.step-row:hover .n { color: var(--color-amber); }
.step-row .n { transition: color var(--dur); }
.step-row h3 { font-size: var(--text-h2); line-height: var(--lh-h2); font-weight: var(--fw-bold); letter-spacing: var(--ls-h2); }
.step-row .what { display: grid; gap: var(--space-3); }
.step-row .what p { color: var(--text-muted); }
.step-row .side { display: grid; gap: var(--space-4); align-content: start; }
@media (max-width: 960px) { .step-row { grid-template-columns: 1fr; gap: var(--space-4); } }

/* ---------- Pricing cards ---------- */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.pkg { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--rgb-secondary), .7), rgba(var(--rgb-secondary), .35)); position: relative; transition: border-color var(--dur), transform var(--dur) var(--ease-out); }
.pkg:hover { border-color: rgba(var(--rgb-amber), .5); transform: translateY(-3px); }
.pkg .best { font-size: var(--text-body); color: var(--text-muted); }
.pkg .price { font-size: var(--text-h3); font-weight: var(--fw-bold); color: var(--text); letter-spacing: -0.01em; }
.pkg .price small { display: block; font-size: var(--text-body-sm); font-weight: var(--fw-regular); color: var(--text-muted); letter-spacing: 0; margin-top: 2px; }
.pkg .ticks { font-size: var(--text-body); line-height: var(--lh-body); flex: 1; }
.pkg .ticks li::before { top: 2px; } .pkg .ticks li::after { top: 7px; }
.pkg .btn { width: 100%; }
.pkg .flag { position: absolute; top: var(--space-5); right: var(--space-5); font-size: var(--text-label); letter-spacing: var(--ls-label); text-transform: uppercase; font-weight: var(--fw-medium);
  padding: 2px 8px; border-radius: var(--radius-pill); color: var(--color-green); border: 1px solid rgba(var(--rgb-green), .4); }
@media (max-width: 960px) { .packages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .packages { grid-template-columns: 1fr; } .pkg { padding: var(--space-5); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(var(--space-6), 5vw, var(--space-9)); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-ways { display: grid; gap: var(--space-4); }
.contact-way { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(var(--rgb-secondary), .45); text-decoration: none; transition: border-color var(--dur-fast); }
.contact-way:hover { border-color: rgba(var(--rgb-amber), .5); }
.contact-way .ico { width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--radius-md); display: grid; place-items: center; background: rgba(var(--rgb-green), .12); color: var(--color-green); }
.contact-way .ico.amber { background: rgba(var(--rgb-amber), .12); color: var(--color-amber); }
.contact-way .ico svg { width: 24px; height: 24px; }
.contact-way strong { display: block; color: var(--text); font-weight: var(--fw-semibold); }
.contact-way span { color: var(--text-muted); font-size: var(--text-body); }
.form { display: grid; gap: var(--space-5); padding: clamp(var(--space-5), 4vw, var(--space-7)); border-radius: var(--radius-xl); border: 1px solid var(--line); background: rgba(var(--rgb-secondary), .45); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 620px) { .form .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label, .field legend { font-size: var(--text-body); font-weight: var(--fw-semibold); color: var(--text); padding: 0; }
.field .hint { font-size: var(--text-body-sm); line-height: var(--lh-body-sm); color: var(--text-muted); font-weight: var(--fw-regular); }
.field input, .field select, .field textarea { width: 100%; font: var(--fw-regular) var(--text-body-lg)/1.4 var(--font-primary); color: var(--text); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 14px 16px; min-height: 52px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%), linear-gradient(135deg, var(--color-muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: rgba(var(--rgb-muted), .8); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--color-amber); box-shadow: 0 0 0 3px rgba(var(--rgb-amber), .35); }
.field [aria-invalid="true"] { border-color: var(--color-accent); }
.field .err { font-size: var(--text-body-sm); color: var(--color-light); display: flex; gap: 6px; align-items: center; }
.field .err::before { content: "!"; width: 16px; height: 16px; border-radius: 50%; background: var(--color-accent); color: var(--color-white); font-size: 11px; font-weight: var(--fw-bold); display: grid; place-items: center; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choice { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.choice label { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); padding: 12px 18px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); cursor: pointer; font-weight: var(--fw-medium); min-height: 48px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label:has(input:checked) { border-color: var(--color-amber); background: rgba(var(--rgb-amber), .1); }
.choice label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--color-muted); }
.choice label:has(input:checked) .dot { border-color: var(--color-amber); background: radial-gradient(circle, var(--color-amber) 0 4px, transparent 5px); }
.form .privacy-note { font-size: var(--text-body-sm); line-height: var(--lh-body-sm); color: var(--text-muted); }
.form .privacy-note a { color: var(--text); }
.form .btn { justify-self: start; }
@media (max-width: 620px) { .form .btn { justify-self: stretch; } }

/* ---------- Prose (About, legal) ---------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font-size: var(--text-h2); line-height: var(--lh-h2); font-weight: var(--fw-bold); letter-spacing: var(--ls-h2); margin-top: var(--space-8); scroll-margin-top: 100px; }
.prose h3 { font-size: var(--text-h3); line-height: var(--lh-h3); font-weight: var(--fw-semibold); margin-top: var(--space-6); }
.prose p, .prose li { color: rgba(var(--rgb-light), .86); }
.prose ul { padding-left: 1.2em; display: grid; gap: var(--space-2); }
.prose li::marker { color: var(--color-amber); }
.prose a { color: var(--text); text-underline-offset: 3px; }
.prose a:hover { color: var(--color-amber); }
.prose .updated { color: var(--text-muted); font-size: var(--text-body); }
.prose .callout { padding: var(--space-5); border-radius: var(--radius-md); border: 1px solid rgba(var(--rgb-amber), .4); background: rgba(var(--rgb-amber), .06); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-body); }
.prose th, .prose td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text-muted); font-weight: var(--fw-semibold); }
.table-wrap { overflow-x: auto; }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-1); font-size: var(--text-body); }
.toc a { color: var(--text-muted); text-decoration: none; display: block; padding: 4px 0; }
.toc a:hover { color: var(--text); }

/* ---------- Values (About) ---------- */
.values { counter-reset: v; display: grid; gap: 0; }
.value { display: grid; grid-template-columns: 80px 1fr; gap: var(--space-5); padding-block: var(--space-6); border-top: 1px solid var(--line); }
.value::before { counter-increment: v; content: counter(v, decimal-leading-zero); font-size: var(--text-h2); font-weight: var(--fw-extrabold); color: var(--color-amber); letter-spacing: -0.03em; }
.value h3 { margin-bottom: var(--space-2); }
.value p { color: var(--text-muted); }
@media (max-width: 620px) { .value { grid-template-columns: 1fr; gap: var(--space-2); } }
.big-quote { font-size: clamp(var(--text-h2), 3.4vw, 48px); line-height: 1.15; font-weight: var(--fw-bold); letter-spacing: -0.03em; color: var(--text); max-width: 20em; }
.big-quote em { font-style: normal; color: var(--color-amber); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: var(--space-9); padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); margin-top: var(--section-y); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-7); }
.footer-brand { display: grid; gap: var(--space-4); align-content: start; }
.footer-brand img { width: 220px; height: auto; min-width: var(--logo-min-width); }
.footer-brand p { color: var(--text-muted); font-size: var(--text-body); line-height: var(--lh-body); max-width: 26em; }
.site-footer h2 { font-size: var(--text-label); letter-spacing: var(--ls-overline); text-transform: uppercase; font-weight: var(--fw-bold); color: var(--text-muted); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.site-footer ul a, .site-footer ul button { display: inline-block; padding: 6px 0; color: var(--text); text-decoration: none; font: var(--fw-regular) var(--text-body)/var(--lh-body) var(--font-primary); background: none; border: 0; cursor: pointer; }
.site-footer ul a:hover, .site-footer ul button:hover { color: var(--color-amber); }
.footer-legal { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-6);
  font-size: var(--text-body-sm); line-height: var(--lh-body-sm); color: var(--text-muted); }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Cookie banner (Accept and Reject: identical styling and weight) ---------- */
.cookie { position: fixed; z-index: 160; left: var(--space-4); right: var(--space-4); bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); max-width: 440px; margin-left: auto;
  background: var(--color-secondary); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: 0 20px 60px -10px rgba(var(--rgb-primary), .9); }
.cookie[hidden] { display: none !important; }
.cookie h2 { font-size: var(--text-h4); line-height: var(--lh-h4); font-weight: var(--fw-semibold); margin-bottom: var(--space-2); }
.cookie p { font-size: var(--text-body); line-height: var(--lh-body); color: var(--text-muted); margin-bottom: var(--space-4); }
.cookie p a { color: var(--text); }
.cookie .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.cookie .row .btn { width: 100%; }

/* ---------- 404 ---------- */
.notfound { min-height: 80svh; display: grid; place-items: center; text-align: center; padding-top: 120px; }
.notfound .inner { display: grid; gap: var(--space-5); justify-items: center; }

/* =====================================================================
   Home: "Inside the laptop" journey
   Static (no JS / reduced motion): chapters stack as normal sections.
   Live (.is-live): one pinned stage; laptop opens, camera zooms into the
   screen, chapters switch inside the app window. Driven by js/journey.js.
   ===================================================================== */
.journey { position: relative; }
.journey .laptop, .journey .j-intro, .journey .app-bar, .journey .app-nav, .journey .app-progress { display: none; }
.journey .app { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.journey .chapter { padding-block: var(--section-y); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.journey .chapter .h-section { margin: var(--space-3) 0 var(--space-6); max-width: 22em; }

/* chapter content */
.j-svcs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.j-svc { grid-column: span 2; position: relative; display: grid; align-content: start; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, rgba(var(--rgb-secondary), .75), rgba(var(--rgb-secondary), .35)); border: 1px solid var(--line); transition: border-color var(--dur), transform var(--dur) var(--ease-out); }
.j-svc:nth-child(4), .j-svc:nth-child(5) { grid-column: span 3; }
.j-svc:hover { border-color: rgba(var(--rgb-amber), .55); transform: translateY(-3px); }
.j-svc .ico { width: 44px; height: 44px; border-radius: var(--radius-md); display: grid; place-items: center; background: rgba(var(--rgb-amber), .12); color: var(--color-amber); }
.j-svc .ico svg { width: 22px; height: 22px; }
.j-svc .txt { display: grid; gap: 6px; }
.j-svc strong { font-size: var(--text-h3); line-height: var(--lh-h3); font-weight: var(--fw-semibold); letter-spacing: var(--ls-h3); }
.j-svc .txt span { color: var(--text-muted); font-size: var(--text-body); line-height: var(--lh-body); }
.j-svc .go { position: absolute; top: var(--space-5); right: var(--space-5); color: var(--color-amber); transition: transform var(--dur-fast) var(--ease-out); }
.j-svc:hover .go { transform: translateX(4px); }

.j-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; --p: 1; }
.j-steps::before, .j-steps::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.j-steps::after { background: linear-gradient(90deg, var(--color-amber), var(--color-green)); transform-origin: left; transform: scaleX(var(--p)); }
.j-steps li { position: relative; z-index: 1; padding-right: var(--space-5); }
.j-steps .dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line-strong);
  font-size: var(--text-body-sm); font-weight: var(--fw-bold); color: var(--text-muted); transition: border-color var(--dur), color var(--dur), transform var(--dur) var(--ease-out); }
.j-steps li.on .dot { border-color: var(--color-amber); color: var(--color-amber); }
.j-steps li.on:last-child .dot { border-color: var(--color-green); color: var(--color-green); }
.j-steps .txt { display: grid; gap: 6px; margin-top: var(--space-5); }
.j-steps strong { font-size: var(--text-h3); line-height: var(--lh-h3); font-weight: var(--fw-semibold); letter-spacing: var(--ls-h3); color: var(--text); }
.j-steps .txt span { color: var(--text-muted); font-size: var(--text-body); line-height: var(--lh-body); }
.j-more { margin-top: var(--space-6); }
.j-more a { color: var(--text); font-weight: var(--fw-semibold); text-underline-offset: 4px; }

.j-samples { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--space-7); align-items: center; }
.j-samples .h-section { margin-bottom: var(--space-5) !important; }
.j-tabs { display: grid; gap: var(--space-2); }
.j-tab { display: grid; gap: 2px; text-align: left; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; cursor: pointer; transition: border-color var(--dur), background-color var(--dur); }
.j-tab strong { font-size: var(--text-body-lg); line-height: var(--lh-body-lg); font-weight: var(--fw-semibold); }
.j-tab span { color: var(--text-muted); font-size: var(--text-body); line-height: var(--lh-body); }
.j-tab:hover { border-color: var(--line-strong); }
.j-tab.on { border-color: rgba(var(--rgb-amber), .6); background: rgba(var(--rgb-amber), .08); }
.j-samples .note-sample { margin-top: var(--space-4); }
.j-frames { position: relative; min-height: 360px; }
.j-frames .frame { position: absolute; inset: 0; border-radius: var(--radius-lg); background: var(--color-secondary); border: 1px solid rgba(var(--rgb-light), .08); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.j-frames .frame.on { opacity: 1; transform: none; }
.j-frames .frame .tag-sample { top: 14px; right: 14px; }
.j-frames .mini { padding: 22px; gap: 12px; font-size: var(--text-body); line-height: var(--lh-body); }
html:not(.js) .j-frames { min-height: 0; display: grid; gap: var(--space-4); }
html:not(.js) .j-frames .frame { position: relative; opacity: 1; transform: none; }

.j-why { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.j-card { padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(var(--rgb-secondary), .7), rgba(var(--rgb-secondary), .35)); }
.j-card .mark { display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--color-amber); margin-bottom: var(--space-4); }
.j-card p { margin-top: var(--space-2); color: var(--text-muted); font-size: var(--text-body); line-height: var(--lh-body); }

.j-faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--space-7); align-items: start; }
.j-faq .lead a { color: var(--text); }
.j-faq .faq summary { padding: 14px 0; font-size: var(--text-body-lg); }
.j-faq .faq summary::after { width: 28px; height: 28px; }
.j-faq .faq .answer { padding-bottom: var(--space-4); font-size: var(--text-body); line-height: var(--lh-body); }

.j-start { display: grid; justify-items: center; text-align: center; gap: var(--space-4); max-width: 760px; margin-inline: auto; }
.j-start .h-section { margin: 0 !important; }
.j-start .lead { margin-inline: auto; }
.j-start .actions { margin-top: var(--space-3); }
.j-start .small { font-size: var(--text-body); color: var(--text-muted); }
.j-start .small a { color: var(--text); }

@media (max-width: 960px) {
  .j-svcs { grid-template-columns: 1fr 1fr; } .j-svc, .j-svc:nth-child(4), .j-svc:nth-child(5) { grid-column: span 1; } .j-svc:nth-child(5) { grid-column: span 2; }
  .j-samples, .j-faq { grid-template-columns: 1fr; gap: var(--space-5); }
}
@media (max-width: 760px) {
  .j-svcs { grid-template-columns: 1fr; gap: 8px; } .j-svc, .j-svc:nth-child(5) { grid-column: span 1; }
  .j-svc { grid-template-columns: 40px 1fr; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius-md); }
  .j-svc .ico { width: 40px; height: 40px; } .j-svc .go { display: none; }
  .j-svc strong { font-size: var(--text-body-lg); line-height: 22px; letter-spacing: 0; } .j-svc .txt { gap: 2px; } .j-svc .txt span { font-size: 13px; line-height: 19px; }
  .j-steps { grid-template-columns: 1fr; gap: 12px; }
  .j-steps::before, .j-steps::after { left: 17px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .j-steps::after { background: linear-gradient(180deg, var(--color-amber), var(--color-green)); transform-origin: top; transform: scaleY(var(--p)); }
  .j-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 0; align-items: start; }
  .j-steps .dot { width: 36px; height: 36px; font-size: var(--text-label); }
  .j-steps .txt { margin-top: 0; gap: 2px; } .j-steps strong { font-size: var(--text-body-lg); line-height: 22px; letter-spacing: 0; } .j-steps .txt span { font-size: 13px; line-height: 19px; }
  .j-frames { min-height: 300px; } .j-samples .note-sample { margin-top: 10px; } .j-samples .h-section { margin-bottom: 14px !important; } .j-frames .mini { padding: 16px; gap: 10px; font-size: var(--text-body-sm); }
  .js .j-tab:not(.on) span { display: none; } .j-tab { padding: 10px 14px; }
  .j-why { grid-template-columns: 1fr; gap: 8px; } .j-card { padding: 14px 16px; border-radius: var(--radius-md); } .j-card .mark { display: none; }
  .j-card p { font-size: 13px; line-height: 19px; margin-top: 2px; } .j-card .h3 { font-size: var(--text-body-lg); line-height: 22px; }
  .j-faq .faq summary { font-size: var(--text-body); padding: 12px 0; } .j-faq .faq .answer { font-size: 13px; line-height: 19px; padding-right: 0; }
}

/* ---------- Live mode ---------- */
.journey.is-live { height: var(--jh, 900svh); }
.journey.is-live .j-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.journey.is-live .laptop, .journey.is-live .j-intro { display: block; }
.journey.is-live .app-bar { display: flex; }
.journey.is-live .app-nav { display: block; }
.journey.is-live .app-progress { display: block; }

.j-intro { position: absolute; left: 0; right: 0; top: calc(var(--hdr, 80px) + clamp(16px, 5vh, 56px)); text-align: center; padding-inline: var(--gutter); z-index: 2; }
.j-intro .overline { justify-content: center; }
.j-intro-h { margin-top: var(--space-3); font-size: clamp(34px, 4.6vw, 68px); line-height: 1; font-weight: var(--fw-extrabold); letter-spacing: -0.04em; color: var(--text); }

.laptop { --lw: min(680px, 80vw); position: absolute; z-index: 1; width: var(--lw); left: calc(50% - var(--lw) / 2);
  top: max(calc(var(--hdr, 80px) + clamp(110px, 19vh, 180px)), calc(50% - var(--lw) * .3)); perspective: 1700px; perspective-origin: 50% -60%; will-change: transform; }
.laptop::before { content: ""; position: absolute; left: 10%; right: 10%; top: 5%; height: 70%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--rgb-amber), .28), transparent); filter: blur(30px); opacity: var(--glow, 0); }
.lid { position: relative; width: 88%; margin-inline: auto; aspect-ratio: 16 / 10.2; transform-origin: 50% 100%; transform-style: preserve-3d; transform: rotateX(var(--lid, -84deg)); }
.lid-front, .lid-back { position: absolute; inset: 0; border-radius: 14px 14px 4px 4px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lid-front { background: #0D0D0D; border: 1px solid rgba(var(--rgb-muted), .35); padding: 2.2%; box-shadow: inset 0 0 0 4px var(--color-secondary); }
.lid-back { transform: rotateX(180deg); display: grid; place-items: center; border: 1px solid rgba(var(--rgb-muted), .3);
  background: linear-gradient(160deg, #2A2A2A, #0D0D0D 85%); }
.lid-mark { width: 9%; aspect-ratio: 1; border-radius: 30%; border: 1px solid rgba(var(--rgb-muted), .45); }
.lt-screen { position: relative; height: 100%; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; opacity: var(--screen, 0);
  background: radial-gradient(120% 90% at 85% 0%, rgba(var(--rgb-amber), .08), transparent 60%), var(--bg); }
.m-bar { height: 7%; display: flex; align-items: center; gap: 1.2%; padding-inline: 2%; border-bottom: 1px solid var(--line); }
.m-bar i { width: 1.4%; aspect-ratio: 1; border-radius: 50%; background: rgba(var(--rgb-muted), .45); }
.m-bar b { margin-left: 2%; width: 26%; height: 44%; border-radius: 99px; background: rgba(var(--rgb-secondary), .9); }
.m-body { flex: 1; display: flex; min-height: 0; }
.m-nav { width: 17%; padding: 3% 1.6%; display: flex; flex-direction: column; gap: 5%; border-right: 1px solid var(--line); }
.m-nav b { height: 5%; border-radius: 3px; background: rgba(var(--rgb-muted), .2); }
.m-nav b:first-child { background: rgba(var(--rgb-amber), .6); }
.m-main { flex: 1; padding: 4% 4.5%; display: flex; flex-direction: column; gap: 3%; }
.m-over { width: 14%; height: 2.4%; border-radius: 2px; background: var(--color-amber); }
.m-h { width: 72%; height: 7%; border-radius: 3px; background: rgba(var(--rgb-light), .85); }
.m-h2 { width: 48%; }
.m-cards { flex: 1; margin-top: 3%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2.4%; }
.m-cards b { grid-column: span 2; border-radius: 6px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(var(--rgb-secondary), .9), rgba(var(--rgb-secondary), .4)); }
.m-cards b:nth-child(4), .m-cards b:nth-child(5) { grid-column: span 3; }
.deck { position: absolute; left: -4%; right: -4%; top: 100%; height: 100%; transform-origin: 50% 0; transform: rotateX(90deg); border-radius: 4px 4px 18px 18px;
  background: linear-gradient(180deg, #2A2A2A, #0D0D0D); border: 1px solid rgba(var(--rgb-muted), .3); }
.deck::before { content: ""; position: absolute; left: 8%; right: 8%; top: 7%; height: 46%; border-radius: 6px; opacity: .55;
  background: repeating-linear-gradient(90deg, rgba(var(--rgb-muted), .18) 0 5.2%, transparent 5.2% 6.2%), repeating-linear-gradient(180deg, transparent 0 14%, rgba(13, 13, 13, 1) 14% 20%); }
.deck::after { content: ""; position: absolute; left: 36%; right: 36%; top: 60%; height: 30%; border-radius: 6px; border: 1px solid rgba(var(--rgb-muted), .25); }
.lid-wrap { position: relative; transform-style: preserve-3d; }

.journey.is-live .app { position: absolute; z-index: 3; top: calc(var(--hdr, 80px) + 6px); left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; border-radius: var(--radius-xl); border: 1px solid rgba(var(--rgb-muted), .28); overflow: hidden; opacity: 0;
  background: radial-gradient(70% 60% at 90% 0%, rgba(var(--rgb-amber), .07), transparent 70%), var(--bg); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9); }
.app-bar { align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex: none; }
.app-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(var(--rgb-muted), .45); }
.app-bar .url { margin-left: 10px; padding: 4px 14px; border-radius: var(--radius-pill); background: rgba(var(--rgb-secondary), .8); font-size: var(--text-body-sm); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-bar .url b { color: var(--text); font-weight: var(--fw-semibold); }
.app-bar .tag-sample { position: static; margin-left: auto; flex: none; }
.journey.is-live .app-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px 1fr; }
.app-nav { border-right: 1px solid var(--line); padding: var(--space-5) var(--space-3); overflow: auto; }
.app-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.app-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md); color: var(--text-muted); text-decoration: none; font-size: var(--text-body); font-weight: var(--fw-medium); transition: background-color var(--dur-fast), color var(--dur-fast); }
.app-nav a .n { font-size: var(--text-label); letter-spacing: var(--ls-label); font-weight: var(--fw-bold); color: var(--text-muted); }
.app-nav a:hover { color: var(--text); }
.app-nav a[aria-current="step"] { background: rgba(var(--rgb-light), .07); color: var(--text); }
.app-nav a[aria-current="step"] .n { color: var(--color-amber); }
.journey.is-live .app-main { position: relative; min-width: 0; overflow: hidden; }
.journey.is-live .chapter { position: absolute; inset: 0; padding: clamp(20px, 3.4vw, 56px); border: 0; display: flex; align-items: center; justify-content: center; opacity: 0; will-change: opacity, transform; }
.journey.is-live .chapter .h-section { font-size: clamp(26px, 2.9vw, 46px); margin: var(--space-3) 0 var(--space-5); }
.journey.is-live .ch-inner { width: 100%; max-width: 1100px; transform-origin: 50% 50%; }
.app-progress { height: 3px; background: var(--line); flex: none; }
.app-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--color-amber), var(--color-green)); transform-origin: left; transform: scaleX(var(--jp, 0)); }
@media (max-width: 960px) { .journey.is-live .app-body { grid-template-columns: 1fr; } .journey.is-live .app-nav { display: none; } }
@media (max-width: 760px) {
  .journey.is-live .app { left: 8px; right: 8px; bottom: 8px; border-radius: var(--radius-lg); }
  .journey.is-live .chapter { padding: 18px 16px; }
  .journey.is-live .chapter .h-section { font-size: 25px; line-height: 1.12; margin: 8px 0 16px; }
  .app-bar .tag-sample { display: none; }
}
html.journey-snap { scroll-snap-type: y proximity; }
