@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --text: #1a2030;
  --text-body: #3d4555;
  --text-muted: #7b8294;
  --line: #ddd9d1;
  --line-light: #eae7e1;

  --navy: #1e3a5f;
  --navy-deep: #152c48;
  --navy-light: #eef3f9;

  --copper: #b87333;
  --copper-light: #faf3eb;

  --green: #1a7a4a;
  --green-light: #edf7f0;

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;

  --sidebar-w: 220px;
  --page-max: 1060px;
  --content-pad: clamp(24px, 4vw, 48px);
}

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

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */

.hero {
  background: var(--bg);
  color: var(--text);
  padding: clamp(48px, 6vw, 64px) 0 clamp(40px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: calc(var(--sidebar-w) + var(--content-pad));
  padding-right: var(--content-pad);
}


h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}

.subhead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 52ch;
}


/* ── Offer Stack ── */

.offer-stack {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 10px;
}

.offer-stack li {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-body);
}

.offer-stack li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--green);
  font-weight: 800;
  font-size: 0.95rem;
}

.offer-stack li strong {
  color: var(--text);
  font-weight: 700;
}



/* ── Hero Story ── */

.hero-story {
  border-top: 1px solid var(--line-light);
  padding-top: 32px;
  max-width: 54ch;
}

.hero-story p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.hero-story p:last-child {
  margin-bottom: 0;
}

.hero-story p strong {
  color: var(--text);
  font-weight: 700;
}


/* ═══════════════════════════════════════
   PAGE GRID — Two-column layout
   ═══════════════════════════════════════ */

.page-grid {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}


/* ═══════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════ */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 32px 0;
  border-right: 1px solid var(--line);
  background: var(--bg);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 20px;
}

.nav-group {
  margin-bottom: 20px;
}

.nav-group-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 12px;
}

.nav-link {
  display: block;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.nav-link:hover {
  background: var(--navy-light);
}

.nav-link.active {
  border-left-color: var(--navy);
  color: var(--navy-deep);
  background: var(--navy-light);
}

.sidebar-actions {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ── Share Button + Dropdown ── */

.share-wrapper {
  position: relative;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--text-body);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.share-btn:hover {
  background: var(--surface);
  border-color: var(--navy);
}

.share-btn svg {
  flex-shrink: 0;
}

.share-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  padding: 4px;
  z-index: 100;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--sans);
  color: var(--text-body);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s;
  text-align: left;
}

.share-option:hover {
  background: var(--navy-light);
}

.share-option svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.share-option .copied-feedback {
  color: var(--green);
  font-weight: 600;
}

.sidebar-cta {
  display: block;
  padding: 10px 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--sans);
  color: #fff;
  background: var(--navy);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}

.sidebar-cta:hover {
  background: var(--navy-deep);
}


/* ═══════════════════════════════════════
   CONTENT COLUMN
   ═══════════════════════════════════════ */

.content {
  padding: clamp(32px, 5vw, 48px) var(--content-pad) 64px;
  min-width: 0;
}


/* ── Sections (replaces .card) ── */

.section {
  margin-bottom: 0;
}

.section > p {
  margin-bottom: 12px;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.75;
}

.section > p strong {
  color: var(--text);
  font-weight: 600;
}

h2 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}


/* ── Section Dividers ── */

.section-divider {
  border: none;
  border-top: 1px solid var(--line-light);
  margin: clamp(32px, 5vw, 48px) 0;
}


/* ── Toolkit section — keeps tinted background ── */

.toolkit-section {
  background: var(--navy-light);
  border: 1px solid #c9d6e6;
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(32px, 5vw, 48px);
}

.toolkit-section h2 {
  color: var(--navy);
}


/* ── Proof section — keeps copper tint ── */

.proof-section {
  background: var(--copper-light);
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
}

.proof-section h2 { color: var(--text); }

.proof-section p {
  color: var(--text-body);
  line-height: 1.75;
}

.proof-section a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(30,58,95,0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.proof-section a:hover {
  text-decoration-color: var(--navy);
}

.proof-details {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.proof-details span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8b6e4a;
  padding: 4px 12px;
  background: rgba(184,115,51,0.08);
  border-radius: 4px;
  letter-spacing: 0.04em;
}


/* ── Form section — keeps blue tint ── */

.form-section {
  background: var(--navy-light);
  border: 1px solid #c9d6e6;
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
}

.form-section h2 {
  font-size: 1.35rem;
  color: var(--navy);
}

.form-section > p {
  color: var(--text-body);
}


/* ═══════════════════════════════════════
   NOTE
   ═══════════════════════════════════════ */

.note {
  color: var(--green) !important;
  font-weight: 600;
  margin-top: 16px;
  font-size: 0.93rem;
}


/* ═══════════════════════════════════════
   CHECKLIST
   ═══════════════════════════════════════ */

.checklist {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
}


/* ═══════════════════════════════════════
   FASCINATIONS
   ═══════════════════════════════════════ */

.fascinations {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.fascinations li {
  position: relative;
  padding: 16px 0 16px 24px;
}

.fascinations li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  top: 18px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
}

.fascinations li + li {
  border-top: 1px solid rgba(30,58,95,0.08);
}

.fascinations li p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-body);
}

.fascinations li p strong {
  color: var(--text);
  font-weight: 600;
}

.fas-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: opacity 0.15s;
}

.fas-link:hover {
  opacity: 0.6;
}


/* ═══════════════════════════════════════
   SCRIPT SECTIONS
   ═══════════════════════════════════════ */

.script-section {
  position: relative;
  padding-top: 8px;
}

.script-label {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 12px;
}

.script-label.buyer {
  background: var(--navy-light);
  color: var(--navy);
}

.script-label.seller {
  background: var(--copper-light);
  color: var(--copper);
}

.scene {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-light);
  line-height: 1.6;
}

.dialogue {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.line {
  display: flex;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 8px;
}

.line.you { background: var(--navy-light); }
.line.them { background: #f7f6f3; }

.speaker {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 4px;
  min-width: 80px;
}

.line.you .speaker { color: var(--navy); }
.line.them .speaker { color: #aaa; }

.line p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-body);
}

.script-expand {
  margin-top: 6px;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.script-expand[open] { background: transparent !important; }

.script-expand summary {
  display: inline-block;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 0 4px;
  border: none;
}

.script-expand summary::before { display: none; }
.script-expand summary::after { display: none; }

.script-expand summary:hover {
  opacity: 0.6;
  background: transparent;
}

.instruction {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--green-light);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #15603a;
}

.instruction a {
  color: #15603a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ═══════════════════════════════════════
   OBJECTIONS
   ═══════════════════════════════════════ */

#objections h2 { margin-bottom: 16px; }

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--surface);
  overflow: hidden;
}

details[open] { background: #faf9f6; }

details + details { margin-top: 10px; }

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  padding: 16px 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s;
}

summary:hover { background: #faf9f6; }
summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  flex-shrink: 0;
  line-height: 1;
}

details[open] > summary::after { content: "\2212"; }
summary::before { display: none; }

details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-body);
  font-size: 0.93rem;
  line-height: 1.75;
}


/* ═══════════════════════════════════════
   EXAMPLE NUMBERS
   ═══════════════════════════════════════ */

.math-toggle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.math-toggle[open] { background: var(--surface); }

.math-toggle > summary {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 20px;
}

.math-toggle > summary::after { display: none; }
.math-toggle > summary:hover { background: transparent; }

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 20px;
}

.ex-col {
  text-align: center;
  padding: clamp(16px, 2.5vw, 24px) clamp(8px, 1.5vw, 14px);
  background: #f7f6f3;
  border-radius: 8px;
  border: 1px solid var(--line-light);
}

.highlight-col {
  background: var(--green-light);
  border-color: #c4e0cc;
}

.highlight-col .ex-big { color: var(--green); }

.ex-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ex-big {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.ex-big span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.ex-sub {
  font-size: clamp(0.68rem, 1.2vw, 0.78rem);
  color: var(--text-muted);
  line-height: 1.4;
}

.ex-bottom {
  margin: 18px 20px 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.ex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: clamp(0.8rem, 1.4vw, 0.9rem);
  color: var(--text-body);
}

.ex-row strong {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ex-row.compare { opacity: 0.5; }

.ex-row.compare strong {
  text-decoration: line-through;
  font-weight: 500;
}


/* ═══════════════════════════════════════
   MLS LANGUAGE
   ═══════════════════════════════════════ */

.mls-block {
  margin: 14px 0;
  padding: 20px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 0.94rem;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.75;
  user-select: all;
  cursor: text;
}

.mls-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}


/* ═══════════════════════════════════════
   FORM
   ═══════════════════════════════════════ */

.deal-form { margin-top: 24px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9d6e6;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--sans);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}

.field input::placeholder { color: #b0b6c0; }

.submit-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.submit-btn:hover { background: var(--navy-deep); }


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 36px 0 48px;
  text-align: center;
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: calc(var(--sidebar-w) + var(--content-pad));
  padding-right: var(--content-pad);
}

.back-line {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.sig {
  font-weight: 700;
  color: var(--navy);
  margin-top: 4px;
  font-size: 0.9rem;
}

.contact-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.contact-line a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.contact-line a:hover { color: var(--navy); }


/* ═══════════════════════════════════════
   BLOCKQUOTE
   ═══════════════════════════════════════ */

blockquote {
  margin: 0;
  padding: 16px 20px;
  background: #f7f6f3;
  border-left: 3px solid var(--line);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
}


/* ═══════════════════════════════════════
   MOBILE NAV (hidden on desktop)
   ═══════════════════════════════════════ */

.mobile-nav {
  display: none;
}


/* ═══════════════════════════════════════
   RESPONSIVE — Tablet (769–900px)
   ═══════════════════════════════════════ */

@media (max-width: 900px) {
  :root {
    --sidebar-w: 190px;
  }

  .sidebar-nav { padding: 0 14px; }
  .nav-link { font-size: 0.78rem; padding: 4px 10px; }
  .nav-group-label { font-size: 0.62rem; padding-left: 10px; }

  .share-btn { font-size: 0.78rem; padding: 7px 10px; }
  .sidebar-cta { font-size: 0.82rem; padding: 9px 10px; }

  .example-grid { margin: 0 12px; gap: 8px; }
  .ex-bottom { margin: 14px 12px 14px; }
}


/* ═══════════════════════════════════════
   RESPONSIVE — Below 768px (mobile)
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
  }

  .sidebar { display: none; }

  .page-grid {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    display: block;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav ul {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0 12px;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-nav ul::-webkit-scrollbar { display: none; }

  .mobile-nav a {
    display: block;
    padding: 10px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
  }

  .mobile-nav a.active {
    color: var(--navy);
    border-bottom-color: var(--navy);
  }

  .mobile-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
  }

  .mobile-share-btn:hover { color: var(--navy); }

  .hero-inner,
  .footer-inner {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .content {
    padding: 32px 5vw 48px;
  }

  .hero { padding: 40px 0 36px; }
  h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 18px; }

  .offer-stack li { font-size: 0.85rem; }

  .hero-story { padding-top: 24px; }

  .section-divider { margin: 32px 0; }

  .example-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
  }

  .ex-bottom { margin: 16px 0; }

  .form-row { grid-template-columns: 1fr; }

  .line {
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
  }

  .speaker { min-width: unset; }
  .script-label { padding: 5px 12px; }
  .form-section h2 { font-size: 1.2rem; }
}

@media (max-width: 380px) {
  h1 { font-size: 1.8rem; }
  .ex-big { font-size: 1.3rem; }
}
