/* ============================================================
   Mortgage Breaker — powered by Crown Money
   Brand: #250B40 (deep purple) · #E6DEEE (lavender) · #E9A13B (gold)
   ============================================================ */

:root {
  --purple: #250B40;
  --purple-deep: #1A0730;
  --purple-soft: #3A1D5E;
  --lavender: #E6DEEE;
  --lavender-soft: #F4F0F9;
  --gold: #E9A13B;
  --gold-deep: #D18C24;
  --ink: #241A31;
  --ink-soft: #5A4E68;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow-card: 0 1px 3px rgba(37, 11, 64, 0.06), 0 4px 16px rgba(37, 11, 64, 0.08);
  --shadow-btn: 0 4px 14px rgba(233, 161, 59, 0.35);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; }
.center { text-align: center; margin-top: 40px; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; color: var(--purple); }
h2 { font-size: clamp(30px, 4.2vw, 40px); }
h3 { font-size: 21px; }
section h2 { text-align: center; }
.section-sub {
  max-width: 760px;
  margin: 18px auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 18px;
}

section { padding: 96px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 999px;
  padding: 15px 32px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--purple-deep); box-shadow: var(--shadow-btn); }
.btn-gold:hover { background: var(--gold-deep); box-shadow: 0 6px 20px rgba(233, 161, 59, 0.45); }
.btn-purple { background: var(--purple); color: var(--white); box-shadow: 0 4px 14px rgba(37, 11, 64, 0.3); }
.btn-purple:hover { background: var(--purple-soft); }
.btn-lg { font-size: 18px; padding: 17px 38px; }
.btn-block { display: block; width: 100%; }
.btn-nav { font-size: 15px; padding: 11px 22px; box-shadow: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--purple-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-brand { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-logo .accent { color: var(--gold); }
.nav-powered {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.nav-powered img { height: 20px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(233, 161, 59, 0.14), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(230, 222, 238, 0.12), transparent 55%),
    linear-gradient(160deg, var(--purple-deep) 0%, var(--purple) 55%, var(--purple-soft) 100%);
  color: var(--white);
  padding: 88px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { animation: fadeUp 0.6s ease both; }
.hero-hook {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(233, 161, 59, 0.12);
  border: 1px solid rgba(233, 161, 59, 0.35);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 26px;
  line-height: 1.4;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 58px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; }
.hero h1 .accent { color: var(--gold); }
.hero-sub {
  margin-top: 22px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}
.hero-sub strong { color: var(--white); }
.hero-cta { margin-top: 34px; }
.risk-line { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.65); }
.hero-proof {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  flex-wrap: wrap;
}
.hero-proof strong { color: var(--gold); }
.proof-divider { width: 1px; height: 20px; background: rgba(255, 255, 255, 0.25); }

/* Hero visual */
.hero-visual { animation: fadeUp 0.6s ease 0.15s both; }
.visual-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 30px 28px;
  backdrop-filter: blur(6px);
}
.visual-title { font-weight: 600; font-size: 16px; margin-bottom: 22px; color: var(--white); }
.visual-row { margin-bottom: 18px; }
.visual-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 7px;
}
.bar-track {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  overflow: hidden;
}
.bar {
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.bar-bank { width: 100%; background: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.8); }
.bar-crown { width: 50%; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); color: var(--purple-deep); }
.visual-foot { font-size: 13px; color: rgba(255, 255, 255, 0.55); margin-top: 8px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Media strip ---------- */
.media-strip { padding: 44px 0; background: var(--white); border-bottom: 1px solid var(--lavender); }
.strip-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.media-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.media-logos img {
  height: 34px;
  width: auto;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.2s ease;
}
.media-logos img:hover { filter: grayscale(0) opacity(1); }

/* ---------- Stats ---------- */
.stats { background: var(--lavender-soft); }
.accent-gold { color: var(--gold-deep); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 34px 28px;
  text-align: center;
}
.stat-number { font-size: 40px; font-weight: 800; color: var(--purple); letter-spacing: -0.02em; }
.stat-label { margin-top: 6px; font-weight: 600; font-size: 15px; }
.stat-compare { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.stat-source {
  margin-top: 34px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-soft);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Versus ---------- */
.versus { background: var(--white); }
.versus h2 .accent { color: var(--gold-deep); }
.versus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.versus-card {
  border-radius: var(--radius);
  padding: 36px 32px;
}
.versus-them { background: var(--lavender-soft); border: 1px solid var(--lavender); }
.versus-us { background: var(--purple); color: var(--white); }
.versus-us h3 { color: var(--gold); }
.versus-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.versus-us .versus-tag { color: rgba(255, 255, 255, 0.6); }
.versus-card h3 { font-size: 26px; margin-bottom: 18px; }
.versus-card ul { list-style: none; }
.versus-card li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-size: 16px;
}
.versus-them li::before { content: '✕'; position: absolute; left: 0; color: #B0679A; font-weight: 700; }
.versus-us li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- Calculator ---------- */
.calculator { background: var(--purple); }
.calculator h2, .calculator .section-sub { color: var(--white); }
.calculator .section-sub { color: rgba(255, 255, 255, 0.75); }
.calc-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}
.calc-inputs { background: var(--white); padding: 40px 36px; }
.calc-field { margin-bottom: 30px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.calc-label-row label { font-weight: 600; font-size: 15px; color: var(--purple); }
.calc-label-row output { font-weight: 800; font-size: 19px; color: var(--purple); }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--lavender);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(37, 11, 64, 0.35);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(37, 11, 64, 0.35);
}
.calc-results {
  background: var(--lavender-soft);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calc-result { margin-bottom: 24px; }
.calc-result-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.calc-result-number {
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
#calc-savings { color: var(--gold-deep); }
.calc-note { margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- How it works ---------- */
.how { background: var(--lavender-soft); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 36px 30px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--gold);
  font-weight: 800;
  font-size: 19px;
  margin-bottom: 18px;
}
.step-card h3 { margin-bottom: 12px; }
.step-card p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- Why Crown Money ---------- */
.why { background: var(--white); }
.why-head .section-sub strong { color: var(--purple); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.pillar {
  border: 1px solid var(--lavender);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.pillar-icon { font-size: 30px; margin-bottom: 14px; }
.pillar h3 { margin-bottom: 10px; font-size: 19px; }
.pillar p { font-size: 15.5px; color: var(--ink-soft); }
.awards-block { margin-top: 64px; }
.awards-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.awards-row img { height: 92px; width: auto; }

/* ---------- Stories / testimonials ---------- */
.stories { background: var(--lavender-soft); }
.pull-quote {
  max-width: 760px;
  margin: 36px auto 0;
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--purple);
}
.pull-quote-name {
  display: block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.video-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--purple-deep); }
.video-card figcaption { padding: 14px 18px; font-weight: 600; font-size: 15px; }
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.quote-text { font-size: 15.5px; flex-grow: 1; }
.quote-name { margin-top: 16px; font-weight: 700; color: var(--purple); font-size: 15px; }
.quote-outcome {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
  background: rgba(233, 161, 59, 0.1);
  border-radius: 8px;
  padding: 7px 12px;
}
.google-reviews { margin-top: 56px; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq-list { margin-top: 44px; }
.faq-item {
  border: 1px solid var(--lavender);
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--white);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 52px 20px 24px;
  font-weight: 600;
  font-size: 17px;
  color: var(--purple);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--gold-deep);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] { background: var(--lavender-soft); }
.faq-item p { padding: 0 24px 22px; color: var(--ink-soft); font-size: 16px; }
.faq-item p strong, .faq-item p em { color: var(--ink); }

/* ---------- Closer / form ---------- */
.closer {
  background:
    radial-gradient(900px 500px at 110% 0%, rgba(233, 161, 59, 0.12), transparent 55%),
    linear-gradient(165deg, var(--purple-deep) 0%, var(--purple) 60%, var(--purple-soft) 100%);
  color: var(--white);
}
.closer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.closer h2 { color: var(--white); text-align: left; font-size: clamp(28px, 3.8vw, 38px); }
.closer h2 em { color: var(--gold); font-style: italic; }
.closer-copy > p { margin-top: 20px; color: rgba(255, 255, 255, 0.85); }
.closer-benefits { list-style: none; margin-top: 18px; }
.closer-benefits li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}
.closer-benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.closer-reassure { font-weight: 600; color: var(--gold) !important; }
.closer-contact { margin-top: 26px; font-size: 16px; }
.closer-contact a { color: var(--white); text-decoration: none; }
.closer-contact a:hover { color: var(--gold); }

.closer-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  padding: 36px 32px;
  color: var(--ink);
}
.lead-form h3, .booking-stage h3 { margin-bottom: 20px; font-size: 22px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--purple);
}
.field input {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  padding: 13px 16px;
  border: 1.5px solid var(--lavender);
  border-radius: 10px;
  background: var(--lavender-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--white);
}
.field input.invalid { border-color: #C0392B; }
.field-error {
  display: none;
  font-size: 13px;
  color: #C0392B;
  margin-top: 5px;
}
.field input.invalid ~ .field-error { display: block; }
.form-privacy {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
}
.booking-sub { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.booking-fallback { margin-top: 14px; font-size: 14px; text-align: center; color: var(--ink-soft); }
.booking-fallback a { color: var(--purple); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--purple-deep); color: rgba(255, 255, 255, 0.75); padding: 64px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand img { margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; max-width: 380px; }
.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer-contact p { margin-bottom: 8px; }
.social-links { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-legal {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.disclaimer { margin-bottom: 12px; max-width: 820px; }
.footer-links-row { margin-bottom: 12px; }
.footer-links-row a { color: rgba(255, 255, 255, 0.7); text-decoration: underline; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(26, 7, 48, 0.92);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease;
}
.sticky-cta.hidden { transform: translateY(110%); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .closer-grid, .calc-card { grid-template-columns: 1fr; gap: 44px; }
  .calc-card { gap: 0; }
  .stats-grid, .steps-grid, .pillars-grid, .videos-grid, .quotes-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: clamp(34px, 8.5vw, 40px); }
  .stats-grid, .steps-grid, .pillars-grid, .videos-grid, .quotes-grid, .versus-grid, .footer-grid { grid-template-columns: 1fr; }
  .btn-lg { display: block; width: 100%; }
  .hide-mobile { display: none; }
  /* Nav CTA is redundant on mobile (hero CTA above the fold + floating CTA)
     and crowds the Crown Money logo — hide it. */
  .btn-nav { display: none; }
  .nav-brand { flex-wrap: nowrap; align-items: center; justify-content: space-between; width: 100%; gap: 10px; }
  .nav-powered img { height: 18px; }
  .nav-logo { font-size: 19px; }
  .media-logos { gap: 26px; }
  .media-logos img { height: 26px; }
  .awards-row img { height: 72px; }
  .closer-form-wrap { padding: 28px 22px; }
  .sticky-cta { display: block; }
  body { padding-bottom: 76px; }
}
