/* Aupair Mate brand tokens: the one source for the web app and the marketing website (ADR-010).
   The app maps these to Tailwind in src/index.css; website/build.mjs prepends this file to site.css.
   Fonts are self-hosted from /fonts (SIL Open Font Licence, see fonts/OFL-*.txt). No third-party requests. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --paper: #fff8ec; /* butter paper ground */
  --paper-2: #fbeedb; /* deeper band */
  --card: #ffffff;
  --ink: #2e2135; /* aubergine text */
  --muted: #6a5866;
  --line: #ead9c4;
  --honey: #f4b840; /* sticky-note yellow: something changed */
  --tomato: #c4412b; /* primary action (AA with white text) */
  --tomato-ink: #ffffff;
  --sage: #d5e4c8;
  --blush: #f8dcd2; /* selected tab, soft highlight */
  --note-ink: #3a2a1c;
  --danger: #a33a2c;
  /* Child badges: soft backgrounds, text in --ink. */
  --kid-teal: #cdeae4;
  --kid-blue: #d6e6f5;
  --kid-purple: #e6dcf3;
  --kid-pink: #f8d9e3;
  --kid-orange: #fbe0c8;
  --kid-green: #dcebc6;
  --shadow: 0 1px 2px rgb(46 33 53 / 0.08), 0 8px 24px rgb(46 33 53 / 0.08);
  --brand-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --brand-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --brand-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1d171f;
    --paper-2: #251d28;
    --card: #2c2330;
    --ink: #f6ece2;
    --muted: #c4b2bd;
    --line: #43354a;
    --honey: #e8ad3a;
    --tomato: #f2846a;
    --tomato-ink: #1d171f;
    --sage: #36452f;
    --blush: #4b2e33;
    --note-ink: #2b1f14;
    --danger: #ff9a85;
    --kid-teal: #1f3b38;
    --kid-blue: #22364a;
    --kid-purple: #352a48;
    --kid-pink: #4a2a36;
    --kid-orange: #4a3020;
    --kid-green: #2f3f24;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 28px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1d171f;
  --paper-2: #251d28;
  --card: #2c2330;
  --ink: #f6ece2;
  --muted: #c4b2bd;
  --line: #43354a;
  --honey: #e8ad3a;
  --tomato: #f2846a;
  --tomato-ink: #1d171f;
  --sage: #36452f;
  --blush: #4b2e33;
  --note-ink: #2b1f14;
  --danger: #ff9a85;
  --kid-teal: #1f3b38;
  --kid-blue: #22364a;
  --kid-purple: #352a48;
  --kid-pink: #4a2a36;
  --kid-orange: #4a3020;
  --kid-green: #2f3f24;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 28px rgb(0 0 0 / 0.35);
  color-scheme: dark;
}

/* Brand tokens and fonts come first: build.mjs prepends frontend/src/brand/tokens.css (ADR-010). */
/* Layout: a single warm column of bands; the hero is a fridge door of paper notes beside the real app on a phone. */
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--brand-body); font-size: 17px; line-height: 1.6; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--brand-display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 6px; }
.eyebrow { font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 34rem; }


/* header */
header { padding-block: 18px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--brand-display); font-weight: 800; font-size: 1.35rem; }
.brand img { width: 34px; height: 34px; }
.navlinks { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-weight: 600; }
.navlinks a { text-decoration: none; }
.navlinks a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; background: var(--card); }
.lang a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .85rem; padding: 4px 10px; border-radius: 999px; }
.lang a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 13px 22px; font-weight: 700; text-decoration: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn-primary { background: var(--tomato); color: var(--tomato-ink); box-shadow: 0 3px 0 rgb(46 33 53 / .25); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.hide-sm { }

/* hero */
.hero { padding-block: 28px 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.reassure { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.reassure li::before { content: "✓"; color: var(--tomato); font-weight: 800; margin-right: 6px; }

.fridge { position: relative; min-height: 620px; border-radius: 28px; background:
  radial-gradient(120% 80% at 80% 10%, var(--blush), transparent 60%),
  radial-gradient(90% 70% at 10% 90%, var(--sage), transparent 60%), var(--paper-2);
  overflow: hidden; }
.note { position: absolute; z-index: 2; width: 168px; padding: 16px 14px 18px; background: var(--honey); color: var(--note-ink); font-family: var(--brand-hand); font-size: 1.45rem; line-height: 1.15; box-shadow: var(--shadow); }
.note.pink { background: #f7c4c0; } .note.green { background: #c9e2b8; } .note.white { background: #fffdf8; }
.note::before { content: ""; position: absolute; top: -9px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--tomato); box-shadow: inset -3px -3px 0 rgb(0 0 0 / .18); }
.n1 { top: 34px; left: 6%; transform: rotate(-6deg); }
.n2 { top: 58px; right: 5%; transform: rotate(5deg); }
.n3 { bottom: 90px; left: 3%; transform: rotate(4deg); }
.n4 { bottom: 40px; right: 6%; transform: rotate(-4deg); }
.phone { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 280px; border-radius: 38px; padding: 10px; background: #1f1a22; box-shadow: 0 30px 60px rgb(46 33 53 / .35); }
.phone img { display: block; width: 100%; height: auto; border-radius: 29px; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; image-rendering: auto; }
.stamp { position: absolute; top: 18px; right: -18px; background: var(--card); color: var(--ink); font-weight: 800; font-size: .8rem; padding: 6px 10px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; }

/* bands */
section.band { padding-block: 72px; }
section.band.alt { background: var(--paper-2); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 46rem; }

.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.voice { background: var(--card); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 14px; align-content: start; }
.voice .who { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--brand-display); font-weight: 800; }
.avatar.p { background: var(--blush); } .avatar.a { background: var(--sage); }
.bubble { background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-family: var(--brand-hand); font-size: 1.5rem; line-height: 1.2; }
.answer { margin-top: 28px; font-family: var(--brand-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; max-width: 40rem; }
.answer em { font-style: normal; background: linear-gradient(transparent 60%, var(--honey) 60%); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; gap: 10px; align-content: start; }
.steps li::before { counter-increment: step; content: counter(step); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--honey); color: var(--note-ink); font-family: var(--brand-display); font-weight: 800; font-size: 1.3rem; transform: rotate(-4deg); }
.steps p, .feature p, .privacy p { color: var(--muted); }

.features { display: grid; gap: 64px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature:nth-child(even) .shot { order: 2; }
.feature .copy { display: grid; gap: 12px; min-width: 0; }
.shot { justify-self: center; position: relative; }
.shot .phone { position: relative; left: auto; top: auto; transform: none; width: min(320px, 100%); }
.tag { display: inline-block; justify-self: start; background: var(--blush); border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: .85rem; }

.both { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.both .col { background: var(--card); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 12px; align-content: start; }
.both ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; }

.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.privacy div { border-top: 3px solid var(--ink); padding-top: 14px; display: grid; gap: 6px; align-content: start; }

.signup { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
form { background: var(--card); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
label { font-weight: 700; display: block; margin-bottom: 6px; }
input[type=text], input[type=email], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; }
textarea { min-height: 84px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.roles { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.roles legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.roles label { margin: 0; font-weight: 600; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; background: var(--paper); }
.roles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.roles label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.roles label:has(input:focus-visible) { outline: 3px solid var(--tomato); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--muted); }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--tomato); }
.formnote { font-size: .9rem; color: var(--muted); }
.result { background: var(--sage); border-radius: 12px; padding: 12px 14px; font-weight: 600; }

.faq { display: grid; gap: 12px; max-width: 48rem; }
details { background: var(--card); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 700; font-family: var(--brand-display); font-size: 1.1rem; }
details p { margin-top: 10px; color: var(--muted); }

footer { padding-block: 40px; border-top: 1.5px solid var(--line); color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }


@media (max-width: 860px) {
  .hero-grid, .voices, .feature, .both, .signup { grid-template-columns: 1fr; }
  .feature:nth-child(even) .shot { order: 0; }
  .steps, .privacy { grid-template-columns: 1fr; }
  .fridge { min-height: 520px; }
  .hide-sm { display: none; }
}
@media (max-width: 480px) {
  .note { width: 132px; font-size: 1.2rem; padding: 12px 10px 14px; }
  .n1 { left: 2%; } .n2 { right: 2%; } .n3 { left: 1%; bottom: 70px; } .n4 { right: 2%; bottom: 24px; }
  .phone { width: 230px; }
  .row2 { grid-template-columns: 1fr; }
  section.band { padding-block: 56px; }
}
@media (prefers-reduced-motion: no-preference) {
  .note { transition: transform .25s ease; }
  .fridge:hover .n1 { transform: rotate(-3deg) translateY(-3px); }
  .fridge:hover .n4 { transform: rotate(-1deg) translateY(-3px); }
  .btn-primary { transition: transform .15s ease; }
}

/* Website additions to the approved mock-up */
html { scroll-behavior: smooth; }
body { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }
.login { font-weight: 700; }
.field-error { color: var(--tomato); font-size: .9rem; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.status.ok { background: var(--sage); }
.status.err { background: var(--blush); }
.center-page { min-height: 70vh; display: grid; place-items: center; padding-block: 48px; }
.center-card { background: var(--card); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); max-width: 34rem; display: grid; gap: 16px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.page-title { font-size: clamp(1.8rem, 4vw, 2.4rem); }
