@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/fraunces-700.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600.woff2") format("woff2");
}

:root {
  --bg: #FBF7F1;
  --surface: #FFFFFF;
  --ink: #1F1A17;
  --muted: #5C534C;
  --border: #8A7F76;
  --error: #B3261E;
  --accent: #1F4FB8;
  --accent-hover: #183F94;

  --font-display: Fraunces, serif;
  --font-body: Inter, sans-serif;

  --text-h1: 2rem;
  --text-h2: 1.5rem;
  --text-h3: 1.25rem;
  --text-lead: 1.125rem;
  --text-body: 1.125rem;
  --text-ui: 1rem;
  --text-small: 0.875rem;

  --leading-h1: 1.15;
  --leading-h2: 1.2;
  --leading-h3: 1.25;
  --leading-lead: 1.4;
  --leading-body: 1.5;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --wrap: 1120px;
  --col-hero: 640px;
  --col-form: 480px;
  --control-h: 52px;
  --radius: 8px;
  --focus: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
  letter-spacing: -0.01em;
  max-width: var(--col-hero);
}
h2 { font-size: var(--text-h2); line-height: var(--leading-h2); }
h3 { font-size: var(--text-h3); line-height: var(--leading-h3); }

.lead {
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
  max-width: var(--col-hero);
  margin: var(--space-2) 0 0;
}
.hero-copy .lead { margin-bottom: var(--space-3); }

p { margin: 0; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: var(--focus) solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  background: var(--accent);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: var(--space-2);
  padding-block: 8px;
}

.site-header :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  flex: 0 1 auto;
}
.brand:hover { color: #FBF7F1; }

.brand-mark {
  flex: 0 0 auto;
  height: 36px;
  width: auto;
  max-width: min(226px, calc(100vw - 120px));
  display: block;
  object-fit: contain;
}

.lang-switch { position: relative; flex: 0 0 auto; }

.lang-switch summary {
  list-style: none;
  cursor: pointer;
  color: #fff;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-weight: 600;
  font-size: var(--text-ui);
}

.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { color: #FBF7F1; }

.lang-switch ul {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 4px 0 0;
  padding: var(--space-1);
  min-width: 96px;
}

.lang-switch a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-2);
  font-weight: 600;
  font-size: var(--text-ui);
  text-decoration: none;
}

.hero { padding: var(--space-6) 0 var(--space-5); }
.section { padding-block: var(--space-6); }
.hero-copy { max-width: var(--col-hero); }

.page-home .section .hero-copy > h2 { margin-bottom: var(--space-2); }
.page-home .section .hero-copy > p { max-width: var(--col-hero); }

.hero-form, .form-card { font-size: var(--text-ui); }
.hero-form label, .field label, .field legend, .switch-row label {
  display: block;
  font-size: var(--text-ui);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.hero-row { display: flex; flex-direction: column; gap: var(--space-2); margin-top: 0; }

input[type="email"], input[type="text"], select {
  height: var(--control-h);
  width: 100%;
  font: var(--text-ui)/1.5 var(--font-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 var(--space-2);
}

input[type="checkbox"], input[type="radio"] {
  font: inherit;
  width: 16px;
  height: 16px;
}

a.button-link, summary.button-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  text-decoration: none;
  list-style: none;
}
summary.button-link::-webkit-details-marker { display: none; }
button.primary, a.button-link, summary.button-link {
  min-height: var(--control-h);
  width: 100%;
  font: 600 var(--text-ui)/1.3 var(--font-body);
  color: var(--surface);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.75rem var(--space-2);
  cursor: pointer;
}

button.primary:hover, summary.button-link:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.primary:focus-visible, a.button-link:focus-visible, summary.button-link:focus-visible,
.country-card:focus-visible {
  outline: var(--focus) solid var(--accent);
  outline-offset: 2px;
}

.hero .country-fold { margin-top: 0; }
.country-fold { margin-top: var(--space-4); }
.country-fold > h2 { margin-bottom: var(--space-2); }
.country-menu { position: relative; max-width: 28rem; }
.country-btn {
  width: 100%;
  min-height: var(--control-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--space-2);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: 600 18px/1.4 var(--font-body);
  text-align: left;
  cursor: pointer;
}
.country-btn:focus-visible { outline: var(--focus) solid var(--accent); outline-offset: 2px; }
.country-caret { margin-left: auto; color: var(--accent); }
.country-drop {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 16rem;
  overflow: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.country-option {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--space-2);
  color: var(--ink);
  cursor: pointer;
  font-size: var(--text-ui);
}
.country-option:hover,
.country-option:focus-visible { background: #eef3fb; outline: none; }
.country-option.is-soon { color: var(--muted); }
.country-option .flag,
.country-btn .flag { font-size: 20px; line-height: 1; }

.coverage, .proof, .help, .consent, .addon-price, .soon {
  font-size: var(--text-small);
  line-height: var(--leading-body);
  color: var(--muted);
}
.coverage, .help, .proof { margin-top: var(--space-1); }
.help { max-width: 65ch; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}

.country-item { grid-column: span 4; }

.soon { margin-left: auto; }

.signup-layout { display: flex; flex-direction: column; gap: var(--space-6); }
.signup-guide { max-width: 65ch; }
.signup-guide h2, .signup-guide h3 { color: var(--ink); }
.signup-guide h3 { margin-top: var(--space-4); margin-bottom: var(--space-2); }
.signup-guide p {
  max-width: 65ch;
  font-size: var(--text-ui);
  line-height: var(--leading-body);
  margin-top: var(--space-2);
}

.guide-fold > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--control-h);
}
.guide-fold > summary::-webkit-details-marker { display: none; }
.guide-fold > summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.guide-fold[open] > summary::after { content: "–"; }

.sector-guide { border-top: 1px solid var(--border); }
.sector-guide:last-child { border-bottom: 1px solid var(--border); }
.sector-guide summary {
  min-height: var(--control-h);
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-ui);
}
.sector-guide summary:hover { background: #eef3fb; }
.sector-guide ul { margin: 0 0 var(--space-2); padding-left: 1.2rem; }
.form-card { max-width: var(--col-form); width: 100%; }
.field { margin-top: var(--space-3); }
.field:first-child { margin-top: 0; }
fieldset.field { border: 0; padding: 0; margin-top: var(--space-3); }
.sector-picker { position: relative; }
.sector-ui[hidden] { display: none; }
.sector-chips { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.sector-chips:empty { display: none; }
.sector-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  margin-bottom: var(--space-1);
  padding: 0 4px 0 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: #fff;
  font-size: var(--text-ui);
}
.sector-remove, .sector-add, .sector-toggle {
  font: inherit;
  cursor: pointer;
  color: var(--accent);
  background: #fff;
}
.sector-remove {
  min-width: 44px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
}
.sector-toggle {
  width: 100%;
  min-height: var(--control-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  padding: 0 var(--space-2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-ui);
  text-align: left;
}
.sector-menu {
  list-style: none;
  margin: var(--space-1) 0 0;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: #fff;
}
.sector-menu[hidden] { display: none; }
.sector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  min-height: var(--control-h);
  padding-left: var(--space-2);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-ui);
}
.sector-row:last-child { border-bottom: 0; }
.sector-add {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.sector-picker.is-enhanced .sector-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.checks { display: flex; flex-direction: column; gap: var(--space-1); }
.check { display: flex; align-items: center; gap: var(--space-1); min-height: 44px; font-weight: 400; font-size: var(--text-ui); }
.check[hidden] { display: none; }
.radius { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.chip-radio { min-height: 44px; display: inline-flex; align-items: center; gap: var(--space-1); padding: 0 var(--space-2); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: var(--text-ui); }
.consent { margin-top: var(--space-2); }
.switch-row { display: flex; align-items: center; gap: var(--space-1); min-height: 44px; }
.switch-row input { width: 44px; height: 24px; }
.switch-row label { margin: 0; }
.form-actions { margin-top: var(--space-4); }
.preset { margin: var(--space-3) 0; }
.chip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  font-size: var(--text-ui);
}
.consent label { font-weight: 400; }
.field-error { color: var(--error); font-size: var(--text-small); margin-top: var(--space-1); }
.prose, .story { max-width: 65ch; }
.prose p, .story p { margin-top: var(--space-2); }
.section .wrap > h1 { margin-bottom: var(--space-3); max-width: 65ch; }
.author-photo { display: block; width: min(18rem, 100%); height: auto; border-radius: 12px; margin: 0 0 var(--space-3); }
.site-footer { background: var(--accent); color: #fff; }
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  min-height: 64px;
  padding-block: 8px;
  font-size: var(--text-ui);
  line-height: 1.4;
}
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a:hover { color: #FBF7F1; }
.site-footer .brand { text-decoration: none; }
.footer-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.addon-price { margin-top: var(--space-1); }

@media (min-width: 600px) {
  .brand-mark { height: 42px; max-width: 264px; }
  .header-inner, .footer-bar { min-height: 72px; }
  .wrap { width: min(var(--wrap), calc(100% - 48px)); }
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--space-3); }
  .country-item { grid-column: span 4; }
  .signup-layout { flex-direction: row; align-items: flex-start; gap: var(--space-6); }
  .signup-guide, .signup-form { flex: 1; min-width: 0; }
  .hero-row { flex-direction: row; align-items: stretch; }
  .hero-row input { flex: 1; min-width: 0; }
  .hero-row .primary { width: auto; flex: 0 1 auto; }
  .guide-fold > summary { cursor: default; min-height: 0; }
  .guide-fold > summary::after { content: none; }
}

@media (min-width: 905px) {
  :root {
    --text-h1: 3rem;
    --text-h2: 2rem;
    --text-h3: 1.5rem;
    --text-lead: 1.25rem;
  }
  .hero { padding: var(--space-8) 0 var(--space-7); }
  .section { padding-block: var(--space-7); }
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .country-item { grid-column: span 4; }
}
