/* Lochapay landing page
 * Colors, type and spacing follow brand/tokens.json and brand/BRAND.md.
 * Fonts are self-hosted (assets/fonts), no Google Fonts request.
 */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/bricolage-grotesque-latin-wght-normal.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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("../assets/fonts/figtree-latin-400-normal.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: "Figtree"; font-weight: 500; font-display: swap; src: url("../assets/fonts/figtree-latin-500-normal.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: "Figtree"; font-weight: 600; font-display: swap; src: url("../assets/fonts/figtree-latin-600-normal.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: "Figtree"; font-weight: 700; font-display: swap; src: url("../assets/fonts/figtree-latin-700-normal.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: "Figtree"; font-weight: 400; font-display: swap; src: url("../assets/fonts/figtree-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("../assets/fonts/figtree-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("../assets/fonts/figtree-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("../assets/fonts/figtree-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens (brand/tokens.json, light theme; company palette 2026-10) ---------- */
:root {
  --brand: #123b5d;          /* Deep navy: headers, navigation, brand */
  --brand-strong: #0b2740;
  --brand-tint: #e3edf5;
  --accent: #12b8a6;         /* Teal: key actions and highlights. Text on it is ink, never white (2.5:1) */
  --accent-strong: #0f9e8f;
  --accent-tint: #d4f2ee;
  --accent-ink: #0b5048;
  --ink: #18212b;            /* Dark text */
  --ink-muted: #3b4756;
  --ink-subtle: #4b5563;
  --ground: #ffffff;         /* Background: white */
  --surface: #f3f6f8;        /* Light gray: cards, inputs, secondary sections */
  --panel: #18212b;
  --panel-raised: #243140;
  --border: #e1e7ec;
  --rule: #d3dbe2;
  --input-border: #7a8390;
  --error: #a3261b;
  --on-dark-muted: #b9c3cf;

  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --container: 1120px;
  --gutter: 24px;
  --section-y: 80px;
}

/* ---------- Base ---------- */
*, *::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-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
a:hover { color: var(--brand-strong); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input:focus-visible { outline-offset: 1px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; border: 0;
}
.btn-primary { background: var(--accent); color: var(--ink); padding: 16px 26px; }
.btn-primary:hover { background: var(--accent-strong); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; width: 100%; min-height: 52px; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; font-size: 15px; padding: 12px 18px; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-link { color: var(--ink); font-weight: 600; font-size: 17px; padding: 16px 8px; text-decoration: none; }

.pill {
  min-height: 44px; padding: 11px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--input-border); background: var(--surface); color: var(--ink);
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.pill[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-strong); }

/* ---------- Header ---------- */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
/* Wordmark (assets/logo.svg, 748x193). min-height keeps the link a 44px touch target. */
.logo { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.logo img { width: auto; height: 28px; display: block; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.lang-switch { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); }
.lang-switch svg { margin: 0 4px 0 8px; }
.lang-switch button {
  min-width: 44px; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--ink-muted); font-size: 14px; font-weight: 700; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 72px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.badge { align-self: flex-start; background: var(--accent-tint); color: var(--accent-ink); padding: 6px 12px; border-radius: var(--radius-pill); }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.coming-next { margin-top: -6px; font-size: 16px; font-weight: 600; color: var(--accent-ink); }
.hero-sub { font-size: 20px; line-height: 1.5; color: var(--ink-muted); }
.hero-alt { font-size: 17px; font-style: italic; color: var(--brand); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.proof-count { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--ink-muted); }
.proof-dots { display: flex; }
.proof-dots span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ground); }
.proof-dots span + span { margin-left: -10px; }

/* Rotating country: every name sits in the same grid cell, so the widest one sets
   the width and the headline does not jump. Only the active one is visible. */
.rotator { display: inline-grid; color: var(--brand); }
.rotator > span { grid-area: 1 / 1; white-space: nowrap; visibility: hidden; }
.rotator > span.is-active { visibility: visible; }
.rotator > span.in-a { animation: lpInA 450ms ease-out both; }
.rotator > span.in-b { animation: lpInB 450ms ease-out both; }
@keyframes lpInA { from { opacity: 0; transform: translateY(0.3em); } to { opacity: 1; transform: none; } }
@keyframes lpInB { from { opacity: 0; transform: translateY(0.3em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rotator > span { animation: none !important; } }

/* Example transfer card */
.transfer-card { background: var(--panel); color: #fff; border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.transfer-card .row-head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--on-dark-muted); }
.fast-chip { font-size: 13px; background: #12403c; color: #7fe0d3; padding: 4px 10px; border-radius: var(--radius-pill); }
.amount-box { border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.amount-box.send { background: var(--panel-raised); }
.amount-box.receive { background: var(--accent); color: var(--ink); }
.amount-box .label { font-size: 13px; color: var(--on-dark-muted); }
.amount-box.receive .label { color: var(--ink); font-weight: 600; }
.amount-box .value { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.amount-box .value strong { font-family: var(--font-display); font-size: 36px; font-weight: 800; }
.amount-box .value span { font-weight: 700; }
.amount-box.send .value span { color: var(--on-dark-muted); }
.fee-lines { display: flex; flex-direction: column; gap: 10px; padding: 0 4px; font-size: 15px; }
.fee-lines div { display: flex; justify-content: space-between; gap: 12px; }
.fee-lines dt { color: var(--on-dark-muted); }
.fee-lines dd { margin: 0; font-weight: 600; }
.card-note { font-size: 12.5px; color: var(--on-dark-muted); }
.card-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Networks strip ---------- */
.networks { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.networks .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 22px; padding-bottom: 22px; }
.networks .label { font-size: 14px; font-weight: 600; color: var(--ink-subtle); }
.networks ul { display: contents; list-style: none; }
.networks li { font-weight: 700; font-size: 16px; }

/* ---------- Sections ---------- */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.section-head h2 { font-size: 40px; }
.section-head p { font-size: 18px; color: var(--ink-muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; margin-top: 36px; padding: 0; list-style: none; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.steps .num { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--brand); }
.card h3 { font-size: 20px; }
.card p { font-size: 16px; color: var(--ink-muted); }

.audiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; padding-bottom: var(--section-y); }
.audience { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.audience h3 { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.01em; }
.audience p { font-size: 16px; line-height: 1.55; }
.audience.family { background: var(--brand-tint); }
.audience.family .eyebrow { color: var(--brand); }
.audience.family p { color: #22303f; }
.audience.business { background: var(--panel); color: #fff; }
.audience.business .eyebrow { color: var(--accent); }
.audience.business p { color: #d3dae3; }

.testimonials { padding-bottom: var(--section-y); display: flex; flex-direction: column; gap: 28px; }
.testimonials h2 { font-size: 36px; }
.testimonials .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.testimonials blockquote { font-size: 17px; }
.testimonials figcaption { font-size: 14px; font-weight: 600; color: var(--ink-subtle); }

/* ---------- Waitlist ---------- */
.join { background: var(--brand); color: #fff; }
.join .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: start; padding-top: var(--section-y); padding-bottom: var(--section-y); }
.join-copy { display: flex; flex-direction: column; gap: 16px; }
.join-copy h2 { font-size: 44px; line-height: 1.05; }
.join-copy p { font-size: 18px; color: #dde7f0; }
.join-copy .terms { font-size: 14px; color: #b8cadb; }
.form-card { background: var(--surface); color: var(--ink); border-radius: 24px; padding: 28px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.field .hint { font-size: 13px; color: var(--ink-subtle); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field input { font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--input-border); border-radius: var(--radius-md); background: #fff; color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.form-error { font-size: 14px; color: var(--error); }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; }
.consent label { cursor: pointer; }
.consent-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0 -10px 34px; font-size: 14px; font-weight: 600; color: var(--brand); }
.form-note { font-size: 13px; color: var(--ink-subtle); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success { display: flex; flex-direction: column; gap: 14px; padding: 12px 0; }
.success .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-tint); display: flex; align-items: center; justify-content: center; }
.success h3 { font-family: var(--font-display); font-size: 28px; }
.success p { font-size: 16px; color: var(--ink-muted); }

/* ---------- FAQ + footer ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.faq h2 { font-size: 36px; }
.faq .item { border-top: 1px solid var(--rule); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.faq h3 { font-size: 18px; }
.faq p { color: var(--ink-muted); line-height: 1.55; }
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .container { padding-top: 28px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-subtle); }
.site-footer strong { color: var(--ink); }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  :root { --gutter: 16px; --section-y: 56px; }
  .section-head h2, .join-copy h2 { font-size: 32px; }
  .transfer-card { padding: 22px; }
  .amount-box .value strong { font-size: 30px; }
}

/* ---------- Legal pages (privacy.html, terms.html) ---------- */
.legal-page { max-width: 760px; padding-top: 24px; padding-bottom: var(--section-y); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--brand); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.draft-notice { margin: 12px 0 32px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand-strong); font-size: 15px; font-weight: 600; }
.legal-page h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.05; letter-spacing: -0.02em; }
.legal-page h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 36px 0 8px; }
.legal-page p, .legal-page li { font-size: 17px; line-height: 1.65; color: var(--ink-muted); }
.legal-page p { margin: 0 0 12px; }
.legal-page ul { margin: 0 0 12px; padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page strong { color: var(--ink); }
.legal-page code { font-size: 0.9em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
.legal-page .updated { font-size: 15px; color: var(--ink-subtle); margin-top: 10px; }
.legal-page .translation-note { font-size: 15px; font-style: italic; }

/* ---------- confirm.php / unsubscribe.php ---------- */
.notice-page { max-width: 560px; padding-top: 32px; }
.notice-page h1 { margin-bottom: 16px; }
.notice-form { margin: 20px 0 8px; }
.notice-form .btn { width: 100%; min-height: 52px; }
.notice-note { font-size: 14px !important; }
.success .done-email { font-weight: 600; color: var(--ink); }
