/* Shared base + flow styles. Each design overrides tokens and page layout in style.css. */
@font-face { font-family: 'Source Serif 4'; font-weight: 400 700; font-display: swap; src: url(assets/fonts/serif-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(assets/fonts/serif-italic.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400 700; font-display: swap; src: url(assets/fonts/dm-sans.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-display: swap; src: url(assets/fonts/inter-800.woff2) format('woff2'); }

:root {
  --g-950: #05241d; --g-900: #08362b; --g-800: #0a4f3e; --brand: #0f6e56; --mint: #bcdccf; --mint-2: #8fbfac;
  --yellow: #ffd23f; --yellow-press: #e8b917;
  --ink: #13211c; --muted: #5b6863; --line: #dde3e0; --field: #fff; --page: #f4f6f5;
  --danger: #b42318; --danger-bg: #fdecea; --focus: rgba(15,110,86,.22);
  --radius: 10px; --radius-lg: 18px;
  --font-ui: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-head: 'DM Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --cta: var(--yellow); --cta-ink: var(--ink); --cta-edge: var(--yellow-press);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-ui); color: var(--ink); background: var(--g-900); -webkit-font-smoothing: antialiased; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.card :focus-visible { outline-color: var(--brand); }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; }

/* ── Buttons ───────────────────────────────────────────── */
.lwf-cta {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 58px; padding: 0 20px;
  font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .005em;
  color: var(--cta-ink); background: var(--cta); border: 0; border-radius: var(--radius); cursor: pointer;
  box-shadow: 0 3px 0 var(--cta-edge), 0 10px 22px -12px rgba(5,36,29,.55);
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out), filter 160ms;
}
.lwf-cta:active { transform: translateY(2px) scale(.99); box-shadow: 0 1px 0 var(--cta-edge); }
.lwf-cta:disabled { cursor: progress; filter: saturate(.6) brightness(.97); }
@media (hover: hover) and (pointer: fine) { .lwf-cta:hover { filter: brightness(1.04); } }
.lwf-link { display: block; margin: 14px auto 0; padding: 6px 8px; font: inherit; font-size: 15px; font-weight: 600; color: var(--brand);
  background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { .lwf-link:hover { color: var(--g-800); text-decoration-thickness: 2px; } }
.lwf-back { height: 58px; font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius); cursor: pointer; transition: transform 140ms var(--ease-out), border-color 160ms; }
.lwf-back:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .lwf-back:hover { border-color: #b9c4bf; } }

/* ── Screen 1: code ────────────────────────────────────── */
.lwf-gate-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lwf-code {
  width: 100%; height: 64px; padding: 0 18px; font: inherit; font-size: 22px; font-weight: 700; letter-spacing: .14em;
  font-variant-numeric: tabular-nums; color: var(--ink); background: var(--field);
  border: 2px solid var(--line); border-radius: var(--radius); transition: border-color 160ms, box-shadow 160ms;
}
.lwf-code::placeholder { font-size: 16px; font-weight: 500; letter-spacing: 0; color: #8a9691; }
.lwf-code:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus); }
.lwf-code[aria-invalid=true] { border-color: var(--danger); }
.lwf-gate .lwf-err { display: block; min-height: 0; margin: 8px 0 0; }
.lwf-gate .lwf-err:empty { display: none; }
.lwf-gate .lwf-cta { margin-top: 16px; }

/* ── Screen 2: confirm ─────────────────────────────────── */
.lwf-confirm, .lwf-done { outline: none; }
.lwf-confirm h2, .lwf-done h2 { font-family: var(--font-head); font-size: 26px; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 18px; }
.lwf-who { padding: 16px 18px; margin-bottom: 20px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #f8faf9; }
.lwf-who-name { margin: 0; font-size: 18px; font-weight: 700; }
.lwf-who-addr { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* ── Screen 3: application ─────────────────────────────── */
.lwf fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lwf legend { font-family: var(--font-head); font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; margin: 0 0 20px; padding: 0; }
.lwf-top { margin-bottom: 22px; }
.lwf-progress { height: 6px; border-radius: 6px; background: #e7ecea; overflow: hidden; }
.lwf-bar { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: left; transform: scaleX(.25);
  transition: transform 320ms var(--ease-out); border-radius: 6px; }
.lwf-stepnum { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.lwf-field { margin-bottom: 18px; }
.lwf label, .lwf-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.lwf input:not([type=checkbox]):not([type=radio]), .lwf select {
  width: 100%; height: 52px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--field); border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: border-color 160ms, box-shadow 160ms; appearance: none;
}
.lwf input::placeholder { color: #9aa5a0; }
.lwf select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 23px, calc(100% - 15px) 23px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.lwf input:focus, .lwf select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus); }
.lwf [aria-invalid=true] { border-color: var(--danger) !important; }
.lwf-money { position: relative; }
.lwf-money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; font-weight: 600; }
.lwf-money input { padding-left: 28px !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.lwf-chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.lwf-chips button { height: 38px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; font-variant-numeric: tabular-nums;
  transition: transform 120ms var(--ease-out), border-color 160ms, background-color 160ms; }
.lwf-chips button:active { transform: scale(.96); }
.lwf-chips button.on { background: var(--g-800); border-color: var(--g-800); color: #fff; }
@media (hover: hover) and (pointer: fine) { .lwf-chips button:not(.on):hover { border-color: var(--brand); } }
.lwf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lwf-row-3 { grid-template-columns: 1.6fr .8fr 1fr; }
.lwf-hint { margin: 7px 0 0; font-size: 13px; color: var(--muted); }
.lwf-err { display: none; margin: 7px 0 0; font-size: 13px; color: var(--danger); font-weight: 600; }
.lwf-err.show { display: block; }
.lwf-radios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lwf-radios label { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; margin: 0; font-weight: 600;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color 160ms, box-shadow 160ms; }
.lwf-radios label:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus); }
.lwf input[type=radio], .lwf input[type=checkbox] { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; flex: none; }
.lwf-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 12.5px !important;
  line-height: 1.55; color: var(--muted); margin: 14px 0 0 !important; cursor: pointer; }
.lwf-check input { margin-top: 2px !important; }
.lwf-secure { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0 0 4px; }
.lwf-secure svg { width: 16px; height: 16px; flex: none; fill: var(--brand); margin-top: 1px; }
.lwf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lwf-nav { display: grid; grid-template-columns: 112px 1fr; gap: 10px; margin-top: 22px; }
.lwf-nav-solo { grid-template-columns: 1fr; }
.lwf-formerr { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--danger-bg); color: var(--danger); font-size: 14px; font-weight: 600; }

/* ── Screen 4: done ────────────────────────────────────── */
.lwf-done { text-align: left; }
.lwf-tick { width: 56px; height: 56px; margin-bottom: 18px; }
.lwf-tick circle { fill: #e6f3ee; }
.lwf-tick path { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 0; animation: lwf-draw 520ms 120ms var(--ease-out) backwards; }
@keyframes lwf-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
.lwf-done > p { margin: 0 0 18px; font-size: 16px; line-height: 1.55; color: #33413b; }
.lwf-status { list-style: none; margin: 0 0 20px; padding: 0; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lwf-status li { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 600; color: #8a9691; }
.lwf-status li + li { border-top: 1px solid var(--line); }
.lwf-status li::before { content: ''; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid #cfd8d4; }
.lwf-status li.is-done { color: var(--ink); }
.lwf-status li.is-done::before { border: 0; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9.5 16.2-3.7-3.7-1.4 1.4 5.1 5.1L20.6 7.9l-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center/14px no-repeat; }
.lwf-status li.is-now { color: var(--ink); }
.lwf-status li.is-now::before { border-color: var(--brand); border-right-color: transparent; animation: lwf-spin .9s linear infinite; }
.lwf-status li.is-next { color: var(--ink); font-weight: 600; }
.lwf-status li.is-next::before { border: 0; background: #fff4cc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313211c' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4l2.5 2'/%3E%3C/svg%3E") center/14px no-repeat; }
.lwf-status li.is-done { transition: color 200ms; }
@keyframes lwf-spin { to { transform: rotate(360deg); } }
.lwf-done-note { font-size: 15px !important; color: var(--muted) !important; }
.lwf-ref { margin: 0; font-size: 13px; color: #8a9691; font-variant-numeric: tabular-nums; }

/* ── Trust badges (shared markup in each page) ─────────── */
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: 12px 32px; }
.badges li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--mint); white-space: nowrap; }
.badges svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--yellow); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ── Footer ────────────────────────────────────────────── */
.site-foot { background: var(--g-950); color: #93aaa0; font-size: 12.5px; line-height: 1.65; padding: 40px 0 48px; }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.foot-logo { width: 128px; height: auto; filter: brightness(0) invert(1); opacity: .9; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: #d4e2dc; text-underline-offset: 3px; }
.site-foot p { margin: 0 0 10px; max-width: 900px; }

@media (max-width: 860px) {
  .badges { grid-template-columns: 1fr 1fr; justify-content: stretch; gap: 14px 16px; }
  .badges li { white-space: normal; font-size: 13.5px; }
}
@media (max-width: 520px) {
  .lwf legend, .lwf-confirm h2, .lwf-done h2 { font-size: 22px; }
  .lwf-chips { grid-template-columns: repeat(3, 1fr); }
  .lwf-row-3 { grid-template-columns: 1fr 1fr; }
  .lwf-row-3 .lwf-field:first-child { grid-column: 1 / -1; }
  .foot-in { padding: 0 16px; }
}
@media (max-width: 380px) { .lwf-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}

/* After the code the page is an app screen: keep the footer below the fold. */
body:not([data-screen=gate]) .hero { min-height: calc(100dvh - 40px); }
@media (max-width: 440px) { .banner-lead { display: none; } }

/* Google Places dropdown */
.pac-container { margin-top: 6px; border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -20px rgba(5,36,29,.45);
  font-family: var(--font-ui); overflow: hidden; }
.pac-container::after { margin: 4px 10px 6px; }
.pac-item { padding: 10px 14px; font-size: 14px; line-height: 1.4; color: var(--muted); border-top: 1px solid #eef1ef; cursor: pointer; }
.pac-item:first-child { border-top: 0; }
.pac-item:hover, .pac-item-selected { background: #f1f7f4; }
.pac-item-query { font-size: 15px; color: var(--ink); }
.pac-matched { font-weight: 700; }
.pac-icon { display: none; }
