/* Echto — echto.eu
   Fonts are self-hosted on purpose: no third-party font requests. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/bricolage-grotesque-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+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: 600; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --porcelain: #f5f7fb;
  --paper: #ffffff;
  --glaze: #dde5f6;
  --delft: #1f3f9a;
  --delft-deep: #16306f;
  --ink: #0f1c3f;
  --ink-soft: #46527a;
  --line: #c9d3ea;
  --marigold: #f2b33d;

  --bg: var(--porcelain);
  --surface: var(--paper);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --accent: var(--delft);
  --accent-text: #ffffff;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1630;
    --surface: #142048;
    --text: #eef2fb;
    --muted: #aab6d6;
    --line: #2a3a6b;
    --glaze: #1b2a5a;
    --accent: #8fa8f0;
    --accent-text: #0d1630;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); color: var(--ink); padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.brand svg { width: 2rem; height: 2rem; }
.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1rem; }
.site-nav a:hover { text-decoration: underline; }
@media (max-width: 40rem) { .site-nav .optional { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.75rem 1.4rem; border-radius: 999px; font: 700 1.05rem/1 var(--body); text-decoration: none; border: 2px solid var(--accent); cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--delft-deep); border-color: var(--delft-deep); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--glaze); }
@media (prefers-color-scheme: dark) { .btn-primary:hover { background: #b4c5f5; border-color: #b4c5f5; } }

/* Hero */
.hero { padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 56rem) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero-lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.25rem; }
.status { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.98rem; color: var(--muted); margin: 0; }
.status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--marigold) 30%, transparent); }

/* Hero conversation: the one memorable moment on the page */
.convo { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.1rem, 3vw, 1.75rem); box-shadow: 0 30px 60px -30px rgba(22, 48, 111, 0.35); }
.convo figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }
.msg { max-width: 88%; padding: 0.8rem 1.05rem; border-radius: 20px; margin-bottom: 0.75rem; font-size: 1.02rem; line-height: 1.45; }
.msg-user { margin-left: auto; background: var(--accent); color: var(--accent-text); border-bottom-right-radius: 6px; }
.msg-echto { background: var(--glaze); border-bottom-left-radius: 6px; }
.receipt { margin: 1rem 0 0; border-top: 2px dashed var(--line); padding-top: 1rem; display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1.25rem; font-size: 0.98rem; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 700; }
.receipt dd .flag { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--marigold); margin-right: 0.45rem; vertical-align: 0.1em; }
.receipt-title { grid-column: 1 / -1; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.25rem; }

.convo .msg, .convo .receipt { opacity: 0; transform: translateY(6px); animation: appear 0.5s ease-out forwards; }
.convo .msg-user { animation-delay: 0.2s; }
.convo .msg-echto { animation-delay: 1s; }
.convo .receipt { animation-delay: 1.8s; }
@keyframes appear { to { opacity: 1; transform: none; } }

/* Sections */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-intro { max-width: 46rem; margin-bottom: 2.5rem; }
.section-intro p { color: var(--muted); font-size: 1.15rem; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

.section-intro .definition { color: var(--text); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.5; max-width: 48ch; font-family: var(--body); }
.section-intro .definition strong { font-family: var(--display); }

/* Abilities: a plain two-column list, not cards */
.abilities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3.5rem; }
@media (max-width: 44rem) { .abilities { grid-template-columns: minmax(0, 1fr); } }
.abilities li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.abilities svg { width: 2.75rem; height: 2.75rem; color: var(--accent); }
.abilities h3 { margin-bottom: 0.3rem; }
.abilities p { margin: 0; color: var(--muted); }

/* Commitments */
.commitments { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 56rem) { .commitments { grid-template-columns: minmax(0, 1fr); } }
.pledges { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pledges li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.pledges strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-bottom: 0.15rem; }
.pledges span { color: var(--muted); }
.law p { color: var(--muted); }
.law h3 { margin-top: 1.75rem; }
.law h3:first-child { margin-top: 0; }

/* Comparison table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 36rem; font-size: 1.02rem; }
caption { text-align: left; padding: 1rem 1.25rem 0; color: var(--muted); font-size: 0.95rem; caption-side: bottom; padding-bottom: 1rem; }
th, td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
thead th:nth-child(2), tbody td:nth-child(2) { background: color-mix(in srgb, var(--glaze) 55%, transparent); }
tbody th { font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; position: relative; font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.7rem; height: 0.7rem; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 1.25rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Waitlist */
.waitlist { background: var(--delft); color: #fff; }
.waitlist a { color: #fff; }
.waitlist .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 56rem) { .waitlist .wrap { grid-template-columns: minmax(0, 1fr); } }
.waitlist p { color: #dbe3fa; }
@media (prefers-color-scheme: dark) { .waitlist { background: #1a2f75; } }

.form { color-scheme: light; --line: #c9d3ea; background: var(--paper); color: var(--ink); border-radius: 24px; padding: clamp(1.25rem, 3.5vw, 2.25rem); }
.form a { color: var(--delft); }
.field { margin-bottom: 1.15rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 1rem; }
.field .hint { font-weight: 400; color: var(--ink-soft); }
input[type="email"], input[type="text"], select, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: 12px; padding: 0.7rem 0.85rem; min-height: 3rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--delft); outline: 3px solid var(--marigold); outline-offset: 1px; }
textarea { min-height: 6rem; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1rem; }
@media (max-width: 30rem) { .checks { grid-template-columns: minmax(0, 1fr); } }
.field legend { padding: 0; }
.field .check { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 1rem; font-weight: 400; margin: 0; line-height: 1.45; cursor: pointer; }
.field .check input { width: 1.2rem; height: 1.2rem; margin: 0.12rem 0 0; accent-color: var(--delft); flex: none; }
.form .btn-primary { width: 100%; background: var(--delft); border-color: var(--delft); color: #fff; margin-top: 0.5rem; }
.form .btn-primary:hover { background: var(--delft-deep); border-color: var(--delft-deep); }
.form .btn-primary[disabled] { opacity: 0.6; cursor: wait; }
.form-note { font-size: 0.92rem; color: var(--ink-soft); margin: 0.9rem 0 0; }
.form-status { margin: 1rem 0 0; font-weight: 700; }
.form-status[data-state="error"] { color: #a4161a; }
.form-done h3 { font-size: 1.6rem; }
.hp { position: absolute; left: -5000px; }

/* Footer */
.site-footer { padding: 2.5rem 0 3rem; font-size: 0.98rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer p { margin: 0; }

/* Plain prose pages (privacy) */
.prose { max-width: 46rem; padding-top: 1.5rem; padding-bottom: 4rem; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); }
.prose h2 { font-size: 1.6rem; margin-top: 2.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .updated { color: var(--muted); }

/* Cookie consent: Accept and Reject deliberately share one style (EDPB: no nudging) */
.consent { position: fixed; z-index: 20; left: var(--gutter); right: var(--gutter); bottom: 1rem; max-width: 34rem; margin-left: auto; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 1.25rem 1.4rem; box-shadow: 0 24px 48px -20px rgba(15, 28, 63, 0.45); }
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.consent p { font-size: 0.98rem; color: var(--muted); margin-bottom: 1rem; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.consent-btn { background: transparent; color: var(--accent); border-color: var(--accent); padding-inline: 0.75rem; }
.consent-btn:hover { background: var(--glaze); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
