/* allgreendates.com. Colors match AllGreen/Theme.swift. */
:root {
  --green: #0B7A47;
  --green-dark: #075C35;
  --ink: #0F1F17;
  --muted: #4A5A52;
  --page: #F5F8F6;
  --line: #E1E8E4;
  --divider: #EDF1EE;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--green); }
a:hover { color: var(--green-dark); }

main {
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  /* Extra room at the bottom so Netlify's "Powered by" badge doesn't cover the footer. */
  padding: 24px 20px 84px;
  display: flex;
  flex-direction: column;
}

.brand { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand img { display: block; height: 34px; width: auto; }

.card { margin-top: 20px; padding: 18px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); }

.status { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--green); }
.status.off { color: var(--muted); }

h1 { margin: 10px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; }
.sub { margin-top: 4px; font-size: 13px; color: var(--muted); }

.label { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.8px; color: var(--muted); }
.photos { margin-top: 8px; display: grid; gap: 8px; }
.photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--divider); }
.photo figcaption { margin-top: 4px; font-size: 11px; color: var(--muted); text-align: center; }
.photo { margin: 0; }

.rows { margin-top: 14px; padding: 6px 18px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--divider); font-size: 15px; }
.row:last-child { border-bottom: 0; }
.row .yes { font-weight: 700; color: var(--green); text-align: right; }
.row .no { font-weight: 600; color: var(--muted); text-align: right; }

.note { margin: 14px 2px 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.body { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

.grow { flex-grow: 1; min-height: 24px; }

.button { display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 14px; background: var(--green); color: #FFFFFF; font-size: 16px; font-weight: 600; text-decoration: none; }
.button:hover { background: var(--green-dark); color: #FFFFFF; }

.footer { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }

[hidden] { display: none !important; }

/* Help, Privacy and Terms pages. */
.doc { margin-top: 20px; }
.doc h1 { margin-top: 0; }
.doc .updated { margin-top: 6px; font-size: 13px; color: var(--muted); }
.doc h2 { margin: 26px 0 0; font-size: 18px; font-weight: 800; }
.doc p, .doc li { font-size: 15px; line-height: 1.55; color: var(--muted); }
.doc p { margin: 10px 0 0; }
.doc ul { margin: 10px 0 0; padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.doc-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }

/* Home page and waitlist. */
.hero { margin-top: 28px; }
.hero h1 { font-size: 34px; }
.lead { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: var(--muted); }

.join { margin-top: 18px; }
.join input[type="email"] {
  display: block; width: 100%; height: 54px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--line); background: #FFFFFF; color: var(--ink);
  font: inherit; font-size: 16px;
}
.join input[type="email"]:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.join .button { width: 100%; margin-top: 10px; border: 0; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.join .button:disabled { opacity: 0.7; cursor: default; }
.form-note { margin: 8px 2px 0; font-size: 12px; color: var(--muted); text-align: center; }
.form-message { margin: 10px 2px 0; font-size: 14px; line-height: 1.45; }
.form-message.problem { color: #A3321F; }
.form-message.done { padding: 14px 16px; border-radius: 14px; background: #E1F0E7; color: var(--green-dark); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sample { margin: 32px 0 0; }
.sample figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }
.trust-card {
  padding: 18px; border-radius: 20px; color: #FFFFFF;
  background:
    linear-gradient(135deg, rgba(3, 45, 25, 0.12), rgba(3, 45, 25, 0.42)),
    url("/img/card-texture.jpg") center / cover,
    var(--green);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(7, 92, 53, 0.28);
}
.trust-card-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; }
.trust-card-name { margin-top: 12px; font-size: 26px; font-weight: 800; }
.trust-card-photos { margin-top: 12px; display: flex; gap: 8px; }
.trust-card-photos img { width: 60px; height: 80px; object-fit: cover; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.85); }
.trust-card-foot { margin-top: 12px; font-size: 12px; font-weight: 500; }

.section { margin-top: 36px; }
.section h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.section .rows { margin-top: 12px; }
.point { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--divider); font-size: 15px; line-height: 1.45; color: var(--muted); }
.point:last-child { border-bottom: 0; }
.point strong { color: var(--ink); }
.tick { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--green); position: relative; }
.tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid #FFFFFF; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 0 44px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.steps li + li { margin-top: 16px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: #E1F0E7; color: var(--green-dark); font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.steps strong, .plain strong { color: var(--ink); }
.plain { margin: 12px 0 0; padding-left: 20px; }
.plain li { font-size: 15px; line-height: 1.5; color: var(--muted); }
.plain li + li { margin-top: 10px; }
.row .gold { flex: none; white-space: nowrap; font-weight: 700; color: #6B4E0E; background: #FBF3DF; padding: 2px 8px; border-radius: 8px; text-align: right; }

.section + .footer { margin-top: 36px; }
