/* Looped public site. Colours come from the logo, matching the app's Theme.kt. */
:root {
  --fairway: #063523;      /* the logo's deep green */
  --leaf: #6d9855;         /* the logo's fairway */
  --sand: #f9ecd9;         /* the logo's bunker */
  --cream: #faf9f2;        /* the off-white the logo sits on */

  --bg: var(--cream);
  --surface: #ffffff;
  --surface-alt: #f5f4eb;
  --text: #14201a;
  --text-muted: #55615a;
  --line: #daddd0;
  --accent: var(--fairway);
  --on-accent: var(--cream);
  --chip: #dce9d2;
  --chip-text: var(--fairway);
  --hero-bg: var(--fairway);
  --hero-text: var(--cream);

  --radius: 16px;
  --radius-lg: 24px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1711;
    --surface: #17231b;
    --surface-alt: #131e17;
    --text: #e3e8dd;
    --text-muted: #b4bcad;
    --line: #36433a;
    --accent: #a9cf93;
    --on-accent: var(--fairway);
    --chip: #0f4a33;
    --chip-text: #d6e8cb;
    --hero-bg: #08241a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Outfit", "Inter", system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

a { color: var(--accent); text-underline-offset: 3px; }

img { max-width: 100%; display: block; }

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

/* ---- Header & menu ---- */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand img { height: 30px; width: auto; }
.brand .logo-light { display: none; }
@media (prefers-color-scheme: dark) {
  .brand .logo-dark { display: none; }
  .brand .logo-light { display: block; }
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }

.menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.menu a:hover { background: var(--surface-alt); }
.menu a[aria-current="page"] { background: var(--chip); color: var(--chip-text); }

.menu a.button { margin-left: 8px; }

@media (max-width: 720px) {
  .menu-toggle { display: grid; }
  .menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-header.open .menu { display: flex; }
  .menu a { padding: 12px 14px; border-radius: 12px; }
  .menu a.button { margin: 8px 0 0; text-align: center; }
}

/* ---- Buttons ---- */

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.menu a.button { color: var(--on-accent); padding: 8px 18px; }
.menu a.button:hover { background: var(--accent); filter: brightness(1.1); }

.button.on-hero { background: var(--cream); color: var(--fairway); }
.button.ghost { background: transparent; color: var(--hero-text); border-color: color-mix(in srgb, var(--cream) 40%, transparent); }
.button:hover { filter: brightness(1.08); }

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

.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  overflow: hidden;
  position: relative;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 96px;
  padding-bottom: 104px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0.85;
  margin-bottom: 18px;
}

.hero h1 { font-size: clamp(38px, 6vw, 62px); margin: 0 0 20px; font-weight: 600; }
.hero h1 em { font-style: normal; color: #a9cf93; }
.hero p.lead { font-size: 19px; max-width: 34em; margin: 0 0 32px; color: color-mix(in srgb, var(--cream) 80%, transparent); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
  transform: rotate(-2deg);
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .hero-art { max-width: 420px; transform: none; padding: 32px 24px; }
}

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

section { padding: 88px 0; }
section.alt { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; font-weight: 600; }
.section-head p { margin: 0; color: var(--text-muted); font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { font-size: 21px; margin: 16px 0 8px; font-weight: 600; }
.card p { margin: 0; color: var(--text-muted); }

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--chip);
  color: var(--chip-text);
  display: grid;
  place-items: center;
}
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

.steps li { counter-increment: step; position: relative; padding-left: 60px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.steps h3 { margin: 4px 0 6px; font-size: 20px; font-weight: 600; }
.steps p { margin: 0; color: var(--text-muted); }

.cta {
  background: var(--sand);
  color: #3e2c0e;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta h2 { margin: 0 0 6px; font-size: 30px; font-weight: 600; color: var(--fairway); }
.cta p { margin: 0; }
.cta .button { background: var(--fairway); color: var(--cream); }
@media (max-width: 720px) { .cta { padding: 32px 24px; } }

/* ---- Document pages (privacy, delete account) ---- */

.doc-hero { background: var(--hero-bg); color: var(--hero-text); padding: 64px 0 56px; }
.doc-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 46px); font-weight: 600; }
.doc-hero p { margin: 12px 0 0; color: color-mix(in srgb, var(--cream) 75%, transparent); }

.doc { max-width: 740px; margin: 0 auto; padding: 56px 20px 88px; }
.doc h2 { font-size: 25px; margin: 44px 0 12px; font-weight: 600; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .note {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--leaf);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
}

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

.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 15px; color: var(--text-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
