/* ============================================================
   Pakkausvastuu — EU packaging EPR order flow (by Kanto Systems)
   Navy + green design system (2026, from the logo)
     Navy    #0b2131  primary dark: body ink, headings, dark grounds (footer, price/step accents)
     Navy700 #16354c  lifted navy for panels / hover / borders on dark
     Green   #0f7e3b  PRIMARY action colour: buttons, links (AA with white text)
     Green600 #0b6631 button hover
     Lime    #7cb820  bright accent ONLY (badges, rules, ribbon) — never text on white
     Paper   #f6f8f9  page background (cool near-white)
     Paper2  #eef2f4  tinted panels
     Line    #dde4e8  borders
   Type
     Display: Bricolage Grotesque
     Body:    Instrument Sans
   Rule: green = action, navy = ink/dark grounds, lime = sparing accent.
   ============================================================ */

/* ---------- fonts (self-hosted variable fonts) ---------- */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/instrument-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;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/instrument-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/instrument-sans-italic-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;
}

/* ---------- design tokens ---------- */

:root {
  --navy:      #0b2131; /* primary dark: body ink, dark grounds */
  --navy-700:  #16354c; /* lifted navy for panels / hover / borders on dark */
  --green:     #0f7e3b; /* PRIMARY action colour — AA with white text */
  --green-600: #0b6631; /* button hover */
  --lime:      #7cb820; /* bright accent ONLY — never text on white */
  --paper:     #f6f8f9; /* page background */
  --paper-2:   #eef2f4; /* tinted panels */
  --line:      #dde4e8; /* borders */
  --ink:       #0b2131; /* = navy */
  --ink-soft:  #48555f; /* secondary text */
  --white:     #ffffff;

  --display: "Bricolage Grotesque", sans-serif;
  --body: "Instrument Sans", sans-serif;
  --radius: 14px;
  --container: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.55rem; }
h4 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.55rem; }

p { color: var(--ink-soft); max-width: 62ch; }

a { color: var(--green); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* on navy grounds the green outline reads too dark — use lime */
.site-footer :focus-visible,
.price-table thead :focus-visible {
  outline-color: var(--lime);
}

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 30;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transform: translateY(-110%);
}

.skip-link:focus { transform: none; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.eyebrow-light { color: var(--lime); }

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }

section[id] { scroll-margin-top: 72px; }

.section-lede { margin-bottom: 3rem; font-size: 1.125rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  border: 2px solid var(--green);
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:hover { background: var(--green-600); border-color: var(--green-600); transform: translateY(-1px); }

.btn-ghost {
  color: var(--green);
  background: transparent;
}

.btn-ghost:hover { color: var(--white); background: var(--green); border-color: var(--green); }

.btn-small { padding: 0.5rem 1.2rem; font-size: 0.925rem; }

/* buttons sitting on a navy / dark ground */
.on-dark .btn,
.site-footer .btn {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
.on-dark .btn:hover,
.site-footer .btn:hover { background: var(--lime); border-color: var(--lime); color: var(--navy); }

.on-dark .btn-ghost,
.site-footer .btn-ghost {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.on-dark .btn-ghost:hover,
.site-footer .btn-ghost:hover { background: var(--white); color: var(--navy); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding-block: 0.9rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wordmark img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}

.nav-links a:not(.btn) {
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  /* keeps tap targets ≥24px tall on wrapped mobile nav rows */
  padding-block: 0.4rem;
}

.nav-links a:not(.btn):hover { color: var(--green); }

/* ---------- hero (centered single column) ---------- */

.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem); }

.hero-inner {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero .lede {
  font-size: 1.17rem;
  margin: 1.4rem auto 0;
}

/* the 3-step CTA line under the H1 */
.hero-cta-steps {
  margin: 1.6rem auto 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--navy);
  max-width: 46ch;
  line-height: 1.3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
  justify-content: center;
}

/* hero note under the actions (external-cost transparency line) */
.hero-note {
  margin-top: 1.4rem;
  font-size: 0.925rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-inline: auto;
}

/* ---------- problem section (#ongelma) ---------- */

.problem { background: var(--white); border-block: 1px solid var(--line); }

.pain-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin: 0;
}
.pain-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-size: 0.975rem;
  color: var(--ink-soft);
}
.pain-list strong { color: var(--navy); font-family: var(--display); }

/* ---------- packages (#paketit) ---------- */

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
  align-items: stretch;
}

.pkg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

/* featured / "suositelluin" — navy highlight + lime ribbon */
.pkg-card--featured {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 18px 44px rgba(11, 33, 49, 0.22);
}
.pkg-card--featured .pkg-name,
.pkg-card--featured .pkg-price { color: var(--white); }
.pkg-card--featured .pkg-tagline { color: var(--lime); }
.pkg-card--featured .pkg-coverage,
.pkg-card--featured .pkg-price span { color: color-mix(in srgb, var(--white) 72%, var(--navy)); }
.pkg-card--featured .pkg-features li { color: color-mix(in srgb, var(--white) 82%, var(--navy)); }
.pkg-card--featured .pkg-features li::before { background: var(--lime); box-shadow: none; }
.pkg-card--featured .pkg-cta {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
.pkg-card--featured .pkg-cta:hover { background: var(--lime); border-color: var(--lime); color: var(--navy); }

/* "Suositelluin" ribbon */
.pkg-card--featured::before {
  content: "Suositelluin";
  position: absolute;
  top: 1.25rem;
  right: -0.35rem;
  background: var(--lime);
  color: var(--navy);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 6px 0 0 6px;
  box-shadow: 0 4px 12px rgba(11, 33, 49, 0.25);
}

.pkg-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.pkg-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1rem;
}

.pkg-coverage {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.pkg-price {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.6rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 1.35rem;
}
.pkg-price span {
  display: block;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
  margin-top: 0.45rem;
}

.pkg-features {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
}
.pkg-features li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: none;
}
.pkg-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--green);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--green) 55%, var(--white));
}

.pkg-cta {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

/* ---------- pricing table (#hinnoittelu) ---------- */

.table-scroll {
  overflow-x: auto;
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

table.price-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--white);
}

.price-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  padding: 0.95rem 1.1rem;
  vertical-align: bottom;
}
.price-table thead th:first-child { font-weight: 500; }

.price-table th[scope="row"] {
  font-family: var(--body);
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  padding: 0.85rem 1.1rem;
  vertical-align: top;
}

.price-table td {
  padding: 0.85rem 1.1rem;
  color: var(--ink-soft);
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.price-table tbody tr:nth-child(even) { background: var(--paper-2); }

.price-table caption {
  caption-side: bottom;
  text-align: left;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 0.9rem 1.1rem;
}

/* four separate cost layers */
.cost-layers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.cost-layer {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}
.cost-layer strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.cost-layer p { font-size: 0.925rem; color: var(--ink-soft); margin: 0; max-width: none; }

.price-caveat {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.price-caveat strong { color: var(--navy); }

/* ---------- steps (#nain-toimii) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--lime);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}

.step h3 { margin-bottom: 0.4rem; }

/* ---------- kenelle (#kenelle) cards ---------- */

.loop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.loop-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}

.loop-card h3 { color: var(--navy); }

.loop-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  color: var(--green);
}

/* ---------- order form (#tilaus) ---------- */

.order-wrap { max-width: 820px; margin-inline: auto; }
.order-form { margin-top: 2.5rem; }

.order-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 1.4rem;
}
.order-form legend {
  padding: 0 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}

.form-hint { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 1.1rem; max-width: none; }
.form-note { margin-top: 1rem; font-size: 0.925rem; color: var(--green); }

.field { margin-bottom: 1.1rem; }
.field.mt { margin-top: 1.1rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.field em, .req { color: var(--green); font-style: normal; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.field textarea { resize: vertical; }

/* file input (packaging photos) */
.field input[type="file"] {
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  border: none;
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  margin-right: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.field input[type="file"]::file-selector-button:hover { background: var(--green-600); }

/* package selector — radio cards */
.pkg-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.pkg-select {
  position: relative;
  display: block;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 1.1rem 1.15rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pkg-select:hover { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.pkg-select input { position: absolute; opacity: 0; width: 0; height: 0; }
.pkg-select .pkg-select-name {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.pkg-select .pkg-select-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
/* selected state = green/navy border + tint */
.pkg-select:has(input:checked) {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, var(--white));
}
.pkg-select:has(input:checked) .pkg-select-name { color: var(--green-600); }
.pkg-select:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }

/* destination-country grid */
.country-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  max-width: none;
}
.country-counter {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.9rem;
}
.country-counter.is-max { color: var(--green); }

.country-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem 0.8rem; }
.country-grid label {
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.925rem; color: var(--ink);
  padding: 0.45rem 0.65rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); cursor: pointer; user-select: none; font-weight: 500;
}
.country-grid label:hover { border-color: var(--green); }
.country-grid input { accent-color: var(--green); width: 16px; height: 16px; }
.country-grid label:has(input:checked) {
  background: color-mix(in srgb, var(--green) 12%, var(--white));
  border-color: var(--green);
}
.country-grid label:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }

/* packaging component rows */
.comp {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 0.8fr 1.2fr auto;
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 0.8rem;
}
.comp label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; color: var(--navy); margin: 0; }
.comp input, .comp select {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.7rem;
}
.comp input:focus, .comp select:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.comp .rm {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  border-radius: 8px; width: 42px; height: 42px; cursor: pointer; font-size: 1.2rem; line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.comp .rm:hover { background: var(--paper-2); color: var(--navy); }

/* consent + submit */
.consent-row { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0.3rem 0 1.4rem; font-size: 0.95rem; color: var(--ink-soft); }
.consent-row input { margin-top: 0.3rem; accent-color: var(--green); width: 18px; height: 18px; flex-shrink: 0; }
.btn-full { width: 100%; }
.form-fine { margin-top: 0.9rem; font-size: 0.875rem; color: var(--ink-soft); text-align: center; max-width: none; }

.honeypot { display: none; }

/* ---------- faq (#ukk) ---------- */

.faq-list { max-width: 760px; margin-inline: auto; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 1.15rem 0.25rem; }
.faq-list summary {
  cursor: pointer; list-style: none; font-family: var(--display); font-weight: 600;
  font-size: 1.075rem; color: var(--navy);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--green); font-size: 1.35rem; line-height: 1; }
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details p { margin-top: 0.75rem; }

/* ---------- footer (navy) ---------- */

.site-footer {
  background: var(--navy);
  padding-block: 2.75rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand img {
  height: 52px;
  width: auto;
  max-width: 100%;
  /* .footer-brand is a column flex; without this the image stretches to the
     column width (align-items: stretch). Pin it to its intrinsic ratio. */
  align-self: flex-start;
  object-fit: contain;
  /* The logo's wordmark is navy-on-transparent, so it nearly vanishes on
     this navy footer. Give it a light backing panel instead of re-tuning
     the whole footer's (already-AA-checked) text contrast. */
  background: var(--paper);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.footer-tagline {
  color: color-mix(in srgb, var(--white) 72%, var(--navy));
  font-size: 0.925rem;
}

.footer-legal {
  /* ≥68% white keeps 14px text at AA contrast (≥4.5:1) on navy */
  color: color-mix(in srgb, var(--white) 70%, var(--navy));
  font-size: 0.875rem;
}
.footer-legal a { color: inherit; }

/* ---------- scroll reveal ----------
   Hidden state is gated on the .js class (set by script.js) so content
   stays visible if JavaScript is blocked or fails to load. */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .pkg-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .loop-grid { grid-template-columns: 1fr; }
  .cost-layers { grid-template-columns: 1fr; }
  .pkg-select-grid { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  /* the wrapped two-row header would permanently eat viewport if it stayed sticky */
  .site-header { position: static; }
  section[id] { scroll-margin-top: 1rem; }
  .nav { flex-wrap: wrap; row-gap: 0.3rem; padding-block: 0.7rem; }
  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 0.3rem 1.1rem;
  }
  .nav-links a { font-size: 0.9rem; }
  .btn-small { padding: 0.35rem 0.9rem; font-size: 0.85rem; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .comp { grid-template-columns: 1fr 1fr; }
  .comp .rm { width: 100%; }
  .country-grid { grid-template-columns: repeat(2, 1fr); }

  /* ---- pricing table → stacked cards on mobile (no horizontal scroll) ---- */
  .table-scroll { overflow-x: visible; border: none; border-radius: 0; }
  /* match the base rule's `table.price-table` specificity so min-width resets */
  table.price-table { min-width: 0; width: 100%; font-size: 1rem; background: transparent; }
  /* hide the column header row visually (row data-labels carry the package names) */
  .price-table thead {
    position: absolute; width: 1px; height: 1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .price-table tbody tr {
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    padding: 0.4rem 1rem 0.9rem;
  }
  .price-table tbody tr:nth-child(even) { background: var(--white); }
  .price-table th[scope="row"] {
    display: block;
    padding: 0.7rem 0 0.2rem;
    font-family: var(--display);
    font-size: 1.1rem;
    color: var(--navy);
  }
  .price-table td {
    display: block;
    padding: 0.4rem 0;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
  }
  .price-table td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--navy);
  }
  .price-table caption { padding: 0.5rem 0 0; }
}

/* ---------- release flag (site/assets/config.js: window.RELEASED) ---------- */
/* Default (no JS, or RELEASED true): full site live, waiting-list section hidden. */
.when-prelaunch { display: none; }
html.pre-launch .when-released { display: none; }
html.pre-launch .when-prelaunch { display: block; }

/* ---------- EN country guides (site/en/guides/*) ---------- */
.guide-body { max-width: 720px; margin-inline: auto; padding-block: 2.5rem 4rem; }
.guide-body h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1.4rem; }
.guide-body h2 { margin-top: 2.4rem; }
.guide-body h3 { font-family: var(--body); font-size: 1.05rem; color: var(--navy); margin-top: 1.3rem; }
.guide-body p { max-width: none; color: var(--ink); }
.guide-body ul, .guide-body ol { color: var(--ink); margin: 0.9rem 0; padding-left: 1.3rem; }
.guide-body li { margin-bottom: 0.5rem; }
.guide-body a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.guide-body a:hover { text-decoration-color: var(--green); }
.guide-body .faq-item { margin-top: 1.6rem; }
.guide-body .faq-item h3 { margin-bottom: 0.4rem; }
.guide-body .faq-item p { color: var(--ink-soft); }
.guide-body .callout {
  background: var(--paper-2);
  border-left: 3px solid var(--green);
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.guide-body .guide-cta { margin-top: 2.6rem; }
