/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  /* Brand greens — matched to the app. */
  --green-950: #06271e;
  --green-900: #082f24;
  --green-850: #0d382c;
  --green-800: #123d31;
  --green-700: #1b4332;
  --green-600: #235a41;
  --green-500: #2d6a4f;
  --green-400: #40916c;
  --green-300: #52b788;
  --mint-200: #d8f3dc;
  --mint-100: #eef8f1;
  --cream: #fbf7ee;
  --paper: #fffdf8;

  /* Text */
  --ink: #17342a;
  --muted: #55665f;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.76);
  --on-dark-faint: rgba(255, 255, 255, 0.58);

  /* Semantic — used by the impact scale, kept in one place. */
  --impact-high: #c62f2f;
  --impact-mid: #d9a516;
  --impact-low: #0b7a5b;

  /* Lines & surfaces */
  --line: rgba(27, 67, 50, 0.14);
  --line-strong: rgba(27, 67, 50, 0.24);
  --line-dark: rgba(255, 255, 255, 0.16);

  /* Spacing — 4px base, no off-scale values below. */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-2xl: 44px;
  --r-full: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(6, 39, 30, 0.06), 0 2px 8px rgba(6, 39, 30, 0.04);
  --shadow-md: 0 4px 12px rgba(6, 39, 30, 0.08), 0 12px 32px rgba(6, 39, 30, 0.06);
  --shadow-lg: 0 24px 64px rgba(5, 28, 21, 0.3);

  /* Type — larger baseline than usual; the audience is 40+. */
  --font:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.375rem;
  --focus: var(--green-300);
}

/* ==========================================================================
   Base
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

svg {
  display: block;
}

h1,
h2,
h3,
p,
ol {
  margin-top: 0;
}

/* Real weights only — the system stack has no 750/850, and asking for them
   makes the browser synthesise a smeared faux-bold. */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  margin-bottom: var(--s-5);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: var(--s-4);
  color: var(--green-900);
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: var(--s-2);
  color: var(--green-900);
  font-size: var(--text-xl);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--s-1);
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.section-inner {
  width: min(1140px, 100%);
  margin: 0 auto;
}

.band {
  padding: clamp(var(--s-7), 8vw, var(--s-9)) clamp(var(--s-5), 5vw, var(--s-8));
}

.band-paper {
  background: var(--paper);
}

.band-cream {
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.band-deep {
  color: var(--on-dark);
  background: var(--green-900);
}

.section-head {
  max-width: 46ch;
  margin-bottom: var(--s-7);
}

.section-head.is-centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-kicker {
  margin-bottom: var(--s-3);
  color: var(--green-500);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.band-deep .section-kicker {
  color: var(--green-300);
}

.band-deep h2 {
  color: var(--on-dark);
}

.section-lede {
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.band-deep .section-lede {
  color: var(--on-dark-muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(var(--s-6), 6vw, var(--s-8));
  align-items: start;
}

.two-column .section-head {
  margin-bottom: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  padding: var(--s-5) clamp(var(--s-5), 5vw, var(--s-8));
  color: var(--on-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  width: min(1140px, 100%);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.12);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.brand-name {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.language-switch {
  display: inline-flex;
  gap: var(--s-1);
  padding: var(--s-1);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.language-option {
  min-height: 38px;
  padding: 0 var(--s-4);
  color: var(--on-dark-muted);
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.language-option:hover {
  color: var(--on-dark);
}

.language-option.is-active {
  color: var(--green-900);
  background: var(--on-dark);
  font-weight: 600;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: calc(var(--s-9) + var(--s-5)) clamp(var(--s-5), 5vw, var(--s-8)) var(--s-8);
  color: var(--on-dark);
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(82, 183, 136, 0.18), transparent 60%),
    linear-gradient(165deg, var(--green-950), var(--green-700) 62%, var(--green-850));
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
  gap: clamp(var(--s-7), 6vw, var(--s-9));
  align-items: center;
  width: min(1140px, 100%);
  margin: 0 auto;
}

.hero-copy {
  max-width: 34ch;
}

.status-badge {
  display: inline-block;
  margin-bottom: var(--s-5);
  padding: var(--s-2) var(--s-4);
  color: var(--mint-200);
  border: 1px solid rgba(82, 183, 136, 0.34);
  border-radius: var(--r-full);
  background: rgba(82, 183, 136, 0.12);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.lede {
  max-width: 44ch;
  margin-bottom: var(--s-6);
  color: var(--on-dark-muted);
  font-size: clamp(var(--text-lg), 1.5vw, 1.3rem);
  line-height: 1.55;
}

.hero-note {
  margin: var(--s-5) 0 0;
  color: var(--on-dark-faint);
  font-size: var(--text-sm);
}

/* ==========================================================================
   Store buttons
   ========================================================================== */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.store-buttons.is-centered {
  justify-content: center;
  margin-top: var(--s-7);
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 60px;
  padding: 0 var(--s-5);
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.store-button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
}

.store-button.on-light {
  color: var(--green-900);
  border-color: var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.store-button.on-light:hover {
  border-color: var(--green-500);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

/* Pre-launch state. Removing `.is-pending` and setting a real href turns
   these into live download buttons — no other change needed. */
.store-button.is-pending {
  cursor: default;
}

.store-button.is-pending:hover {
  transform: none;
}

.store-logo {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.store-text small {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.store-text strong {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.requirements {
  margin: var(--s-5) 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
  text-align: center;
}

/* ==========================================================================
   Phone mock
   ========================================================================== */

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-mock {
  position: relative;
  width: min(370px, 100%);
  min-height: 720px;
  padding: var(--s-5) var(--s-4) 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-2xl);
  color: var(--on-dark);
  background:
    radial-gradient(circle at 22% 18%, rgba(82, 183, 136, 0.26), transparent 32%),
    linear-gradient(180deg, #063526, #00503d 48%, #063526);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-6);
  padding: 0 var(--s-2);
  font-size: var(--text-sm);
  font-weight: 600;
}

.status-icons {
  width: 62px;
  height: 12px;
  border-radius: var(--r-full);
  background:
    linear-gradient(90deg, white 0 12px, transparent 12px 17px, white 17px 29px, transparent 29px 35px, white 35px 47px, transparent 47px),
    linear-gradient(90deg, transparent 0 50px, white 50px 62px);
  opacity: 0.9;
}

.mock-brand {
  margin-bottom: var(--s-4);
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.mock-title {
  margin-bottom: var(--s-5);
  color: var(--on-dark);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
}

.mock-camera {
  position: relative;
  height: 400px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--r-lg);
  background:
    linear-gradient(116deg, rgba(101, 134, 84, 0.5), transparent 38%),
    linear-gradient(22deg, #91745a, #ddcfb4 52%, #8c765f);
  overflow: hidden;
}

.corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--on-dark);
  border-style: solid;
  z-index: 2;
}

.top-left {
  top: var(--s-4);
  left: var(--s-4);
  border-width: 4px 0 0 4px;
  border-radius: var(--r-sm) 0 0;
}

.top-right {
  top: var(--s-4);
  right: var(--s-4);
  border-width: 4px 4px 0 0;
  border-radius: 0 var(--r-sm) 0 0;
}

.bottom-left {
  bottom: var(--s-4);
  left: var(--s-4);
  border-width: 0 0 4px 4px;
  border-radius: 0 0 0 var(--r-sm);
}

.bottom-right {
  right: var(--s-4);
  bottom: var(--s-4);
  border-width: 0 4px 4px 0;
  border-radius: 0 0 var(--r-sm);
}

.label-card {
  position: absolute;
  top: 80px;
  right: -18px;
  width: 240px;
  padding: var(--s-5) var(--s-5) var(--s-6);
  color: var(--ink);
  border-radius: var(--r-sm);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 var(--s-4) var(--s-6) rgba(61, 42, 25, 0.2);
  transform: rotate(7deg);
}

.label-card p {
  margin-bottom: var(--s-3);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.label-card span {
  display: block;
  padding: var(--s-2) 0;
  border-top: 1px solid rgba(22, 37, 31, 0.2);
  font-size: var(--text-base);
  font-weight: 500;
}

.status-pill {
  position: absolute;
  left: 50%;
  bottom: var(--s-5);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  max-width: calc(100% - var(--s-6));
  padding: 0 var(--s-4);
  color: var(--on-dark);
  border-radius: var(--r-full);
  background: rgba(13, 56, 44, 0.92);
  font-size: var(--text-sm);
  transform: translateX(-50%);
  white-space: nowrap;
}

.dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-300);
}

.mock-result {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: var(--s-3) var(--s-5) var(--s-5);
  color: var(--ink);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: rgba(255, 253, 248, 0.98);
}

.grabber {
  width: 40px;
  height: 4px;
  margin: 0 auto var(--s-5);
  border-radius: var(--r-full);
  background: rgba(22, 37, 31, 0.16);
}

.result-topline {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-4);
  align-items: center;
  margin-bottom: var(--s-5);
}

.checkmark {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  color: var(--impact-low);
  border-radius: 50%;
  background: var(--mint-100);
}

.checkmark svg {
  width: 28px;
  height: 28px;
}

.result-topline h2 {
  margin-bottom: var(--s-1);
  color: var(--green-700);
  font-size: 1.5rem;
  line-height: 1.1;
}

.result-topline p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.impact-label {
  margin-bottom: var(--s-2);
  color: var(--green-700);
  font-size: var(--text-sm);
  font-weight: 600;
}

.impact-bar {
  position: relative;
  height: 8px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--impact-high), var(--impact-mid) 48%, var(--impact-low));
}

.impact-bar span {
  position: absolute;
  top: 50%;
  right: 16%;
  width: 24px;
  height: 24px;
  border: 5px solid var(--paper);
  border-radius: 50%;
  background: var(--impact-low);
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%);
}

.impact-caption {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s-3);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ==========================================================================
   Steps
   ========================================================================== */

.steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}

.steps li:first-child {
  padding-top: 0;
}

.steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-number {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  border-radius: 50%;
  background: var(--mint-100);
  font-size: var(--text-lg);
  font-weight: 600;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   Trust
   ========================================================================== */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}

.trust-card {
  padding: var(--s-6);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
}

.trust-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-5);
  align-items: center;
  justify-content: center;
  color: var(--green-300);
  border-radius: var(--r-md);
  background: rgba(82, 183, 136, 0.14);
}

.trust-icon svg {
  width: 26px;
  height: 26px;
}

.trust-card h3 {
  color: var(--on-dark);
  font-size: var(--text-lg);
}

.trust-card p {
  margin-bottom: 0;
  color: var(--on-dark-muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

.trust-note {
  max-width: 62ch;
  margin: var(--s-6) auto 0;
  color: var(--on-dark-faint);
  font-size: var(--text-sm);
  line-height: 1.6;
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: var(--s-8) clamp(var(--s-5), 5vw, var(--s-8)) var(--s-7);
  color: var(--on-dark-muted);
  background: var(--green-950);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line-dark);
}

.site-footer .brand {
  color: var(--on-dark);
}

.footer-tagline {
  margin: 0;
  font-size: var(--text-base);
}

.disclaimer {
  max-width: 68ch;
  margin: var(--s-5) 0 var(--s-6);
  color: var(--on-dark-faint);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.disclaimer strong {
  color: var(--on-dark-muted);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.copyright {
  margin: 0;
  color: var(--on-dark-faint);
  font-size: var(--text-sm);
}

.footer-link {
  color: var(--on-dark-muted);
  font-size: var(--text-sm);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link:hover {
  color: var(--on-dark);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.site-header.is-solid {
  position: static;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header.is-solid .brand-mark {
  color: var(--green-700);
  background: var(--mint-100);
}

.site-header.is-solid .language-switch {
  border-color: var(--line-strong);
  background: transparent;
}

.site-header.is-solid .language-option {
  color: var(--muted);
}

.site-header.is-solid .language-option:hover {
  color: var(--ink);
}

.site-header.is-solid .language-option.is-active {
  color: var(--paper);
  background: var(--green-700);
}

.legal {
  padding: clamp(var(--s-7), 6vw, var(--s-8)) clamp(var(--s-5), 5vw, var(--s-8))
    var(--s-9);
  background: var(--paper);
}

.legal-inner {
  width: min(680px, 100%);
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  margin-bottom: var(--s-6);
  color: var(--green-500);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.legal h1 {
  margin-bottom: var(--s-2);
  color: var(--green-900);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.legal-updated {
  margin-bottom: var(--s-6);
  color: var(--muted);
  font-size: var(--text-sm);
}

.legal-summary {
  margin-bottom: var(--s-7);
  padding: var(--s-5);
  color: var(--green-900);
  border-left: 3px solid var(--green-400);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--mint-100);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.legal h2 {
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
  font-size: 1.5rem;
}

.legal h3 {
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
  font-size: var(--text-lg);
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.65;
}

.legal p {
  margin-bottom: var(--s-4);
}

.legal ul {
  margin: 0 0 var(--s-4);
  padding-left: var(--s-5);
}

.legal li {
  margin-bottom: var(--s-2);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero-inner,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 40ch;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-card {
    padding: var(--s-5);
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: var(--s-4) var(--s-5);
  }

  .brand-name {
    font-size: var(--text-sm);
  }

  .language-option {
    padding: 0 var(--s-3);
  }

  .hero {
    padding: var(--s-9) var(--s-5) var(--s-7);
  }

  .store-buttons {
    flex-direction: column;
  }

  .store-button {
    width: 100%;
  }

  .band {
    padding: var(--s-7) var(--s-5);
  }

  .phone-mock {
    min-height: 660px;
    border-radius: var(--r-xl);
  }

  .mock-camera {
    height: 360px;
  }

  .label-card {
    right: -32px;
    width: 226px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
