/* Off Again website. Colours come from AtlasStyle in native/App/MapViews.swift. */
:root {
  color-scheme: light dark;
  --paper: #f8f7f1;
  --paper-2: #eff1e8;
  --card: #ffffff;
  --ink: #29473d;
  --muted: #596e5c;
  --line: rgba(41, 71, 61, .14);
  --accent: #b55738;
  --accent-text: #9c4529;
  --shade: #dba37d;
  --land: #d6e0cf;
  --forest: #1a3629;
  --forest-glow: #2b4f42;
  --forest-water: #33574d;
  --forest-land: #b5c2b0;
  --forest-text: #f5f0de;
  --forest-muted: #dbe3d1;
  --button: #1a4236;
  --button-text: #f8f7f1;
  --tag: rgba(181, 87, 56, .12);
  --shadow: 0 1px 2px rgba(26, 54, 41, .06), 0 12px 32px -12px rgba(26, 54, 41, .18);
  --radius: 22px;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Charter", Georgia, serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 5vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141f1a;
    --paper-2: #18261f;
    --card: #1c2b24;
    --ink: #ebf0de;
    --muted: #a8b8a1;
    --line: rgba(235, 240, 222, .12);
    --accent: #dba37d;
    --accent-text: #e6b591;
    --land: #2a3a32;
    --forest: #11241c;
    --forest-glow: #223f34;
    --button: #ebf0de;
    --button-text: #142019;
    --tag: rgba(219, 163, 125, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--round);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 13px/1.2 var(--round); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--round); letter-spacing: .02em; padding: 6px 9px; border-radius: 999px; background: var(--tag); color: var(--accent-text); white-space: nowrap; }
.tag.free { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); }

/* Header */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 19px/1 var(--round); text-decoration: none; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; opacity: .88; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
@media (max-width: 640px) { .site-nav .hide-sm { display: none; } .site-nav a { padding: 8px 10px; } }

/* Hero (always the app's forest atlas, in both themes) */
.hero {
  position: relative;
  color: var(--forest-text);
  background: radial-gradient(ellipse 80% 70% at 72% 55%, var(--forest-glow), var(--forest) 70%);
  overflow: hidden;
}
.hero .site-header { color: var(--forest-text); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding-top: clamp(24px, 6vw, 64px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { font-size: clamp(42px, 7.2vw, 78px); }
.hero h1 em { font-style: italic; color: var(--shade); }
.hero .lede { color: var(--forest-muted); margin-top: 22px; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 32px; }
.hero-note { font-size: 14px; color: var(--forest-muted); margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; flex: none; }
.globe-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.globe-stage canvas { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.globe-stage canvas:active { cursor: grabbing; }
.globe-halo { position: absolute; inset: 6%; border-radius: 50%; box-shadow: 0 0 120px 10px rgba(219, 163, 125, .10), 0 40px 80px -30px rgba(0, 0, 0, .5); pointer-events: none; }
.globe-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(17, 36, 28, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 240, 222, .14); color: var(--forest-text);
  border-radius: 16px; padding: 10px 14px; font-size: 14px; line-height: 1.25; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
}
.globe-chip strong { display: block; font: 600 22px/1 var(--serif); }
.globe-chip small { color: var(--forest-muted); font-size: 12px; }
.globe-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--shade); box-shadow: 0 0 0 4px rgba(219, 163, 125, .22); flex: none; }
.chip-a { left: 0; bottom: 14%; }
.chip-b { right: 0; top: 10%; }
.globe-caption { position: absolute; left: 50%; bottom: -28px; transform: translateX(-50%); font-size: 12px; color: var(--forest-muted); opacity: .75; white-space: nowrap; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .globe-stage { max-width: 420px; margin-top: 12px; }
}
@media (max-width: 420px) { .globe-chip { padding: 8px 11px; } .globe-chip strong { font-size: 19px; } .chip-b { top: 4%; } }

/* App Store placeholder (no listing yet). */
.store-button {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 22px 10px 16px;
  border-radius: 16px; text-decoration: none; font-family: var(--round);
  background: var(--forest-text); color: #142019; border: 0;
  cursor: not-allowed; user-select: none;
}
.store-button svg { width: 26px; height: 26px; flex: none; }
.store-button span { display: grid; line-height: 1.1; text-align: left; }
.store-button small { font-size: 12px; opacity: .72; font-weight: 500; }
.store-button b { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.store-button.on-paper { background: var(--button); color: var(--button-text); }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 2px; }
.text-link:hover { text-decoration: underline; }

/* Sections */
section { scroll-margin-top: 16px; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(34px, 5vw, 54px); margin-top: 14px; }
.section-head .lede { margin-top: 16px; }

/* Free features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.feature-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.feature-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--forest); color: var(--shade); flex: none; }
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 26px; margin-top: 6px; }
.feature p { color: var(--muted); }
.feature-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.feature-lead h3 { font-size: clamp(28px, 3.4vw, 36px); }
.also-free { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 15px; }
.also-free b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } .feature-lead { grid-template-columns: 1fr; gap: 18px; } }

/* Photo scan illustration (drawn, no real photos). */
.scan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scan-tile { aspect-ratio: 1; border-radius: 14px; position: relative; overflow: hidden; }
.scan-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); }
.scan-tile span { position: absolute; left: 8px; bottom: 7px; z-index: 1; color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.scan-tile span svg { width: 11px; height: 11px; }
.t1 { background: linear-gradient(160deg, #f2c79b 0 38%, #7fb3c8 38% 62%, #3e7a92 62%); }
.t2 { background: linear-gradient(200deg, #f6e3c4 0 30%, #b9cfa3 30% 55%, #5e8a62 55%); }
.t3 { background: radial-gradient(circle at 70% 30%, #fbe3b5 0 12%, transparent 13%), linear-gradient(180deg, #e9a67c 0 50%, #2f5d6b 50%); }
.t4 { background: linear-gradient(180deg, #cfe1ea 0 45%, #8aa39a 45% 70%, #e8e2d2 70%); }
.t5 { background: radial-gradient(circle at 30% 75%, #d9583b 0 18%, transparent 19%), linear-gradient(170deg, #b8d4e3 0 50%, #e7d9bd 50%); }
.t6 { background: linear-gradient(135deg, #344f63 0 40%, #f1b77d 40% 52%, #6e7f5c 52%); }
.scan-result { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); font-size: 15px; }
.scan-result b { font-weight: 600; }
.scan-result .tag { margin-left: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 21px; border-top: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
.step { position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); color: var(--accent-text); font: 600 18px/1 var(--serif); margin-bottom: 18px; position: relative; }
.step h3 { font-size: 23px; }
.step p { color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 26px; padding-left: 62px; }
  .steps::before { left: 21px; right: auto; top: 10px; bottom: 10px; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
  .step::before { position: absolute; left: -62px; top: -6px; margin: 0; }
}

/* Plus */
.plus-card { display: grid; grid-template-columns: .9fr 1.1fr; border-radius: calc(var(--radius) + 6px); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.plus-price { background: var(--forest); color: var(--forest-text); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.plus-price::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; bottom: -150px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #52786b, var(--forest-water) 60%); opacity: .7; }
.plus-price .eyebrow { color: var(--shade); }
.plus-price h3 { font-size: clamp(30px, 4vw, 40px); }
.price { font: 500 clamp(48px, 7vw, 64px)/1 var(--serif); letter-spacing: -.02em; margin-top: 8px; position: relative; z-index: 1; }
.price small { font: 500 17px/1 var(--round); color: var(--forest-muted); letter-spacing: 0; margin-left: 6px; }
.plus-price p { color: var(--forest-muted); position: relative; z-index: 1; max-width: 30ch; }
.plus-list { list-style: none; margin: 0; padding: clamp(24px, 4vw, 44px); display: grid; gap: 4px; align-content: center; }
.plus-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plus-list li:last-child { border-bottom: 0; }
.plus-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.plus-list b { font-weight: 600; display: block; }
.plus-list span { color: var(--muted); font-size: 15px; }
.plus-list .soon svg { color: var(--muted); }
.plus-foot { margin-top: 18px; color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .plus-card { grid-template-columns: 1fr; } .plus-list li { grid-template-columns: 26px 1fr; } .plus-list li .tag { grid-column: 2; justify-self: start; } }

/* Privacy promise */
.promise { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.promise blockquote { margin: 0; text-wrap: balance; font: italic 500 clamp(36px, 5.4vw, 60px)/1.05 var(--serif); letter-spacing: -.015em; }
.promise blockquote + p { margin-top: 20px; color: var(--muted); max-width: 36ch; }
.promise-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
.promise-points h3 { font: 600 18px/1.3 var(--round); letter-spacing: 0; display: flex; align-items: center; gap: 10px; }
.promise-points h3 svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.promise-points p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.promise .text-link { margin-top: 24px; }
@media (max-width: 820px) { .promise-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .promise-points { grid-template-columns: 1fr; } }

/* Closing call to action */
.cta { padding: clamp(56px, 9vw, 110px) 0 0; }
.cta-card {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 10px); text-align: center;
  background: radial-gradient(ellipse 70% 90% at 50% 120%, var(--forest-glow), var(--forest) 70%); color: var(--forest-text);
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(190px, 26vw, 280px);
}
.cta-card > :not(.cta-arc):not(.cta-plane) { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(36px, 6vw, 64px); max-width: 15ch; margin: 0 auto; }
.cta-card p { color: var(--forest-muted); margin: 18px auto 30px; max-width: 40ch; }
.cta-card .hero-note { justify-content: center; }
.cta-arc { position: absolute; left: 50%; bottom: 0; width: min(720px, 120%); transform: translate(-50%, 66%); aspect-ratio: 1; pointer-events: none; }
.cta-arc canvas { width: 100%; height: 100%; }
.cta-plane { position: absolute; inset: auto 0 0 0; height: 70%; pointer-events: none; }

/* Footer, with a large wordmark */
.site-footer { padding: clamp(56px, 8vw, 96px) 0 0; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-top p { color: var(--muted); max-width: 32ch; margin-top: 14px; font-size: 15px; }
.footer-col h2 { font: 600 13px/1.2 var(--round); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer-col ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; font-size: 15px; }
.footer-col a:hover { text-decoration: underline; }
.footer-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.wordmark { font: 500 clamp(84px, 21vw, 300px)/.78 var(--serif); letter-spacing: -.045em; white-space: nowrap; text-align: center; margin-top: clamp(24px, 4vw, 40px); color: color-mix(in srgb, var(--ink) 92%, transparent); user-select: none; transform: translateY(14%); }
.wordmark em { color: var(--accent); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Document pages: support and privacy */
.doc-hero { background: var(--forest); color: var(--forest-text); }
.doc-hero .wrap.intro { padding-top: clamp(24px, 5vw, 48px); padding-bottom: clamp(40px, 6vw, 72px); }
.doc-hero h1 { font-size: clamp(40px, 6.4vw, 68px); max-width: 16ch; }
.doc-hero .lede { color: var(--forest-muted); margin-top: 18px; max-width: 48ch; }
.doc-hero .eyebrow { color: var(--shade); }
.doc-hero .meta { margin-top: 18px; font-size: 14px; color: var(--forest-muted); }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 8vw, 96px); }
.toc { position: sticky; top: 24px; align-self: start; font-size: 15px; }
.toc h2 { font: 600 13px/1.2 var(--round); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; text-decoration: none; padding: 6px 10px; margin-left: -10px; border-radius: 9px; color: var(--muted); }
.toc a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.prose { max-width: 680px; }
.prose section + section { margin-top: 44px; }
.prose h2 { font-size: clamp(26px, 3.4vw, 32px); }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--accent); }
.callout { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.callout h2 { font-size: 24px; }
.callout ul { margin-top: 12px; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.contact-card p { color: var(--muted); margin: 6px 0 0; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; background: var(--button); color: var(--button-text); text-decoration: none; font-weight: 600; }
.button:hover { text-decoration: none; filter: brightness(1.08); }
@media (max-width: 820px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
  .toc ol { grid-template-columns: 1fr 1fr; gap: 0 12px; }
}
@media (max-width: 340px) { .toc ol { grid-template-columns: 1fr; } }
.doc-footer .wordmark { font-size: clamp(64px, 15vw, 200px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Comparison page */
.compare { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 8vw, 96px); }
.compare > section + section { margin-top: clamp(48px, 7vw, 80px); }
.compare h2 { font-size: clamp(30px, 4vw, 42px); }
.compare-note { color: var(--muted); margin-top: 12px; max-width: 64ch; }
.scroll-hint { display: none; color: var(--muted); font-size: 14px; margin-top: 14px; }
.table-scroll { position: relative; margin-top: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.compare-table { width: 100%; min-width: 960px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.45; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { font: 500 21px/1.15 var(--serif); white-space: nowrap; }
.compare-table thead th .tag { margin-left: 6px; vertical-align: 2px; }
.compare-table th[scope="row"], .compare-table .corner { position: sticky; left: 0; z-index: 1; width: 170px; min-width: 132px; background: var(--card); border-right: 1px solid var(--line); font: 600 14px/1.35 var(--round); }
.compare-table .ours { background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.compare-table .ns { color: var(--muted); font-style: italic; }
.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.pick-grid .feature h3 { margin-top: 0; }
.pick-ours { grid-column: 1 / -1; background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.pick-ours p b { color: var(--ink); font-weight: 600; }
@media (max-width: 1000px) { .scroll-hint { display: block; } }
@media (max-width: 760px) { .pick-grid { grid-template-columns: 1fr; } .compare-table th[scope="row"], .compare-table .corner { width: 132px; } .compare-table th, .compare-table td { padding: 12px 12px; } }
