/* ===========================================================================
   Stonelab "Our Process": brand styles (mobile-first).
   Italiana titles (black + gold), Montserrat body, Brittany Signature only for
   the tagline and the typed signature. Matches the Our Process PDF.
   =========================================================================== */
@font-face { font-family: "Italiana"; src: url("../assets/fonts/Italiana-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/Montserrat-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/Montserrat-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Brittany Signature"; src: url("../assets/fonts/BrittanySignatureRegular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #1E1E1E;
  --gold: #C2A87C;         /* rendered gold of the PDF pages */
  --gold-ink: #7A5F30;     /* darker gold for small text (6.0:1 on white, 5.4:1 on #F3F3F3) */
  --bg: #F3F3F3;
  --card: #FFFFFF;
  --muted: #5E5A55;        /* 6.4:1 on #F3F3F3 */
  --line: #C2A87C;
  --error: #A3321F;
  --radius: 22px;
  --focus: 0 0 0 3px #FFFFFF, 0 0 0 5px #1E1E1E;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
strong { font-weight: 600; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* ---------------------------------------------------------------- layout -- */
.main { outline: none; }
.screen { padding: 8px 20px 32px; }
.wrap { max-width: 640px; margin: 0 auto; }
.center { text-align: center; }

.topbar { position: sticky; top: 0; z-index: 5; background: rgba(243,243,243,.94); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); padding: 12px 20px 10px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; }
.topbar-logo { width: 42px; height: auto; grid-row: span 2; }
.progress { height: 4px; background: #E2DDD3; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--gold); transition: width .35s ease; }
.progress-label { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.footer { text-align: center; padding: 24px 20px 36px; color: var(--muted); }
.footer-tag { font-family: "Brittany Signature", cursive; font-size: 26px; color: var(--ink); margin: 0 0 6px; line-height: 1.4; }
.footer-meta { font-size: 12px; margin: 0; letter-spacing: .04em; }
.footer-hash { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- typography -- */
.display { font-family: "Italiana", "Didot", serif; font-weight: 400; font-size: clamp(40px, 11vw, 64px);
  line-height: 1.05; letter-spacing: -.01em; margin: 6px 0 18px; outline: none; }
.display .ink { color: var(--ink); }
.display .gold { color: var(--gold); }
.h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; letter-spacing: .01em; }
.h3 { font-size: 17px; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.eyebrow { margin: 18px 0 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; }
.lead { font-size: 17px; margin: 0 0 12px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.script { font-family: "Brittany Signature", cursive; font-size: 34px; margin: 0 0 8px; line-height: 1.5; }
.note { font-size: 15px; margin-top: 22px; }
p { margin: 0 0 12px; }

/* --------------------------------------------------------------- cards -- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; margin: 0 0 16px; }
.cards { list-style: none; margin: 18px 0 0; padding: 0; }
.card.row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 18px 20px; }
.card.row p { margin: 0; }
.icon { color: var(--gold); width: 44px; height: 44px; display: inline-block; flex: none; }
.icon svg { width: 100%; height: 100%; }

/* Hero (welcome) */
.hero { text-align: center; padding-top: 18px; }
.hero-logo { width: 104px; height: auto; margin: 6px auto 22px; }
.arch { position: relative; width: min(64vw, 260px); aspect-ratio: 680 / 920; margin: 0 auto 26px; }
.arch::before { content: ""; position: absolute; inset: -10px; border: 1.5px solid var(--gold); border-radius: 999px 999px 0 0; }
.arch-img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; border-radius: 999px 999px 0 0; }
.hero .display { font-size: clamp(56px, 16vw, 84px); margin-bottom: 4px; }

/* Timeline (step 1) */
.timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 30px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 3px; background: #C9C9C9; border-radius: 3px; }
.tl-item { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 4px 0 24px; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 6px; width: 19px; height: 19px; border-radius: 50%;
  background: #fff; border: 4px solid var(--gold); box-sizing: border-box; }
.tl-item .icon { width: 40px; height: 40px; }
.tl-item p { margin: 0; font-size: 15px; }

/* Fee (step 4) */
.fee { display: grid; gap: 14px; border-width: 2px; }
.fee-amount { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fee-num { font-size: 52px; line-height: 1; color: var(--gold); font-weight: 400; }
.fee-label { margin-top: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; text-align: center; }
.fee p { margin: 0; }

/* Bullets (step 5) */
.bullets { list-style: none; margin: 8px 0 0; padding: 0; }
.bullets li { position: relative; padding: 0 0 0 30px; margin: 0 0 20px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--gold); box-sizing: border-box; }
.commitment { margin: 8px 0 0 30px; }

.section-body { margin-bottom: 26px; }

/* ----------------------------------------------------------- controls -- */
.btn { min-height: 48px; min-width: 44px; padding: 12px 26px; border-radius: 999px; font: 600 15px/1.2 "Montserrat", sans-serif;
  letter-spacing: .04em; cursor: pointer; border: 1.5px solid transparent; transition: background .15s, color .15s, opacity .15s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #000; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--gold); }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; text-decoration: underline; text-underline-offset: 4px; padding-left: 8px; padding-right: 8px; }
.btn-small { min-height: 44px; padding: 8px 10px; font-size: 14px; }
.btn-chip { min-height: 44px; padding: 8px 16px; background: transparent; border-color: var(--line); color: var(--ink); font-size: 14px; }
.btn-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--gold-ink); font: 600 14px "Montserrat", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 0 4px; }

.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 8px; }
.nav-row-end { justify-content: flex-end; }
.nav-row-center { justify-content: center; }
.nav-row .btn-primary { flex: 0 1 auto; }

.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; }
.field label { font-size: 14px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"] {
  min-height: 50px; padding: 12px 14px; font: 400 16px "Montserrat", sans-serif; color: var(--ink);
  background: #fff; border: 1px solid #BDB5A6; border-radius: 12px; width: 100%; -webkit-appearance: none; appearance: none; }
input:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(30,30,30,.18); }
input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 13px; min-height: 1em; }
.field-hint { color: var(--muted); font-size: 13px; }
.form-error { color: var(--error); font-weight: 600; min-height: 1em; text-align: center; }
.form .field:last-of-type { margin-bottom: 4px; }

.check { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; cursor: pointer; padding: 8px 0; min-height: 44px; font-size: 15px; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.consent .check { margin-top: 6px; font-weight: 600; }

.ack { display: grid; gap: 6px; border-width: 1.5px; }
.field-initials { margin-bottom: 6px; }
.initials { max-width: 140px; text-transform: uppercase; letter-spacing: .3em; font-weight: 600 !important; text-align: center; }
.stamp { font-size: 12px; color: var(--gold-ink); min-height: 1em; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ review -- */
.review-list { list-style: none; margin: 0; padding: 0; }
.review-item { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name ini" "time link"; gap: 0 12px; padding: 10px 0; border-bottom: 1px solid #EEE9E0; align-items: center; }
.review-item:last-child { border-bottom: 0; }
.review-name { grid-area: name; font-size: 15px; }
.review-initials { grid-area: ini; font-weight: 600; letter-spacing: .2em; color: var(--ink); text-align: right; }
.review-time { grid-area: time; font-size: 12px; color: var(--muted); }
.review-item .link { grid-area: link; justify-self: end; }

.sig { margin-top: 6px; }
.sig-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sig-label { font-size: 14px; font-weight: 600; }
.sig-tabs { display: flex; gap: 8px; }
.sig-box { position: relative; border: 1px dashed #BDB5A6; border-radius: 14px; background: #FCFBF9; }
.sig-canvas { display: block; width: 100%; height: 160px; touch-action: none; cursor: crosshair; border-radius: 14px; }
.sig-line { position: absolute; left: 20px; right: 20px; bottom: 34px; height: 1px; background: var(--gold); pointer-events: none; }
.sig-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sig-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.sig-typed { margin-top: 12px; }
.turnstile:empty { display: none; }
.turnstile { margin-top: 14px; }

.loading { text-align: center; color: var(--muted); padding: 80px 0; }

/* ------------------------------------------------------------ tablet+ -- */
@media (min-width: 720px) {
  .screen { padding: 16px 32px 48px; }
  .topbar { padding: 14px 32px 12px; }
  .card { padding: 28px 32px; }
  .card.row { grid-template-columns: 52px 1fr; padding: 22px 28px; gap: 20px; }
  .icon { width: 52px; height: 52px; }
  .fee { grid-template-columns: 170px 1fr; align-items: center; }
  .fee-label { max-width: 9em; }
  .fee-amount { border-bottom: 0; border-right: 1px solid var(--line); padding: 0 24px 0 0; }
  .review-item { grid-template-columns: 1fr auto 160px auto; grid-template-areas: "name ini time link"; }
  .review-time { text-align: right; }
  .sig-canvas { height: 190px; }
}
@media (min-width: 1024px) {
  .wrap { max-width: 720px; }
  /* Alternating timeline like the PDF page */
  .timeline { padding: 0; }
  .timeline::before { left: 50%; transform: translateX(-50%); }
  .tl-item { width: 50%; grid-template-columns: 1fr; gap: 8px; padding: 0 44px 34px 0; text-align: right; justify-items: end; }
  .tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 34px 44px; text-align: left; justify-items: start; }
  .tl-item::before { left: auto; right: -12px; top: 4px; width: 24px; height: 24px; }
  .tl-item:nth-child(even)::before { left: -12px; right: auto; }
  .tl-item:not(:first-child) { margin-top: -56px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Welcome and done already show the tagline in the hero */
body[data-route="welcome"] .footer-tag, body[data-route="done"] .footer-tag { display: none; }
.hero .script, .screen-done .script { font-size: clamp(26px, 8vw, 36px); }
.btn[aria-disabled="true"] { opacity: .55; }
