/* geldii — public website
   Palette and type mirror the mobile app's actual UI (apps/mobile/src):
   primary green #2E7D32, off-white background #F7F7F5, ink #1A1A1A,
   muted #6B6B66, hairline borders #EDEDEA, soft green tint #E7F3E8,
   amber accent #FFF9EC/#8A5A00 (campaign-ending-soon), danger #B00020
   (destructive actions, e.g. account deletion). System font stack only —
   the app itself bundles no webfonts either (see src/lib/fonts.ts). */

:root {
  --green: #2E7D32;
  --green-dark: #1E6B2E;
  --green-darker: #164F22;
  --green-light: #E7F3E8;
  --green-tint: #F0F7EF;
  --green-line: #CBE0C6;
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #6B6B66;
  --muted-2: #8A8A85;
  --border: #EDEDEA;
  --border-2: #E5E5E2;
  --amber-bg: #FFF9EC;
  --amber-line: #F0E0BC;
  --amber-text: #8A5A00;
  --danger: #B00020;
  --danger-tint: #FDECEE;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.06);
  --shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 20px 48px rgba(20, 60, 26, 0.16);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

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

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--green-darker);
  background: var(--surface);
  border: 1px solid var(--green-line);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(46,125,50,.28); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green-line); }
.btn-outline:hover { background: var(--green-tint); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f001a; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 245, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; }
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: .96rem;
}
.nav-links a:hover { color: var(--green-dark); text-decoration: none; }
.nav-links a.current { color: var(--green-dark); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 96px;
  padding: 56px 0 32px;
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}
.footer-brand img { height: 24px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.footer-col h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink); font-size: .95rem; font-weight: 500; }
.footer-col a:hover { color: var(--green-dark); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted-2);
  font-size: .85rem;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .btn-row { display: flex; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-copy .microcopy { margin-top: 14px; font-size: .88rem; color: var(--muted-2); }

/* Illustrative product mock — not a captured app screenshot */
.phone-mock {
  position: relative;
  margin-inline: auto;
  width: min(340px, 82vw);
  border-radius: 42px;
  background: linear-gradient(160deg, #20231f, #34372f);
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.phone-mock .screen {
  background: var(--bg);
  border-radius: 30px;
  overflow: hidden;
  padding: 22px 18px 26px;
  min-height: 560px;
}
.phone-mock .status-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .72rem; color: var(--muted-2); font-weight: 700; margin-bottom: 18px;
}
.mock-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 14px; padding: 13px 14px; box-shadow: var(--shadow-sm);
}
.mock-search svg { flex-shrink: 0; color: var(--muted-2); }
.mock-search span { color: var(--ink); font-weight: 600; font-size: .92rem; }
.mock-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); font-weight: 700; margin: 22px 0 10px; }
.mock-card {
  background: var(--surface); border-radius: 16px; padding: 14px;
  border: 1px solid var(--border); margin-bottom: 12px;
  display: flex; gap: 12px; align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.mock-card .swatch {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--green-light); display: flex; align-items: center; justify-content: center; color: var(--green-dark);
}
.mock-card .title { font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 3px; }
.mock-card .sub { font-size: .78rem; color: var(--muted); }
.mock-card .price { font-weight: 800; color: var(--green-dark); font-size: .92rem; white-space: nowrap; }
.mock-toast {
  margin-top: 18px;
  background: var(--green-darker); color: #fff; border-radius: 14px;
  padding: 12px 14px; display: flex; gap: 10px; align-items: center;
  font-size: .82rem; font-weight: 600; box-shadow: var(--shadow);
}
.mock-toast svg { flex-shrink: 0; }
.mock-caption { text-align: center; font-size: .8rem; color: var(--muted-2); margin-top: 18px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.step-num {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--green-light); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.step-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-line); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--green-tint); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Why band ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
.why-item { display: flex; gap: 16px; }
.why-item .num { font-size: 1.6rem; font-weight: 800; color: var(--green-line); flex-shrink: 0; width: 44px; }
.why-item h3 { margin-bottom: 6px; }
.why-item p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Final CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-darker), var(--green));
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin-inline: auto; }
.cta-band .pill { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
.cta-band .pill .dot { background: #B7E4B0; box-shadow: 0 0 0 3px rgba(183,228,176,.3); }

/* ---------- Reveal-on-scroll ----------
   .reveal elements are visible by default (this rule matters if JS never
   runs at all — no-JS users, a script error, a crawler that doesn't
   execute JS). main.js adds .reveal-armed only once it has successfully
   set up the IntersectionObserver, and that's the only state that hides
   content pre-reveal — so "no JS" degrades to "no animation", never to
   "invisible content". */
.reveal.reveal-armed { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.reveal-armed.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-armed { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Legal / long-form document layout ---------- */
.doc-header { padding: 56px 0 28px; border-bottom: 1px solid var(--border); background: var(--surface); }
.doc-meta {
  display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 14px;
  font-size: .86rem; color: var(--muted);
}
.doc-meta strong { color: var(--ink); }
.notice-box {
  border: 1px solid var(--amber-line);
  background: var(--amber-bg);
  color: var(--amber-text);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: .92rem;
  margin: 24px 0 0;
}
.notice-box strong { display: block; margin-bottom: 4px; }

.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 48px 0 96px;
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: 96px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
}
.doc-toc h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); margin-bottom: 12px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; counter-reset: doc-toc; }
.doc-toc li { counter-increment: doc-toc; }
.doc-toc a {
  color: var(--muted);
  font-size: .87rem;
  display: flex;
  gap: 8px;
}
.doc-toc a::before { content: counter(doc-toc) "."; color: var(--muted-2); font-weight: 700; }
.doc-toc a:hover, .doc-toc a.current { color: var(--green-dark); text-decoration: none; }

.doc-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 48px; max-width: 78ch; }
.doc-body h2 { font-size: 1.3rem; scroll-margin-top: 96px; padding-top: 6px; }
.doc-body h2:not(:first-child) { margin-top: 2.2em; }
.doc-body p { color: #33332f; }
.doc-body ul, .doc-body ol { color: #33332f; padding-left: 1.3em; }
.doc-body li { margin-bottom: .4em; }
.doc-body strong { color: var(--ink); }
.doc-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .92rem; }
.doc-body th, .doc-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc-body th { color: var(--muted-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.doc-body a { text-decoration: underline; }
.doc-footer-note { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }

/* ---------- Generic content page (about/support/delete) ---------- */
.page-header { padding: 64px 0 36px; text-align: center; }
.page-header .lede { margin-inline: auto; text-align: center; }
.narrow { max-width: 760px; margin: 0 auto; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.card + .card { margin-top: 18px; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.info-strip {
  display: flex; align-items: center; gap: 14px;
  background: var(--green-tint);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.info-strip svg { flex-shrink: 0; color: var(--green-dark); }
.info-strip p { margin: 0; font-size: .95rem; }

.warn-strip {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--danger-tint);
  border: 1px solid #F3C6CD;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  color: #7A0016;
}
.warn-strip svg { flex-shrink: 0; margin-top: 2px; }
.warn-strip p { margin: 0; font-size: .95rem; }

.steps-ordered { list-style: none; margin: 0; padding: 0; counter-reset: steplist; }
.steps-ordered li {
  counter-increment: steplist;
  display: flex; gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.steps-ordered li:first-child { border-top: none; }
.steps-ordered li::before {
  content: counter(steplist);
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--green-light); color: var(--green-dark);
  font-weight: 800; font-size: .88rem;
  display: flex; align-items: center; justify-content: center;
}
.steps-ordered strong { display: block; margin-bottom: 3px; }
.steps-ordered span.hint { color: var(--muted); font-size: .92rem; }

.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--green); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 12px 0 0; color: var(--muted); }

.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--green-darker);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}
.contact-card h3 { color: #fff; margin-bottom: 6px; }
.contact-card p { color: rgba(255,255,255,.8); margin: 0; }
.contact-card .btn-primary { background: #fff; color: var(--green-darker); box-shadow: none; }
.contact-card .btn-primary:hover { background: #EFEFEF; }

/* ---------- 404 ---------- */
.error-page { padding: 120px 0; text-align: center; }
.error-page .code { font-size: 5rem; font-weight: 800; color: var(--green-line); margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; }
  .phone-mock { width: min(300px, 70vw); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .doc-body { padding: 32px 24px; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 72px 0 0 0; background: var(--bg);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 12px 20px 24px; border-top: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
  }
  .nav-links a { padding: 12px 4px; width: 100%; border-bottom: 1px solid var(--border); }
  body.nav-open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 44px 24px; }
  .contact-card { flex-direction: column; text-align: center; }
  section { padding: 64px 0; }
  .doc-body { padding: 24px 18px; }
}
