/* addresa.app: the Olive theme from "Addresa design specs for development" (the same values as
   src/theme/palettes.ts). Pink (--tape) only on the beta chip, link arrows, the phone's countdown and
   progress, the logo's box, and focused form fields. */
/* The three fonts, served from this site (SIL Open Font License, see /fonts/OFL-*.txt), so no visitor's
   browser contacts Google. Latin and Latin-extended cover English, Dutch, Spanish and German. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/bricolage-grotesque-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #F1E6DC; --surface: #FBF7F2; --sunken: #E9E8DA; --ink: #2E2B1C; --muted: #6B6650;
  --line: #D6D2BE; --primary: #48442B; --on-primary: #F1E6DC; --primary-soft: #E3E4D4;
  --tape: #FB78B2; --on-tape: #3A3722; --good: #4F6B3A; --warn: #B5532A;
  /* Error text: a darker rust than --warn, which is 4.0:1 on sand, below AA for small text. */
  --err: #9A4422;
  --mark-line: var(--primary);
  --logo: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
  --display: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1A12; --surface: #2A2819; --sunken: #232114; --ink: #F1E6DC; --muted: #B8B29A;
    --line: #4A4630; --primary: #E3E4D4; --on-primary: #2A2819; --primary-soft: #3A3826;
    --tape: #FB78B2; --on-tape: #2A2819; --good: #A9C48A; --warn: #F0A062;
    --err: #F0A062;
    --mark-line: var(--ink);
    color-scheme: dark;
  }
}

* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.45 var(--body);
  max-width: 1040px; margin-inline: auto; min-height: 100vh; display: flex; flex-direction: column;
  padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px));
}
main { flex: 1; padding-block: 24px 48px; display: flex; flex-direction: column; gap: 24px }
h1, h2, p { margin: 0 }
h1 { font: 700 clamp(30px, 5vw, 44px)/1.1 var(--display); letter-spacing: -0.01em; text-wrap: balance }
h2 { font: 700 16px/1.3 var(--display) }
a { color: var(--ink) }
.lead { color: var(--muted); font-size: 16px; max-width: 34em }

/* Top bar and logo */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px 6px }
.brand { display: inline-flex; line-height: 0 }
.logo { width: 132px; height: auto }
.logo-name { font: 700 50px var(--logo); fill: var(--mark-line) }
.logo-line { stroke: var(--mark-line) }
.mark { fill: var(--tape) }
.tick { stroke: var(--bg) }
.toplink { font-weight: 600; text-decoration: none; padding: 10px 0; white-space: nowrap }
.toplink:hover { text-decoration: underline; text-underline-offset: 3px }
.arrow { color: var(--tape); font-size: 1.25em; line-height: 1 }

/* Home: layout B */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 24px }
.pitch { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; min-width: 0 }
.chip { background: var(--tape); color: var(--on-tape); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; background: var(--primary); color: var(--on-primary);
  font: 600 15px/1.45 var(--body); padding: 12px 16px; min-height: 44px; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08) }
.btn[disabled] { cursor: default; opacity: .8 }
.phone {
  justify-self: center; width: 220px; aspect-ratio: 9 / 17; background: var(--surface); border: 8px solid var(--primary);
  border-radius: 34px; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px;
}
.phone .count { background: var(--primary); color: var(--on-primary); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; font-size: 12px }
.phone .count b { font: 700 48px/0.95 var(--display); letter-spacing: -0.03em; color: var(--tape); font-variant-numeric: tabular-nums }
.phone .track { height: 8px; border-radius: 999px; background: var(--sunken); border: 1px solid var(--line); overflow: hidden }
.phone .track span { display: block; height: 100%; width: 45%; background: var(--tape) }
.phone .row { display: flex; gap: 8px; align-items: center }
.phone .row i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--muted); flex: none }
.phone .row.done i { background: var(--tape); border-color: var(--tape) }
.phone .row s { height: 8px; border-radius: 4px; background: var(--sunken); flex: 1; text-decoration: none }
.phone .next { margin-top: auto; border: 1.5px solid var(--tape); border-radius: 14px; padding: 10px; font-size: 12px; font-weight: 600 }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px }
.card p { color: var(--muted) }

/* Contact */
.contact { display: flex; flex-direction: column; gap: 16px; max-width: 34em }
.field { display: flex; flex-direction: column; gap: 6px }
.field label { font-weight: 500 }
.opt { color: var(--muted); font-weight: 400 }
.field input, .field textarea {
  font: inherit; color: inherit; background: var(--sunken); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--tape); box-shadow: 0 0 0 1px var(--tape); outline: 2px solid var(--ink); outline-offset: 2px }
.field textarea { resize: vertical; min-height: 140px }
.err { color: var(--err); font-size: 13.5px }
.note { color: var(--muted); font-size: 13.5px }
.status { border-radius: 12px; background: var(--primary-soft); padding: 12px 14px }
.status.bad { background: none; border: 1px solid var(--err); color: var(--err) }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden }
.house { display: block }
.house .logo-line { stroke: var(--on-primary) }
.house .tick { stroke: var(--primary) }
@media (prefers-reduced-motion: no-preference) {
  .sending .house { animation: breathe 1.8s ease-in-out infinite }
}
@keyframes breathe { 50% { opacity: .45 } }

/* Legal and 404 */
.legal { max-width: 40em; display: flex; flex-direction: column; gap: 12px }
.legal h1 { margin-bottom: 4px }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 18px 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: 13.5px; color: var(--muted) }
.foot .links, .foot .langs { display: flex; flex-wrap: wrap; gap: 4px 16px }
.foot a { color: var(--ink); text-decoration: none; padding: 6px 0 }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px }
.foot .langs a[aria-current="page"] { font-weight: 600 }
.copy { margin-left: auto }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px }

@media (max-width: 720px) {
  .hero { grid-template-columns: minmax(0, 1fr) }
  .cards { grid-template-columns: minmax(0, 1fr) }
  .copy { margin-left: 0 }
}
