/* Andon marketing site — no framework, no JS.
   Light/dark follow the system; accent = andon green, warm lantern amber. */

:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #e8e8ed;
  --text: #1d1d1f;
  --muted: #56565c;
  --green: #34c759;
  --green-ink: #1e7a38;   /* green dark enough for text on light bg */
  --amber: #ff9500;
  --red: #ff3b30;
  --border: rgba(0, 0, 0, 0.1);
  --glow: rgba(52, 199, 89, 0.14);
  --max: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --green: #30d158;
    --green-ink: #30d158;
    --amber: #ff9f0a;
    --red: #ff453a;
    --border: rgba(255, 255, 255, 0.15);
    --glow: rgba(48, 209, 88, 0.10);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

a { color: var(--green-ink); }
a:hover { opacity: 0.85; }

img, svg { max-width: 100%; height: auto; }

code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border-radius: 0.3em;
  padding: 0.1em 0.35em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand img { width: 1.6rem; height: 1.6rem; }

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--text); opacity: 1; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  background:
    radial-gradient(60rem 30rem at 50% -12rem, var(--glow), transparent 70%);
}

.hero .lantern { width: 4.5rem; height: 4.5rem; margin-bottom: 1rem; }

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.hero .app-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin: 0 0 0.75rem;
}

.hero .tagline {
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-shot {
  margin: 2.75rem auto 0;
  max-width: 17rem;
  filter: drop-shadow(0 1.5rem 3rem rgba(0, 0, 0, 0.25));
}

/* App Store badge placeholder */
.store-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.85rem;
  padding: 0.7rem 1.3rem;
}

.store-cta:hover { opacity: 0.85; }

.store-note {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */

section { padding: 3.5rem 0; }

section.alt { background: var(--surface); }

.section-head {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

.section-head p { color: var(--muted); margin: 0; }

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.1rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.4rem 1.3rem;
}

section.alt .feature { background: var(--bg); }

.feature .icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.feature h3 {
  font-size: 1.08rem;
  margin: 0 0 0.4rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Screenshots gallery ---------- */

.gallery {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 1.25rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

.gallery figure {
  flex: 0 0 auto;
  width: 13.5rem;
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}

.gallery img {
  border-radius: 1.4rem;
  border: 1px solid var(--border);
  display: block;
}

.gallery figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Privacy strip ---------- */

.privacy-strip {
  text-align: center;
}

.privacy-strip .big {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 40rem;
  margin: 0 auto 0.8rem;
}

.privacy-strip p { color: var(--muted); max-width: 40rem; margin: 0 auto 1.2rem; }

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 44rem;
  margin: 0 auto;
}

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0 1.2rem;
  margin-bottom: 0.75rem;
}

section.alt details.faq-item { background: var(--bg); }

details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1;
}

details.faq-item[open] summary::after { content: "–"; }

details.faq-item .answer {
  padding: 0 0 1.1rem;
  color: var(--muted);
}

details.faq-item .answer p { margin: 0 0 0.6rem; }
details.faq-item .answer p:last-child { margin-bottom: 0; }

.more-link { text-align: center; margin-top: 1.5rem; }

/* ---------- Prose pages (privacy, terms, legal, support) ---------- */

.prose {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.prose h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 0.4rem;
}

.prose .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; }
.prose h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35rem; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 0.25rem solid var(--green);
  border-radius: 0.6rem;
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0;
}

.callout p { margin: 0; }

/* ---------- Contact cards ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
}

.contact-card h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-bottom: 1.2rem;
  padding: 0;
  list-style: none;
}

.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); opacity: 1; }

.site-footer .legal-note { max-width: 52rem; }

/* ---------- Accessibility & motion ---------- */

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
