/* MiniSpace site: tokens (mascot palette) */
:root {
  --bg: #faf7ff;
  --surface: #ffffff;
  --surface-2: #f3eeff;
  --ink: #262046;
  --ink-soft: #3d3760;
  --muted: #5a5478;
  --line: #e6dff5;
  --lavender: #c9b8ff;
  --accent: #5b4fcf;
  --accent-strong: #4a3fb8;
  --accent-soft: #ece7ff;
  --mint: #b9f3d6;
  --mint-ink: #1b5e3f;
  --blush: #ffd9ea;
  --blush-ink: #8a2f58;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(38, 32, 70, 0.05), 0 16px 40px -16px rgba(38, 32, 70, 0.18);
  --shadow-float: 0 2px 6px rgba(38, 32, 70, 0.08), 0 20px 50px -20px rgba(38, 32, 70, 0.28);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --nav-h: 60px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 40px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--font-display); line-height: 1.05; }
h2 em, h1 em { font-style: italic; color: var(--accent); }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 5px; }
.wrap { width: min(1160px, 100% - 2.5rem); margin: 0 auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 999px; z-index: 100; }
.skip:focus { top: 1rem; }

/* Floating pill nav */
.nav-wrap { position: fixed; inset: 0 0 auto; z-index: 50; padding: 0.9rem 0 0; pointer-events: none; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  width: min(980px, 100% - 1.5rem); margin: 0 auto;
  min-height: var(--nav-h); padding: 0.4rem 0.45rem 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 999px; box-shadow: var(--shadow-float);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.02rem; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 0.1rem; }
.nav-links a { display: inline-block; padding: 0.5rem 0.85rem; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
@media (min-width: 760px) { .nav-links { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; line-height: 1.2; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(91, 79, 207, 0.8); }
.btn-primary:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.7); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.92rem; }
.play-btn {
  display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; font-weight: 600;
}
.play-btn .disc {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--accent); box-shadow: var(--shadow-float); border: 1px solid var(--line);
  transition: transform 0.15s ease;
}
.play-btn:hover .disc { transform: scale(1.06); }
.play-btn svg { width: 18px; height: 18px; margin-left: 3px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-start; overflow: hidden; isolation: isolate; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -2; margin: 0; }
.hero-art img { object-fit: cover; object-position: 55% 50%; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 22%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(250, 247, 255, 0), var(--bg));
}
.hero-inner { width: min(1160px, 100% - 2.5rem); margin: 0 auto; padding: calc(var(--nav-h) + 5.5rem) 0 3rem; }
.hero-copy { position: relative; max-width: 760px; padding: 1rem 0 0; }
.hero-copy::before {
  content: ""; position: absolute; inset: -12% -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.35) 55%, rgba(255, 255, 255, 0) 100%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line); padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2.75rem, 7.2vw, 5.4rem); margin-bottom: 1.1rem; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.hero .lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 560px; margin: 0 0 1.9rem; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; margin-bottom: 1.25rem; }
.trust { font-size: 0.9rem; color: var(--ink-soft); margin: 0; max-width: 560px; }
.trust span { white-space: nowrap; }
@media (max-width: 759px) {
  .hero { min-height: 128svh; }
  .hero-inner { padding-top: calc(var(--nav-h) + 3rem); }
  .hero-copy { text-align: center; margin: 0 auto; }
  .hero-copy::before { inset: -10% -12%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.45) 60%, rgba(255, 255, 255, 0) 100%); }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .cta { justify-content: center; }
  .hero-art img { object-position: 50% 100%; }
}

/* Mac window frame */
.window { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow), 0 40px 80px -40px rgba(38, 32, 70, 0.3); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: #f5f2fc; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9d3ea; }
.window-bar span { margin-left: 8px; font-size: 0.78rem; color: var(--muted); }
.window img { width: 100%; }

/* Demo */
.demo-frame { position: relative; max-width: 1040px; margin: 0 auto; }
.demo-stage { position: relative; }
.demo-badge {
  position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none; color: var(--ink);
  background: linear-gradient(to bottom, rgba(38, 32, 70, 0.05), rgba(38, 32, 70, 0.25));
}
.demo-badge .disc { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--accent); box-shadow: var(--shadow-float); }
.demo-badge svg { width: 30px; height: 30px; margin-left: 5px; }
.demo-caption { text-align: center; color: var(--muted); font-size: 0.95rem; margin: 1.1rem 0 0; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); margin-bottom: 0.8rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem; }

/* How it works */
.steps { display: grid; gap: 1.1rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.6rem 1.5rem; box-shadow: var(--shadow); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); background: var(--accent-soft); margin-bottom: 1rem; }
.steps li:nth-child(2)::before { background: var(--mint); color: var(--mint-ink); }
.steps li:nth-child(3)::before { background: var(--blush); color: var(--blush-ink); }
.steps h3 { margin-bottom: 0.4rem; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Feature grid */
.features { display: grid; gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.feature h3 { margin-bottom: 0.5rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.feature .tag { display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 0.25rem 0.6rem; border-radius: 999px; margin-bottom: 0.9rem; }
.feature.mint .tag { background: var(--mint); color: var(--mint-ink); }
.feature.blush .tag { background: var(--blush); color: var(--blush-ink); }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* Screens strip */
.strip-wrap { margin: 0 calc(50% - 50vw); padding: 0.5rem calc(50vw - 50%) 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--lavender) transparent; }
.strip { display: flex; gap: 1.5rem; list-style: none; padding: 0 0 0.25rem; margin: 0; }
.strip li { flex: 0 0 min(760px, 86vw); scroll-snap-align: start; }
.strip figcaption { margin-top: 0.8rem; font-size: 0.95rem; color: var(--muted); }
.strip figcaption strong { color: var(--ink); font-weight: 600; }
.strip-hint { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Never touches */
.never { background: var(--ink); color: #e8e4f6; border-radius: calc(var(--radius) + 8px); padding: clamp(2rem, 4.5vw, 3.5rem); position: relative; overflow: hidden; }
.never::after { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 184, 255, 0.35), transparent); pointer-events: none; }
.never h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.8rem; }
.never h2 em { color: var(--lavender); }
.never p { color: #c9c4e0; max-width: 620px; }
.never ul { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.75rem 1.5rem; }
.never li { display: flex; gap: 0.7rem; align-items: baseline; color: #f4f1fc; }
.never li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); transform: translateY(-1px); }
@media (min-width: 640px) { .never ul { grid-template-columns: repeat(2, 1fr); } }

/* Pricing */
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); padding: clamp(2rem, 4.5vw, 3rem); box-shadow: var(--shadow-float); max-width: 580px; margin: 0 auto; position: relative; }
.price-card .kicker { margin-bottom: 0.25rem; }
.price-row { display: flex; align-items: baseline; gap: 0.6rem; margin: 0.5rem 0 0.25rem; }
.price { font-family: var(--font-display); font-size: 4.5rem; line-height: 1; }
.price-note { color: var(--muted); }
.includes { list-style: none; padding: 0; margin: 1.5rem 0 1.75rem; display: grid; gap: 0.6rem; }
.includes li { display: flex; gap: 0.7rem; align-items: flex-start; }
.includes li::before { content: "✓"; display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); font-size: 0.8rem; font-weight: 700; margin-top: 2px; }
.price-card .btn { width: 100%; }
.price-card .fine { margin: 1rem 0 0; font-size: 0.9rem; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; font-weight: 600; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); font-size: 1.3rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1.5rem; color: var(--muted); max-width: 700px; }
.faq .answer p:last-child, .faq .answer ol:last-child { margin-bottom: 0; }
.faq .answer strong { color: var(--ink); }

/* Callout (policy pages) */
.callout { background: var(--accent-soft); border: 1px solid #d9cffb; border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; margin: 1.25rem 0; }
.callout p:last-child { margin: 0; }

/* Policy and changelog pages */
.page { padding: calc(var(--nav-h) + 4rem) 0 3rem; }
.page h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 0.75rem; }
.page h2 { font-size: 1.9rem; margin: 2.5rem 0 0.6rem; }
.page .lede { font-size: 1.15rem; color: var(--ink-soft); }
.page li { margin: 0.4rem 0; }
.release { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; margin-top: 2rem; box-shadow: var(--shadow); }
.release h2 { margin: 0 0 0.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.release .date { color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; }
.release ul { margin: 0; }
.release li { color: var(--ink-soft); }
.pill { display: inline-block; font: 600 0.72rem/1 var(--font-body); letter-spacing: 0.05em; text-transform: uppercase; padding: 0.4rem 0.65rem; border-radius: 999px; background: var(--mint); color: var(--mint-ink); vertical-align: middle; }
.pill.soon { background: var(--blush); color: var(--blush-ink); }
.release.soon { background: var(--bg); box-shadow: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; color: var(--muted); font-size: 0.93rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem 2rem; align-items: flex-start; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.35rem; }
.footer a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer a:hover { color: var(--accent); text-decoration: underline; }
.footer p { margin: 0.5rem 0 0; }
.footer .fine { margin-top: 1.75rem; font-size: 0.85rem; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .play-btn .disc { transition: none; }
  .btn-primary:hover, .play-btn:hover .disc { transform: none; }
}
