/*
 * Prism Development LLC -- public landing page.
 *
 * No build step. Served as-is by Cloudflare Pages, and openable straight from disk
 * (every asset path is relative, so double-clicking index.html works).
 *
 * PALETTE
 * Seven finished palettes live below. Switch by changing ONE attribute in the HTML:
 *
 *     NON-BLUE                       BLUE
 *     data-palette="amber"   <- default   data-palette="direct"   (matches hellopad.com)
 *     data-palette="oxblood"             data-palette="navy"
 *     data-palette="ember"               data-palette="mono"
 *     data-palette="forest"
 *
 * Or append ?p=<name> to the URL to preview one without editing anything -- see the
 * switcher script at the bottom of index.html.
 *
 * Everything downstream reads the semantic tokens (--ink, --brand, --cta, ...), never a
 * raw hex, so a palette swap never requires touching a component rule.
 *
 * TYPE
 * Poppins     -- headings. Bold geometric sans, 700-800. Matches the reference page.
 * Inter       -- body, UI, buttons. Matches the reference page.
 * Space Mono  -- phone numbers, addresses, step numerals, micro-labels. Never sentences.
 *
 * NOTE ON THE LOGO: the Prism wordmark is a letterspaced serif, which is a different visual
 * language from Poppins. The wordmark therefore keeps its own serif face (--font-wordmark)
 * rather than being forced into the heading font -- see .logo-word.
 */

/* ============================================================ palettes == */

/* P1. Prism Navy & Champagne -- the brand palette (default). Matches the Prism brand
   stylesheet. Navy is the seller CTA on light grounds (white on #13213A is 15.9:1);
   champagne is the CTA on dark grounds, with navy text (#0D1626 on #CDB88C is 9.6:1).
   --accent-text is champagne darkened for small text on --paper (#7E6232 on #F7F6F2, 5.4:1). */
:root[data-palette="prism-navy"] {
  --paper:      #F7F6F2;
  --paper-2:    #F0EFEA;
  --surface:    #FFFFFD;
  --brand:      #13213A;
  --brand-soft: #1F3A5F;
  --brand-deep: #0D1626;
  --neutral:    #CAC8BF;
  --cta:        #13213A;
  --cta-hover:  #26395A;
  --cta-ink:    #FFFFFF;
  --accent:     #CDB88C;
  --accent-soft:#F2EBDD;
  --accent-text:#7E6232;
  --ink:        #171B22;
  --ink-2:      #4B5262;
  --ink-3:      #6B7180;
  --line:       #E3E2DC;
  --line-2:     #ECEBE6;
  --good:       #3F7A57;
  --bad:        #A64B3C;
  --on-brand:   #F6F5F1;
  --on-brand-2: #C3CEDD;
  --on-brand-3: rgba(246, 245, 241, 0.62);
  --brand-line: rgba(255, 255, 255, 0.16);
  --gradient-hero:  linear-gradient(150deg, #13213A 0%, #1F3A5F 60%, #2F5A82 100%);
  --gradient-deep:  radial-gradient(80% 120% at 100% 0%, #34507A 0%, rgba(52, 80, 122, 0) 60%), linear-gradient(160deg, #13213A, #0D1626);
  --gradient-sheen: linear-gradient(135deg, #E0CFA6 0%, #CDB88C 45%, #B8975E 100%);
  --tint:       #E9EEF5;
  --tint-line:  #DAE2EC;
  --gradient-warm: linear-gradient(180deg, #F7F6F2 0%, #F2EBDD 100%);
}

/* P2. Prism Teal & Sand -- alternate brand palette. Same roles as P1. */
:root[data-palette="prism-teal"] {
  --paper:      #F7F5F0;
  --paper-2:    #F0EDE6;
  --surface:    #FFFEFB;
  --brand:      #0C3338;
  --brand-soft: #145056;
  --brand-deep: #082528;
  --neutral:    #CFCBC0;
  --cta:        #0C3338;
  --cta-hover:  #145056;
  --cta-ink:    #FFFFFF;
  --accent:     #D8C29E;
  --accent-soft:#F5EEE2;
  --accent-text:#7A5E36;
  --ink:        #15201F;
  --ink-2:      #44504F;
  --ink-3:      #61706E;
  --line:       #E5E1D8;
  --line-2:     #EDEAE3;
  --good:       #3F7A57;
  --bad:        #A64B3C;
  --on-brand:   #F2F7F6;
  --on-brand-2: #B9D6D2;
  --on-brand-3: rgba(242, 247, 246, 0.62);
  --brand-line: rgba(255, 255, 255, 0.16);
  --gradient-hero:  linear-gradient(155deg, #0C3338 0%, #145056 55%, #1F6F69 100%);
  --gradient-deep:  radial-gradient(80% 120% at 100% 0%, #1F6F69 0%, rgba(31, 111, 105, 0) 60%), linear-gradient(160deg, #0C3338, #082528);
  --gradient-sheen: linear-gradient(135deg, #E6D6B8 0%, #D8C29E 45%, #C3A67B 100%);
  --tint:       #E4EFED;
  --tint-line:  #D2E3E0;
  --gradient-warm: linear-gradient(180deg, #F7F5F0 0%, #F5EEE2 100%);
}

/* 0. Direct Response -- matched to hellopad.com. Navy ground, bright sky-blue CTA,
   blue-tinted light neutrals. Default. */
:root,
:root[data-palette="direct"] {
  --paper:      #FFFFFF;
  --paper-2:    #F4F8FF;
  --surface:    #FFFFFF;
  --brand:      #0D2B52;
  --brand-soft: #1B4F8A;
  --neutral:    #E2ECF8;
  --cta:        #29ABE2;
  --cta-hover:  #1B8FC2;
  --cta-ink:    #FFFFFF;
  --ink:        #0A0F1E;
  --ink-2:      #64748B;
  --ink-3:      #8A97AB;
  --line:       #E2ECF8;
  --line-2:     #EDF3FB;
  --good:       #1F9D55;
  --bad:        #D8613C;
  --on-brand:   #FFFFFF;
  --on-brand-2: rgba(255, 255, 255, 0.80);
  --on-brand-3: rgba(255, 255, 255, 0.58);
  --brand-line: rgba(255, 255, 255, 0.16);
}

/* A. Navy & Stone -- established, trustworthy, warm neutrals. */
:root[data-palette="navy"] {
  --paper:      #FAFAF8;
  --paper-2:    #F2F0EB;
  --surface:    #FFFFFF;
  --brand:      #12243B;
  --brand-soft: #1B3355;
  --neutral:    #E8E4DD;
  --cta:        #B8813F;
  --cta-hover:  #A06F33;
  --cta-ink:    #FFFFFF;
  --ink:        #16181C;
  --ink-2:      #4A5160;
  --ink-3:      #6E7686;
  --line:       #DFDCD5;
  --line-2:     #EAE7E1;
  --good:       #2E7D53;
  --bad:        #B4504A;
  --on-brand:   #FFFFFF;
  --on-brand-2: rgba(255, 255, 255, 0.74);
  --on-brand-3: rgba(255, 255, 255, 0.52);
  --brand-line: rgba(255, 255, 255, 0.16);
}

/* B. Forest & Cream -- warmer, more residential. */
:root[data-palette="forest"] {
  --paper:      #F6F3EC;
  --paper-2:    #EDE8DC;
  --surface:    #FFFDF9;
  --brand:      #1E3A2F;
  --brand-soft: #2A5040;
  --neutral:    #DDD6C7;
  /* #C2703D is the terracotta this palette wants, but white on it is 3.7:1 -- under AA for
     normal text, and the button label is 16px. Darkened to 4.9:1. The bright tone is not
     kept as a token so it cannot be reached for by accident. */
  --cta:        #A85E30;
  --cta-hover:  #8C4C26;
  --cta-ink:    #FFFFFF;
  --ink:        #191B18;
  --ink-2:      #4C5248;
  --ink-3:      #71786C;
  --line:       #DAD3C4;
  --line-2:     #E6E0D3;
  --good:       #2E7D53;
  --bad:        #B4504A;
  --on-brand:   #FFFFFF;
  --on-brand-2: rgba(255, 255, 255, 0.76);
  --on-brand-3: rgba(255, 255, 255, 0.54);
  --brand-line: rgba(255, 255, 255, 0.16);
}

/* D. Charcoal & Amber -- near-black ground, warm amber CTA. The most broadly professional
   of the non-blue options: high contrast, premium, and the amber flatters the serif wordmark.
   Default. */
:root[data-palette="amber"] {
  --paper:      #FAF9F7;
  --paper-2:    #F1EFEA;
  --surface:    #FFFFFF;
  --brand:      #1C1C1A;
  --brand-soft: #33332F;
  --neutral:    #E3DFD7;
  --cta:        #C27A16;
  --cta-hover:  #A3610F;
  --cta-ink:    #FFFFFF;
  --ink:        #1A1A18;
  --ink-2:      #56544E;
  --ink-3:      #7D7A72;
  --line:       #E2DED6;
  --line-2:     #EFEDE7;
  --good:       #2E7D53;
  --bad:        #B4504A;
  --on-brand:   #FFFFFF;
  --on-brand-2: rgba(255, 255, 255, 0.78);
  --on-brand-3: rgba(255, 255, 255, 0.55);
  --brand-line: rgba(255, 255, 255, 0.15);
}

/* E. Oxblood & Sand -- deep wine ground, warm sand neutrals. The most DISTINCTIVE option:
   every other cash buyer in this market is blue, so this is the one that will not be
   mistaken for a competitor. Also the riskiest -- red carries urgency, which suits the
   funnel but can read as aggressive. */
:root[data-palette="oxblood"] {
  --paper:      #FBF8F5;
  --paper-2:    #F2ECE5;
  --surface:    #FFFFFF;
  --brand:      #4A1520;
  --brand-soft: #6B2130;
  --neutral:    #E6DACE;
  --cta:        #A32638;
  --cta-hover:  #851C2C;
  --cta-ink:    #FFFFFF;
  --ink:        #1F1A18;
  --ink-2:      #5A504B;
  --ink-3:      #837770;
  --line:       #E5DCD2;
  --line-2:     #F0E9E2;
  --good:       #2E7D53;
  --bad:        #B4504A;
  --on-brand:   #FFFFFF;
  --on-brand-2: rgba(255, 255, 255, 0.80);
  --on-brand-3: rgba(255, 255, 255, 0.56);
  --brand-line: rgba(255, 255, 255, 0.16);
}

/* F. Slate & Ember -- dark warm slate-green ground, orange CTA. Orange is the highest-
   converting CTA colour in a lot of direct-response testing, and the slate keeps it from
   looking like a discount banner. */
:root[data-palette="ember"] {
  --paper:      #FAFAF9;
  --paper-2:    #EFF1EE;
  --surface:    #FFFFFF;
  --brand:      #232B28;
  --brand-soft: #35403C;
  --neutral:    #DDE2DE;
  --cta:        #C2551A;
  --cta-hover:  #A3450F;
  --cta-ink:    #FFFFFF;
  --ink:        #1A1E1C;
  --ink-2:      #545B57;
  --ink-3:      #7B827E;
  --line:       #DFE3E0;
  --line-2:     #EDEFEC;
  --good:       #2E7D53;
  --bad:        #B4504A;
  --on-brand:   #FFFFFF;
  --on-brand-2: rgba(255, 255, 255, 0.78);
  --on-brand-3: rgba(255, 255, 255, 0.55);
  --brand-line: rgba(255, 255, 255, 0.15);
}

/* C. Monochrome + Signal -- closest to the logo as drawn; accent is the console blue. */
:root[data-palette="mono"] {
  --paper:      #FFFFFF;
  --paper-2:    #F4F4F2;
  --surface:    #FFFFFF;
  --brand:      #111111;
  --brand-soft: #262626;
  --neutral:    #E4E4E2;
  --cta:        #2F5FD8;
  --cta-hover:  #2449AC;
  --cta-ink:    #FFFFFF;
  --ink:        #111111;
  --ink-2:      #4A4A4A;
  --ink-3:      #6E6E6E;
  --line:       #DEDEDC;
  --line-2:     #ECECEA;
  --good:       #1F7A4C;
  --bad:        #B4504A;
  --on-brand:   #FFFFFF;
  --on-brand-2: rgba(255, 255, 255, 0.74);
  --on-brand-3: rgba(255, 255, 255, 0.52);
  --brand-line: rgba(255, 255, 255, 0.18);
}

:root {
  /* Prism brand type: Jost Regular headings, Manrope body. --font-mono keeps its token name
     so no component rule changes, but now points at Manrope with tabular figures -- the
     brand has no monospace face. */
  --font-head: Jost, Futura, "Helvetica Neue", Arial, sans-serif;
  --font-body: Manrope, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: Manrope, "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* The wordmark keeps a serif, independent of the heading font -- see the header note. */
  --font-wordmark: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-wordmark-sub: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --head-weight: 400;

  --maxw: 1060px;
  --gutter: 22px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-pill: 50px;
  --r-btn: 4px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px -12px rgba(16, 24, 40, 0.14);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.05), 0 28px 60px -20px rgba(16, 24, 40, 0.26);
}

/* ============================================================== base == */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

/* Headings are deliberately heavy. The reference page runs Poppins 700-900, and that weight
   is most of why it reads as direct-response rather than boutique. */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.45rem); }
h3 { font-size: 1.22rem; font-weight: 500; letter-spacing: -0.005em; }

p { margin: 0 0 1.1em; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-soft, var(--cta)); }

.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  /* 11px is small text, so it needs 4.5:1 against --paper. A CTA colour tuned for white
     text ON it is usually a shade too light to BE text on a near-white background, so it
     gets darkened here rather than per-palette. */
  color: var(--accent-text, color-mix(in srgb, var(--cta) 82%, #000));
  margin: 0 0 16px;
}
.on-dark .eyebrow { color: var(--accent, var(--on-brand-2)); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 7.5vw, 100px) 0; }
.lede { font-size: clamp(1.04rem, 1.7vw, 1.22rem); color: var(--ink-2); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .chips, .center .btn-row { justify-content: center; }

/* Sections painted in the brand colour. */
.on-dark { background: var(--brand); color: var(--on-brand); }
section.on-dark { background: var(--gradient-deep, var(--brand)); }
footer .on-dark { background: none; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--on-brand); }
.on-dark p, .on-dark li { color: var(--on-brand-2); }
.on-dark a { color: var(--on-brand); }

.band { background: var(--paper-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
/* Section rhythm: white, cool navy tint, warm paper, warm champagne fade, dark gradient. */
.band-white { background: var(--surface); }
.band-tint { background: var(--tint, var(--paper-2)); border-top: 1px solid var(--tint-line, var(--line-2)); border-bottom: 1px solid var(--tint-line, var(--line-2)); }
.band-tint .situation { border-color: var(--tint-line, var(--line)); }
.band-warm { background: var(--gradient-warm, var(--paper-2)); }

/* ============================================================ header == */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
  font-size: 0.83rem;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; justify-content: center; padding-top: 9px; padding-bottom: 9px; }
.topbar a, .topbar span { color: var(--ink-3); }
.topbar a { font-family: var(--font-mono); font-weight: 700; color: var(--ink); text-decoration: none; }
.topbar a:hover { color: var(--brand-soft, var(--cta)); }

header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 74px; }

/* --- logo ------------------------------------------------------------ */
/* Rebuilt as SVG + live text so it stays crisp and recolours with the palette.
   Replace with the original artwork when it is available -- see README. */
.logo { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.logo:hover { color: inherit; }
.logo svg { display: block; flex: none; color: var(--brand); }
.logo-word {
  font-family: var(--font-head); display: block;
  font-size: 1.22rem; font-weight: 400; line-height: 1;
  letter-spacing: 0.2em; margin-right: -0.2em; text-transform: uppercase; color: var(--brand);
}
.logo-sub {
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
  font-family: var(--font-head); font-size: 0.62rem; font-weight: 500; line-height: 1;
  letter-spacing: 0.4em; color: var(--accent-text, var(--ink-3));
}
.logo-sub i { flex: 1; height: 1px; background: currentColor; }
.logo-sub i:last-child { margin-left: -0.4em; }
.logo-door { fill: var(--surface); }
.on-dark .logo svg, .on-dark .logo-word { color: var(--on-brand); }
.on-dark .logo-sub { color: var(--accent, var(--on-brand-3)); }
footer .logo-door { fill: var(--brand-deep, var(--brand)); }

.nav-links { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: 0.83rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2); text-decoration: none;
}
.nav-links a { padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-links a:hover { color: var(--brand); }
.nav-links a.current { color: var(--brand); border-bottom-color: var(--accent, var(--cta)); }

/* =========================================================== buttons == */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: var(--r-btn, var(--r-pill));
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
  text-decoration: none; line-height: 1.25;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-cta { background: var(--cta); color: var(--cta-ink); }
.btn-cta:hover { background: var(--cta-hover); color: var(--cta-ink); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--paper-2); }
/* On dark grounds the CTA flips to the champagne sheen with deep-navy text. */
.on-dark .btn-cta { background: var(--gradient-sheen, var(--cta)); color: var(--brand-deep, var(--cta-ink)); }
.on-dark .btn-cta:hover { background: var(--accent, var(--cta-hover)); color: var(--brand-deep, var(--cta-ink)); }
.on-dark .btn-outline { color: var(--on-brand); border-color: rgba(255, 255, 255, 0.34); }
.on-dark .btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--on-brand-2); color: var(--on-brand); }
.btn-block { width: 100%; padding: 17px 24px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }

/* ============================================================== hero == */

/* Top padding is deliberately tighter than other sections: the offer form sits in the hero
   and the whole of it should be reachable without scrolling on a laptop viewport. */
.hero { padding: clamp(36px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.hero.on-dark { background: var(--gradient-hero, var(--brand)); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); line-height: 1.06; letter-spacing: -0.02em; }

/* The hero runs wider than --maxw so the form column can grow without squeezing the
   headline. Only the hero does this; every other section stays on the global measure. */
.hero > .wrap { max-width: 1200px; }
.hero-grid { display: grid; grid-template-columns: 0.94fr 1.06fr; gap: clamp(28px, 3.6vw, 52px); align-items: start; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 20px; }

.badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.89rem; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px;
}
.badge svg { flex: none; color: var(--good); }
.on-dark .badge { background: rgba(255, 255, 255, 0.08); border-color: var(--brand-line); color: var(--on-brand); }

/* =============================================================== form == */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.1vw, 26px);
  box-shadow: var(--shadow-lg);
}
/* The form is always a light card, even inside the dark hero. Reset the .on-dark text colours. */
.on-dark .form-card { border-color: transparent; box-shadow: 0 30px 60px -24px rgba(5, 10, 20, 0.6); color: var(--ink); }
.on-dark .form-card h2 { color: var(--ink); }
.on-dark .form-card p { color: var(--ink-3); }
.on-dark .form-card a { color: var(--ink-2); }
.on-dark .form-card .btn-cta { background: var(--cta); color: var(--cta-ink); }
.on-dark .form-card .btn-cta:hover { background: var(--cta-hover); }
/* The whole form is meant to be visible without scrolling on a laptop viewport, so the
   vertical rhythm here is tighter than the rest of the page. Widening the column alone does
   not achieve that -- the row count is unchanged by width -- so the saving is in spacing.
   The consent block is deliberately NOT compressed: see the README before touching it. */
.form-card h2 { font-size: 1.4rem; }
.form-card .sub { font-size: 0.9rem; color: var(--ink-3); margin: 7px 0 15px; }

.field { margin-bottom: 10px; }
.field label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 5px; }
.field .req { color: var(--accent-text, var(--cta)); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--neutral); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 54px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta) 16%, transparent);
  border-color: var(--cta); background: var(--surface);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 0.72; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* --- address autocomplete -------------------------------------------- */
/* Dropdown for the Places suggestions in app.js. The list is rendered by us rather than by
   Google's widget, so it inherits the palette instead of arriving with its own styling. */
.address-field { position: relative; }
.addr-list {
  position: absolute; z-index: 40; left: 0; right: 0; top: 100%;
  margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--neutral);
  border-radius: var(--r-sm); box-shadow: var(--shadow-lg);
  max-height: 240px; overflow-y: auto;
}
.addr-list[hidden] { display: none; }
.addr-list li {
  display: flex; flex-direction: column; gap: 1px;
  padding: 9px 11px; border-radius: var(--r-sm); cursor: pointer;
  /* 44px minimum touch target -- this list is used one-handed on phones. */
  min-height: 44px; justify-content: center;
}
.addr-list li:hover, .addr-list li.active { background: var(--paper); }
.addr-main { font-size: 0.94rem; color: var(--ink); line-height: 1.3; }
.addr-sub { font-size: 0.78rem; color: var(--ink-3); line-height: 1.3; }

/* Honeypot. Kept out of view without display:none -- some bots skip hidden inputs, and the
   point is that they fill it in. Also removed from the tab order and the a11y tree. */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* Consent. Required for lawful call/SMS follow-up -- see README before editing.
   The label font size and line height here are NOT part of the form's height budget. If the
   form does not fit, shorten something else -- consent text that is hard to read is the
   thing a TCPA claim is built on. */
.consent { margin: 13px 0 4px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 9px; }
.consent-row input[type="checkbox"] {
  flex: none; width: 17px; height: 17px; margin: 3px 0 0;
  accent-color: var(--cta); cursor: pointer;
}
.consent-row label { font-size: 0.755rem; line-height: 1.55; color: var(--ink-3); cursor: pointer; }
.consent-row label a { color: var(--ink-2); }
.form-foot { font-size: 0.73rem; color: var(--ink-3); margin: 9px 0 0; text-align: center; line-height: 1.45; }

/* Submit-state messaging, toggled by the inline script in index.html. */
.form-msg { display: none; margin-top: 14px; padding: 13px 15px; border-radius: var(--r-sm); font-size: 0.9rem; }
.form-msg.show { display: block; }
.form-msg.err { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); }

/* ============================================================== cards == */

.grid { display: grid; gap: 20px; margin-top: 44px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 27px 25px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: var(--neutral); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 9px; }
.card p { font-size: 0.95rem; }
.on-dark .card { background: rgba(255, 255, 255, 0.06); border-color: var(--brand-line); }
.on-dark .card:hover { background: rgba(255, 255, 255, 0.09); }

.step-n {
  font-family: var(--font-head);
  font-size: 2.2rem; font-weight: 400; line-height: 1;
  color: var(--accent-text, var(--cta)); display: block; margin-bottom: 16px;
}
.card-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--paper-2); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 15px;
}
.on-dark .card-icon { background: rgba(255, 255, 255, 0.1); color: var(--accent, var(--on-brand)); }

/* ============================================================== steps == */
/* "How it works". One panel with a gradient rule along the top, numbered medallions joined
   by a hairline on desktop, stacked and centred on mobile. */

.steps {
  position: relative; margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow); overflow: hidden;
}
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--gradient-hero, var(--brand));
}
.steps::after {
  content: ""; position: absolute; top: calc(52px + 34px); left: 16.66%; right: 16.66%;
  height: 1px; background: repeating-linear-gradient(90deg, var(--neutral) 0 6px, transparent 6px 12px);
}
.step {
  position: relative; z-index: 1; text-align: center;
  padding: 52px clamp(20px, 3vw, 36px) 44px;
  display: flex; flex-direction: column; align-items: center;
}
.step + .step { border-left: 1px solid var(--line-2); }
.steps .step-n {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 0 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-hero, var(--brand)); color: var(--on-brand);
  font-family: var(--font-head); font-size: 1.65rem; font-weight: 500; line-height: 1;
  box-shadow: 0 0 0 7px var(--surface), 0 12px 24px -10px color-mix(in srgb, var(--brand) 60%, transparent);
}
.step h3 { margin-bottom: 12px; font-size: 1.3rem; }
.step p { font-size: 0.97rem; max-width: 34ch; margin-inline: auto; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps::after { top: 86px; bottom: 86px; left: 50%; right: auto; width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, var(--neutral) 0 6px, transparent 6px 12px); opacity: 0; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line-2); }
  .step { padding: 40px 24px 36px; }
}

/* ========================================== situations ("We can help") == */
/* A scannable grid of the circumstances that bring someone to a cash buyer. The point is
   recognition, not information -- a seller should find their own situation in under two
   seconds, which is why these are tiles rather than prose. */

.situations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 12px;
  margin-top: 44px;
}
.situation {
  display: flex; align-items: center; gap: 11px;
  padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.situation:hover { border-color: var(--accent, var(--cta)); box-shadow: var(--shadow); transform: translateY(-2px); }
.situation .ico { font-size: 1.3rem; line-height: 1; flex: none; }
.on-dark .situation { background: rgba(255, 255, 255, 0.07); border-color: var(--brand-line); color: var(--on-brand); }
.on-dark .situation:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--on-brand-2); }

/* ================================================= comparison table == */
/* Three columns on the band ground: row labels, the Prism column as one raised white card
   with a navy header, and the listing column left flat and muted. Hairlines only, no grid. */

.cmp-scroll { margin-top: 44px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 2px 18px; }
table.cmp {
  width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px);
  overflow: hidden; box-shadow: 0 24px 50px -36px rgba(16, 24, 40, 0.45);
  font-family: var(--font-body); font-variant-numeric: tabular-nums;
}
table.cmp th, table.cmp td {
  padding: 22px 28px; vertical-align: middle; border-bottom: 1px solid var(--line);
  font-size: 1rem; line-height: 1.4; text-align: center;
}
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: none; }

table.cmp thead th {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); background: var(--paper-2); padding-top: 24px; padding-bottom: 24px;
}
table.cmp thead th.us { color: var(--on-brand); background: var(--gradient-hero, var(--brand)); border-bottom-color: transparent; }

table.cmp tbody th { width: 34%; text-align: left; font-weight: 500; color: var(--ink); }
table.cmp td { width: 33%; font-weight: 400; color: var(--ink-3); }
table.cmp td.us { font-weight: 700; color: var(--brand); background: color-mix(in oklab, var(--brand) 5%, var(--surface)); }

td.us .zero { color: var(--good); }
.cmp-mark { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: inherit; }
.cmp-mark svg { flex: none; }
.yes svg { color: var(--good); }
.no svg { color: var(--bad); }

/* ============================================================== ticks == */

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--ink-2); font-size: 0.97rem; }
ul.ticks li:last-child { margin-bottom: 0; }
ul.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.56em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent, var(--cta));
}
ul.ticks li strong { color: var(--ink); font-weight: 600; }
.on-dark ul.ticks li strong { color: var(--on-brand); }
.on-dark ul.ticks li::before { background: var(--on-brand-2); }

/* ================================================================ FAQ == */
/* Native details/summary: no JS, keyboard accessible, indexable by search engines. */

.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 20px 46px 20px 0;
  font-family: var(--font-body); font-size: 1.03rem; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 10px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--brand-soft, var(--cta)); }
.faq summary:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; border-radius: 2px; }
.faq .answer { padding: 0 40px 22px 0; }
.faq .answer p { font-size: 0.97rem; }

/* ============================================================== chips == */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  font-family: var(--font-mono); font-size: 12px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2); background: var(--surface);
}
.on-dark .chip { border-color: var(--brand-line); color: var(--on-brand-2); background: rgba(255, 255, 255, 0.05); }

/* ======================================================= sticky mobile == */

.sticky-cta { display: none; }

/* ============================================================= footer == */

footer { background: var(--brand-deep, var(--brand)); color: var(--on-brand-2); padding: 56px 0 36px; font-size: 0.9rem; }
footer h4 {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-brand-3);
  margin: 0 0 14px;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 34px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 9px; }
footer a { color: var(--on-brand-2); text-decoration: none; }
footer a:hover { color: var(--on-brand); text-decoration: underline; }
footer address { font-style: normal; color: var(--on-brand-2); line-height: 1.7; }
.foot-legal { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--brand-line); }
.foot-legal p { color: var(--on-brand-3); font-size: 0.78rem; line-height: 1.65; margin: 0 0 0.8em; max-width: 92ch; }

/* ========================================================= responsive == */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 20ch; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 74px; }
  .topbar { display: none; }
  .nav { min-height: 62px; gap: 12px; }
  .nav-links { gap: 15px; }
  .nav-links a { font-size: 0.72rem; letter-spacing: 0.06em; }
  .logo-word { font-size: 1.05rem; letter-spacing: 0.18em; }
  .logo-sub { font-size: 0.42rem; }
  .field-row { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .faq summary { font-size: 0.98rem; }

  /* Persistent call / offer bar. The single largest conversion lever on a page like this. */
  .sticky-cta {
    display: flex; gap: 9px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 9px 11px calc(9px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .sticky-cta .btn { flex: 1; width: auto; padding: 12px 8px; font-size: 0.92rem; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover { transform: none; }
}

@media print {
  header, .sticky-cta, .form-card { display: none; }
  body { background: #fff; color: #000; }
}
