/* RealAssure Insurance — landlord quote-request landing page
   Static, no build. Tokens first, then layout top-to-bottom in page order. */

:root {
  --navy: #0b1a33;          /* ink + dark grounds */
  --navy-2: #16243d;        /* headline ink (matches ad art) */
  --blue: #014cb2;          /* logo blue — primary action */
  --blue-hover: #003e94;
  --blue-bright: #1863dc;   /* accent, highlights */
  --blue-tint: #e8f0fc;
  --blue-line: #c9d8f2;
  --ink: #16243d;
  --ink-2: #44506a;
  --ink-3: #6b7690;
  --line: #dde3ee;
  --ground: #f5f7fb;
  --paper: #ffffff;
  --error: #b42318;
  --error-bg: #fef3f2;
  --success: #1b7a4b;

  --font-display: "Manrope", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(11, 26, 51, .05), 0 12px 32px -12px rgba(11, 26, 51, .18);
  --shadow-doc: 0 2px 4px rgba(11, 26, 51, .06), 0 30px 60px -20px rgba(11, 26, 51, .35);
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy-2); margin: 0; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; font-weight: 700; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 700; }
p { margin: 0; }
a { color: var(--blue); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; }

.microcopy { font-size: .86rem; color: var(--ink-3); }
.small-print { font-size: .86rem; color: var(--ink-3); }
.optional { font-weight: 500; color: var(--ink-3); }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ─── Buttons: one action, one style. Solid, rounded, no decorative glyphs. ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 12px; line-height: 1;
  transition: background-color .18s ease, transform .18s var(--ease), box-shadow .18s ease;
}
.btn-primary {
  background: var(--blue); color: #fff;
  padding: 16px 26px; font-size: 1.02rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 20px -10px rgba(1, 76, 178, .7);
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible, .btn-link:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }
.btn-lg { padding: 18px 32px; font-size: 1.08rem; }
.btn-sm { padding: 11px 18px; font-size: .92rem; border-radius: 10px; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.btn-link { background: none; border: 0; padding: 8px 4px; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--navy); }

/* ─── Header ─── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid rgba(221,227,238,.8); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { width: 118px; height: auto; }
@media (max-width: 640px) { .site-header { position: static; } .logo { width: 104px; } .header-cta { display: none; } .header-row { height: 64px; } }

/* ─── Hero ─── */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); background: linear-gradient(180deg, #fbfcfe 0%, var(--ground) 100%); }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(1, 76, 178, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(1, 76, 178, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 60% 40%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; max-width: 580px; }
.hero-copy h1 { animation: rise .7s var(--ease) both; }
.hero-copy .eyebrow { animation: rise .7s var(--ease) both; }
.hero-copy .lede { animation: rise .7s .08s var(--ease) both; }
.hero-actions { animation: rise .7s .16s var(--ease) both; }
.hero-markets { animation: rise .7s .24s var(--ease) both; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 52ch; }
.hero-actions { display: grid; gap: 12px; justify-items: start; }
.hero-markets { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-markets li { font-size: .8rem; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

/* The property-list document over a photo: the campaign motif. */
.hero-visual { position: relative; min-height: 460px; }
.hero-photo { position: absolute; inset: 0; width: 100%; margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); animation: fade .9s .1s var(--ease) both; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transform-origin: center; will-change: transform; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(11,26,51,0) 30%, rgba(11,26,51,.45) 100%); }

.doc-float { position: absolute; left: 28px; bottom: 28px; width: min(450px, 86%); will-change: transform; }
.doc {
  background: rgba(255,255,255,.62); border-radius: 16px; box-shadow: var(--shadow-doc), inset 0 1px 0 rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  animation: rise .8s .25s var(--ease) both;
}
.doc-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid rgba(22,36,61,.1); }
.doc-title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--navy-2); }
.doc-title .ico { color: var(--blue); }
.doc-tag { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--blue); border-radius: 999px; padding: 5px 10px; }
.doc-rows { list-style: none; margin: 0; padding: 6px 0; counter-reset: row; }
.doc-row {
  display: grid; grid-template-columns: 22px 1fr auto; grid-template-areas: "ico bar1 type" "ico bar2 type"; column-gap: 14px; row-gap: 7px; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid rgba(22,36,61,.08);
  opacity: 0; transform: translateX(-10px);
  animation: row-in .6s var(--ease) forwards; animation-delay: calc(.7s + var(--i) * .14s);
}
.doc-row:last-child { border-bottom: 0; }
.doc-row .ico { grid-area: ico; color: var(--blue); }
.bar { height: 8px; border-radius: 4px; background: rgba(22,36,61,.16); }
.bar:nth-of-type(1) { grid-area: bar1; }
.bar:nth-of-type(2) { grid-area: bar2; background: rgba(22,36,61,.09); }
.w-62 { width: 62%; } .w-54 { width: 54%; } .w-70 { width: 70%; } .w-48 { width: 48%; }
.w-28 { width: 28%; } .w-34 { width: 34%; } .w-22 { width: 22%; } .w-38 { width: 38%; }
.doc-type { grid-area: type; font-size: .76rem; font-weight: 600; color: var(--navy-2); background: rgba(255,255,255,.7); border: 1px solid rgba(22,36,61,.12); border-radius: 6px; padding: 4px 8px; }
.doc-foot { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(255,255,255,.45); border-top: 1px solid rgba(22,36,61,.1); border-radius: 0 0 16px 16px; }
.doc-foot-label { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.doc-flow { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--navy-2); }
.doc-flow .ico { color: var(--blue); animation: nudge 1.8s 1.6s ease-in-out infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes row-in { to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { max-width: none; }
  .hero-actions .btn-lg { width: 100%; }
  /* Mobile composition: shallower photo band, document card tucks over its lower edge. */
  .hero-visual { min-height: 0; padding: 150px 12px 12px; }
  .hero-photo { position: absolute; top: 0; left: 0; right: 0; width: auto; height: 100%; border-radius: 16px; }
  .doc-float { position: relative; left: auto; bottom: auto; width: min(440px, 100%); margin-inline: auto; }
}
@media (max-width: 480px) { .hero-markets { display: none; } }

/* ─── Credibility strip (factual, non-comparative) ─── */
.cred { background: var(--paper); border-bottom: 1px solid var(--line); }
.cred-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.cred-list li { display: flex; gap: 16px; align-items: flex-start; padding: 30px 28px 30px 0; margin-right: 28px; border-right: 1px solid var(--line); }
.cred-list li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.cred-list h3 { font-size: 1.02rem; margin-bottom: 4px; }
.cred-list p { font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.cred-ico { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
@media (max-width: 900px) {
  .cred-list { grid-template-columns: 1fr; }
  .cred-list li { padding: 20px 0; margin-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .cred-list li:last-child { border-bottom: 0; }
}

/* ─── Form directly under the hero; mobile moves the hero visual below it ─── */
.form-trust { display: none; margin: -4px 0 18px; font-size: .8rem; line-height: 1.5; color: var(--ink-3); }
.visual-slot:empty { display: none; }
.hero { padding-bottom: clamp(32px, 5vw, 64px); }
.quote { padding-top: clamp(40px, 6vw, 72px); }
@media (max-width: 900px) {
  .form-trust { display: block; }
  .hero { padding-top: 24px; padding-bottom: 28px; }
  .hero-grid { gap: 0; }
  .hero-copy { gap: 16px; }
  .lede { font-size: 1.02rem; }
  .hero-markets { display: none; }
  .quote { padding-top: 32px; padding-bottom: 40px; }
  .quote-side { display: none; }        /* headline lives in the card's step legend on phones */
  /* The relocated hero visual, shown after the form on phones. */
  .visual-slot { padding: 32px var(--gutter) 12px; }
  .visual-slot .hero-visual { max-width: 560px; margin-inline: auto; }
}

/* ─── Process ─── */
.process { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { font-size: 1.08rem; color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; display: grid; gap: 12px; padding: 28px 26px 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.step-num { position: absolute; top: 22px; right: 22px; font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--blue); background: var(--blue-tint); width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; }
.step-ico { width: 40px; height: 40px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.step p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ─── Pilot markets ─── */
.markets { padding: clamp(48px, 7vw, 88px) 0; background: var(--ground); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.markets-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.markets-copy { display: grid; gap: 14px; }
.markets-copy p { font-size: 1.08rem; color: var(--ink-2); }
.market-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.market-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.market-list li:last-child { border-bottom: 0; }
.market-state { font-family: var(--font-display); font-weight: 700; color: var(--navy-2); }
.market-metros { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--blue); font-size: .98rem; }
.market-metros i { width: 4px; height: 4px; border-radius: 50%; background: var(--blue-line); }
@media (max-width: 820px) { .markets-grid { grid-template-columns: 1fr; } }

/* ─── Quote form ─── */
.quote { position: relative; padding: clamp(56px, 8vw, 104px) 0; background: var(--navy); color: #fff; overflow: hidden; }
.quote::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 10% 10%, rgba(24, 99, 220, .35), transparent 60%), radial-gradient(40% 60% at 95% 90%, rgba(1, 76, 178, .3), transparent 60%); pointer-events: none; }
.quote-grid { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.quote-side { display: grid; gap: 18px; position: sticky; top: 96px; }
.quote-side .eyebrow { color: #9dbcf2; }
.quote-side .eyebrow::before { background: #9dbcf2; }
.quote-side h2 { color: #fff; }
.quote-side > p { color: rgba(255,255,255,.78); font-size: 1.08rem; }
.quote-points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.quote-points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.88); font-size: .98rem; }
.quote-points .ico { color: #9dbcf2; margin-top: 2px; }

.form-card { background: #fff; color: var(--ink); border-radius: 20px; padding: clamp(22px, 3.5vw, 40px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }

.context-fields { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.form-progress { margin-bottom: 26px; }
.progress-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.progress-steps li { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-3); }
.progress-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; border: 1.5px solid var(--line); color: var(--ink-3); background: #fff; transition: all .25s ease; }
.progress-steps li.is-current { color: var(--navy-2); }
.progress-steps li.is-current span { background: var(--blue); border-color: var(--blue); color: #fff; }
.progress-steps li.is-done span { background: var(--blue-tint); border-color: var(--blue-line); color: var(--blue); }
.progress-bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 50%; background: var(--blue); border-radius: 4px; transition: width .4s var(--ease); }
.form-card.step-2 .progress-bar i { width: 100%; }
.form-card.is-complete .form-progress { display: none; }

.form-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 22px; }
.form-step[hidden] { display: none; }
.step-legend { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy-2); padding: 0; margin-bottom: 2px; display: flex; align-items: baseline; gap: 10px; }
.step-legend span { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: .92rem; font-weight: 600; color: var(--navy-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344506a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field select:disabled { color: var(--ink-3); background-color: var(--ground); }
.field textarea { resize: vertical; min-height: 88px; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(1, 76, 178, .14); }
.field.has-error :is(input, select, textarea) { border-color: var(--error); box-shadow: 0 0 0 4px rgba(180, 35, 24, .1); }
.field-hint { font-size: .84rem; line-height: 1.5; color: var(--ink-3); }
.field-error { display: none; font-size: .86rem; font-weight: 600; color: var(--error); }
.field.has-error .field-error { display: flex; align-items: center; gap: 6px; }
.field.has-error .field-error::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--error); }
.field.has-error .chip > span, .field.has-error .choice { border-color: var(--error); }

.form-error-summary { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--error-bg); color: var(--error); font-weight: 600; font-size: .92rem; border: 1px solid rgba(180,35,24,.2); }

/* Segmented chips for short radio sets (count, contact method). */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip > span { display: inline-flex; align-items: center; justify-content: center; min-width: 62px; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink-2); background: #fff; transition: all .15s ease; }
.chip:hover > span { border-color: var(--blue-line); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(1, 76, 178, .2); }

/* Two-up descriptive choices (property list available?). */
.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .choice-group { grid-template-columns: 1fr; } }
.choice { position: relative; display: flex; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: #fff; transition: all .15s ease; }
.choice:hover { border-color: var(--blue-line); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-body { display: grid; gap: 2px; padding-left: 26px; position: relative; }
.choice-body::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; transition: all .15s ease; }
.choice-body strong { font-size: .95rem; color: var(--navy-2); }
.choice-body small { font-size: .84rem; color: var(--ink-3); }
.choice input:checked ~ .choice-body::before { border-color: var(--blue); border-width: 6px; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(1, 76, 178, .2); }

.step-actions { display: grid; gap: 12px; justify-items: start; margin-top: 6px; }
.step-actions .btn-lg { width: 100%; }
.btn-submit .btn-busy { display: none; }
.btn-submit[aria-busy="true"] .btn-label { display: none; }
.btn-submit[aria-busy="true"] .btn-busy { display: inline; }

/* Mandatory consent block: readable, never collapsed. */
.consent { padding: 16px 18px; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.consent p { font-size: .84rem; line-height: 1.55; color: var(--ink-2); }
.consent a { color: var(--blue); font-weight: 600; }

.form-status { font-size: .92rem; font-weight: 600; color: var(--ink-2); min-height: 1.4em; }
.form-status.is-error { color: var(--error); }
.form-status:focus { outline: none; }

/* Success state replaces the steps inside the same card. */
.form-success { display: grid; gap: 16px; text-align: left; }
.form-success[hidden] { display: none; }
.form-success h3 { font-size: 1.6rem; }
.form-success > p { color: var(--ink-2); font-size: 1.04rem; }
.success-mark { width: 56px; height: 56px; border-radius: 16px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.success-mark .ico { width: 28px; height: 28px; }
.success-recap { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.success-recap li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; font-size: .92rem; border-bottom: 1px solid var(--line); }
.success-recap li:last-child { border-bottom: 0; }
.success-recap li span:first-child { color: var(--ink-3); }
.success-recap li span:last-child { font-weight: 600; color: var(--navy-2); text-align: right; }

@media (max-width: 900px) {
  .quote-grid { grid-template-columns: 1fr; }
  .quote-side { position: static; }
  .quote-side > p:not(.eyebrow), .quote-points { display: none; }
}

/* ─── Closing ─── */
.closing { padding: clamp(56px, 8vw, 104px) 0; background: var(--paper); }
.closing-inner { display: grid; gap: 18px; justify-items: center; text-align: center; max-width: 680px; margin-inline: auto; }
.closing-inner p { font-size: 1.08rem; color: var(--ink-2); }
.closing-inner .btn { margin-top: 8px; }

/* ─── Footer (mandatory text) ─── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.logo-footer { width: 130px; margin-bottom: 20px; }
.legal { font-size: .84rem; line-height: 1.65; max-width: 90ch; }
@media (max-width: 900px) { .site-footer { padding-bottom: 110px; } } /* room for the sticky CTA */

/* ─── Mobile sticky CTA ─── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -16px rgba(11,26,51,.3);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.sticky-cta span { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.sticky-cta .btn { padding: 13px 20px; font-size: .95rem; white-space: nowrap; }
.sticky-cta.is-visible { transform: none; }
@media (max-width: 900px) { .sticky-cta { display: flex; } }

/* ─── Demo mode (shown only while config.js ENDPOINT is empty) ─── */
.demo-banner { position: sticky; top: 0; z-index: 60; padding: 10px var(--gutter); text-align: center; font-size: .9rem; line-height: 1.45; color: #4a2b00; background: #ffd666; border-bottom: 2px solid #e6a800; }
.demo-banner strong { font-weight: 800; }
.demo-note { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; color: #4a2b00; background: #fff3c4; border: 1px solid #e6a800; }
.form-success.is-demo .success-mark { background: #fff3c4; color: #a36b00; }
.form-success.is-demo h3 { color: #4a2b00; }

/* ─── Scroll reveal (content is visible by default; JS only adds motion) ─── */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy *, .hero-photo, .doc, .doc-row, .doc-flow .ico { animation: none !important; opacity: 1 !important; transform: none !important; }
  .doc-float, .hero-photo img { transform: none !important; }
}
