/* ===========================================================================
   Zeitnachweis marketing — v3 (design round 1, 2026-10-14)

   Paper background (no lines), ink navy for type / nav / primary buttons,
   amber only for the running state, the check marks and the stamp accents.
   White cards with a 1px navy hairline and 18px radius, no shadows. System
   font stack; nothing is loaded from a third party.

   The :root tokens and the language picker (.lang-menu) are shared with
   employer.css, which is loaded after this file on the employer pages.
   =========================================================================== */

:root {
  --paper: #F7F5F0;
  --ink: #1F3A5F;
  --ink-dark: #152A45;
  --amber: #F2A516;
  --hairline: rgba(31, 58, 95, 0.9);
  --hairline-soft: rgba(31, 58, 95, 0.18);
  --radius: 18px;
  --radius-s: 12px;

  /* Legacy aliases still referenced by shared components */
  --brand: var(--ink);
  --brand-dark: var(--ink-dark);
  --accent: var(--amber);
  --text: #1b2a3a;
  --muted: #5b6b7d;
  --bg: var(--paper);
  --bg-soft: #f3f1ec;
  --card: #ffffff;
  --border: var(--hairline-soft);
  --radius-lg: var(--radius);
  --radius-md: var(--radius-s);
  --shadow: none;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* ---- Cards (shared look) -------------------------------------------------- */

.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

/* ---- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-s);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn-primary { background: var(--ink); color: #fff !important; }
.btn-primary:hover { background: var(--ink-dark); border-color: var(--ink-dark); }
.btn-outline { background: #fff; color: var(--ink) !important; }
.btn-outline:hover { background: #e9edf3; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 17px; }

/* ---- Header / nav ---------------------------------------------------------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--hairline-soft);
}

.site-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  color: var(--ink) !important;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none !important;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; flex: none; }

nav.primary {
  margin-left: auto;
  display: flex;
  gap: 28px;
  align-items: center;
}
nav.primary a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}
nav.primary a:hover { text-decoration: none; color: var(--ink-dark); }
nav.primary .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: #fff !important;
  font-weight: 650;
}
nav.primary .nav-cta:hover { background: var(--ink-dark); }

/* Hamburger — hidden on desktop. 44x44 tap target. */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars { position: relative; display: block; width: 22px; height: 16px; }
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 120ms ease, top 180ms ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 7px; }
.nav-toggle-bars span:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ---- Language picker (partials/lang_menu.php), shared with the employer area.
   <details> opens without script. Desktop: popover under (or above) the
   button. Below 640px: a bottom sheet with a dimmed backdrop. ---------------- */

.lang-menu { position: relative; display: inline-block; }
.lang-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px 0 11px;
  border: 1px solid var(--hairline-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover { border-color: var(--hairline); }
.lang-menu[open] > summary { color: var(--ink); border-color: var(--ink); background: #fff; }
.lang-menu > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lang-menu-globe { flex: none; color: var(--ink); }
.lang-menu-code { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.lang-menu-caret { flex: none; opacity: 0.55; transition: transform 160ms ease; }
.lang-menu[open] .lang-menu-caret { transform: rotate(180deg); }

.lang-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: 260px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  animation: langMenuIn 140ms ease-out;
}
.lang-menu-title {
  margin: 4px 10px 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lang-menu-list { margin: 0; padding: 0; list-style: none; }
.lang-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}
.lang-menu-list a:hover,
.lang-menu-list a:focus-visible { background: var(--bg-soft); text-decoration: none; outline: none; }
.lang-menu-list a[aria-current="true"] { background: #e9edf3; }
.lang-menu-names { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.lang-menu-native { font-size: 14.5px; font-weight: 650; }
.lang-menu-local { font-size: 12.5px; color: var(--muted); }
.lang-menu-check { flex: none; color: var(--ink); }

@keyframes langMenuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes langSheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ftFade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 640px) {
  .lang-menu[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(11, 25, 40, 0.42);
    animation: ftFade 140ms ease-out;
  }
  .lang-menu-panel {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    width: auto;
    padding: 10px 10px calc(14px + env(safe-area-inset-bottom));
    border: none;
    border-radius: 20px 20px 0 0;
    animation: langSheetIn 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .lang-menu-panel::before {
    content: "";
    display: block;
    width: 38px;
    height: 4px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: #d3dde6;
  }
  .lang-menu-title { font-size: 12px; margin: 0 12px 8px; }
  .lang-menu-list a { min-height: 56px; padding: 8px 12px; }
  .lang-menu-native { font-size: 16px; }
  .lang-menu-local { font-size: 13px; }
}

/* ---- Type ------------------------------------------------------------------ */

h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h3 { color: var(--ink); }
.lead {
  margin: 0 0 28px;
  max-width: 560px;
  color: #35536d;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
}
.section-lead {
  margin: 0 0 28px;
  max-width: 640px;
  color: #35536d;
  font-size: 17px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

section { padding: 56px 0; }

/* ---- Hero ------------------------------------------------------------------ */

.hero { padding: 56px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.hero .store-row { margin-bottom: 26px; }
.hero .store-btn { min-height: 50px; }
.trust {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #35536d;
  font-size: 15px;
}
.trust li { list-style: none; position: relative; padding-left: 26px; }
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 9px;
  border-left: 3px solid var(--amber);
  border-bottom: 3px solid var(--amber);
  transform: rotate(-45deg);
}

/* Phone mock, built in CSS: the app's "Heute" screen. */
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
}
.hero-icon {
  position: relative;
  z-index: 2;
  width: clamp(130px, 16vw, 220px);
  height: auto;
  margin-right: -22px;
  border-radius: 22%;
  flex: none;
}
.phone {
  position: relative;
  z-index: 1;
  width: min(300px, 100%);
  flex: none;
  padding: 10px;
  border-radius: 44px;
  background: var(--ink-dark);
  border: 1px solid var(--hairline);
  font-variant-numeric: tabular-nums;
}
.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 560px;
  padding: 14px 14px 18px;
  border-radius: 34px;
  background: var(--paper);
  color: var(--ink);
}
.phone-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 0;
  font-size: 12px;
  font-weight: 650;
}
.phone-brand { flex: 1; text-align: center; font-size: 13px; }
.phone-menu {
  width: 16px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}
.phone-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; padding: 0 4px; }
.phone-status {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 16px 12px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
}
.phone-status svg { color: var(--amber); }
.phone-since { color: var(--amber); font-size: 12.5px; font-weight: 650; }
.phone-timer { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.phone-caption { font-size: 11.5px; opacity: 0.85; }
.phone-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.phone-tile {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
  min-width: 0;
}
.phone-tile span { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-tile strong { font-size: 15px; font-weight: 750; }
.phone-tile--wide { grid-column: 1 / -1; }
.phone-button {
  margin-top: auto;
  padding: 13px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.phone-home {
  display: block;
  width: 90px;
  height: 4px;
  margin: 4px auto 0;
  border-radius: 999px;
  background: var(--ink-dark);
}

/* ---- Benefit cards --------------------------------------------------------- */

.features { padding: 16px 0 40px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature-card { padding: 26px; }
.feature-icon { width: 56px; height: 56px; color: var(--ink); }
.feature-icon svg { width: 56px; height: 56px; }
.feature-card h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 750; }
.feature-card p { margin: 0; color: #35536d; font-size: 15px; }

/* ---- How it works: three steps on a dotted line ending in the stamp -------- */

.how { padding: 24px 0 48px; }
.how-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 110px;
  gap: 28px;
  align-items: center;
}
.how-row::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 24px;
  right: 24px;
  top: 50%;
  border-top: 3px dotted var(--ink);
  opacity: 0.6;
}
.how-step {
  position: relative;
  z-index: 1;
  padding: 22px 24px;
}
.how-num {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
}
.how-step h3 { margin: 0 0 6px; font-size: 18px; font-weight: 750; }
.how-step p { margin: 0; color: #35536d; font-size: 15px; }
.how-stamp {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  color: var(--ink);
}

/* ---- Legal box ------------------------------------------------------------- */

.legal-context { padding: 8px 0 48px; }
.legal-box { padding: 30px 32px; }
.legal-box h2 { margin-top: 0; }
.legal-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0 0 18px;
}
.legal-list dt { font-weight: 800; color: var(--ink); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.legal-list dd { margin: 0; font-size: 15px; color: #35536d; }
.legal-box .muted.small { margin: 0; }

/* ---- Pricing (teaser + page) ---------------------------------------------- */

.pricing { padding: 8px 0 48px; }
.pricing-page { padding-top: 48px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.pricing-grid--2 { max-width: 820px; }
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.pricing-card h3 { margin: 0; font-size: 19px; font-weight: 750; }
.pricing-card .price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pricing-card .price strong { font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.pricing-card .price span { color: var(--muted); font-size: 14px; }
.pricing-card-featured { box-shadow: inset 0 0 0 1px var(--hairline); }
.pricing-card-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  background: var(--amber);
  border-radius: 0 0 3px 3px;
}
.plan-features {
  flex: 1;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan-features li { position: relative; padding-left: 24px; font-size: 15px; color: #35536d; line-height: 1.45; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--amber);
  border-bottom: 2.5px solid var(--amber);
  transform: rotate(-45deg);
}
.pricing-footnote { margin: -6px 0 0; color: var(--muted); font-size: 13px; }
.plan-cta,
.pricing-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-s);
  border: 1px solid var(--ink);
  font-weight: 650;
  font-size: 15px;
  text-decoration: none !important;
}
.plan-cta-primary { background: var(--ink); color: #fff !important; }
.plan-cta-primary:hover { background: var(--ink-dark); }
.plan-cta-ghost { background: #fff; color: var(--ink) !important; }
.plan-cta-ghost:hover { background: #e9edf3; }

.faq {
  max-width: 820px;
  margin: 10px 0 0;
  padding: 6px 28px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.faq div { padding: 16px 0; border-top: 1px solid var(--hairline-soft); }
.faq div:first-child { border-top: 0; }
.faq dt { font-weight: 750; color: var(--ink); margin-bottom: 4px; }
.faq dd { margin: 0; color: #35536d; }
.pricing-page h2 { margin-top: 44px; }

/* ---- Store badges (neutral placeholders, in the hero) ---------------------- */

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink) !important;
  text-decoration: none !important;
}
.store-btn:hover { background: #e9edf3; }
.store-btn .mark { display: inline-flex; color: var(--ink); }
.store-btn .sub { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.store-btn .main { display: block; font-size: 16px; font-weight: 750; }
.store-btn.is-placeholder { opacity: 0.6; cursor: default; }
.store-btn.is-placeholder:hover { background: #fff; }

/* ---- FAQ accordion (details/summary, no script) ---------------------------- */

.faq-section { padding: 8px 0 48px; }
.faq-list { max-width: 820px; padding: 4px 28px; }
.faq-item { border-top: 1px solid var(--hairline-soft); }
.faq-item:first-child { border-top: 0; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.faq-chevron {
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}
.faq-item[open] .faq-chevron { transform: rotate(-135deg); border-color: var(--amber); }
.faq-item p { margin: -4px 0 18px; max-width: 700px; color: #35536d; font-size: 15.5px; line-height: 1.6; }

/* ---- CTA band -------------------------------------------------------------- */

.cta { padding: 8px 0 72px; }
.cta-inner {
  padding: 40px 32px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.cta-inner h2 { color: #fff; }
.cta-inner .section-lead { margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, 0.85); }
.cta-inner .btn-primary { background: #fff; border-color: #fff; color: var(--ink) !important; }
.cta-inner .btn-primary:hover { background: var(--paper); border-color: var(--paper); }

/* ---- Footer ---------------------------------------------------------------- */

footer.site {
  padding: 28px 0 32px;
  border-top: 1px solid var(--hairline-soft);
  color: var(--muted);
  font-size: 14px;
}
footer.site a { color: var(--ink); font-weight: 600; }
.footer-inner { display: flex; gap: 16px 24px; align-items: center; flex-wrap: wrap; }
.footer-inner .spacer { flex: 1; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Long-form legal pages (privacy, imprint) ------------------------------ */

.privacy { padding: 48px 0 80px; }
.privacy-doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 40px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  line-height: 1.65;
}
.privacy-doc h1 { font-size: clamp(30px, 3.4vw, 40px); margin: 0 0 8px; }
.privacy-doc h2 { font-size: 22px; margin: 36px 0 10px; }
.privacy-doc h3 { font-size: 17px; margin: 24px 0 8px; }
.privacy-doc p, .privacy-doc li { font-size: 15px; }
.privacy-doc ul { padding-left: 22px; }
.privacy-doc li { margin-bottom: 6px; }
.privacy-updated { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.privacy-intro { font-size: 17px; line-height: 1.55; color: var(--ink-dark); margin: 0 0 24px; }

/* ---- Responsive ------------------------------------------------------------ */

@media (max-width: 1080px) {
  .how-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how-row::before { right: 24px; }
  .how-stamp { grid-column: 1 / -1; justify-content: flex-end; margin-top: -8px; }
}

@media (max-width: 880px) {
  section { padding: 40px 0; }
  .hero { padding: 36px 0 24px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-art { justify-content: center; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }

  /* Steps stack; the dotted line runs vertically down the left. */
  .how-row { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-left: 28px; }
  .how-row::before {
    left: 10px;
    right: auto;
    top: 24px;
    bottom: 24px;
    border-top: 0;
    border-left: 3px dotted var(--ink);
  }
  .how-stamp { justify-content: flex-start; margin: 0 0 0 -8px; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .site-inner { min-height: 64px; gap: 12px; }
  .brand { font-size: 19px; }

  /* Mobile nav: the primary nav becomes a panel below the sticky header,
     revealed by the hamburger. */
  .nav-toggle { display: inline-flex; }
  nav.primary {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 16px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline-soft);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 220ms ease, opacity 160ms ease, visibility 0s linear 220ms;
  }
  nav.primary.is-open {
    max-height: calc(100vh - 64px);
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    transition: max-height 220ms ease, opacity 160ms ease, visibility 0s;
  }
  nav.primary a { padding: 12px 4px; border-bottom: 1px solid var(--hairline-soft); }
  nav.primary .nav-cta { justify-content: center; margin-top: 12px; border-bottom: 0; }
  nav.primary .lang-menu { align-self: stretch; margin-top: 10px; }
  nav.primary .lang-menu > summary { width: 100%; border-radius: var(--radius-s); padding: 0 12px; }
  nav.primary .lang-menu[open]::before { content: none; }
  nav.primary .lang-menu-panel {
    position: static;
    width: auto;
    margin-top: 8px;
    padding: 4px;
    border: 1px solid var(--hairline-soft);
    border-radius: 12px;
    animation: none;
  }
  nav.primary .lang-menu-panel::before,
  nav.primary .lang-menu-title { display: none; }
  nav.primary .lang-menu-list a { min-height: 48px; padding: 6px 12px; border-bottom: none; }
  body.nav-open { overflow: hidden; }

  .hero-actions .btn { flex: 1 1 100%; }
  .hero-icon { width: 96px; margin-right: -16px; }
  .phone { width: min(280px, calc(100% - 80px)); }
  .phone-screen { min-height: 520px; }
  .legal-box { padding: 22px 18px; }
  .privacy-doc { padding: 24px 18px; }
  .faq { padding: 2px 18px; }
  .faq-list { padding: 2px 16px; }
  .faq-item summary { font-size: 16px; }
  .hero .store-btn { flex: 1 1 calc(50% - 6px); }
  .cta-inner { padding: 30px 18px; }
  .cta-inner .btn { width: 100%; white-space: normal; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .hero-icon { display: none; }
  .phone { width: 100%; }
}
