@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-900: #0D352C;
  --green-800: #134638;
  --green-700: #1D5A49;
  --cream: #F8F4EA;
  --cream-2: #EFE8D8;
  --paper: #FFFDF8;
  --line: #E6DFCD;
  --line-2: #E2D9C4;
  --ink: #1B1F1D;
  --muted: #4F5752;
  --muted-2: #3E4440;
  --on-green: #F8F4EA;
  --on-green-muted: #D9E3DD;
  --on-green-faint: #C3D1C9;
  --gold: #E3A63B;
  --gold-hover: #EDB65A;
  --wrap: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-800); text-underline-offset: 3px; }
a:hover { color: var(--green-900); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 { margin: 0; }
p { margin: 0; }
code { font-size: 0.9em; background: var(--cream-2); padding: 0.1em 0.35em; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 800px; }
.center { text-align: center; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 10;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* Header */
.site-header { background: var(--green-900); color: var(--on-green); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-green); text-decoration: none; font-weight: 700; font-size: 1.125rem; }
.brand:hover { color: var(--on-green); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(160deg, var(--green-700), var(--green-900));
  box-shadow: inset 0 0 0 1px rgba(227,166,59,0.45);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font: 800 1.25rem/1 Georgia, "Times New Roman", serif;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 1rem; }
.nav a { color: var(--on-green); }
.nav a[aria-current="page"] { color: var(--gold); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 14px;
  font-weight: 700; font-size: 1.125rem; text-decoration: none;
}
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.btn-gold:hover { background: var(--gold-hover); color: var(--ink); }
.btn-ghost { border: 1.5px solid rgba(248,244,234,0.45); color: var(--on-green); font-weight: 600; font-size: 1.0625rem; padding: 0 26px; }
.btn-ghost:hover { border-color: var(--on-green); color: var(--on-green); }
.btn-sm { min-height: 48px; padding: 0 22px; border-radius: 12px; font-size: 1rem; box-shadow: none; }
.btn svg { flex-shrink: 0; }

/* Hero */
.hero { background: var(--green-900); color: var(--on-green); padding-top: 72px; overflow: hidden; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.app-icon {
  width: 112px; height: 112px; border-radius: 26px;
  background: linear-gradient(160deg, #23664F 0%, #0F3F33 70%);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35), inset 0 0 0 1.5px rgba(227,166,59,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font: 700 68px/1 Georgia, "Times New Roman", serif;
}
.eyebrow { margin-top: 28px; font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); }
.hero h1 { margin-top: 12px; max-width: 860px; font-size: clamp(2.25rem, 5.4vw, 4rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
.hero h1 span { color: var(--gold); }
.lede { margin-top: 24px; max-width: 640px; font-size: 1.25rem; line-height: 1.55; color: var(--on-green-muted); }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.meta { margin-top: 18px; font-size: 0.9375rem; color: var(--on-green-faint); }
.meta a { color: var(--on-green); }
.hero-shot { margin: 40px 0 32px; width: 100%; max-width: 1080px; }
.hero-shot img { width: 100%; }

.notice { background: var(--cream-2); border-bottom: 1px solid var(--line-2); }
.notice p { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gutter); font-size: 1rem; color: var(--muted-2); text-align: center; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--paper); border-top: 1px solid #ECE4D2; border-bottom: 1px solid #ECE4D2; }
.kicker { font-size: 1rem; font-weight: 700; color: var(--green-700); }
.h2 { font-size: clamp(1.875rem, 3.4vw, 2.625rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.kicker + .h2 { margin-top: 10px; }
.sub { margin: 14px auto 0; max-width: 600px; color: var(--muted); }

/* Problem */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.split .copy p { margin-top: 16px; }
.split .copy .h2 + p { margin-top: 22px; }
.compare { display: flex; flex-direction: column; gap: 16px; }
.card-dark { background: #1E2321; color: #E6E8E6; border-radius: 16px; padding: 24px 26px; box-shadow: 0 12px 30px rgba(13,53,44,0.12); }
.card-dark .label { margin-bottom: 14px; font-size: 0.9375rem; font-weight: 700; color: #AEB5B0; }
.card-dark ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; font-size: 1.0625rem; }
.card-light { background: #fff; border-radius: 16px; padding: 24px 26px; box-shadow: 0 12px 30px rgba(13,53,44,0.10), 0 0 0 1px var(--line); display: flex; align-items: center; gap: 18px; }
.card-light .app-icon { width: 56px; height: 56px; border-radius: 13px; font-size: 32px; flex-shrink: 0; box-shadow: none; }
.card-light .label { font-size: 0.9375rem; font-weight: 700; color: var(--green-700); }
.card-light .big { margin-top: 2px; font-size: 1.25rem; font-weight: 700; }

/* Features */
.features { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.features li { background: var(--cream); border-radius: 18px; padding: 28px 24px; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--green-800); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.features h3 { margin-top: 20px; font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.features p { margin-top: 8px; font-size: 1rem; color: var(--muted); }
.signed { margin-top: 40px; font-size: 1rem; color: var(--muted); }

/* Install */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(13,53,44,0.07); overflow: hidden; }
.step-art { height: 200px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; padding: 20px; }
.step-body { padding: 24px 26px 28px; }
.step-num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--green-800); color: var(--on-green); font-weight: 700; align-items: center; justify-content: center; }
.step h3 { margin-top: 14px; font-size: 1.25rem; font-weight: 700; }
.step-body p { margin-top: 6px; font-size: 1rem; color: var(--muted); }
.step-shot { width: 100%; max-width: 256px; border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,0.14); }

.mock { width: 100%; max-width: 250px; background: #fff; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.mock-dl { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mock-dl .t { font-size: 0.75rem; font-weight: 700; color: #6A6E6B; }
.mock-row { display: flex; align-items: center; gap: 12px; }
.mock-file { width: 40px; height: 44px; border-radius: 8px; background: #E9ECEA; display: flex; align-items: center; justify-content: center; }
.mini-icon { width: 24px; height: 24px; border-radius: 6px; background: var(--green-800); color: var(--gold); font: 700 15px/1 Georgia, serif; display: flex; align-items: center; justify-content: center; }
.mock-name { font-size: 0.875rem; font-weight: 600; }
.mock-bar { height: 5px; margin-top: 6px; border-radius: 3px; background: #1E8A5A; }
.mock-win { max-width: 270px; overflow: hidden; }
.mock-title { height: 26px; background: #ECEAE6; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.r { background: #FF5F57; } .dot.y { background: #FEBC2E; } .dot.g { background: #28C840; }
.mock-drag { display: flex; align-items: center; justify-content: space-around; padding: 22px 14px; font-size: 0.75rem; }
.mock-drag > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mock-app { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(160deg, #23664F, #0F3F33); color: var(--gold); font: 700 30px/1 Georgia, serif; display: flex; align-items: center; justify-content: center; }
.mock-folder { width: 52px; height: 44px; margin-top: 8px; border-radius: 6px 6px 8px 8px; background: #5AA2E8; box-shadow: inset 0 8px 0 #7DB7EE; color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }

.not-installed { margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; align-items: center; background: var(--paper); border-radius: 20px; padding: 28px; box-shadow: 0 0 0 1px var(--line); }
.not-installed img { width: 100%; border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.not-installed .t { font-size: 1.25rem; font-weight: 700; }
.not-installed .d { margin-top: 8px; color: var(--muted); }
.not-installed .l { margin-top: 12px; }

/* FAQ */
.faq { margin-top: 48px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 20px 4px; font-size: 1.1875rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { flex-shrink: 0; font-size: 1.75rem; font-weight: 400; color: var(--green-700); line-height: 1; transition: transform .2s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .answer { padding: 0 4px 22px; color: var(--muted-2); }

/* CTA band */
.cta { background: var(--green-900); color: var(--on-green); padding: 88px 0; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta p.sub { color: var(--on-green-muted); max-width: 560px; }
.cta .actions { margin-top: 32px; }
.cta .meta { margin-top: 16px; }

/* Footer */
.site-footer { background: var(--cream-2); color: var(--muted-2); font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-top: 48px; padding-bottom: 48px; }
.site-footer .about { max-width: 520px; }
.site-footer .about p + p { margin-top: 8px; }
.site-footer .name { font-weight: 700; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer .small { font-size: 0.9375rem; color: var(--muted); }

/* Releases page */
.page { padding: 72px 0 96px; }
.page h1 { margin-top: 18px; font-size: clamp(2.125rem, 4.4vw, 3rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; }
.page .intro { margin-top: 16px; color: var(--muted); }
.releases { margin-top: 48px; display: flex; flex-direction: column; gap: 24px; }
.release { background: var(--paper); border-radius: 20px; padding: 28px 32px; box-shadow: 0 0 0 1px var(--line); }
.release.latest { background: #fff; padding: 32px 32px 30px; box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(13,53,44,0.07); }
.release-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.release-head .left { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.release h2 { font-size: 1.25rem; font-weight: 700; }
.release.latest h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.badge { font-size: 0.8125rem; font-weight: 700; color: var(--green-800); background: #DCEDE4; padding: 4px 12px; border-radius: 999px; }
.release time { font-size: 1rem; color: var(--muted); }
.notes { margin-top: 16px; color: var(--muted-2); }
.notes ul { margin: 8px 0 0; padding-left: 1.3em; }
.notes li + li { margin-top: 6px; }
.notes p + p, .notes p + ul, .notes ul + p { margin-top: 10px; }
.notes h3, .notes h4 { margin-top: 16px; font-size: 1.0625rem; color: var(--ink); }
.release .btn { margin-top: 24px; }
.release .more { margin-top: 16px; font-size: 1rem; }
.callout { margin-top: 40px; padding: 22px 24px; border-radius: 16px; background: var(--cream-2); font-size: 1rem; color: var(--muted-2); }
.callout strong { color: var(--ink); }
.empty { padding: 28px 32px; border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }

/* Stats page */
.stat-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.stat { background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: 0 0 0 1px var(--line); }
.stat .n { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 1rem; color: var(--muted); }
.chart { margin-top: 32px; background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: 0 0 0 1px var(--line); }
.chart svg { width: 100%; height: auto; display: block; }
.table-wrap { margin-top: 24px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
th { font-weight: 700; }
td.num, th.num { text-align: right; }

/* 404 */
.notfound { padding: 120px 0; text-align: center; }
.notfound p { margin-top: 16px; }

.grow { flex: 1; min-width: 0; }
.chart-title { font-size: 1.125rem; margin-bottom: 12px; }
caption { text-align: left; padding-bottom: 8px; color: var(--muted); }
