/* iloveframes.app
   Quiet, warm surfaces; colour only where it means something.
   The pink-to-violet of the app is the accent, never the wallpaper. */

:root {
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;

  --pink: #ff4d8d;
  --rose: #ff6b9d;
  --orchid: #c084fc;
  --violet: #8b5cf6;
  --deep: #7c3aed;
  --brand: linear-gradient(110deg, #ff4d8d 0%, #c056e9 52%, #7c3aed 100%);
  --brand-text: linear-gradient(100deg, #ff5c97 0%, #c084fc 55%, #8b5cf6 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --max: 1160px;

  /* light: warm paper */
  --bg: #fbfaf7;
  --bg-2: #f4f2ed;
  --surface: #ffffff;
  --surface-2: #f8f6f2;
  --ink: #16131c;
  --ink-2: #4b4555;
  --ink-3: #8b8494;
  --line: rgba(22, 19, 28, .09);
  --line-2: rgba(22, 19, 28, .14);
  --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 1px 2px rgba(22, 19, 28, .05), 0 12px 32px -12px rgba(22, 19, 28, .14);
  --shadow-lg: 0 2px 4px rgba(22, 19, 28, .04), 0 40px 80px -30px rgba(40, 20, 60, .28);
  --glow: rgba(255, 77, 141, .10);
  --glow-2: rgba(139, 92, 246, .10);
  --accent-ink: #b0307a;
  --noise-opacity: .035;
  --stage: #ece8f3;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #08080b;
  --bg-2: #0d0d12;
  --surface: #121218;
  --surface-2: #17171f;
  --ink: #f3f1f6;
  --ink-2: #b6b0bf;
  --ink-3: #7a7483;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -20px rgba(0, 0, 0, .7);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 50px 100px -30px rgba(0, 0, 0, .9);
  --glow: rgba(255, 77, 141, .13);
  --glow-2: rgba(139, 92, 246, .14);
  --accent-ink: #ff8fb6;
  --noise-opacity: .045;
  --stage: #0f0e15;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
body::before {
  /* film grain: keeps big flat areas from feeling digital */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255, 77, 141, .25); }
:focus-visible { outline: 2px solid var(--orchid); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.grad { background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; font-size: 17px; }
.brand svg { width: 30px; height: 30px; }
.brand b { font-weight: 600; }
.brand span { background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; font-size: 14.5px; color: var(--ink-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
:root[data-theme='dark'] .theme-toggle .sun { display: block; }
:root[data-theme='dark'] .theme-toggle .moon { display: none; }

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 20px; border-radius: 13px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 550; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), filter .2s, background-color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(124, 58, 237, .25), 0 10px 28px -10px rgba(214, 77, 170, .65);
}
.btn-primary:hover { filter: brightness(1.07) saturate(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(124, 58, 237, .3), 0 16px 36px -12px rgba(214, 77, 170, .75); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--orchid) 45%, var(--line-2)); }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16px; border-radius: 15px; }
.btn-sm { --h: 38px; padding: 0 15px; font-size: 14px; border-radius: 11px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 76px 0 40px; text-align: center; overflow-x: clip; }
.hero::before, .hero::after {
  content: ''; position: absolute; pointer-events: none; z-index: -1; border-radius: 50%; filter: blur(10px);
}
.hero::before { width: 720px; height: 420px; left: 50%; top: -120px; transform: translateX(-62%); background: radial-gradient(closest-side, var(--glow), transparent); }
.hero::after { width: 640px; height: 420px; left: 50%; top: -80px; transform: translateX(-18%); background: radial-gradient(closest-side, var(--glow-2), transparent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 99px;
  border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); font-size: 13px; color: var(--ink-2);
}
.eyebrow .dot { display: inline-flex; gap: 5px; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-weight: 550; font-size: 12px; }
.eyebrow svg { width: 13px; height: 13px; }
h1 {
  margin: 26px auto 0; max-width: 900px; font-size: clamp(42px, 7.2vw, 84px); line-height: .98; letter-spacing: -.045em; font-weight: 650;
}
h1 .serif { font-size: 1.09em; letter-spacing: -.02em; padding-right: .04em; }
.lede { margin: 24px auto 0; max-width: 600px; font-size: clamp(17px, 2vw, 19.5px); line-height: 1.55; color: var(--ink-2); }
.cta-row { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.platforms { margin-top: 18px; display: flex; gap: 16px; justify-content: center; align-items: center; font-size: 13px; color: var(--ink-3); }
.platforms span { display: inline-flex; align-items: center; gap: 6px; }
.platforms svg { width: 14px; height: 14px; opacity: .8; }

/* ---------- media placeholders (swap in a video later) ---------- */
.stage {
  position: relative; margin-top: 60px; border-radius: 28px; padding: clamp(14px, 3.4vw, 46px);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 77, 141, .32), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(139, 92, 246, .38), transparent 55%),
    linear-gradient(135deg, #2a1830, #1a1430 55%, #120f22);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stage::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.media {
  position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  background: #0d0c12; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
}
.media.wide { aspect-ratio: 16 / 9; }
.media video { width: 100%; height: 100%; object-fit: cover; }
.media .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.ph-chrome { position: absolute; left: 0; right: 0; top: 0; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .02); }
.ph-chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.ph-lines { position: absolute; left: 7%; right: 30%; top: 22%; display: grid; gap: 14px; opacity: .55; }
.ph-lines b { display: block; height: 9px; border-radius: 9px; background: rgba(255, 255, 255, .07); }
.ph-lines b:nth-child(1) { width: 46%; height: 13px; background: rgba(255, 255, 255, .11); }
.ph-lines b:nth-child(2) { width: 82%; }
.ph-lines b:nth-child(3) { width: 64%; }
.ph-lines b:nth-child(4) { width: 72%; margin-top: 18px; }
.ph-cursor { position: absolute; right: 26%; bottom: 30%; width: 22px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); animation: drift 7s var(--ease) infinite; }
.ph-ring { position: absolute; right: calc(26% - 17px); bottom: calc(30% - 2px); width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); opacity: 0; animation: ring 7s var(--ease) infinite; }
@keyframes drift { 0%, 100% { transform: translate(-90px, 40px) } 40%, 60% { transform: translate(0, 0) } }
@keyframes ring { 0%, 41% { opacity: 0; transform: scale(.4) } 45% { opacity: .9 } 58%, 100% { opacity: 0; transform: scale(1.5) } }
.ph-play {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; color: rgba(255, 255, 255, .88); text-align: center;
}
.ph-play .disc {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
}
.ph-play .disc svg { width: 22px; height: 22px; margin-left: 3px; }
.ph-play small { font-size: 12.5px; color: rgba(255, 255, 255, .55); letter-spacing: .01em; }
.ph-play strong { font-weight: 550; font-size: 14.5px; }
.note {
  position: absolute; font-family: var(--serif); font-style: italic; font-size: 22px; color: rgba(255, 255, 255, .85); line-height: 1.1;
  display: flex; align-items: center; gap: 8px; pointer-events: none;
}
.note svg { width: 46px; height: 30px; opacity: .7; }

/* ---------- sections ---------- */
section { padding: 110px 0; position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.kicker::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .6; }
h2 { margin: 16px 0 0; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.03; letter-spacing: -.035em; font-weight: 650; }
h2 .serif { font-size: 1.08em; }
.section-head { max-width: 680px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin: 18px 0 0; font-size: 18px; color: var(--ink-2); }

/* workflow strip */
.flow { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.flow > div { padding: 30px 30px 32px; position: relative; }
.flow > div + div { border-left: 1px solid var(--line); }
.flow .n { font-family: var(--serif); font-style: italic; font-size: 38px; line-height: 1; color: var(--ink-3); }
.flow h3 { margin: 16px 0 6px; font-size: 19px; letter-spacing: -.02em; }
.flow p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* feature chapters */
.chapter { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: 64px 0; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter.flip { grid-template-columns: 1.25fr 1fr; }
.chapter.flip .copy { order: 2; }
.chapter .num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-3); }
.chapter h3 { margin: 10px 0 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; line-height: 1.08; font-weight: 650; }
.chapter p { margin: 16px 0 0; color: var(--ink-2); font-size: 16.5px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 11px; font-size: 15px; color: var(--ink); }
.ticks li::before {
  content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.5L13 6.3' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat, var(--brand);
  box-shadow: 0 4px 10px -4px rgba(214, 77, 170, .55);
}
.chapter .stage { margin-top: 0; border-radius: 22px; padding: clamp(12px, 2.4vw, 30px); }

/* small features grid */
.grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.card .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent-ink); }
.card .ic svg { width: 19px; height: 19px; }
.card h4 { margin: 16px 0 6px; font-size: 16.5px; letter-spacing: -.015em; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- pricing: a founding-member ticket ---------- */
.pricing { background: var(--bg-2); border-block: 1px solid var(--line); }
.ticket {
  --notch: 22px;
  margin: 56px auto 0; max-width: 880px; display: grid; grid-template-columns: 1.15fr 1fr; position: relative;
  background: var(--surface); border-radius: 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.ticket::before, .ticket::after {
  content: ''; position: absolute; left: calc(53.5% - var(--notch) / 2); width: var(--notch); height: var(--notch); border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--line);
}
.ticket::before { top: calc(var(--notch) / -2); clip-path: inset(50% 0 0 0); }
.ticket::after { bottom: calc(var(--notch) / -2); clip-path: inset(0 0 50% 0); }
.ticket .left { padding: 42px 40px; border-right: 2px dashed var(--line-2); }
.ticket .right { padding: 42px 40px; display: flex; flex-direction: column; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600;
  color: var(--accent-ink); background: color-mix(in srgb, var(--pink) 10%, transparent); border: 1px solid color-mix(in srgb, var(--pink) 25%, transparent);
}
.badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255, 77, 141, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 77, 141, 0) } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 141, 0) } }
.ticket h3 { margin: 18px 0 0; font-size: 28px; letter-spacing: -.03em; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price .now { font-size: 68px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.price .now sup { font-size: .42em; vertical-align: .95em; margin-right: 2px; font-weight: 600; }
.price .was { font-size: 22px; color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--pink) 70%, transparent); }
.price .off { font-size: 13px; font-weight: 650; color: #fff; background: var(--brand); padding: 4px 10px; border-radius: 99px; }
.ticket .sub { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.ticket .seats { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-2); }
.ticket .right .ticks { margin-top: 0; }
.ticket .right .btn { margin-top: auto; width: 100%; }
.ticket .right .trial { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.ticket .right .trial a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ---------- faq ---------- */
.faq { margin: 50px auto 0; max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 17.5px; font-weight: 550; letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 26px; height: 26px; border-radius: 9px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .3s var(--ease); }
.faq summary .pm svg { width: 13px; height: 13px; }
.faq details[open] .pm { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--ink-2); max-width: 680px; }

/* ---------- final cta + footer ---------- */
.final { text-align: center; padding: 130px 0 120px; }
.final h2 { max-width: 760px; margin-inline: auto; }
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 22px; margin-left: auto; }
footer a:hover { color: var(--ink); }

/* ---------- download page ---------- */
.dl-hero { padding: 70px 0 20px; text-align: center; }
.dl-hero h1 { font-size: clamp(38px, 6vw, 64px); }
.os-grid { margin: 48px auto 0; max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.os {
  position: relative; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 22px; padding: 30px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s;
}
.os:hover { transform: translateY(-2px); }
.os.yours { border-color: color-mix(in srgb, var(--orchid) 55%, var(--line)); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--orchid) 12%, transparent); }
.os .tag { position: absolute; top: 22px; right: 22px; font-size: 11.5px; font-weight: 600; color: var(--accent-ink); background: color-mix(in srgb, var(--pink) 10%, transparent); padding: 4px 10px; border-radius: 99px; display: none; }
.os.yours .tag { display: block; }
.os .logo { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.os .logo svg { width: 26px; height: 26px; }
.os h3 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.os .meta { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.os .file { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.os .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.os .actions .btn { flex: 1; }
.reassure { margin: 34px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; font-size: 14px; color: var(--ink-2); }
.reassure div { display: flex; gap: 10px; align-items: flex-start; }
.reassure svg { flex: none; width: 18px; height: 18px; color: var(--accent-ink); margin-top: 2px; }
.banner {
  max-width: 900px; margin: 26px auto 0; padding: 14px 18px; border-radius: 14px; font-size: 14.5px; text-align: left;
  border: 1px solid color-mix(in srgb, var(--pink) 25%, var(--line)); background: color-mix(in srgb, var(--pink) 6%, var(--surface)); color: var(--ink);
}

/* setup guide */
.setup { display: none; padding: 50px 0 40px; }
body.show-setup .setup { display: block; }
body.show-setup .chooser { display: none; }
.setup-head { text-align: center; max-width: 680px; margin: 0 auto; }
.setup-head .state { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; color: var(--ink-2); box-shadow: var(--shadow); }
.setup-head .state .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--pink); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.setup-head h1 { font-size: clamp(36px, 5.4vw, 56px); }
.setup-head p { color: var(--ink-2); font-size: 17px; margin: 16px 0 0; }
.steps { margin: 50px auto 0; max-width: 980px; display: grid; gap: 18px; counter-reset: s; }
.step {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 30px; align-items: center; padding: 26px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.step .txt { padding: 6px 8px; }
.step .k { counter-increment: s; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--brand); color: #fff; font-weight: 650; font-size: 15px; box-shadow: 0 8px 20px -8px rgba(214, 77, 170, .7); }
.step .k::before { content: counter(s); }
.step h3 { margin: 16px 0 0; font-size: 21px; letter-spacing: -.02em; }
.step p { margin: 10px 0 0; color: var(--ink-2); font-size: 15.5px; }
.step .why { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
kbd { font-family: var(--font); font-size: .86em; font-weight: 600; padding: 2px 7px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface-2); box-shadow: 0 1px 0 var(--line-2); }
.code {
  margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 12px;
  background: #0d0c12; color: #e9e6ef; font: 13px/1.5 var(--mono); border: 1px solid rgba(255, 255, 255, .06); overflow-x: auto;
}
.code code { white-space: nowrap; flex: 1; }
.code button { flex: none; height: 30px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; font-size: 12.5px; cursor: pointer; }
.code button:hover { background: rgba(255, 255, 255, .12); }
.setup-foot { margin: 34px auto 0; max-width: 980px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-2); }
.setup-foot a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.setup-foot a:hover { color: var(--ink); }
.tabs { display: inline-flex; padding: 4px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); margin-top: 22px; box-shadow: var(--shadow); }
.tabs button { height: 34px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.tabs button svg { width: 15px; height: 15px; }
.tabs button[aria-selected='true'] { background: var(--surface-2); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.guide { display: none; }
.guide.on { display: block; }

/* illustrated OS dialogs (drawn, so they work in both themes and any language) */
.mock { border-radius: 16px; background: var(--stage); padding: 22px; display: grid; place-items: center; min-height: 230px; position: relative; overflow: hidden; }
.win-dlg { width: 100%; max-width: 380px; background: #1f5fae; color: #fff; padding: 22px 22px 16px; font-family: 'Segoe UI', var(--font); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5); }
.win-dlg .t { font-size: 21px; font-weight: 300; line-height: 1.2; }
.win-dlg .b { margin-top: 12px; font-size: 12.5px; opacity: .92; line-height: 1.45; }
.win-dlg .more { margin-top: 10px; font-size: 12.5px; text-decoration: underline; display: inline-block; }
.win-dlg .row { margin-top: 18px; display: flex; justify-content: flex-end; gap: 8px; }
.win-dlg .row span { font-size: 12.5px; padding: 6px 16px; border: 1px solid rgba(255, 255, 255, .7); }
.win-dlg .row span.solid { background: rgba(255, 255, 255, .08); }
.hl { position: relative; z-index: 1; border-radius: 4px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--pink); animation: hl 1.8s var(--ease) infinite; }
@keyframes hl { 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 9px rgba(255, 77, 141, .35) } }
.installer { width: 100%; max-width: 380px; background: #fff; color: #1b1b1f; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .35); font-family: 'Segoe UI', var(--font); font-size: 12.5px; }
.installer .bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #eee; font-size: 12px; }
.installer .bar img { width: 16px; height: 16px; border-radius: 4px; }
.installer .body { padding: 16px; }
.installer .prog { height: 6px; border-radius: 6px; background: #eee; overflow: hidden; margin-top: 10px; }
.installer .prog i { display: block; height: 100%; width: 62%; background: var(--brand); border-radius: 6px; animation: prog 3s var(--ease) infinite; }
@keyframes prog { from { width: 8% } to { width: 100% } }
.installer .row { display: flex; justify-content: flex-end; gap: 8px; padding: 0 16px 14px; }
.installer .row span { padding: 5px 14px; border: 1px solid #ccc; border-radius: 4px; }
.mac-dlg { width: 100%; max-width: 300px; text-align: center; background: color-mix(in srgb, #ececec 92%, transparent); color: #1d1d1f; border-radius: 14px; padding: 20px 18px 14px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(0, 0, 0, .2); font-family: -apple-system, var(--font); }
:root[data-theme='dark'] .mac-dlg { background: #2a2a2e; color: #f2f2f4; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .7), 0 0 0 .5px rgba(255, 255, 255, .15); }
.mac-dlg img { width: 52px; height: 52px; margin: 0 auto; border-radius: 12px; }
.mac-dlg .t { margin-top: 10px; font-weight: 650; font-size: 13px; line-height: 1.3; }
.mac-dlg .b { margin-top: 6px; font-size: 11px; opacity: .75; line-height: 1.4; }
.mac-dlg .col { margin-top: 14px; display: grid; gap: 6px; }
.mac-dlg .col span { padding: 6px; border-radius: 7px; font-size: 12px; background: rgba(0, 0, 0, .07); }
:root[data-theme='dark'] .mac-dlg .col span { background: rgba(255, 255, 255, .1); }
.mac-dlg .col span.blue { background: #0a84ff; color: #fff; }
.mac-set { width: 100%; max-width: 400px; background: #f5f5f7; color: #1d1d1f; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .35); font-family: -apple-system, var(--font); font-size: 12px; }
:root[data-theme='dark'] .mac-set { background: #1e1e21; color: #f2f2f4; }
.mac-set .bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(128, 128, 128, .18); font-weight: 600; }
.mac-set .bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mac-set .bar i:nth-child(2) { background: #febc2e; } .mac-set .bar i:nth-child(3) { background: #28c840; margin-right: 8px; }
.mac-set .body { padding: 14px; }
.mac-set .grp { margin-top: 8px; border-radius: 10px; padding: 12px; background: rgba(128, 128, 128, .1); display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.mac-set .grp span.btn-mac { padding: 4px 12px; border-radius: 6px; background: rgba(128, 128, 128, .2); white-space: nowrap; }
.finder { width: 100%; max-width: 380px; display: flex; align-items: center; justify-content: space-around; padding: 26px 10px; border-radius: 14px; background: #fff; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .3); color: #1d1d1f; font: 12px -apple-system, var(--font); position: relative; }
:root[data-theme='dark'] .finder { background: #232327; color: #eee; }
.finder .it { display: grid; justify-items: center; gap: 8px; }
.finder .it img { width: 64px; height: 64px; border-radius: 14px; animation: drag 3.2s var(--ease) infinite; }
.finder .folder { width: 64px; height: 52px; border-radius: 8px; background: linear-gradient(#6bb7ff, #2f8ef3); position: relative; }
.finder .folder::before { content: ''; position: absolute; left: 6px; top: -7px; width: 24px; height: 10px; border-radius: 4px 4px 0 0; background: #6bb7ff; }
.finder .arrow { font-size: 26px; opacity: .45; }
@keyframes drag { 0%, 15% { transform: none } 55%, 70% { transform: translateX(150px) scale(.7); opacity: .6 } 85% { opacity: 0 } 100% { transform: none; opacity: 1 } }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .chapter, .chapter.flip { grid-template-columns: 1fr; padding: 48px 0; }
  .chapter.flip .copy { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .ticket .left { border-right: 0; border-bottom: 2px dashed var(--line-2); }
  .step { grid-template-columns: 1fr; }
  .note { display: none; }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .hero { padding-top: 52px; }
  .grid, .os-grid, .reassure { grid-template-columns: 1fr; }
  .ticket .left, .ticket .right { padding: 30px 24px; }
  .price .now { font-size: 56px; }
  .nav .btn-sm span.long { display: none; }
  .stage { border-radius: 18px; }
  footer nav { margin-left: 0; }
}
.btn.soon { opacity: .55; }
.btn.soon svg { display: none; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
