/* Dark is the default for every visitor. The light palette below is kept
   for later; nothing sets data-theme="light", so it stays inactive. */
:root {
  --bg: #000000;
  --bg-alt: #0d0d0f;
  --surface: #1c1c1e;
  --surface-2: #2a2a2d;
  --border: #2f2f33;
  --text: #f2f2f4;
  --muted: #9c9ca4;
  --blue: #62a0f6;
  --blue-soft: #1d2b44;
  --on-blue: #06101f;
  --pink: #ff5cb8;
  --green: #5ed37a;
  --frame: #2a2a2d;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f2f2f7;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #e9e9ef;
  --border: #d9d9e0;
  --text: #0b0b0d;
  --muted: #5d5d66;
  --blue: #2557c4;
  --blue-soft: #dce5fa;
  --on-blue: #ffffff;
  --pink: #b02a74;
  --green: #2a8a45;
  --frame: #1a1a1c;
  --shadow: 0 24px 60px -24px rgba(20, 30, 60, 0.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
code { font-family: inherit; font-size: 0.92em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }
.fine { font-size: 0.82rem; color: var(--muted); }

/* Wordmark: docu + mm + ent, as in the app */
.wordmark { font-weight: 500; font-size: 1.9rem; letter-spacing: 0.02em; color: var(--blue); text-decoration: none; }
.wordmark b { color: var(--text); font-weight: 500; }
.brand { color: var(--blue); }
.brand b { color: var(--text); font-weight: inherit; }
.wordmark.small { font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--on-blue);
  text-decoration: none;
  font-weight: 700;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
.btn-ghost { background: var(--blue-soft); color: var(--blue); }
.btn-small { padding: 0.55em 1.1em; font-size: 0.85rem; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.nav-links a:hover { color: var(--text); }

/* Devices */
.device { border-radius: 22px; border: 8px solid var(--frame); box-shadow: var(--shadow); background: #000; }
.device.iphone { border-radius: 40px; border-width: 7px; }

/* Hero */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.6em; }
.lede { font-size: 1.06rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8em 0 1.2em; }
.hero-devices { position: relative; padding-bottom: 40px; }
.hero-devices .ipad { width: 100%; }
.hero-devices .iphone { position: absolute; width: 27%; right: -12px; bottom: -10px; }

/* Sections */
section { padding: 88px 0; }
.section-label { color: var(--blue); font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5em; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 0.6em; }
.section-intro { color: var(--muted); max-width: 46em; }
.center .section-intro { margin-left: auto; margin-right: auto; }

.problem { background: var(--bg-alt); border-block: 1px solid var(--border); padding: 64px 0; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.problem-grid p { color: var(--muted); }
.problem-grid .big { color: var(--text); font-size: 1.35rem; font-weight: 700; margin-bottom: 0.3em; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px; }
.steps h3 { font-size: 1.05rem; margin: 14px 0 10px; }
.steps p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.step-n {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--muted); color: var(--muted); font-weight: 700;
}

.features { background: var(--bg-alt); border-block: 1px solid var(--border); }
.feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; margin-top: 56px; }
.feature + .feature { margin-top: 112px; }
.feature.reverse .feature-copy { order: 2; }
.feature h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; margin-bottom: 0.7em; }
.feature p { color: var(--muted); }
.feature strong { color: var(--text); font-weight: 700; }
.feature strong.ok { color: var(--green); font-weight: 700; }
.feature em { color: var(--text); font-style: normal; }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.6em; }
.card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.phones { background: var(--bg-alt); border-block: 1px solid var(--border); }
.phone-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.phone-row figure { margin: 0; }
.phone-row img { width: 100%; max-width: 300px; margin: 0 auto; }
.phone-row figcaption { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 18px; }

.open-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.open-grid p { color: var(--muted); }
.export-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; }
.export-list li { display: flex; flex-direction: column; gap: 4px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.export-list li:last-child { border-bottom: 0; }
.export-list code { background: none; padding: 0; color: var(--text); font-weight: 700; font-size: 1rem; }
.export-list span { color: var(--muted); font-size: 0.88rem; }

.pricing { background: var(--bg-alt); border-block: 1px solid var(--border); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0 28px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.1rem; color: var(--blue); margin-bottom: 14px; }
.price { font-size: 2.2rem; font-weight: 800; margin: 0; }
.price span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.price-alt { color: var(--muted); font-size: 0.85rem; }
.plan ul { list-style: none; padding: 0; margin: 10px 0 0; border-top: 1px solid var(--border); }
.plan li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--muted); }
.plan li:last-child { border-bottom: 0; }
.plan li b { color: var(--text); }
.plan-free { background: var(--blue-soft); border-color: transparent; }
.plan-free .price { color: var(--blue); }

.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; color: var(--blue); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.faq details p { color: var(--muted); padding-right: 36px; }

.cta { padding: 104px 0; }
.cta-icon { margin: 0 auto 24px; border-radius: 22px; }

.footer { border-top: 1px solid var(--border); padding: 32px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; color: var(--muted); font-size: 0.8rem; }

/* Responsive */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-inner .btn-small { margin-left: auto; }
}

@media (max-width: 820px) {
  section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-grid, .feature, .open-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature.reverse .feature-copy { order: 0; }
  .feature + .feature { margin-top: 72px; }
  .problem-grid { grid-template-columns: 1fr; gap: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .phone-row { grid-template-columns: 1fr; gap: 48px; }
  .hero-devices .iphone { right: 0; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .steps, .plans { grid-template-columns: 1fr; }
  .device { border-width: 5px; border-radius: 14px; }
  .device.iphone { border-width: 4px; border-radius: 26px; }
  .wordmark { font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
