/* Weight Log With Friends — marketing site
   Tokens from design handoff: ink #16130F, paper #FBF9F7, accent #ED6C2F */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Anchor links glide instead of jumping; offset clears the sticky header. */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:root {
  --ink: #16130F;
  --paper: #FBF9F7;
  --muted: #6E675F;
  --faint: #8A837B;
  --accent: #ED6C2F;
  --accent-hover: #C9541C;
  --accent-on-dark: #F08651;
  --accent-tint: #FDECE2;
  --glow: #FBD9C6;
  --tint-text: #7A5B48;
  --tint-caption: #9A7A66;
  --on-dark-body: #A9A199;
  --person-blue: #5B8DEF;
  --person-green: #8FB25A;
  --hairline: rgba(22, 19, 15, 0.1);
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(72px, 9vw, 120px);
}

body {
  font-family: 'Helvetica Neue', Helvetica, -apple-system, system-ui, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--glow); }
img { max-width: 100%; }

/* Visible keyboard focus on every interactive element (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, label:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link (WCAG 2.4.1) — visible only once focused */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 600;
  padding: 12px 20px; border-radius: 0 0 10px 10px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 247, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(22, 19, 15, 0.07);
}

.site-header .container { display: flex; align-items: center; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.site-header .home-link { display: flex; }
.site-header img { width: 53px; height: auto; display: block; border-radius: 11px; }
.site-header .wordmark { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }

.site-header nav {
  margin-left: auto; display: flex; align-items: center;
  flex-wrap: wrap; justify-content: flex-end; gap: 12px 28px;
}
.site-header nav a { font-size: 15px; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a.cta {
  font-weight: 600; color: #fff; background: var(--accent);
  padding: 10px 20px; border-radius: 999px;
}
.site-header nav a.cta:hover { background: var(--ink); color: #fff; }

/* Hamburger — checkbox toggle, no script required */
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 10px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; cursor: pointer;
}
.nav-burger span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 960px) {
  .nav-burger { display: flex; }
  .site-header nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    justify-content: flex-start; gap: 2px;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 18px 30px -22px rgba(22, 19, 15, 0.5);
    padding: 10px var(--gutter) 22px;
  }
  .nav-toggle:checked ~ nav { display: flex; }
  .site-header nav a { font-size: 17px; padding: 12px 0; }
  .site-header nav a.cta { margin-top: 10px; padding: 13px 24px; }
  /* bars become an X while the menu is open */
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* CTA: centre the whole button+note stack in the column */
  .cta-row { margin-left: auto; margin-right: auto; }
  .cta-row .note { text-align: center; }
}

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

.hero {
  padding-top: clamp(52px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px; align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 76px); line-height: 0.98;
  letter-spacing: -0.045em; font-weight: 700;
  margin-top: -10px;
}
.hero .lead { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 480px; margin-top: 24px; }

/* Button with its note stacked beneath. width:fit-content shrinks the stack
   to the button, so the note centres against the button — not the column. */
.cta-row {
  display: flex; flex-direction: column; align-items: center;
  width: fit-content; gap: 12px; margin-top: 34px;
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px; text-align: center;
  background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 600; padding: 16px 30px; border-radius: 999px;
}
.button:hover { background: var(--ink); color: #fff; }
.button.dark { background: var(--ink); padding: 16px 32px; }
.button.dark:hover { background: var(--accent); }
.button .soon { font-weight: 500; color: rgba(255, 255, 255, 0.8); white-space: nowrap; }
.cta-row .note { font-size: 14px; color: var(--faint); }

/* ---------- Phone frames ---------- */

.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-wrap .glow {
  position: absolute; inset: 10% 0 0 0;
  background: radial-gradient(55% 50% at 50% 50%, var(--glow) 0%, rgba(251, 217, 198, 0) 70%);
}
.phone-wrap .glow.hero-glow {
  inset: 8% -6% -4% -6%;
  background: radial-gradient(60% 55% at 50% 45%, var(--glow) 0%, rgba(251, 217, 198, 0) 70%);
  filter: blur(6px);
}
.phone-wrap .glow.green {
  background: radial-gradient(55% 50% at 50% 50%, #DBEEE1 0%, rgba(219, 238, 225, 0) 70%);
}
.phone {
  position: relative; width: min(320px, 100%); border-radius: 44px; padding: 10px;
  background: var(--ink); box-shadow: 0 34px 70px -28px rgba(22, 19, 15, 0.4);
}
.phone img { width: 100%; display: block; border-radius: 35px; }
.phone.hero-phone { width: min(340px, 100%); border-radius: 46px; box-shadow: 0 40px 90px -30px rgba(22, 19, 15, 0.45); }
.phone.hero-phone img { border-radius: 37px; }

/* ---------- Proof strip ---------- */

.proof { padding-top: clamp(56px, 7vw, 88px); }
.proof .strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px; background: var(--hairline); border-radius: 20px; overflow: hidden;
}
.proof .cell { background: var(--paper); padding: 30px 28px; }
.proof .value { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; }
.proof .label { font-size: 15px; color: var(--muted); margin-top: 4px; }

/* ---------- Feature sections ---------- */

.feature {
  padding-top: var(--section);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(40px, 6vw, 72px); align-items: center;
}
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; }
.feature h2 {
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05;
  letter-spacing: -0.035em; font-weight: 700; margin-top: 14px;
}
.feature .body { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 460px; margin-top: 20px; }

.dot-list { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.dot-list li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; color: var(--ink); }
.dot-list li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
}

.stat-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px; margin-top: 30px; max-width: 460px;
}
.stat-card { background: #fff; border: 1px solid rgba(22, 19, 15, 0.08); border-radius: 16px; padding: 18px 20px; }
.stat-card .value { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); }
.stat-card .label { font-size: 14px; color: var(--muted); margin-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 460px; }
.chips span {
  font-size: 15px; font-weight: 500;
  border: 1px solid rgba(22, 19, 15, 0.14); border-radius: 999px; padding: 9px 18px;
}

.feature .caption { font-size: 15px; line-height: 1.6; color: var(--faint); max-width: 460px; margin-top: 18px; }
.feature .policy-link { display: inline-block; font-size: 17px; font-weight: 600; margin-top: 28px; }

/* ---------- Shared (dark) ---------- */

.shared {
  margin-top: clamp(80px, 10vw, 130px);
  background: var(--ink); color: #F6F2EE;
  padding: clamp(64px, 9vw, 110px) 0 clamp(72px, 9vw, 120px);
}
.shared .intro { max-width: 720px; }
.shared .eyebrow { color: var(--accent-on-dark); }
.shared h2 {
  font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02;
  letter-spacing: -0.04em; font-weight: 700; margin-top: 16px;
}
.shared .intro p { font-size: 20px; line-height: 1.55; color: var(--on-dark-body); margin-top: 22px; }

.shared .grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(40px, 5vw, 64px); align-items: center; margin-top: 64px;
}
.shared .phone {
  width: auto; border-radius: 46px; background: #2A2520;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}
.shared .phone img { border-radius: 37px; }

.shared .cards { display: grid; gap: 1px; background: rgba(255, 255, 255, 0.12); border-radius: 20px; overflow: hidden; }
.shared .card { background: var(--ink); padding: 28px 30px; }
.shared .card .title-row { display: flex; align-items: center; gap: 12px; }
.shared .card .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.shared .card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.shared .card p { font-size: 17px; color: var(--on-dark-body); margin-top: 6px; }

/* ---------- Pricing ---------- */

.pricing { margin-top: clamp(80px, 10vw, 130px); }
.pricing .card {
  background: var(--accent-tint); border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(40px, 5.5vw, 72px) clamp(24px, 4.5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(40px, 5vw, 64px); align-items: center;
}
.pricing h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; }
.pricing .body { font-size: 19px; line-height: 1.55; color: var(--tint-text); max-width: 440px; margin-top: 20px; }
.pricing .dot-list { gap: 12px; }
.pricing .cta-row { margin-top: 36px; }
.pricing .note { font-size: 14px; color: var(--tint-caption); }
.pricing .phone {
  width: auto; border-radius: 40px; padding: 9px; background: #fff;
  box-shadow: 0 30px 60px -24px rgba(122, 91, 72, 0.4);
}
.pricing .phone img { border-radius: 32px; }

/* ---------- FAQ ---------- */

.faq { padding-top: var(--section); }
.faq h2 {
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05;
  letter-spacing: -0.035em; font-weight: 700; margin-bottom: 48px;
}
.faq .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px 64px; }
.faq h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.faq p { font-size: 17px; line-height: 1.6; color: var(--muted); margin-top: 10px; }

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

.site-footer { margin-top: clamp(80px, 10vw, 130px); border-top: 1px solid var(--hairline); }
.site-footer .container {
  padding-top: 56px; padding-bottom: 72px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(36px, 5vw, 64px);
}
.site-footer .brand-row { display: flex; align-items: center; gap: 12px; }
.site-footer .brand-row img { width: 44px; height: auto; display: block; border-radius: 9px; }
.site-footer .brand-row span { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.site-footer .disclaimer { font-size: 13px; line-height: 1.6; color: var(--faint); max-width: 560px; margin-top: 20px; }
.site-footer .copyright { font-size: 13px; color: var(--faint); margin-top: 16px; }
.site-footer .columns { display: flex; gap: 56px; }
.site-footer .col { display: grid; gap: 10px; align-content: start; }
.site-footer .col .head { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--faint); }
.site-footer .col a { font-size: 15px; color: var(--ink); }
.site-footer .col a:hover { color: var(--accent); }

/* ---------- Subpages (privacy / support) ---------- */

.page { max-width: 760px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gutter) 0; }
.page h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.page .updated { font-size: 15px; color: var(--faint); margin-top: 10px; }
.page h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-top: 40px; }
.page h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-top: 28px; }
.page p, .page li { font-size: 17px; line-height: 1.6; color: var(--ink); margin-top: 12px; }
.page ul { padding-left: 24px; }
.page .callout {
  background: var(--accent-tint); border-radius: 20px;
  padding: 22px 26px; margin-top: 28px;
}
.page .callout p { margin: 0; color: var(--tint-text); }
.page .button { margin-top: 32px; }
