/* Birdie website. Colours and type follow the app (repo CLAUDE.md "Design direction"):
   cream ground, forest green, moss text, lime used sparingly; Outfit everywhere,
   DM Serif Display only for big titles (as on Wrapped cards). Light only, like the app. */
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("fonts/dmserif-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --cream: #F2F0EA;      /* page ground (app mainBackground) */
  --paper: #FBFAF6;      /* raised surfaces */
  --tinted: #E7E4DA;     /* mystery tiles, field */
  --forest: #476345;     /* buttons, found tiles */
  --forest-deep: #34502F;
  --moss: #2D332D;       /* text */
  --muted: #5A7257;      /* secondary copy, 4.6:1 on cream */
  --line: #D9D5C8;
  --lime: #C9E39A;       /* accent, sparingly */
  --error: #A3412E;
  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-card: 20px;
  --radius-tile: 16px;
  --radius-pill: 48px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--moss);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }

/* Top bar */
.top { padding-block: 22px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--moss); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top-link { font-size: 15px; font-weight: 500; text-decoration: none; }

/* Hero */
.hero { padding-block: 28px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 4px var(--lime); }
h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(42px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.015em;
  margin: 18px 0 18px; text-wrap: balance; color: var(--moss);
}
h1 em { font-style: normal; color: var(--forest); }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 30em; margin: 0 0 28px; }

/* Waitlist form */
.join { max-width: 460px; }
.field { display: flex; gap: 8px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-pill); box-shadow: 0 8px 24px -16px rgba(45, 51, 45, 0.35); }
.field:focus-within { border-color: var(--forest); }
.field input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--moss);
  font: 500 17px var(--sans); padding: 10px 14px; outline: none;
}
.field input::placeholder { color: #8C9A8A; }
/* Browser autofill paints a blue box; keep the field looking the same */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--moss);
  caret-color: var(--moss);
  -webkit-box-shadow: 0 0 0 40px var(--paper) inset;
  box-shadow: 0 0 0 40px var(--paper) inset;
  border-radius: var(--radius-pill);
  transition: background-color 9999s ease-in-out 0s;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--forest); color: #fff; font: 600 16px var(--sans);
  padding: 12px 22px; min-height: 48px; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--forest-deep); color: #fff; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: .7; cursor: default; }
.fine { font-size: 14px; color: var(--muted); margin: 12px 4px 0; line-height: 1.5; }
.fine a { color: inherit; }
.form-error { color: var(--error); font-size: 14px; margin: 10px 4px 0; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { display: flex; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 20px 16px 12px; max-width: 460px; }
.done img { width: 76px; height: auto; flex: none; }
.done strong { display: block; font-size: 18px; }
.done p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* Store buttons (live mode) */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--moss); color: #fff; text-decoration: none; border-radius: 14px; padding: 10px 18px 10px 14px; min-height: 56px; }
.store:hover { background: #1F241F; color: #fff; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; opacity: .8; line-height: 1.1; }
.store b { display: block; font-size: 18px; font-weight: 600; line-height: 1.15; }
.store.soon { background: transparent; color: var(--muted); border: 1px dashed var(--line); }

/* Phone with a real screenshot from the app (Northern cardinal result) */
.phone-stage { display: flex; justify-content: center; }
.phone {
  width: min(320px, 100%); max-width: 100%;
  background: var(--moss); border-radius: 46px; padding: 11px;
  box-shadow: 0 40px 60px -30px rgba(45, 51, 45, .55), 0 0 0 1px rgba(0,0,0,.05);
  transform: rotate(2.5deg);
}
.screen { display: block; width: 100%; height: auto; border-radius: 36px; background: var(--cream); }

/* Three steps */
.how { padding-block: 72px; background: var(--paper); border-block: 1px solid var(--line); }
.how h2, .maker h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin: 0 0 36px; text-wrap: balance; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step .ico { width: 52px; height: 52px; border-radius: var(--radius-tile); background: var(--cream); border: 1px solid var(--line); display: grid; place-items: center; }
.step .ico svg { width: 26px; height: 26px; }
.step h3 { margin: 6px 0 0; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); }

/* Maker */
.maker { padding-block: 72px; }
.maker .wrap { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 36px; align-items: center; max-width: 820px; }
.maker img { width: 160px; }
.maker h2 { margin-bottom: 14px; }
.maker p { margin: 0 0 18px; color: var(--muted); max-width: 34em; }
.btn.ghost { background: transparent; color: var(--moss); border: 1.5px solid var(--moss); }
.btn.ghost:hover { background: var(--moss); color: #fff; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--moss); }
.copy-mail { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Legal pages */
.doc { max-width: 720px; padding-block: 24px 72px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); margin: 8px 0 6px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 21px; font-weight: 700; margin: 40px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 17px; font-weight: 700; margin: 24px 0 6px; }
.doc p, .doc li { color: #3C463B; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc .summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px 22px; }
.doc .summary ul { margin: 8px 0 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc .table { overflow-x: auto; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; color: var(--moss); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .phone { width: min(280px, 100%); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .maker .wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .maker img { width: 120px; }
}
@media (max-width: 440px) {
  .field { flex-direction: column; border-radius: 22px; }
  .field .btn { width: 100%; }
  .lede { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition: none !important; }
}
