/* Palette = MDViewer light theme (renderer/styles.css). Simplicity is the product, so the page stays quiet. */
:root {
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f1f5f9;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; font-size: 17px; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
code { font: 0.88em "Cascadia Mono", Consolas, monospace; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
h1, h2, h3 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; letter-spacing: -0.02em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

header.top { padding: 20px 0; }
.top-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; color: var(--ink); }
.logo-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 12px; }
.logo-by { font-size: 13px; font-weight: 400; color: var(--muted); }
nav { display: flex; align-items: center; gap: 24px; }
nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 15px; }
nav a:not(.btn):hover { color: var(--ink); }

.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn.sm { padding: 6px 14px; font-size: 14px; }
.btn.quiet { background: var(--soft); color: var(--ink); }
.btn.quiet:hover { background: var(--line); color: var(--ink); }

.hero { text-align: center; padding-top: 72px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.05; font-weight: 700; margin: 0 0 16px; }
.lead { font-size: 20px; color: var(--muted); margin: 0 auto 28px; max-width: 34em; }
.cta { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
.link { font-weight: 600; text-decoration: none; }

.window { margin: 64px 0 0; }
.window img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12); }
.window figcaption { margin-top: 16px; color: var(--muted); font-size: 15px; }

section { padding-bottom: 40px; }

/* Tour carousel: one slide visible, caption under the screenshot. */
#tour { padding-top: 96px; text-align: center; }
#tour h2 { margin: 0 0 16px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.frame { position: relative; }
.frame::before, .frame::after { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(15, 23, 42, 0.75); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 4px 14px rgba(15, 23, 42, 0.3); color: #fff; font-size: 26px; line-height: 42px; text-align: center; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.frame::before { content: "‹"; content: "‹" / ""; left: 16px; }
.frame::after { content: "›"; content: "›" / ""; right: 16px; }
.frame:hover::before, .frame:hover::after { opacity: 1; }
@media (hover: none) { .frame::before, .frame::after { opacity: 0.8; } }
.slide img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.slide figcaption { order: -1; max-width: 40em; margin: 0 auto 24px; color: var(--muted); }
.slide strong { color: var(--ink); }
.tier { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; color: #fff; white-space: nowrap; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.35); pointer-events: none; }
.tier-pro { background: var(--accent); }
.car-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 20px; }
.car-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.car-btn:hover { background: var(--soft); }
.dots { display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width 0.2s, background 0.2s; }
.dots button[aria-current="true"] { width: 24px; background: var(--accent); }
/* Pro section: two small live demos styled like the app (Ocean theme document). */
[hidden] { display: none !important; }
#pro { padding-top: 96px; }
#pro > h2 { margin: 0 0 8px; text-align: center; }
.section-lead { text-align: center; color: var(--muted); margin: 0 0 48px; }
.demo-row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.demo-text h3 { font-size: 24px; margin: 0 0 12px; }
.demo-text p { color: var(--muted); margin: 0 0 12px; }
.try { color: var(--accent) !important; font-weight: 600; }

.app-mock { border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12); overflow: hidden; font-size: 15px; }
.mock-bar { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.mock-bar button { font: inherit; font-size: 14px; padding: 4px 10px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--ink); cursor: pointer; }
.mock-bar button:hover { background: #fff; border-color: var(--line); }
.mock-doc { padding: 22px 28px 26px; min-height: 220px; text-align: left; outline: none; }
.mock-doc:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.mock-doc h3 { color: #1769aa; font-size: 20px; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.mock-doc p { margin: 0 0 12px; }
.mock-doc ul { margin: 0; padding-left: 22px; }
.mock-doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mock-doc th, .mock-doc td { padding: 6px 10px; border: 1px solid var(--line); text-align: left; }
.mock-doc th { background: #f8fafc; }

.ai-demo { display: grid; grid-template-columns: 1.4fr 1fr; }
.ai-insert { position: relative; margin-top: 4px; padding: 6px 0 6px 8px; border-radius: 2px; transition: background 0.4s, box-shadow 0.4s; }
.ai-insert.added { background: rgba(34, 197, 94, 0.12); box-shadow: -4px 0 0 #22c55e; }
.review { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 8px; font-size: 13px; }
.review span { color: var(--muted); }
.review button { font: inherit; font-weight: 600; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.review .accept { color: #15803d; }
.review .decline { color: #dc2626; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-left: 1px solid var(--line); background: #f8fafc; text-align: left; font-size: 14px; }
.chat-head { font-weight: 600; font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.bubble { margin: 0; padding: 8px 12px; border-radius: 10px; max-width: 92%; }
.bubble.user { align-self: flex-end; background: #e0edff; }
.bubble.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.replay { align-self: flex-start; font: inherit; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--accent); cursor: pointer; }

@media (max-width: 900px) {
  .demo-row { grid-template-columns: 1fr; gap: 28px; }
  .ai-demo { grid-template-columns: 1fr; }
  .chat { border-left: 0; border-top: 1px solid var(--line); }
}

#pricing { padding-top: 72px; }
h2 { font-size: 30px; line-height: 1.2; margin: 56px 0 16px; }
#pricing > h2:first-child, #faq > h2 { margin-top: 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; }
.plan .btn { margin-top: auto; }
.plan h3 { font-size: 18px; margin: 0; }
.price { font-size: 36px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; }
.price span { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan p:not(.price) { color: var(--muted); margin: 0 0 20px; }
.fine { font-size: 14px; color: var(--muted); margin: 28px 0 0; }
#ai + p { color: var(--muted); }

/* About: a personal note from the maker, photo beside the text. */
#about { display: flex; gap: 32px; align-items: flex-start; padding-top: 72px; }
#about h2 { margin-top: 0; }
#about p { color: var(--muted); margin: 0 0 12px; }
.me { flex: none; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--soft); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line), 0 12px 30px rgba(15, 23, 42, 0.12); }
@media (max-width: 640px) { #about { flex-direction: column; align-items: center; text-align: center; } }

#faq { padding-top: 56px; }
#faq > h2 { margin-bottom: 24px; }
.faq-group { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.faq-group + .faq-group { margin-top: 20px; }
.faq-group h3 { margin: 0; padding: 12px 20px; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.faq-group details + details { border-top: 1px solid var(--line); }
.faq-group summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 20px; cursor: pointer; font-weight: 600; list-style: none; transition: background 0.15s; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary:hover { background: #f8fafc; }
.faq-group summary::after { content: "+"; flex: none; font-size: 20px; font-weight: 400; line-height: 1; color: var(--muted); }
.faq-group details[open] summary::after { content: "−"; color: var(--accent); }
.faq-group details p { margin: 0; padding: 0 20px 16px; color: var(--muted); font-size: 16px; }

/* Footer: a soft band that repeats the one action (download) and groups the links by what people come for. */
.site-footer { margin-top: 64px; background: var(--soft); border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.footer-main { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 48px; }
.footer-brand p { margin: 12px 0 20px; font-size: 17px; color: var(--ink); }
.footer-nav { display: flex; align-items: flex-start; gap: 32px 64px; flex-wrap: wrap; }
.footer-nav div { display: flex; flex-direction: column; gap: 8px; }
.footer-nav h2 { margin: 0 0 4px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.footer-nav a, .footer-base a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover, .footer-base a:hover { color: var(--ink); text-decoration: underline; }
.footer-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.footer-base { width: calc(100% - 48px); max-width: 1072px; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 14px; }

/* Legal pages: quiet single-column prose matching the landing page palette. */
.legal { padding: 32px 0 24px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 8px; }
.legal-meta { color: var(--muted); font-size: 15px; margin: 0 0 36px; }
.legal section { padding-bottom: 0; margin-bottom: 32px; }
.legal h2 { font-size: 21px; line-height: 1.3; margin: 0 0 10px; }
.legal h3 { font-size: 17px; line-height: 1.35; margin: 20px 0 8px; }
.legal p { margin: 0 0 12px; color: var(--ink); }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal-box { margin: 16px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.legal-box p:last-child { margin-bottom: 0; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.legal-nav a { color: var(--muted); text-decoration: none; }
.legal-nav a:hover { color: var(--ink); }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .window { margin-top: 48px; }
  .plans { grid-template-columns: 1fr; gap: 32px; }
  header nav a:not(.btn) { display: none; }
}

/* Motion: one load sequence, a one-time reveal per section, and carousel feedback. All off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .lead, .hero .cta { animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .lead { animation-delay: 0.1s; }
  .hero .cta { animation-delay: 0.2s; }
  .hero-shot { animation: windowIn 1.1s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-shot figcaption { animation: fadeUp 0.6s 1.1s both; }

  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .reveal.in { opacity: 1; transform: none; }

  .slide { transition: opacity 0.45s ease; }
  .slide:not(.is-current) { opacity: 0.3; }
  .slide.is-current figcaption { animation: fadeUp 0.5s 0.1s both; }
  .btn, .car-btn { transition: background 0.15s, transform 0.15s; }
  .btn:active, .car-btn:active { transform: scale(0.97); }
  .bubble, .ai-insert, .replay { animation: fadeUp 0.4s both; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes windowIn { from { opacity: 0; transform: translateY(48px) scale(0.96); } }
