/* FOFatty website. Every value here comes from DESIGN.md. */

:root {
  /* Colour: one job each */
  --ink: #141414;
  --ink-muted: #5A554C;
  --ink-soft: #3B3830;
  --ground: #FFFFFF;
  --surface: #F2F1EE;
  --hairline: #E2DED5;
  --input-border: #CFCAC0;
  --orange: #FF5A1F;
  --orange-text: #C9370F;
  --gold: #F5B700;
  --paper: #F4F1EA;
  /* Text on ink grounds. Not yet a DESIGN.md token (flagged to Dave). */
  --on-ink-muted: #D8D4CA;

  /* Type */
  --font-display: Anton, Impact, sans-serif;
  --font-text: Archivo, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Shape */
  --radius-control: 8px;
  --radius-surface: 16px;
  --radius-full: 999px;

  /* Layout */
  --max-width: 1200px;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, figure { margin: 0; }

a { color: var(--orange-text); }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.band-ink :focus-visible { outline-color: var(--ground); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--ink);
  color: var(--ground);
  padding: 12px 16px;
  border-radius: var(--radius-control);
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--ground); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Wordmark: FO in orange, Fatty in ink struck through in orange */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}
.wordmark .fo { color: var(--orange); }
.wordmark .fatty {
  color: var(--ink);
  text-decoration: line-through;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
}

/* Header */
.site-header { border-bottom: 1px solid var(--hairline); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  font-weight: 500;
  font-size: 15px;
}
.site-nav a:not(.button) {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.site-nav a:not(.button):hover { color: var(--orange-text); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-control);
  border: 0;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { background: var(--orange); color: var(--ink); }
.button-primary:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.button-primary:disabled { background: var(--surface); color: var(--ink-muted); cursor: progress; }
.button-large { min-height: 56px; padding: 0 26px; font-size: 17px; }

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 88px;
}
.hero-copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(60px, 8vw, 104px);
  line-height: 0.95;
}
.hero-lede {
  font-size: 20px;
  line-height: 1.55;
  max-width: 520px;
  color: var(--ink-soft);
}
.hero-small {
  font-size: 14px;
  color: var(--ink-muted);
}
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
}

/* Phone mockup: the real Today screen (Today.dc.html) built at 390 x 844, then scaled.
   Sizes inside .today are the app's own, so it stays true to the spec. */
.phone-wrap {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.phone {
  border: 10px solid var(--ink);
  border-radius: 48px;
  overflow: hidden;
  background: var(--ground);
}
.today {
  zoom: 0.78;
  width: 390px;
  height: 844px;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
}
.today-top { padding: 32px 20px 8px; display: flex; flex-direction: column; gap: 10px; }
.today-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-muted);
}
.today-title { font-family: var(--font-display); font-size: 46px; line-height: 1; }
.today-rows { padding: 8px 20px 0; display: flex; flex-direction: column; }
.today-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 8px;
}
.today-label { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.today-label span { font-weight: 600; font-size: 17px; }
.today-label small { font-size: 14px; color: var(--ink-muted); }
.tick {
  min-width: 60px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  background: var(--surface);
  color: var(--ink-soft);
}
.tick.is-yep { background: var(--orange); color: var(--ink); }
.today-weight { font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.today-excuses { padding: 24px 20px 0; display: flex; flex-direction: column; gap: 10px; }
.today-question { font-size: 15px; font-weight: 600; }
.today-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  background: var(--surface);
  color: var(--ink);
}
.chip.is-on { background: var(--ink); color: var(--ground); font-weight: 600; }
.chip-text { background: transparent; color: var(--orange-text); font-weight: 600; }
.today-save {
  margin: auto 20px 16px;
  min-height: 56px;
  border-radius: var(--radius-control);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  background: var(--surface);
  color: var(--ink-muted);
}
.today-tabs {
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 6px 4px 22px;
}
.today-tabs span {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}
.today-tabs span.is-current { color: var(--orange-text); font-weight: 700; }
.today-tabs svg { width: 22px; height: 22px; }

/* Waitlist form */
.waitlist { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.waitlist label { font-size: 15px; font-weight: 600; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 12px; }
.waitlist input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 56px;
  padding: 0 16px;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-control);
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
}
.waitlist input[type="email"]::placeholder { color: var(--ink-muted); }
.waitlist input[type="email"]:focus-visible { border-color: var(--ink); outline-offset: 1px; }
.waitlist input[aria-invalid="true"] { border-color: var(--orange-text); }
.waitlist .button { flex: 0 0 auto; }
.waitlist-hint { font-size: 14px; color: var(--ink-muted); }
.waitlist-error {
  font-size: 15px;
  font-weight: 600;
  color: var(--orange-text);
}
.waitlist-error:empty { display: none; }
.waitlist-done {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-surface);
  max-width: 560px;
}
.waitlist-done strong { font-size: 20px; font-weight: 700; }
.waitlist-done p { color: var(--ink-soft); }
/* Focus moves here so screen readers announce it; it isn't interactive, so no ring. */
.waitlist-done:focus,
.waitlist-done:focus-visible { outline: none; }
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Meet Fatty band */
.band-ink { background: var(--ink); color: var(--ground); }
.fatty-band {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}
.fatty-band svg { flex: 0 0 auto; }
.fatty-copy {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fatty-copy p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-ink-muted);
  max-width: 640px;
}

/* Section headings */
.h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}
.section { padding-top: 88px; padding-bottom: 88px; }
.section-intro { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.section-intro p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }

/* What a week looks like */
.week { display: flex; flex-direction: column; gap: 40px; }
.week-pair { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.week figure { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.week figcaption { font-size: 15px; color: var(--ink-muted); }
.chat-figure { flex: 1 1 440px; }
.receipt-figure { flex: 0 1 340px; }
.chat {
  background: var(--surface);
  border-radius: var(--radius-surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  max-width: 360px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.5;
}
.bubble-mate {
  align-self: flex-start;
  background: var(--ground);
  border-radius: 16px 16px 16px 4px;
}
.bubble-user {
  align-self: flex-end;
  max-width: 300px;
  background: var(--ink);
  color: var(--ground);
  border-radius: 16px 16px 4px 16px;
}
.receipt-panel {
  background: var(--orange);
  border-radius: var(--radius-surface);
  padding: 28px;
  display: flex;
  justify-content: center;
}
.receipt {
  width: 260px;
  max-width: 100%;
  background: var(--paper);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.receipt-title { font-weight: 700; font-size: 15px; text-align: center; letter-spacing: 0.04em; }
.receipt-center { text-align: center; }
.receipt-rule { border-top: 1.5px dashed var(--ink); margin: 4px 0; }
.receipt-line { display: flex; justify-content: space-between; gap: 12px; }
.receipt-line b { font-weight: 700; }

/* Dave's journey */
.band-surface { background: var(--surface); }
.journey {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.journey-photo {
  flex: 1 1 320px;
  min-width: 0;
  height: 380px;
  border-radius: var(--radius-surface);
  background: var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
}
.journey-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.journey-copy p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.journey-copy p.socials { font-size: 17px; color: var(--ink); }

/* Pricing */
.pricing { display: flex; flex-direction: column; gap: 32px; }
.pricing-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.pricing-head p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.plans { display: flex; flex-wrap: wrap; gap: 24px; }
.plan {
  flex: 1 1 320px;
  min-width: 0;
  border-radius: var(--radius-surface);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan-free { background: var(--surface); }
.plan-pro { background: var(--ink); color: var(--ground); }
.plan h3 { font-size: 20px; font-weight: 700; }
.plan-price { font-size: 44px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { display: inline-block; font-size: 16px; font-weight: 500; color: var(--on-ink-muted); }
.plan ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.5; }
.pricing-join {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}
.pricing-join h3 { font-size: 20px; font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }

/* Plain text pages: privacy, terms, support, unsubscribe */
.doc {
  max-width: 720px;
  padding-top: 64px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.doc h1 { font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: 1; }
.doc h2 { font-size: 20px; font-weight: 700; margin-top: 16px; }
.doc p, .doc li { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.doc ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.doc .updated { font-size: 14px; color: var(--ink-muted); }
.doc .draft-note {
  background: var(--surface);
  border-radius: var(--radius-surface);
  padding: 16px 18px;
  font-size: 15px;
}
.support-line {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.support-line strong { font-size: 17px; }
.support-line a { font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .hero { padding-top: 48px; padding-bottom: 64px; gap: 48px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .h2 { font-size: 30px; }
  .waitlist .button { flex: 1 1 100%; }
  .plan { padding: 24px; }
  .chat, .receipt-panel { padding: 20px; }
  .doc h1 { font-size: 44px; }
  .today { zoom: 0.7; }

  /* Phone header: wordmark and button on one row, section links below. */
  .site-header .wrap { gap: 0 20px; padding-bottom: 4px; justify-content: flex-start; }
  .site-nav { display: contents; }
  .wordmark { order: 1; margin-right: auto; }
  .site-nav .button { order: 2; }
  .site-nav::before { content: ""; order: 3; flex-basis: 100%; }
  .site-nav a:not(.button) { order: 4; }
}
.support-line span { font-size: 15px; color: var(--ink-muted); }
/* Keep each country's heading tight to its first line. */
.doc h2 + .support-line { margin-top: -16px; }
