/* Studion landing page
   Paper-and-ink palette with a night-study accent: ink blue for actions,
   lamp amber for highlights. Fraunces for display, Inter for text,
   JetBrains Mono for labels. */

:root {
  --paper: #f6f4ee;
  --card: #ffffff;
  --sunk: #ecebe3;
  --ink: #171a2e;
  --ink-2: #363a52;
  --muted: #5f6378;
  --line: #e3e1d8;
  --line-2: #cfcdc3;

  --accent: #3a4bb0;
  --accent-hover: #2f3e97;
  --accent-bg: #e7e9f8;
  --glow: #ffc861;
  --glow-2: #ffdf9a;

  --band: #1d2346;
  --band-2: #272e58;
  --band-ink: #f3f1ea;
  --band-muted: #b9bcd8;
  --band-line: #3a4270;

  --ok: #24704a;   --ok-bg: #e2f1e7;
  --warn: #8a5a07; --warn-bg: #faf0d8;
  --bad: #ad3a2b;  --bad-bg: #fbe7e2;

  --t1-bg: #ebeafb; --t1-fg: #46409c;
  --t2-bg: #fbf2cf; --t2-fg: #775a0a;
  --t3-bg: #fbe7da; --t3-fg: #94481c;
  --t4-bg: #e2eef3; --t4-fg: #2b5f7d;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 3vw, 32px);
  --radius: 20px;
  --shadow: 0 22px 40px -28px rgba(23, 26, 46, .45), 0 2px 6px -2px rgba(23, 26, 46, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.022em; font-optical-sizing: auto; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.06; }
h2 span { color: var(--muted); }
h2 em, h1 em { font-style: italic; font-weight: 440; }
h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.12; letter-spacing: -.015em; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.muted { color: var(--muted); }
.lede { font-size: 17px; color: var(--ink-2); max-width: 46ch; margin-top: 18px; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.eyebrow--band { color: var(--glow); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  font: 500 14px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 14px -8px rgba(58, 75, 176, .8); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn--glow { background: var(--glow); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(255, 200, 97, .8); }
.btn--glow:hover { background: var(--glow-2); }
.btn--light { background: rgba(255, 255, 255, .92); color: var(--ink); }
.btn--lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.link { display: inline-block; margin-top: 22px; color: var(--accent); font-weight: 500; font-size: 15px; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link--light { color: var(--band-ink); margin-top: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header: floating pill */
.nav { position: fixed; inset: 14px 0 auto; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.nav__inner {
  pointer-events: auto;
  max-width: var(--wrap); margin: 0 auto; height: 58px;
  display: flex; align-items: center; gap: 28px; padding: 0 10px 0 18px;
  border-radius: 16px; border: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s, box-shadow .35s, color .35s;
  color: var(--band-ink);
}
.nav.is-stuck .nav__inner {
  background: rgba(246, 244, 238, .86); color: var(--ink);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(23, 26, 46, .35);
}
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 21px/1 var(--sans); letter-spacing: -.035em; }
.logo__mark { width: 26px; height: 26px; }
.nav__links { display: flex; gap: 24px; margin-right: auto; }
.nav__links a { text-decoration: none; font-size: 14px; opacity: .82; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__cta { display: flex; gap: 8px; }
.nav:not(.is-stuck) .btn--ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: var(--band-ink); }

/* Hero */
.hero { position: relative; min-height: min(860px, 100vh); display: flex; align-items: flex-start; overflow: hidden; background: #1b2150; color: var(--band-ink); }
.hero__art { position: absolute; inset: 0; }
.hero__art svg { width: 100%; height: 100%; }
.grain {
  position: absolute; inset: 0; opacity: .35; mix-blend-mode: soft-light; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__copy { position: relative; z-index: 2; width: 100%; padding-top: clamp(120px, 15vh, 160px); }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.03em; max-width: 13ch; }
.hero h1 em { position: relative; color: var(--glow-2); }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: .1em; bottom: -.08em; height: .12em;
  background: var(--glow); border-radius: 99px; opacity: .85;
  transform-origin: left; transform: scaleX(0); animation: underline 1.1s .7s var(--ease) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero__sub { margin-top: 26px; max-width: 470px; }
.hero__sub p { font-size: 18px; color: #e6e4f0; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 26px; }
.hero__actions--center { justify-content: center; }
.stars circle { animation: twinkle 4s ease-in-out infinite; }
.stars circle:nth-child(3n) { animation-delay: 1.3s; }
.stars circle:nth-child(3n+1) { animation-delay: 2.6s; }
@keyframes twinkle { 50% { opacity: .25; } }
.lamp-glow { animation: lamp 5s ease-in-out infinite; transform-origin: 600px 520px; }
@keyframes lamp { 50% { opacity: .75; transform: scale(.94); } }
.windows rect { animation: window 9s steps(1) infinite; }
.windows rect:nth-child(4n) { animation-delay: 3s; }
.windows rect:nth-child(5n) { animation-delay: 6s; }
@keyframes window { 0%, 100% { opacity: inherit; } 50% { opacity: .3; } }

.hero__chips {
  position: absolute; z-index: 1; right: max(4%, calc((100% - var(--wrap)) / 2 - 40px)); top: 25%; width: 320px;
  display: grid; gap: 10px; pointer-events: none;
  animation: stackIn .8s .3s var(--ease) both;
}
.chip {
  position: relative; z-index: calc(10 - var(--i));
  background: rgba(255, 255, 255, .96); color: var(--ink);
  border-radius: 16px; padding: 12px 14px; font-size: 13px; line-height: 1.45;
  box-shadow: 0 18px 40px -18px rgba(10, 12, 30, .65), 0 1px 0 rgba(255, 255, 255, .6) inset;
  transition: transform .75s var(--ease), opacity .6s var(--ease);
  transition-delay: calc(var(--i) * .14s);
}
/* Collapsed: every card sits tucked behind the first one, like a notification stack. JS sets --lift. */
.hero__chips.is-stacked .chip { transform: translateY(var(--lift, 0)) scale(calc(1 - var(--i) * .06)); }
.hero__chips.is-stacked .chip:not(:first-child) { opacity: .75; }
.hero__chips.is-open { animation: stackIn .8s .3s var(--ease) both, bob 8s 2.5s ease-in-out infinite; }
.chip__head { display: flex; justify-content: space-between; align-items: center; }
.chip__app { font: 500 11px var(--mono); color: var(--accent); letter-spacing: .04em; }
.chip__time { font-size: 11px; color: var(--muted); }
.chip p { margin-top: 4px; }
.chip--row { display: flex; align-items: center; gap: 12px; }
.chip--row b, .chip__line b { display: block; font-weight: 600; font-size: 13.5px; }
.chip--row span:not(.chip__icon), .chip__sub { display: block; color: var(--muted); font-size: 12px; }
.chip__icon { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; }
.chip__icon--ok { background: var(--ok-bg); color: var(--ok); }
.chip__line { display: flex; justify-content: space-between; align-items: baseline; }
.chip__line .mono { color: var(--accent); font-size: 12px; font-weight: 500; }
.chip .bar { display: block; height: 6px; background: var(--sunk); border-radius: 9px; margin: 8px 0 6px; overflow: hidden; }
.chip .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #6f7fe0); border-radius: 9px; transform-origin: left; }
.hero__chips.is-open .bar i { animation: barGrow 1.2s .9s var(--ease) both; }
@keyframes barGrow { from { transform: scaleX(0); } }
@keyframes stackIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(-6px); } }

.torn {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; z-index: 3; background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14 L40 9 L90 15 L140 8 L210 13 L260 6 L330 12 L380 9 L450 15 L520 7 L580 12 L640 8 L700 14 L770 9 L830 13 L900 6 L960 12 L1030 9 L1090 15 L1160 8 L1220 12 L1290 7 L1350 13 L1400 9 L1440 12 V26 H0Z'/%3E%3C/svg%3E") center / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14 L40 9 L90 15 L140 8 L210 13 L260 6 L330 12 L380 9 L450 15 L520 7 L580 12 L640 8 L700 14 L770 9 L830 13 L900 6 L960 12 L1030 9 L1090 15 L1160 8 L1220 12 L1290 7 L1350 13 L1400 9 L1440 12 V26 H0Z'/%3E%3C/svg%3E") center / 100% 100%;
}

/* Works-with strip */
.strip { border-bottom: 1px solid var(--line); }
.strip__inner { display: flex; align-items: center; gap: 28px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; }
.strip li { font: 500 15px var(--sans); color: var(--ink-2); }
.strip small { font: 500 10px var(--mono); text-transform: uppercase; color: var(--muted); background: var(--sunk); padding: 2px 6px; border-radius: 6px; margin-left: 4px; vertical-align: 2px; }

/* Sections */
.sec { padding: clamp(72px, 9vw, 112px) 0; }
.sec + .sec:not(.band):not(.sec--sunk) { border-top: 1px solid var(--line); }
.sec--sunk { background: var(--sunk); }
.sec__head { margin-bottom: 40px; }

/* Tabs */
.tabs__list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.tabs__list button {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 12px 14px; margin-bottom: -1px;
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  font: 500 15px var(--sans); color: var(--muted); transition: color .2s;
}
.tabs__list button svg { width: 15px; height: 15px; }
.tabs__list button:hover { color: var(--ink); }
.tabs__list button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs__list button .prog { position: absolute; left: 0; bottom: -2px; height: 2px; background: var(--glow); width: 0; }
.tabs__panel {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 4vw, 52px);
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px; background-position: -9px -9px;
}
.tabs__panel[hidden] { display: none; }
.tabs__panel.is-in .panel__text > * { animation: fadeUp .6s var(--ease) both; }
.tabs__panel.is-in .panel__text > *:nth-child(2) { animation-delay: .05s; }
.tabs__panel.is-in .panel__text > *:nth-child(3) { animation-delay: .1s; }
.tabs__panel.is-in .panel__text > *:nth-child(4) { animation-delay: .15s; }
.tabs__panel.is-in .mock { animation: popIn .7s .1s var(--ease) both; }
.panel__text { background: var(--card); padding: 6px 0; }
.panel__text h3 { margin-top: 14px; }
.panel__text p { margin-top: 14px; color: var(--ink-2); max-width: 42ch; }
.panel__art { position: relative; min-height: 330px; display: grid; place-items: center; }
.blob { position: absolute; inset: 4% 2%; border-radius: 46% 54% 52% 48% / 55% 44% 56% 45%; filter: url(#wash); opacity: .9; }
.blob--peach { background: #f8d8c5; }
.blob--sky { background: #d6e3f5; }
.blob--butter { background: #f9eab6; }
.blob--lav { background: #dedcf6; }
.blob--sage { background: #d5e8d9; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) rotate(-1deg) scale(.97); } to { opacity: 1; transform: none; } }

/* Mock UI cards */
.mock { position: relative; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); width: min(100%, 400px); font-size: 14px; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mock__bar span { margin-left: 8px; font: 11px var(--mono); color: var(--muted); background: var(--sunk); border-radius: 6px; padding: 3px 8px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__body { position: relative; padding: 16px; overflow: hidden; }
.mock__body .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.mock__body .row b { font-weight: 500; }
.scan-line { position: absolute; left: 0; right: 0; height: 40px; top: -40px; background: linear-gradient(transparent, rgba(255, 200, 97, .35), transparent); animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0% { top: -40px; } 70%, 100% { top: 100%; } }
.toast { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 500; font-size: 13px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 10px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); letter-spacing: .02em; padding: 3px 8px; border-radius: 7px; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--bad { background: var(--bad-bg); color: var(--bad); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--ok { background: #3fae6e; box-shadow: 0 0 0 3px rgba(63, 174, 110, .2); }

.mock--week { padding: 16px; }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.day { display: flex; flex-direction: column; gap: 5px; min-height: 190px; }
.day .mono { color: var(--muted); font-size: 10px; text-align: center; }
.blk { display: block; font: 500 10.5px/1.25 var(--sans); font-style: normal; padding: 6px; border-radius: 7px; height: calc(var(--h) * 34px); }
.blk--a { background: var(--t1-bg); color: var(--t1-fg); }
.blk--b { background: var(--t3-bg); color: var(--t3-fg); }
.blk--c { background: var(--sunk); color: var(--muted); }
.blk--d { background: var(--t4-bg); color: var(--t4-fg); }

.mock--doc { padding: 20px 22px; }
.mock--doc h4 { font-size: 19px; margin-top: 10px; }
.mock--doc ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); }
.mock--doc li { margin: 4px 0; }
.callout { margin-top: 14px; background: var(--paper); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); display: grid; gap: 6px; justify-items: start; }

.mock--chat { padding: 16px; display: grid; gap: 10px; }
.mock--chat .q { justify-self: end; background: var(--accent); color: #fff; padding: 9px 12px; border-radius: 12px 12px 4px 12px; max-width: 85%; }
.mock--chat .q--small { font-size: 13px; opacity: .9; }
.mock--chat .a { background: var(--paper); padding: 10px 12px; border-radius: 12px 12px 12px 4px; color: var(--ink-2); }
.src { display: block; margin-top: 8px; color: var(--accent); font-size: 11px; }

.mock--phone { width: 280px; padding: 18px 14px; border-radius: 30px; border: 8px solid var(--ink); display: grid; gap: 8px; }

.bubble { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.4; }
.bubble.in { background: #e9e9ee; color: var(--ink); border-bottom-left-radius: 5px; justify-self: start; }
.bubble.out { background: #2f7cf6; color: #fff; border-bottom-right-radius: 5px; justify-self: end; }

/* Split sections */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split--rev { grid-template-columns: 1fr 1fr; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.card__head b { display: block; font-weight: 600; }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { padding: 16px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; justify-items: start; }
.tasks li:last-child { border-bottom: 0; }
.tasks p { font-size: 15px; }
.tasks small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Band (dark) section */
.band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(rgba(255, 200, 97, .18), transparent 65%); }
.band h2 span { color: var(--band-muted); }
.band h2 em { color: var(--glow-2); }
.band .lede { color: #d6d8ea; }
.features { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.features li { display: flex; gap: 12px; }
.features i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--band-2); border: 1px solid var(--band-line); color: var(--glow); font-style: normal; font-size: 13px; }
.features b { display: block; font-weight: 600; font-size: 15px; }
.features span { display: block; color: var(--band-muted); font-size: 14px; }

.phone { justify-self: center; width: 330px; background: #fff; color: var(--ink); border-radius: 42px; border: 10px solid #0d1024; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); overflow: hidden; position: relative; }
.phone__top { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; border-bottom: 1px solid var(--line); background: #f7f7f9; }
.phone__top .mono { margin-left: auto; color: var(--muted); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 600 14px var(--serif); }
.phone__body { padding: 16px 14px 22px; display: grid; gap: 8px; min-height: 420px; align-content: start; }
.phone .bubble { opacity: 0; transform: translateY(10px) scale(.98); }
.phone.is-visible .bubble { animation: bubbleIn .5s calc(var(--i) * .55s + .2s) var(--ease) forwards; }
@keyframes bubbleIn { to { opacity: 1; transform: none; } }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { border-radius: 22px; padding: 22px 22px 26px; box-shadow: 0 22px 36px -30px rgba(23, 26, 46, .5); transition: transform .35s var(--ease), box-shadow .35s; }
.tile:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 30px 40px -28px rgba(23, 26, 46, .5); }
.tile h3 { font-size: 22px; margin-top: 10px; }
.tile p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.tile__art { height: 120px; width: 100%; margin: 0 auto; }
.tile--1 { background: var(--t1-bg); } .tile--1 h3 { color: var(--t1-fg); }
.tile--2 { background: var(--t2-bg); } .tile--2 h3 { color: var(--t2-fg); }
.tile--3 { background: var(--t3-bg); } .tile--3 h3 { color: var(--t3-fg); }
.tile--4 { background: var(--t4-bg); } .tile--4 h3 { color: var(--t4-fg); }

/* Pricing */
.placeholder-flag { display: inline-block; margin-bottom: 16px; font: 500 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--warn); background: var(--warn-bg); border: 1px dashed #d9a441; padding: 5px 10px; border-radius: 8px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.plan--feature { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg), var(--shadow); }
.plan__price b { font: 500 40px/1 var(--serif); letter-spacing: -.03em; }
.plan__price span { color: var(--muted); margin-left: 6px; }
.plan ul { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; align-content: start; gap: 8px; color: var(--ink-2); font-size: 15px; flex: 1; }
.plan li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 600; }
.plan .btn { align-self: flex-start; }

/* CTA */
.cta { position: relative; text-align: center; padding: clamp(80px, 10vw, 120px) 0 clamp(200px, 22vw, 300px); overflow: hidden; }
.cta__art { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(220px, 26vw, 360px); }
.cta__art svg { width: 100%; height: 100%; }
.cta__inner { position: relative; }
.cta h2 { font-size: clamp(36px, 4.6vw, 58px); }
.cta .lede { margin: 16px auto 0; }

/* Footer */
.foot { background: #4b7a5b; color: #eef3ea; padding: 8px 0 28px; }
.foot__inner { display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot .muted { color: #c9dccd; font-size: 14px; }
.foot__links { display: flex; gap: 20px; font-size: 14px; }
.foot__links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.foot__legal { grid-column: 1 / -1; font-size: 13px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.tiles .reveal:nth-child(2), .plans .reveal:nth-child(2) { transition-delay: .08s; }
.tiles .reveal:nth-child(3), .plans .reveal:nth-child(3) { transition-delay: .16s; }
.tiles .reveal:nth-child(4) { transition-delay: .24s; }


/* Write tab: lecture page */
.auto-block { margin-top: 10px; background: var(--accent-bg); color: var(--ink-2); border-radius: 8px; padding: 8px 10px; font-size: 13px; border-left: 3px solid var(--accent); }
.auto-block .mono { display: block; font-size: 10px; color: var(--accent); margin-bottom: 2px; }
.checks { list-style: none; padding-left: 0 !important; }
.checks li { position: relative; padding-left: 24px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border: 1.5px solid var(--line-2); border-radius: 4px; }
.checks li.done { color: var(--muted); }
.checks li.done::before { background: var(--accent); border-color: var(--accent); }
.checks li.done::after { content: "✓"; position: absolute; left: 3px; top: 0; color: #fff; font-size: 11px; font-weight: 700; }
.slash { margin-top: 12px; display: inline-flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; box-shadow: 0 8px 18px -12px rgba(23,26,46,.4); }
.slash .mono { color: var(--accent); font-size: 14px; }

/* Track tab: board */
.mock--board { padding: 14px; }
.views { display: flex; gap: 14px; font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.views b { color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 3px; font-weight: 500; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.col { background: var(--paper); border-radius: 10px; padding: 8px; display: grid; gap: 6px; align-content: start; min-height: 200px; }
.col > .mono { font-size: 10px; color: var(--muted); }
.card-sm { display: block; font-style: normal; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; }
.card-sm b { display: block; font-size: 12px; font-weight: 600; }
.card-sm em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); }
.card-sm--hot { border-color: #e3b25c; box-shadow: 0 0 0 2px var(--warn-bg); }
.card-sm--done b { text-decoration: line-through; color: var(--muted); }

/* Prepare tab: quiz */
.mock--quiz { padding: 20px 22px; }
.mock--quiz h4 { font-size: 20px; margin-top: 8px; }
.opts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; counter-reset: o; }
.opts li { counter-increment: o; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; display: flex; gap: 10px; }
.opts li::before { content: counter(o, upper-alpha); font: 500 12px var(--mono); color: var(--muted); }
.opts li.right { border-color: #7cc59a; background: var(--ok-bg); color: var(--ok); }
.opts li.right::after { content: "✓"; margin-left: auto; font-weight: 700; }

/* Review tab: weak topics */
.mock--weak { padding: 20px 22px; }
.topic { display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.meter { height: 8px; background: var(--sunk); border-radius: 9px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #e07a5f, var(--glow) 60%, #5bb381); background-size: 120px 100%; }
.tabs__panel.is-in .meter i { animation: grow 1.1s .3s var(--ease) both; }
@keyframes grow { from { width: 0; } }

/* Exam prep band: plan card */
.plan-card { justify-self: center; width: min(100%, 400px); background: var(--card); color: var(--ink); border-radius: 22px; padding: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.plan-card__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.plan-card__head .mono { color: var(--muted); display: block; }
.plan-card__head b { font: 500 26px/1.1 var(--serif); letter-spacing: -.02em; }
.ring { --p: 50; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--sunk) 0); }
.ring span { width: 48px; height: 48px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font: 600 13px var(--sans); }
.days { list-style: none; margin: 10px 0 0; padding: 0; }
.days li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 11px 6px; border-radius: 10px; font-size: 14px; opacity: 0; transform: translateX(10px); }
.plan-card.is-visible .days li { animation: bubbleIn .5s calc(var(--i) * .15s + .2s) var(--ease) forwards; }
.days .mono { color: var(--muted); font-size: 11px; }
.days b { font-weight: 500; }
.days em { font-style: normal; font-size: 12px; color: var(--muted); }
.days .is-done b { color: var(--muted); text-decoration: line-through; }
.days .is-done em { color: var(--ok); }
.days .is-today { background: var(--warn-bg); }
.days .is-today em { color: var(--warn); font-weight: 600; }

/* Add-ons strip */
.sec--tight { padding: 56px 0; }
.addons { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; }
.addons h3 { margin-top: 10px; }
.addons ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.addons li { border: 1px dashed var(--line-2); border-radius: 16px; padding: 16px; }
.addons b { display: block; font-weight: 600; }
.addons li span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.plans__note { margin-top: 22px; text-align: center; color: var(--ink-2); }
@media (max-width: 820px) { .addons, .addons ul { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .days li { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .hero__chips { top: auto; bottom: 9%; right: 5%; width: 300px; }
  .hero__chips .chip:nth-child(2) { display: none; }
}
@media (max-width: 820px) {
  .tabs__panel, .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev .phone { order: 2; }
  .plans { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero { min-height: 760px; }
}
@media (max-width: 560px) {
  .nav__cta .btn--ghost { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .hero__chips { left: 5%; right: 5%; width: auto; bottom: 5%; }
  .moon { display: none; }
  .hero__sub p { font-size: 16px; }
  .foot__inner { grid-template-columns: 1fr; }
  .phone { width: 100%; max-width: 330px; }
}

/* Mobile hardening */
.nw { white-space: nowrap; }
.tabs__list button { white-space: nowrap; flex: none; }
.tabs__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.mock__bar span { min-width: 0; }
.panel__art { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.split > *, .tiles > *, .plans > * { min-width: 0; }
@media (max-width: 820px) {
  .tabs__panel { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px 20px; }
  .panel__art { min-height: 0; padding: 18px 0; }
  .tabs__list { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter);
    -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); }
  .tabs__list button { padding: 12px 12px; font-size: 14px; }
  .split { gap: 40px; }
  .plan-card { padding: 18px; }
  .link { padding: 10px 0; margin-top: 12px; }
  .link--light { padding: 10px 0; }
  .foot__links { flex-wrap: wrap; gap: 4px 18px; }
  .foot__links a { padding: 10px 0; }
  .logo { padding: 9px 0; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(34px, 10.5vw, 44px); }
  .hero__copy { padding-top: 104px; }
  .hero__actions .btn { height: 46px; }
  .hero__sub p, .link--light { text-shadow: 0 1px 14px rgba(20, 24, 60, .75); }
  .mock__body .row { flex-wrap: wrap; }
  .toast { white-space: normal; }
  .week, .board { gap: 5px; }
  .col { min-height: 0; }
  .days li { grid-template-columns: 38px 1fr auto; gap: 8px; font-size: 13px; }
  .plan-card__head b { font-size: 22px; }
  .tile { padding: 18px 18px 22px; }
  .sec { padding: 64px 0; }
  .cta { padding-bottom: 190px; }
  .cta__art { height: 200px; }
}
@media (max-width: 360px) {
  .nav__inner { padding: 0 8px 0 12px; }
  .nav .btn--primary { padding: 0 12px; }
  .board { grid-template-columns: 1fr 1fr; }
  .board .col:last-child { display: none; }
  .opts li { font-size: 13px; }
  .topic { grid-template-columns: 1fr 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .phone .bubble { opacity: 1; transform: none; }
}
