:root {
  --bg: #0c0c0d;
  --surface: #161618;
  --border: #2a2a2e;
  --hairline: rgba(255, 255, 255, 0.04);   /* subtle top-edge highlight on cards */
  --text: #f4f2ee;
  --muted: #a6a39b;
  --accent: #c68c54;        /* amber (dark-mode tone of the app accent) */
  --accent-strong: #d89a60;
  --olive: #7d9a76;         /* secondary accent / brand tree */
  --radius: 16px;
  --maxw: 760px;
  --pad: 24px;
  /* Spacing scale — mirrors OrchardCore UISpacing (4pt grid: 4/8/12/16/20/24/32/40)
     so the site snaps to the same unit grid as the app's card layout. */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 20px;
  --sp-xxl: 24px;
  --sp-3xl: 32px;
  --sp-4xl: 40px;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(198, 140, 84, 0.28); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--text);
  padding: 10px 16px; border-radius: 8px; z-index: 20;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Horizontal centering container only. Use longhand so it never clobbers the
   vertical padding that sections / hero / legal set on themselves (a `padding`
   shorthand here would reset top+bottom to 0 and out-specificity the type rules). */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Top navigation (shared) */
.site-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 12, 13, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark { display: block; }
.brand span { font-size: 1.05rem; letter-spacing: -0.015em; }
.site-nav nav a { color: var(--muted); font-size: 0.95rem; margin-left: 22px; transition: color 0.15s ease; }
.site-nav nav a:hover { color: var(--text); text-decoration: none; }
.site-nav nav a[aria-current="page"] { color: var(--text); }
/* Fit four nav links on small screens: tighten gaps, then drop the wordmark
   (the tree mark still links home) so the links never overflow. */
@media (max-width: 600px) { .site-nav nav a { margin-left: 16px; } }
@media (max-width: 470px) {
  .brand span { display: none; }
  .site-nav nav a { margin-left: 14px; font-size: 0.9rem; }
}

/* Hero */
.hero { text-align: center; padding: clamp(52px, 9vw, 88px) 0 clamp(44px, 7vw, 60px); }
.logo { width: 88px; height: 88px; margin: 0 auto var(--sp-xxl); display: block; }
.hero h1 { font-size: clamp(2.5rem, 7.5vw, 3.75rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 var(--sp-lg); }
.lede { font-size: clamp(1.28rem, 3.6vw, 1.6rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; margin: 0 auto var(--sp-xl); max-width: 24ch; }
.subtag { color: var(--muted); margin: 0 auto var(--sp-3xl); max-width: 48ch; font-size: 1.06rem; }
.cta { display: flex; flex-direction: column; align-items: center; gap: var(--sp-md); }
.cta-note { color: var(--muted); font-size: 0.85rem; margin: 0; letter-spacing: 0.01em; }

.badge {
  display: inline-flex; align-items: center; gap: var(--sp-sm);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--hairline);
  color: var(--text); font-weight: 600; font-size: 0.95rem;
  padding: 14px 24px; border-radius: 999px; min-height: 44px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* Sections — gap above the eyebrow (section separation) stays ~2x the gap below
   it (eyebrow groups with the cards it labels): 32-40px above vs --sp-lg below. */
section { padding: clamp(var(--sp-3xl), 5vw, var(--sp-4xl)) 0; border-top: 1px solid var(--border); }
section h2 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); font-weight: 700; margin: 0 0 var(--sp-lg);
}

.features { display: grid; gap: var(--sp-md); }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-xxl);
  box-shadow: inset 0 1px 0 var(--hairline);
}
.feature h3 { margin: 0 0 var(--sp-sm); font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; }
.feature h3 .arrow { color: var(--accent); font-weight: 400; }
.feature p { margin: 0; color: var(--muted); }
.feature .note { display: block; margin-top: var(--sp-sm); font-size: 0.85rem; color: var(--muted); }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-md); }
.step {
  display: flex; gap: var(--sp-lg); align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-xl) var(--sp-xxl);
  box-shadow: inset 0 1px 0 var(--hairline);
}
.step .num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #0c0c0d; font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 0 0 var(--sp-xs); font-size: 1.12rem; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); }

/* Works wherever you do */
.anywhere-lede { font-size: 1.12rem; line-height: 1.5; max-width: 54ch; margin: 0 0 var(--sp-xl); }
.anywhere-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-md); max-width: 54ch; }
.anywhere-list li { position: relative; padding-left: var(--sp-xl); color: var(--muted); }
.anywhere-list li::before {
  content: "→"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 600;
}

/* Privacy strip */
.privacy-strip p { font-size: 1.2rem; line-height: 1.4; max-width: 44ch; margin: 0 0 var(--sp-lg); }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2px var(--sp-xxl); margin-bottom: var(--sp-md);
  box-shadow: inset 0 1px 0 var(--hairline);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 0; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .answer { padding: 14px 0 18px; color: var(--muted); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ul { margin: 0; padding-left: 20px; }
.faq .answer li { margin-bottom: 8px; }
.faq .answer strong { color: var(--text); }
.faq-more { margin: 6px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: clamp(34px, 5vw, 40px) 0 56px; color: var(--muted); font-size: 0.9rem; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
footer .disclaimer { font-size: 0.82rem; line-height: 1.55; max-width: 64ch; }
footer .copy { margin-top: 14px; }

/* Legal / FAQ pages */
.legal { padding: clamp(40px, 7vw, 64px) 0; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); letter-spacing: -0.02em; margin: 0 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 36px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 40px 0 12px; text-transform: none; color: var(--text); }
.legal h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.legal p, .legal li { color: #dcd9d2; line-height: 1.65; }
.legal .back-home { margin-top: 40px; }

/* Support contact form */
.support-intro { color: #dcd9d2; margin: 0 0 28px; max-width: 60ch; line-height: 1.65; }
.contact { display: grid; gap: 6px; max-width: 540px; }
.contact label { font-weight: 600; margin-top: 16px; }
.contact input, .contact textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: 12px 14px; font: inherit;
  transition: border-color 0.15s ease;
}
.contact input:focus, .contact textarea:focus { border-color: var(--accent); }
.contact textarea { resize: vertical; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact button {
  margin-top: 24px; justify-self: start; cursor: pointer;
  background: var(--accent); color: #0c0c0d; font-weight: 700; font-size: 1rem;
  border: none; border-radius: 999px; padding: 14px 30px; min-height: 44px;
  transition: background-color 0.15s ease;
}
.contact button:hover { background: var(--accent-strong); }
