:root {
  --navy-950: #061521;
  --navy-900: #0a1e2e;
  --navy-800: #102d44;
  --blue-600: #087fc3;
  --blue-500: #17a6e2;
  --blue-100: #dff4ff;
  --gold: #d7aa4c;
  --cream: #f5f2eb;
  --paper: #ffffff;
  --ink: #13212c;
  --muted: #60717e;
  --line: #d9e1e7;
  --shadow: 0 24px 70px rgba(5, 22, 34, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-600);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px clamp(20px, 5vw, 72px);
  color: #fff;
  background: rgba(6, 21, 33, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .16em;
}
.brand-logo {
  width: 46px;
  height: 44px;
  display: block;
  object-fit: contain;
  padding: 3px;
  border-radius: 8px;
  background: #fff;
}
.brand-name { font-size: 15px; }

#site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
#site-nav a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: color .2s ease;
}
#site-nav a:hover, #site-nav a:focus-visible { color: #fff; }
#site-nav .nav-cta {
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: #fff;
}
.menu-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.hero {
  min-height: 730px;
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--navy-950);
}
.hero-image,
.hero-shade { position: absolute; inset: 0; z-index: -2; }
.hero-image {
  background: url("assets/y-rent-partnership.jpg") center / cover no-repeat;
  transform: scale(1.01);
}
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4,17,27,.97) 0%, rgba(5,22,35,.92) 40%, rgba(5,22,35,.5) 72%, rgba(5,22,35,.18) 100%),
    linear-gradient(0deg, rgba(5,22,35,.5), transparent 45%);
}
.hero-copy {
  width: min(780px, 90vw);
  margin-left: clamp(24px, 8vw, 122px);
  padding: 86px 0 76px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-100);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--blue-600); }
.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7.4vw, 102px);
  line-height: .91;
  letter-spacing: -.045em;
  font-weight: 500;
}
.hero h1 span { color: var(--blue-500); }
.hero-lede {
  max-width: 670px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue-600); }
.button-primary:hover { background: #066ca8; }
.button-ghost { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.05); }
.button-ghost:hover { background: rgba(255,255,255,.12); }
.term-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 54px 0 0;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.22);
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.term-strip div { padding: 0 18px; border-left: 1px solid rgba(255,255,255,.18); }
.term-strip div:first-child { padding-left: 0; border-left: 0; }
.term-strip dt { color: rgba(255,255,255,.58); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.term-strip dd { margin: 3px 0 0; color: #fff; font-size: 20px; font-weight: 800; }

.proof-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  color: #fff;
  background: #244257;
}
.proof-bar div { min-height: 150px; padding: 34px clamp(22px, 3vw, 46px); background: var(--navy-800); }
.proof-bar strong { display: block; color: #fff; font-family: Georgia, serif; font-size: 32px; font-weight: 500; }
.proof-bar span { color: rgba(255,255,255,.62); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }

.section { padding: clamp(78px, 9vw, 132px) clamp(22px, 7vw, 110px); }
.section-intro { max-width: 780px; }
.section-intro h2,
.security-panel h2,
.calculator-heading h2,
.contact-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 500;
}
.section-intro > p:last-child,
.calculator-heading > p:last-child,
.contact-section > div > p:last-child {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 68px;
}
.process-grid article { padding-top: 24px; border-top: 2px solid var(--line); }
.process-grid article > span { color: var(--blue-600); font-size: 13px; font-weight: 850; letter-spacing: .12em; }
.process-grid h3 { margin: 20px 0 8px; font-size: 19px; }
.process-grid p { margin: 0; color: var(--muted); }
.security-panel {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  margin-top: 100px;
  padding: clamp(38px, 6vw, 82px);
  color: #fff;
  background: var(--navy-900);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.security-panel > div > p:last-child { color: rgba(255,255,255,.68); font-size: 18px; }
.security-panel ul { margin: 0; padding: 0; list-style: none; }
.security-panel li { display: flex; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.security-panel li span { color: var(--blue-500); font-size: 12px; font-weight: 850; }

.calculator-section {
  padding: clamp(78px, 9vw, 128px) clamp(18px, 5vw, 76px);
  color: #fff;
  background: var(--navy-950);
}
.calculator-heading { max-width: 920px; margin-bottom: 52px; }
.calculator-heading > p:last-child { color: rgba(255,255,255,.62); }
.calculator-shell {
  display: grid;
  grid-template-columns: minmax(260px, 330px) 1fr;
  max-width: 1420px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.26);
}
.calculator-controls { padding: 30px; color: #fff; background: var(--navy-800); }
.control-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; font-size: 18px; font-weight: 800; }
.reset-button { border: 0; padding: 0; color: var(--blue-100); background: transparent; font-size: 13px; cursor: pointer; }
.calculator-controls > label,
.calculator-controls legend { display: block; margin: 24px 0 9px; color: rgba(255,255,255,.67); font-size: 13px; font-weight: 750; }
.calculator-controls fieldset { margin: 0; padding: 0; border: 0; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; min-height: 50px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; overflow: hidden; }
.stepper button { border: 0; color: #fff; background: rgba(255,255,255,.08); font-size: 22px; cursor: pointer; }
.stepper input { width: 100%; border: 0; border-inline: 1px solid rgba(255,255,255,.15); color: #fff; background: transparent; text-align: center; font-size: 18px; font-weight: 800; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.calculator-controls select { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: #fff; background: #173b56; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { padding: 9px 8px; border-radius: 6px; color: rgba(255,255,255,.66); text-align: center; cursor: pointer; }
.segmented input:checked + label { color: #fff; background: var(--blue-600); font-weight: 750; }
.segmented input:focus-visible + label { outline: 2px solid #fff; outline-offset: 2px; }
.calculator-controls details { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); }
.calculator-controls summary { color: rgba(255,255,255,.76); font-size: 13px; cursor: pointer; }
.assumption-list { margin: 16px 0 0; }
.assumption-list div { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; }
.assumption-list dt { color: rgba(255,255,255,.55); }
.assumption-list dd { margin: 0; font-weight: 700; }

.calculator-results { min-width: 0; padding: clamp(24px, 4vw, 52px); color: var(--ink); background: #f7f9fa; }
.result-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.result-topline span { display: block; color: var(--muted); font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.result-topline strong { display: block; margin-top: 5px; font-family: Georgia, serif; font-size: clamp(44px, 5vw, 68px); line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.result-topline small { color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.icon-button { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 34px; }
.metric-grid article { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.metric-grid span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.metric-grid strong { display: block; margin-top: 6px; font-size: 22px; }
.chart-card { margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.chart-header { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.chart-header h3 { margin: 0; font-size: 16px; }
.chart-header span { color: var(--muted); font-size: 13px; }
#projection-chart { width: 100%; height: auto; margin-top: 12px; overflow: visible; }
.chart-grid-line { stroke: #e8edf0; stroke-width: 1; }
.chart-grid-label { fill: #778793; font-size: 11px; }
.chart-line { fill: none; stroke: var(--blue-600); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: url(#chartGradient); opacity: .16; }
.projection-table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); background: #f0f4f6; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
.calculator-disclosure { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.track-record { background: var(--cream); }
.record-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; margin-top: 64px; }
.record-grid article { padding: 34px; border: 1px solid #d8d2c7; border-radius: 12px; background: rgba(255,255,255,.62); }
.record-grid .record-feature { grid-row: span 2; color: #fff; background: var(--navy-900); border-color: var(--navy-900); }
.record-number { display: block; color: var(--blue-500); font-family: Georgia, serif; font-size: 88px; line-height: 1; }
.record-grid h3 { margin: 18px 0 8px; font-size: 20px; }
.record-grid p { margin: 0; color: var(--muted); }
.record-feature p { color: rgba(255,255,255,.65); }

.faq { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr); gap: clamp(50px, 8vw, 130px); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 42px 24px 0; font-size: 18px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 20px; color: var(--blue-600); font-size: 26px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -8px 36px 24px 0; color: var(--muted); }

.contact-section {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
  padding: clamp(76px, 9vw, 130px) clamp(22px, 8vw, 122px);
  color: #fff;
  background: var(--navy-800);
}
.contact-section > div > p:last-child { color: rgba(255,255,255,.65); }
.contact-card { padding: 34px; border-left: 3px solid var(--blue-500); background: rgba(255,255,255,.06); }
.contact-card p { margin: 0; color: rgba(255,255,255,.65); }
.contact-card .contact-name { color: #fff; font-size: 22px; font-weight: 850; }
.contact-person > a { display: block; margin-top: 12px; color: #fff; font-weight: 700; }
.contact-divider { height: 1px; margin: 26px 0; background: rgba(255,255,255,.14); }
.contact-card .button { width: 100%; margin-top: 26px; }

footer { padding: 52px clamp(22px, 8vw, 122px); color: rgba(255,255,255,.62); background: var(--navy-950); }
.footer-top { display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-top p { margin: 0; font-size: 14px; }
.footer-brand { color: #fff; }
.legal { max-width: 1080px; margin: 30px 0 0; font-size: 12px; line-height: 1.7; }
.copyright { margin: 20px 0 0; font-size: 12px; }

@media (max-width: 1050px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .calculator-shell { grid-template-columns: 280px 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .record-grid { grid-template-columns: 1fr 1fr; }
  .record-grid .record-feature { grid-row: span 2; }
}

@media (max-width: 820px) {
  .site-header { min-height: 68px; }
  .menu-toggle { display: block; }
  #site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 22px;
    background: var(--navy-950);
    border-top: 1px solid rgba(255,255,255,.12);
  }
  #site-nav.open { display: flex; }
  #site-nav a { padding: 12px 0; }
  #site-nav .nav-cta { margin-top: 8px; padding: 11px 14px; text-align: center; }
  .hero { min-height: 760px; align-items: end; }
  .hero-image { background-position: 64% center; opacity: .58; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,17,27,.98) 8%, rgba(4,17,27,.84) 58%, rgba(4,17,27,.3) 100%); }
  .hero-copy { width: auto; margin: 0; padding: 100px 22px 44px; }
  .hero h1 { font-size: clamp(52px, 15vw, 76px); }
  .term-strip { grid-template-columns: 1fr 1fr; }
  .term-strip div { padding: 12px; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .term-strip div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); }
  .term-strip div:nth-child(-n+2) { border-top: 0; }
  .proof-bar { grid-template-columns: 1fr 1fr; }
  .proof-bar div { min-height: 130px; }
  .security-panel, .calculator-shell, .faq, .contact-section { grid-template-columns: 1fr; }
  .calculator-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .control-heading, .calculator-controls details { grid-column: 1 / -1; }
  .result-topline { flex-direction: column; }
  .result-actions { justify-content: flex-start; }
  .record-grid { grid-template-columns: 1fr; }
  .record-grid .record-feature { grid-row: auto; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand-logo { width: 42px; height: 40px; }
  .brand-name { font-size: 13px; }
  .hero { min-height: 810px; }
  .hero-lede { font-size: 17px; }
  .hero-actions { display: grid; }
  .proof-bar { grid-template-columns: 1fr; }
  .proof-bar div { min-height: auto; padding: 24px; }
  .process-grid { grid-template-columns: 1fr; }
  .security-panel { margin-top: 66px; padding: 30px 24px; }
  .calculator-controls { display: block; }
  .calculator-results { padding: 22px 16px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article { padding: 14px; }
  .metric-grid strong { font-size: 18px; }
  .chart-card { padding: 15px 10px; }
  .record-number { font-size: 68px; }
}

@media print {
  .site-header, .hero, .proof-bar, .program, .track-record, .faq, .contact-section, footer,
  .calculator-heading, .calculator-controls, .result-actions { display: none !important; }
  .calculator-section { padding: 0; background: #fff; }
  .calculator-shell { display: block; border: 0; box-shadow: none; }
  .calculator-results { padding: 18px; }
  .calculator-results::before { content: "Y Rent Freedom Calculator"; display: block; margin-bottom: 20px; font-size: 28px; font-weight: 800; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
