/* ═══════════════════════════════════════════════════════════════════════
   Andrra Box — public website (andrra-box.com)
   Reads like a drawing sheet: section markers, a schedule of tasks, an
   axonometric of the boxes, prices set as an offer, a title block as footer.
   ═══════════════════════════════════════════════════════════════════════ */

body { font-size: 17px; line-height: 1.55; }

[hidden] { display: none !important; }

/* The icon sprite inlined at the top of each page */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Skip link, visible only when focused from the keyboard */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Anchors land below the sticky header */
[id] { scroll-margin-top: 84px; }
.anchor { display: block; height: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.wrap {
  width: 100%; max-width: 1248px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 8px;
  font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: background .15s, box-shadow .15s, color .15s;
}
.btn .icon { width: 17px; height: 17px; stroke-width: 2; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--blue-wash); }

/* ── Header ──────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 26px; margin-left: 18px; font-size: 15.5px; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15.5px; }
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-2); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; }
.lang a, .lang span { padding: 4px 9px; border-radius: 999px; color: var(--ink-3); }
.lang a:hover { color: var(--ink); }
.lang .on, .lang .on:hover { background: var(--ink); color: #fff; }
.head-login { color: var(--ink-2); font-weight: 500; }
.head-login:hover { color: var(--ink); }
.head-menu { display: none; }
.head-menu .i-close, .head-menu[aria-expanded="true"] .i-open { display: none; }
.head-menu[aria-expanded="true"] .i-close { display: block; }
.nav-extra { display: none; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero::before {
  /* squared paper, fading out toward the bottom */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 27, 45, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 27, 45, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 96%);
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 64px; align-items: center;
  padding-top: 76px; padding-bottom: 84px;
}
.hero h1 { font-size: clamp(46px, 5.6vw, 82px); margin-top: 22px; }
.hero h1 .l2 { color: var(--blue); }
.hero .lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); margin-top: 26px; max-width: 34em; text-wrap: pretty; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .fine { margin-top: 20px; font-size: 14.5px; color: var(--ink-3); max-width: 38em; }

/* The product, shown doing a job */
.vignette {
  background: var(--sheet); border-radius: 16px; box-shadow: var(--shadow-3);
  border: 1px solid var(--rule);
  overflow: hidden; font-size: 15px; line-height: 1.45;
}
.vig-bar {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px;
  border-bottom: 1px solid var(--rule); background: #fbfcfd;
}
.vig-bar .mark { width: 24px; height: 24px; border-radius: 7px; }
.vig-bar b { font-size: 14.5px; }
.vig-url { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: .02em; }
.vig-body { padding: 20px 20px 18px; display: grid; gap: 14px; }
.vig-user { justify-self: end; max-width: 86%; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 16px 16px 5px 16px; }
.vig-answer { color: var(--ink); }
.vig-table { width: 100%; margin-top: 10px; font-size: 14px; }
.vig-table td { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.vig-table td:last-child { text-align: right; }
.vig-table tr:last-child td { border-bottom: 0; }
.vig-card { background: var(--warn-wash); border: 1px solid var(--warn-line); border-radius: 13px; padding: 14px 15px; }
.vig-card .label { color: var(--warn); }
.vig-card .t { font-weight: 600; margin-top: 4px; }
.vig-card dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 0; margin-top: 9px; font-size: 14px; color: var(--ink-2); }
.vig-card dd { text-align: right; padding-left: 16px; }
.vig-card .tot { font-weight: 600; color: var(--ink); padding-top: 5px; border-top: 1px solid var(--warn-line); margin-top: 3px; }
.vig-card .buttons { display: flex; gap: 8px; margin-top: 13px; }
.vig-card .buttons span { height: 38px; padding: 0 16px; border-radius: 10px; display: inline-flex; align-items: center; font-weight: 600; font-size: 14.5px; }
.vig-card .yes { background: var(--blue); color: #fff; }
.vig-card .no { background: #fff; box-shadow: inset 0 0 0 1px var(--rule-2); }
.vig-foot { font-size: 12.5px; color: var(--ink-3); }

/* ── Facts strip ─────────────────────────────────────────────────── */
.facts { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 22px 24px 24px; border-left: 1px solid var(--rule); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact p { margin-top: 6px; font-size: 15.5px; line-height: 1.4; color: var(--ink); }

/* ── Sections ────────────────────────────────────────────────────── */
.sec { padding-block: 104px; }
.sec-white { background: var(--sheet); border-block: 1px solid var(--rule); }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sec-letter {
  /* the marker of a section on a plan: a letter in a circle */
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink);
}
.sec-line { width: 44px; height: 1.5px; background: var(--ink); }
.sec-head h2 { font-size: clamp(34px, 3.9vw, 54px); }
.sec-intro { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }

/* ── A · Schedule of tasks ───────────────────────────────────────── */
.schedule { width: 100%; }
.schedule thead th {
  text-align: left; padding: 12px 20px 12px 0; vertical-align: bottom;
  border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}
.schedule td { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.schedule tbody tr:last-child td { border-bottom: 1.5px solid var(--ink); }
.schedule .pos { width: 72px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); padding-top: 28px; }
.schedule .say { width: 37%; font-size: 21px; line-height: 1.3; font-style: italic; font-weight: 500; letter-spacing: -0.005em; text-wrap: balance; }
.schedule .does { font-size: 16.5px; color: var(--ink-2); padding-top: 25px; }
.schedule .in { width: 170px; padding-right: 0; padding-top: 22px; }
.boxchip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 14.5px; font-weight: 600; white-space: nowrap; background: var(--sheet); }
.boxchip .icon { width: 16px; height: 16px; color: var(--blue); }
.boxchip small { font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--redline); font-weight: 400; }

/* ── B · The boxes ───────────────────────────────────────────────── */
.sheet-fig {
  position: relative; background: var(--paper); border: 1.5px solid var(--ink);
  padding: 34px 34px 0;
}
.sheet-fig svg { width: 100%; height: auto; }
.sheet-title {
  /* the title block in the corner of the sheet */
  display: grid; grid-template-columns: auto auto auto; justify-content: end;
  margin: 0 -34px; border-top: 1.5px solid var(--ink);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.sheet-title span { padding: 9px 16px; border-left: 1px solid var(--ink); }
.sheet-title b { font-weight: 500; color: var(--ink); }

/* Two columns: a fifth box takes a new row, nothing to redraw */
.boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; margin-top: 44px; }
.boxspec { padding: 4px 0 0 44px; border-left: 1px solid var(--rule-2); display: flex; flex-direction: column; }
.boxspec:nth-child(odd) { padding: 4px 44px 0 0; border-left: 0; }
.boxspec .badge { align-self: flex-start; }
.boxspec h3 { font-size: 30px; font-stretch: 82%; font-weight: 600; letter-spacing: -0.01em; margin-top: 12px; }
.boxspec .what { margin-top: 8px; font-size: 16.5px; color: var(--ink-2); min-height: 3.1em; }
.boxspec ul { margin-top: 18px; border-top: 1px solid var(--rule-2); }
.boxspec li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; line-height: 1.4; }
.boxspec .price { margin-top: auto; padding-top: 20px; display: flex; align-items: baseline; gap: 8px; font-size: 15px; color: var(--ink-3); }
.boxspec .price b { font-size: 24px; font-stretch: 82%; color: var(--ink); font-variant-numeric: tabular-nums; }
.next-box {
  margin-top: 40px; padding: 18px 22px; border: 1.5px dashed var(--rule-2); border-radius: 4px;
  display: flex; align-items: center; gap: 18px; font-size: 16px; color: var(--ink-2);
}
.next-box > .icon { width: 24px; height: 24px; color: var(--ink-3); }
.next-box b { color: var(--ink); }
.next-box a { margin-left: auto; font-weight: 600; color: var(--blue); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }

/* ── C · Steps ───────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.step { padding: 0 32px 0 0; position: relative; }
.step + .step { padding-left: 32px; }
.step-rule { display: flex; align-items: center; gap: 0; margin-bottom: 22px; margin-left: -32px; }
.step:first-child .step-rule { margin-left: 0; }
.step-rule i { flex: 1; height: 1.5px; background: var(--ink); }
.step-rule span {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 13px; font-weight: 500;
}
.step-rule i:first-child { flex: 0 0 32px; }
.step:first-child .step-rule i:first-child { display: none; }
.step:last-child .step-rule i:last-child { visibility: hidden; }
.step h3 { font-size: 24px; font-stretch: 82%; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 16.5px; max-width: 24em; }

/* ── D · Data ────────────────────────────────────────────────────── */
.sec-ink { background: var(--ink); color: #fff; }
.sec-ink .sec-letter { box-shadow: inset 0 0 0 1.5px #fff; color: #fff; }
.sec-ink .sec-line { background: #fff; }
.sec-ink .label { color: #9fb0c6; }
.sec-ink .sec-intro { color: #c3cfde; }
.pledges { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .28); }
.pledge { padding: 24px 22px 4px; border-left: 1px solid rgba(255, 255, 255, .16); }
.pledge:first-child { padding-left: 0; border-left: 0; }
.pledge .icon { width: 24px; height: 24px; color: #8fc0f3; stroke-width: 1.5; }
.pledge h3 { margin-top: 16px; font-size: 19px; font-weight: 600; letter-spacing: -0.005em; }
.pledge p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: #c3cfde; }

/* ── E · Prices, set as an offer ─────────────────────────────────── */
.pricing { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.offer {
  background: var(--sheet); border: 1px solid var(--rule-2); box-shadow: var(--shadow-2);
  padding: 40px 44px 36px;
}
.offer-top { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 1.5px solid var(--ink); }
.offer-top .from { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.offer-top .from b { display: flex; align-items: center; gap: 9px; font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.offer-top .from .mark { width: 24px; height: 24px; border-radius: 7px; }
.offer-top .doc { text-align: right; }
.offer-top .doc strong { display: block; font-size: 30px; font-stretch: 82%; font-weight: 600; letter-spacing: .01em; }
.offer-top .doc span { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }
.offer table { width: 100%; margin-top: 6px; }
.offer th {
  text-align: left; padding: 14px 0 10px; border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}
.offer th:last-child, .offer td:last-child { text-align: right; }
.offer td { padding: 15px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.offer td.p { width: 44px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); padding-top: 18px; }
.offer td b { font-size: 17.5px; font-weight: 600; }
.offer td small { display: block; font-size: 14.5px; color: var(--ink-3); margin-top: 2px; }
.offer td.amt { white-space: nowrap; font-size: 17.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.offer td.amt small { font-weight: 400; white-space: normal; }  /* "CHF 15.– par autre personne" wraps on a phone */
.offer-notes { margin-top: 22px; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.offer-notes b { color: var(--ink-2); font-weight: 600; }
.pricing-side h3 { font-size: 26px; font-stretch: 82%; font-weight: 600; letter-spacing: -0.01em; }
.pricing-side p { margin-top: 10px; color: var(--ink-2); font-size: 16.5px; }
.example { margin-top: 28px; border-top: 1.5px solid var(--ink); }
.example div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule-2); font-size: 16px; }
.example div span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.example .sum { font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.pricing-side .btn { margin-top: 30px; }
.pricing-side .after { margin-top: 12px; font-size: 14px; color: var(--ink-3); }

/* ── F · Questions ───────────────────────────────────────────────── */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; border-top: 1.5px solid var(--ink); }
.qa { padding: 26px 0 28px; border-bottom: 1px solid var(--rule-2); }
.qa h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.005em; }
.qa p { margin-top: 9px; color: var(--ink-2); font-size: 16.5px; text-wrap: pretty; }

/* ── G · Contact and demo form ───────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.contact .sec-head { margin-bottom: 0; }
.contact-more { margin-top: 26px; display: grid; gap: 8px; font-size: 16px; color: var(--ink-2); }
.contact-more a { color: var(--blue); font-weight: 600; }
.contact-more a:hover { text-decoration: underline; text-underline-offset: 3px; }
.form-sheet {
  position: relative;
  background: var(--sheet); border: 1px solid var(--rule-2); box-shadow: var(--shadow-2);
  padding: 34px 38px 32px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
.field { display: grid; gap: 7px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field label small { font-size: 14px; font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--rule-2); border-radius: 8px; background: #fff;
  font-size: 16px; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 128px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-line); }
.form-foot { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; margin-top: 26px; }
.form-foot .fine { flex: 1 1 16em; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.form-foot .fine a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.btn:disabled { opacity: .65; cursor: progress; }
.form-status { margin-top: 18px; padding: 12px 15px; border-radius: 8px; font-size: 15px; line-height: 1.45; }
.form-status:empty { display: none; }
.form-status.is-ok { background: var(--ok-wash); color: var(--ok); }
.form-status.is-error { background: var(--bad-wash); color: var(--bad); }
/* The honeypot: present for robots, out of sight and out of reach for people */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ── Closing call and title block ────────────────────────────────── */
.closing { background: var(--blue); color: #fff; }
.closing .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 72px; flex-wrap: wrap; }
.closing h2 { font-size: clamp(34px, 4vw, 56px); max-width: 15em; }
.closing p { margin-top: 12px; font-size: 18px; color: #d6e6f8; }

.site-foot { padding-block: 56px 40px; }
.titleblock { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; border: 1.5px solid var(--ink); }
.titleblock > div { padding: 22px 24px 24px; border-left: 1px solid var(--ink); font-size: 15px; }
.titleblock > div:first-child { border-left: 0; }
.titleblock .label { margin-bottom: 12px; }
.titleblock li { padding: 3px 0; color: var(--ink-2); }
.titleblock .about p { margin-top: 12px; color: var(--ink-2); max-width: 22em; }
.titleblock dl { display: grid; grid-template-columns: auto 1fr; gap: 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; }
.titleblock dt, .titleblock dd { padding: 7px 0; border-bottom: 1px solid var(--rule-2); }
.titleblock dt { color: var(--ink-3); text-transform: uppercase; padding-right: 18px; }
.titleblock dl > :nth-last-child(-n+2) { border-bottom: 0; }
.titleblock a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
.legal a:hover { color: var(--ink); }
.legal .on { color: var(--ink); }
.legal-lang { display: inline-flex; gap: 8px; }

/* ── Legal pages and 404: a written document on the same sheet ───── */
.doc-page { padding-block: 72px 104px; }
.doc-page .sec-head { margin-bottom: 0; }
.doc-page h1 { font-size: clamp(38px, 4.6vw, 62px); }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 22px; }
.doc-meta .label { color: var(--ink-2); }
.doc-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--ink-3); }
.doc-links a { color: var(--blue); }
.doc-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.doc-links [aria-current] { color: var(--ink); font-weight: 600; }
.prose {
  max-width: 70ch; margin-top: 44px; padding-top: 6px; border-top: 1.5px solid var(--ink);
  font-size: 17px; line-height: 1.65; color: var(--ink-2);
}
.prose h2 {
  display: flex; align-items: baseline; gap: 14px;
  margin-top: 40px; padding-top: 0;
  font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; color: var(--ink);
}
.prose h2 .n { flex-shrink: 0; font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: var(--ink-3); letter-spacing: .04em; }
.prose > :first-child { margin-top: 30px; }
.prose p, .prose ul, .prose address { margin-top: 12px; }
.prose ul { list-style: none; padding-left: 0; }
.prose li { position: relative; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 9px; height: 1.5px; background: var(--ink-3); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose address { font-style: normal; padding: 16px 20px; background: var(--sheet); border: 1px solid var(--rule-2); color: var(--ink); }
.prose .note { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule-2); font-size: 15px; color: var(--ink-3); }
.notfound .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.notfound .prose { border-top: 0; margin-top: 0; }

/* ── Small screens ───────────────────────────────────────────────── */
@media (max-width: 980px) {
  .head-login, .head-right .lang { display: none; }
  .head-menu { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--ink); }
  .head-menu[aria-expanded="true"] { background: var(--ink); color: #fff; box-shadow: none; }
  .head-right { gap: 10px; }

  /* the menu: a panel under the header, opened by the button */
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    padding: 6px max(24px, env(safe-area-inset-right, 0px)) 22px max(24px, env(safe-area-inset-left, 0px));
    background: var(--paper); border-bottom: 1.5px solid var(--ink); box-shadow: 0 18px 30px rgba(15, 27, 45, .12);
    font-size: 18px; color: var(--ink);
    max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .site-head.is-open .site-nav { display: flex; }
  .site-nav > a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-weight: 500; }
  .nav-extra { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; }
  .nav-extra > a { font-weight: 600; color: var(--blue); }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 44px; padding-bottom: 52px; }
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 18px 16px 20px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .sec { padding-block: 64px; }
  .sec-head { margin-bottom: 34px; }
  .boxes, .steps, .pledges, .pricing, .faq, .titleblock { grid-template-columns: minmax(0, 1fr); }
  .boxes { row-gap: 0; }
  .boxspec, .boxspec:nth-child(odd) { padding: 28px 0 0; border-left: 0; }
  .boxspec + .boxspec { margin-top: 28px; border-top: 1.5px solid var(--ink); }
  .boxspec .what { min-height: 0; }
  .step, .step + .step { padding: 0; }
  .step + .step { margin-top: 30px; }
  .step-rule { margin-left: 0; }
  .step-rule i:first-child { display: none; }
  .pledges { border-top: 0; }
  .pledge { padding: 22px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .22); display: grid; grid-template-columns: 24px 1fr; column-gap: 16px; }
  .pledge h3 { margin-top: 0; }
  .pledge p { grid-column: 2; }
  .pricing { gap: 36px; }
  .offer { padding: 24px 20px; }
  .offer-top { flex-direction: column; }
  .offer-top .doc { text-align: left; }
  .titleblock > div { border-left: 0; border-top: 1px solid var(--ink); padding: 18px 18px 20px; }
  .titleblock > div:first-child { border-top: 0; }
  .sheet-fig { padding: 16px 12px 0; overflow-x: auto; }
  .sheet-fig svg { min-width: 640px; }
  .sheet-title { margin: 0 -12px; min-width: 640px; }
  .next-box { flex-direction: column; align-items: flex-start; gap: 10px; }
  .next-box a { margin-left: 0; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .form-sheet { padding: 26px 22px 24px; }
  .doc-page { padding-block: 48px 72px; }

  /* the schedule becomes a list of cards */
  .schedule thead { display: none; }
  .schedule, .schedule tbody, .schedule tr, .schedule td { display: block; width: auto; }
  .schedule tbody { border-top: 1.5px solid var(--ink); }
  .schedule tr { padding: 20px 0 22px; border-bottom: 1px solid var(--rule-2); }
  .schedule tbody tr:last-child { border-bottom: 1.5px solid var(--ink); }
  .schedule td, .schedule tbody tr:last-child td { padding: 0; border: 0; }
  .schedule .pos { padding-top: 0; margin-bottom: 6px; }
  .schedule .say { width: auto; font-size: 20px; }
  .schedule .does { padding-top: 8px; }
  .schedule .in { padding-top: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero .lead { font-size: 18px; }
  .hero .cta .btn { width: 100%; }
  .facts .wrap { grid-template-columns: minmax(0, 1fr); }
  .fact, .fact:nth-child(even) { padding: 14px 0 16px; border-left: 0; border-top: 1px solid var(--rule); }
  .fact:nth-child(2) { border-top: 1px solid var(--rule); }
  .closing .btn { width: 100%; }
  .site-head .btn-sm { padding: 0 12px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .form-foot .btn { width: 100%; }
  .form-sheet { margin-inline: -8px; padding: 22px 18px 22px; }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 20px; }
  .notfound .cta .btn { width: 100%; }
}
