/* BMB Transport & Tours — one page, "the place carries it". */

/* Self-hosted so no visitor data goes to a font service. */
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/work-sans-latin.woff2") format("woff2");
}

:root {
  --bg: #f1f2f0;          /* sea-salt paper */
  --surface: #e3e6e4;     /* one step down from paper */
  --ink: #0b1226;         /* logo navy, lifted for text */
  --muted: #464e63;
  --field: #070b1c;       /* the logo's own night */
  --field-2: #10172e;
  --on-field: #eef0f2;
  --on-field-muted: #bfc3cf;
  --accent: #d4a64a;      /* logo gold */
  --accent-press: #bf9136;
  --line-dark: #6b779a;   /* form borders on navy, 3:1 or more */
  --line-light: #7b837f;  /* form borders on paper, 3:1 or more */
  --scrim: rgba(4, 6, 16, 0.62);

  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 7.2vw, 7rem);

  --margin: clamp(16px, 4vw, 56px);
  --gap-section: clamp(96px, 14vw, 200px);
  --radius: 0px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--field); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--margin); top: -60px; z-index: 50;
  background: var(--accent); color: var(--field); padding: 12px 18px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons: flat, square, one fill. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--field);
  font: 500 var(--step-body)/1 var(--font); text-decoration: none;
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--accent-press); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--paper { background: var(--bg); color: var(--ink); }
.btn--paper:hover { background: var(--surface); }
/* Inline links get at least a 24px-tall hit area without changing the line. */
.link {
  display: inline-block; padding-block: 4px;
  font-weight: 500; text-decoration: underline; text-underline-offset: 0.25em;
  text-decoration-thickness: 2px; text-decoration-color: var(--accent);
  transition: text-underline-offset 0.2s var(--ease);
}
.link:hover { text-underline-offset: 0.4em; }
.wa-icon { width: 20px; height: 20px; flex: none; }

/* ---------- Header (over the hero) ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px var(--margin);
  color: var(--on-field);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; }
.brand img { width: 48px; height: 48px; }
.brand span { font-size: var(--step-body); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.nav ul { display: flex; gap: clamp(14px, 1.8vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { display: inline-block; padding-block: 8px; text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-color: var(--accent); }
.menu { display: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none; cursor: pointer; font-weight: 500;
    min-height: 44px; display: flex; align-items: center; padding: 0 4px;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] ul {
    position: absolute; right: 0; top: 52px; min-width: 220px;
    list-style: none; margin: 0; padding: 12px 0;
    background: var(--bg); color: var(--ink);
    box-shadow: 0 18px 40px rgba(4, 6, 16, 0.3); /* taste-skill-ignore: open menu is an overlay */
  }
  .menu li a { display: block; padding: 12px 20px; text-decoration: none; font-weight: 500; }
  .menu li a:hover { background: var(--surface); }
}

/* ---------- Hero: title in the sky, line on the horizon ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  color: var(--on-field); background: var(--field);
  display: grid;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 82%; z-index: 1;
  background: linear-gradient(to bottom, var(--scrim) 0%, var(--scrim) 45%, rgba(4, 6, 16, 0)); /* taste-skill-ignore: neutral scrim under hero text */
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 220px; z-index: 1;
  background: linear-gradient(to top, var(--scrim), rgba(4, 6, 16, 0)); /* taste-skill-ignore: neutral scrim under hero actions */
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-rows: auto auto 1fr auto;
  padding: clamp(128px, 17vh, 176px) var(--margin) 40px;
}
.hero h1 {
  font-size: var(--step-display); font-weight: 400; line-height: 0.92; text-align: center;
  max-width: 14ch; margin: 0 auto;
}
.hero__line {
  max-width: 38ch; margin: clamp(28px, 4vh, 48px) auto 0;
  font-size: var(--step-lead); font-weight: 500; line-height: 1.35; text-align: center; text-wrap: pretty;
}
.hero__actions { grid-row: 4; display: flex; justify-content: center; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero__actions .link { color: var(--on-field); min-height: 44px; display: inline-flex; align-items: center; }
.hero__caption {
  position: absolute; z-index: 2; right: var(--margin); bottom: 24px;
  font-size: var(--step-small); color: var(--on-field);
}

@media (max-width: 720px) {
  .hero__media img { object-position: 40% 50%; }
  .hero h1 { font-size: 10.5vw; }
  .hero__line { font-size: 1.0625rem; }
  .hero__actions { flex-direction: column; gap: 14px; }
  .hero__actions .btn { width: 100%; }
  .hero__caption { display: none; }
}

/* ---------- Sections shared ---------- */
.section { padding: var(--gap-section) var(--margin) 0; }
.section h2 { font-size: var(--step-head); }

/* ---------- Tours: sticky photograph, active list ---------- */
.tours__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start;
}
.tours__photo {
  grid-column: 1 / span 5; position: sticky; top: 12vh;
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--field);
}
.tours__photo picture, .tours__photo .route {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s var(--ease);
}
.tours__photo picture.is-active, .tours__photo .route.is-active { opacity: 1; }
.tours__photo img { width: 100%; height: 100%; object-fit: cover; }
.route { display: grid; place-items: center; background: var(--field); color: var(--on-field); }
.route svg { width: 82%; height: auto; }
.tours__list { grid-column: 7 / span 6; }
.tours__list h2 { margin-bottom: 48px; }
.tours__intro { margin: -24px 0 40px; max-width: 46ch; color: var(--muted); }
.tour { padding: 18px 0; }
.tour + .tour { margin-top: 4px; }
.tour__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  width: 100%; padding: 8px 0; min-height: 58px;
  background: none; border: 0; text-align: left; cursor: pointer; color: var(--muted);
  font: 400 clamp(1.375rem, 1.1rem + 1.1vw, 2rem)/1.15 var(--font); letter-spacing: -0.02em;
  transition: color 0.2s var(--ease);
}
.tour__head small { font-size: var(--step-small); letter-spacing: 0; white-space: nowrap; color: var(--muted); }
.tour.is-active .tour__head, .tour__head:hover { color: var(--ink); }
.tour__body { max-width: 46ch; padding: 6px 0 8px; }
.tour__body p + p { margin-top: 12px; }
.tour__stops { color: var(--muted); }
.tour__img { display: none; }
.js .tour:not(.is-active) .tour__body { display: none; }

/* Phones and tablets: each tour carries its own picture, so nothing changes off-screen. */
@media (max-width: 860px) {
  .tours__grid { display: block; }
  .tours__photo { display: none; }
  .tour__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .tour__img { display: block; margin: 8px calc(var(--margin) * -1) 20px; aspect-ratio: 4 / 3; overflow: hidden; }
  .tour__img img { width: 100%; height: 100%; object-fit: cover; }
  .tour__img.route { display: grid; }
}

/* ---------- Plan: trip slips ---------- */
.plan {
  margin-top: var(--gap-section);
  background: var(--field); color: var(--on-field);
  padding: clamp(72px, 9vw, 128px) var(--margin) 0; overflow: hidden;
}
.plan__top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.plan__words { grid-column: 2 / span 5; }
.plan__words p { margin-top: 24px; max-width: 40ch; color: var(--on-field-muted); }
.planner { grid-column: 8 / span 5; display: grid; gap: 20px; align-content: start; }
.planner fieldset { border: 0; margin: 0; padding: 0; }
.planner legend, .planner label > span { display: block; margin-bottom: 8px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--field-2); color: var(--on-field); cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chip input:checked + span { background: var(--accent); color: var(--field); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.planner__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.planner input[type="text"] {
  width: 100%; min-height: 48px; padding: 0 14px;
  background: var(--field-2); color: var(--on-field);
  border: 1px solid var(--line-dark); border-radius: 0; font: inherit;
}
.planner input::placeholder { color: #a3abbf; opacity: 1; }
.slips {
  display: flex; gap: 12px; align-items: flex-end;
  margin: clamp(64px, 8vw, 112px) calc(var(--margin) * -1) 0; padding: 0 var(--margin);
}
.slip {
  flex: 1 1 0; min-width: 0;
  background: var(--bg); color: var(--ink);
  padding: 22px 22px 32px; font-size: 0.9375rem; line-height: 1.5;
  display: flex; flex-direction: column;
}
.slip:nth-child(1) { min-height: 320px; transform: rotate(-1.5deg); transform-origin: bottom left; }
.slip:nth-child(2) { min-height: 400px; }
.slip:nth-child(3) { min-height: 360px; transform: rotate(1.2deg); transform-origin: bottom right; }
.slip:nth-child(4) { min-height: 300px; }
.slip strong { display: block; font-weight: 500; font-size: 1.0625rem; }
.slip__cut { display: block; margin: 10px 0; color: var(--muted); overflow: hidden; white-space: nowrap; }
.slip ul { list-style: none; margin: 0 0 16px; padding: 0; }
.slip__use {
  display: none; margin-top: auto; align-self: flex-start; min-height: 40px; padding: 0 14px;
  background: var(--surface); color: var(--ink); border: 0; cursor: pointer;
  font: 500 0.9375rem/1 var(--font); transition: background-color 0.2s var(--ease);
}
.js .slip__use { display: inline-flex; align-items: center; }
.slip__use:hover { background: #d3d8d5; }
.slip--live { flex-grow: 1.25; background: var(--accent); color: var(--field); min-height: 440px; }
.slip--live .slip__cut { color: var(--field); }
.slip--live output { display: block; white-space: pre-line; flex: 1; overflow-wrap: anywhere; }
.slip--live .btn { margin-top: 18px; background: var(--field); color: var(--on-field); }
.slip--live .btn:hover { background: var(--field-2); }
.slip__email {
  display: inline-block; margin-top: 12px; padding-block: 6px;
  font-weight: 500; text-underline-offset: 0.25em;
}

@media (max-width: 860px) {
  .plan__top { display: block; }
  .planner { margin-top: 40px; }
  .slips { flex-direction: column; align-items: stretch; margin-left: 0; margin-right: 0; padding: 0 0 72px; }
  .slip, .slip:nth-child(n) { flex: none; min-height: 0; transform: none; }
  .slip--live { order: -1; min-height: 300px; }
}
@media (max-width: 480px) {
  .planner__row { grid-template-columns: 1fr; }
}

/* ---------- Groups: rows with margin photographs ---------- */
.groups { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.groups__statement {
  grid-column: 5 / span 8; display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.groups__statement h2 { font-size: clamp(2.5rem, 5vw, 5rem); }
.groups__statement p { max-width: 44ch; }
.grow {
  grid-column: 5 / span 8; display: grid; grid-template-columns: 1fr auto; gap: 32px;
  align-items: start; margin-top: clamp(64px, 8vw, 112px);
}
.grow h3 { font-size: clamp(1.75rem, 3vw, 3rem); margin-bottom: 16px; }
.grow p { max-width: 34ch; }
.grow img { object-fit: cover; }
.grow--a img { width: 400px; aspect-ratio: 16 / 9; }
.grow--b img { width: 360px; aspect-ratio: 3 / 2; }
.grow--c img { width: 220px; aspect-ratio: 1; }
.groups__action { grid-column: 5 / span 8; margin-top: 64px; }

@media (max-width: 860px) {
  .groups { display: block; padding-top: 72px; }
  .groups__statement h2 { font-size: 10vw; }
  .grow { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
  .grow--a img { width: 100%; }
  .grow--b img { width: 72%; margin-left: auto; }
  .grow--c img { width: 56%; }
  .groups__action .btn { width: 100%; }
}

/* ---------- Transport ---------- */
.transport {
  margin-top: var(--gap-section); padding: clamp(72px, 9vw, 128px) var(--margin);
  background: var(--surface);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px;
}
.transport__head { grid-column: 1 / span 4; }
.transport__head p { margin-top: 20px; max-width: 32ch; }
.transport__head .link { margin-top: 24px; }
.transport__list {
  grid-column: 6 / span 7; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px;
}
.transport__list h3 { font-size: var(--step-lead); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 10px; }
.transport__list p { color: var(--muted); max-width: 32ch; }

@media (max-width: 860px) {
  .transport { display: block; }
  .transport__list { gap: 40px 32px; margin-top: 48px; }
}
@media (max-width: 560px) {
  .transport__list { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Gallery: drag row ---------- */
.gallery__head {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 32px; row-gap: 8px;
  padding: 0 var(--margin); margin-bottom: 32px;
}
.gallery__head h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.gallery__head p { color: var(--muted); font-size: var(--step-small); }
.gallery { padding-left: 0; padding-right: 0; }
.strip {
  display: flex; gap: 12px; height: 56svh; min-height: 380px; max-height: 620px;
  padding: 0 var(--margin); overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent; cursor: grab;
  touch-action: pan-x pan-y;
}
.strip figure { position: relative; margin: 0; flex: none; scroll-snap-align: start; height: 100%; }
.strip img, .strip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-tall { aspect-ratio: 3 / 4; }
.m-wide { aspect-ratio: 4 / 3; }
.clip-toggle {
  position: absolute; left: 12px; bottom: 12px; min-height: 40px; padding: 0 14px;
  background: var(--field); color: var(--on-field); border: 0; cursor: pointer;
  font: 500 0.9375rem/1 var(--font);
}
.clip-toggle:hover { background: var(--field-2); }

@media (max-width: 720px) {
  .strip { height: 62svh; gap: 8px; padding: 0 20px; max-height: none; }
  .m-tall { width: 72vw; aspect-ratio: auto; }
  .m-wide { width: 88vw; aspect-ratio: auto; height: 70%; align-self: center; }
}

/* ---------- FAQ: answers beside the facts ---------- */
.faq {
  margin-top: var(--gap-section); background: var(--field); color: var(--on-field);
  padding: clamp(80px, 10vw, 140px) var(--margin);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px;
}
.faq__text { grid-column: 1 / span 5; }
.faq__facts { list-style: none; margin: 28px 0 36px; padding: 0; display: grid; gap: 10px; font-size: 1.125rem; overflow-wrap: anywhere; }
.faq__facts a { display: inline-block; padding-block: 2px; color: var(--on-field); font-weight: 500; text-underline-offset: 0.2em; }
.faq__list { grid-column: 7 / span 6; }
.faq details { padding: 14px 0; }
.faq details + details { margin-top: 8px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  font-size: 1.25rem; min-height: 44px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p, .faq details ul { margin-top: 10px; color: var(--on-field-muted); max-width: 46ch; }
.faq details ul { padding-left: 1.1em; }
.faq__close { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

@media (max-width: 860px) {
  .faq { display: block; }
  .faq__list { margin-top: 48px; }
  .faq__close .btn { width: 100%; }
}

/* ---------- Contact: the email fallback ---------- */
.contact {
  padding: var(--gap-section) var(--margin);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; align-items: start;
}
.contact__intro { grid-column: 1 / span 5; }
.contact__intro h2 { font-size: var(--step-head); }
.contact__intro p { margin-top: 20px; max-width: 36ch; }
.card { grid-column: 7 / span 6; background: #fbfcfb; color: var(--ink); padding: 32px; border-radius: 8px; }
.card__ways { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; overflow-wrap: anywhere; }
.card__ways a { display: inline-block; padding-block: 2px; font-weight: 500; text-underline-offset: 0.2em; }
.form { display: grid; gap: 16px; }
.form label > span, .form legend { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.9375rem; }
.form input:not([type="checkbox"]), .form textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 1rem;
  color: var(--ink); background: #ffffff; border: 1px solid var(--line-light); border-radius: 0;
}
.form textarea { min-height: 96px; resize: vertical; }
.form :user-invalid { border-color: #a1242a; outline: 2px solid #a1242a; outline-offset: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.checks label { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 0.9375rem; cursor: pointer; }
.checks input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--ink); }
.form .btn { width: 100%; margin-top: 4px; }
.form__note { font-size: var(--step-small); color: var(--muted); }
.form__note a, .footer__legal a { display: inline-block; padding-block: 5px; font-weight: 500; text-underline-offset: 0.2em; }
.honey { position: absolute; left: -9999px; }

@media (max-width: 860px) {
  .contact { display: block; }
  .contact__intro { position: static; margin-bottom: 40px; }
  .card { padding: 24px 20px; }
}
@media (max-width: 560px) {
  .form__row, .checks { grid-template-columns: 1fr; }
}

/* ---------- Footer: a compact close ---------- */
.footer { background: var(--field); color: var(--on-field); padding: 64px var(--margin) 40px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; font-size: var(--step-lead); letter-spacing: -0.02em; }
.footer__brand img { width: 44px; height: 44px; }
.footer__menu { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer__menu a {
  display: inline-block; padding-block: 6px; text-decoration: none; font-weight: 500;
  font-size: var(--step-lead); letter-spacing: -0.02em; transition: color 0.2s var(--ease);
}
.footer__menu a:hover, .footer__menu a:focus-visible { color: var(--accent); }
.footer__info { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 40px; font-size: 0.9375rem; overflow-wrap: anywhere; }
.footer__info a { display: inline-block; padding-block: 4px; text-underline-offset: 0.2em; }
.footer__legal { margin-top: 40px; font-size: var(--step-small); color: var(--on-field-muted); }
.footer__legal a { color: var(--on-field); }

@media (max-width: 860px) {
  .footer { padding-bottom: 104px; }
  .footer__top .btn { width: 100%; }
  .footer__info { flex-direction: column; }
}

/* ---------- Floating WhatsApp (after the hero, every width) ---------- */
.float-wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--field);
  border: 3px solid var(--bg);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.float-wa svg { width: 28px; height: 28px; }
@media (min-width: 861px) { .float-wa { right: 32px; bottom: 32px; width: 64px; height: 64px; } }
.js .float-wa { opacity: 0; transform: translateY(16px); pointer-events: none; }
.js .float-wa.is-shown { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Thanks page ---------- */
.thanks { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; background: var(--field); color: var(--on-field); }
.thanks__media img { width: 100%; height: 100%; object-fit: cover; }
.thanks__text { padding: 80px var(--margin); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.thanks__text .brand { margin-bottom: 16px; }
.thanks__text h1 { font-size: var(--step-head); }
.thanks__text p { max-width: 38ch; color: var(--on-field-muted); }
.thanks__text .link { color: var(--on-field); }
@media (max-width: 720px) {
  .thanks { grid-template-columns: 1fr; }
  .thanks__media { height: 40svh; }
  .thanks__text { padding: 48px var(--margin); }
}

/* ---------- Simple pages: privacy, 404 ---------- */
.page { min-height: 100svh; display: flex; flex-direction: column; }
.page--dark { background: var(--field); color: var(--on-field); }
.page__header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px var(--margin); background: var(--field); color: var(--on-field);
}
.page__header .link { color: var(--on-field); }
.prose { flex: 1; width: min(100% - 2 * var(--margin), 720px); margin: 0 auto; padding: 72px 0 96px; }
.prose h1 { font-size: var(--step-head); }
.prose h2 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; margin: 48px 0 12px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose a { font-weight: 500; text-underline-offset: 0.2em; text-decoration-color: var(--accent); }
.prose__lead { margin-top: 24px !important; font-size: var(--step-lead); line-height: 1.4; }
.prose__meta { color: var(--muted); font-size: var(--step-small); }
.prose__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px !important; }
.page--dark .prose a:not(.btn) { color: var(--on-field); }
.page--dark .prose .btn { text-decoration: none; }
.page__footer { padding: 24px var(--margin); background: var(--field); color: var(--on-field-muted); font-size: var(--step-small); }
.page__footer a { color: var(--on-field); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__media {
    clip-path: inset(100% 0 0 0);
    animation: shutter 0.9s var(--ease) forwards;
  }
  .js .hero__media img { transform: scale(1.12); animation: settle 1.4s var(--ease) forwards; }
  .js .hero h1, .js .hero__line, .js .hero__actions {
    opacity: 0; transform: translateY(20px);
    animation: rise 0.7s var(--ease) forwards;
  }
  .js .hero h1 { animation-delay: 0.15s; }
  .js .hero__line { animation-delay: 0.25s; }
  .js .hero__actions { animation-delay: 0.35s; }

  .js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js [data-rise].is-in { opacity: 1; transform: none; }
}
@keyframes shutter { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
