:root {
  --navy: #12395a;
  --navy-deep: #0b2b47;
  --gold: #b98b2f;
  --cream: #fbf7ef;
  --white: #fffefb;
  --peach: #f5b590;
  --sage: #b9dfc2;
  --aqua: #8ee1e5;
  --teal: #197f8b;
  --ink: #183650;
  --muted: #62727c;
  --line: #e7dfd2;
  --shadow: 0 18px 50px rgba(18, 57, 90, 0.10);
  --serif: Baskerville, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: white;
  padding: 10px 14px;
  z-index: 999;
}
.skip-link:focus { left: 10px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 254, 251, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(185, 139, 47, .14);
}
.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand {
  display: grid;
  grid-template-columns: auto;
  align-items: start;
  color: var(--navy);
  line-height: .92;
}
.brand-title {
  font-family: var(--serif);
  font-size: 18px;
}
.brand-title strong {
  font-size: 28px;
  font-weight: 600;
}
.brand-rule {
  width: 76px;
  height: 3px;
  background: var(--gold);
  margin: 12px 0 7px;
}
.brand-tagline {
  margin-left: 92px;
  margin-top: -13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--navy);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  font-size: 14px;
  color: var(--navy);
}
.site-nav > a:not(.nav-cta) {
  position: relative;
  padding: 10px 0;
}
.site-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  transition: right .2s ease;
}
.site-nav > a:hover::after,
.site-nav > a.active::after { right: 0; }

.nav-cta {
  background: var(--gold);
  color: white;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
}
.menu-toggle { display: none; }

.hero {
  min-height: 635px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 45% 40%, rgba(249, 215, 121, .24), transparent 24%),
    linear-gradient(90deg, #fffdf8 0%, #fff9f0 42%, #eff9fb 100%);
}
.hero-photo {
  position: absolute;
  inset: 0 0 0 43%;
  background:
    linear-gradient(90deg, var(--cream) 0%, rgba(251,247,239,.70) 8%, rgba(251,247,239,0) 29%),
    url("assets/hero-retirement-coast.jpg") center / cover no-repeat;
}
.hero-grid {
  min-height: 635px;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  position: relative;
}
.hero-copy {
  padding: 60px 0;
  position: relative;
  z-index: 2;
}
.eyebrow {
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  font-weight: 750;
  color: var(--gold);
}
.hero h1 {
  margin: 0;
  max-width: 630px;
  font-family: var(--serif);
  font-size: clamp(58px, 6.3vw, 86px);
  line-height: .91;
  letter-spacing: -2.6px;
  color: var(--navy-deep);
  font-weight: 500;
}
.hero h1 em {
  font-weight: 400;
  display: inline-block;
  color: var(--navy);
}
.hero-intro {
  max-width: 495px;
  margin: 30px 0;
  font-size: 21px;
  color: #435e71;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .3px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-navy {
  background: var(--navy);
  color: white;
  box-shadow: 0 12px 28px rgba(18,57,90,.16);
}
.button-navy:hover { background: var(--navy-deep); }

.benefits {
  background: var(--white);
  padding: 62px 0 70px;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.benefit {
  text-align: center;
  padding: 0 55px;
}
.benefit + .benefit {
  border-left: 1px solid var(--line);
}
.icon-circle {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
}
.icon-circle.peach { background: var(--peach); }
.icon-circle.sage { background: var(--sage); }
.icon-circle.aqua { background: var(--aqua); }
.icon-circle svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit h2 {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  color: var(--navy);
}
.benefit p {
  max-width: 280px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
}

.about-section {
  padding: 94px 0;
  background: #fffdf9;
}
.about-panel {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 72px;
  align-items: start;
}
.about-heading {
  position: sticky;
  top: 120px;
}
.about-heading h2 {
  margin: 0;
  max-width: 430px;
  font-family: var(--serif);
  color: var(--navy-deep);
  font-weight: 500;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.05;
}
.about-copy {
  padding: 42px 46px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}
.about-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.about-copy p:last-child { margin-bottom: 0; }
.about-copy strong { color: var(--navy); }
.about-copy .about-closing {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.45;
}

.statement {
  padding: 50px 0 44px;
  text-align: center;
  background: linear-gradient(90deg, #dff5ed, #eefaf7 55%, #eaf9f3);
}
.statement p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 54px);
}
.gold-rule {
  display: block;
  width: 58px;
  height: 3px;
  margin: 24px auto 0;
  background: var(--gold);
}

.products-section {
  padding: 100px 0;
  background: #fffdf9;
}
.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}
.section-heading h2,
.resource-panel h2,
.contact-card h2 {
  font-family: var(--serif);
  color: var(--navy-deep);
  font-weight: 500;
  font-size: clamp(39px, 4vw, 58px);
  line-height: 1.02;
  margin: 0 0 18px;
}
.section-heading > p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.product-card {
  min-height: 465px;
  display: grid;
  grid-template-columns: .83fr 1.17fr;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}
.product-visual {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 30px;
}
.book-visual {
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,.7), transparent 24%),
    linear-gradient(145deg, #c9ead8, #eff9f2);
}
.app-card .product-visual {
  background: linear-gradient(145deg, #d6f6f8, #eefbfb);
}
.book-cover {
  width: 205px;
  min-height: 300px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  color: var(--navy);
  background: linear-gradient(#dff5f6, #fff7e6);
  border-radius: 4px 12px 12px 4px;
  border-left: 8px solid #9eced4;
  box-shadow: 14px 18px 24px rgba(18,57,90,.17);
  transform: rotate(-2deg);
}
.book-cover span,
.book-cover small {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.book-cover strong {
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.04;
  font-weight: 600;
}
.product-copy {
  padding: 45px 38px;
  align-self: center;
}
.mini-label {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 10px;
  font-weight: 800;
}
.product-copy h3 {
  font-family: var(--serif);
  margin: 0 0 16px;
  color: var(--navy-deep);
  font-size: 33px;
  line-height: 1.05;
  font-weight: 500;
}
.product-copy > p:not(.mini-label) {
  color: var(--muted);
}
.text-link {
  display: inline-flex;
  gap: 9px;
  margin-top: 13px;
  color: var(--teal);
  font-weight: 800;
}
.phone {
  width: 170px;
  height: 340px;
  padding: 8px;
  border-radius: 33px;
  background: var(--navy-deep);
  box-shadow: 12px 18px 26px rgba(18,57,90,.18);
}
.phone-notch {
  width: 70px;
  height: 16px;
  margin: 0 auto -12px;
  position: relative;
  z-index: 2;
  border-radius: 0 0 10px 10px;
  background: var(--navy-deep);
}
.phone-screen {
  height: 100%;
  border-radius: 26px;
  padding: 55px 18px 20px;
  text-align: center;
  background:
    linear-gradient(to top, rgba(18,57,90,.38), transparent 28%),
    linear-gradient(#caeff3, #fff1df 58%, #f6caa7);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.phone-star { color: var(--gold); font-size: 30px; }
.phone-screen strong {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.03;
  color: var(--navy);
}
.phone-screen p {
  margin-top: auto;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
}

.resources-section {
  padding: 92px 0;
  background: #eff8f3;
}
.resource-panel {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 80px;
  align-items: center;
}
.resource-panel p {
  color: var(--muted);
  font-size: 18px;
}
.button-outline {
  margin-top: 14px;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
}
.button-outline:hover {
  background: var(--navy);
  color: white;
}

.contact-section {
  padding: 88px 0;
  background: linear-gradient(110deg, #fde2cb, #faedce 46%, #dff4e8);
}
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.contact-card > div > p:last-child { color: var(--muted); }
.signup-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 700;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.form-row input {
  min-height: 58px;
  border: 1px solid rgba(18,57,90,.16);
  border-radius: 999px;
  padding: 0 22px;
  background: rgba(255,255,255,.90);
  color: var(--navy);
  outline: none;
}
.form-row input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(25,127,139,.10);
}
.form-note {
  margin: 11px 0 0;
  font-size: 12px;
  color: #6b777a;
}

.site-footer {
  background: var(--navy-deep);
  color: #eff4f6;
  padding: 48px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: end;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
}
.footer-brand span { font-size: 13px; }
.footer-brand strong { font-size: 27px; font-weight: 500; }
.footer-brand small {
  margin-top: 6px;
  color: #b8ccd4;
  font-family: var(--sans);
  font-size: 11px;
}
.site-footer nav {
  display: flex;
  gap: 20px;
  font-size: 12px;
}
.site-footer nav a:hover { color: var(--aqua); }
.footer-meta {
  justify-self: end;
  display: flex;
  flex-direction: column;
  text-align: right;
  color: #b8ccd4;
  font-size: 11px;
}

@media (max-width: 950px) {
  .header-inner { min-height: 78px; }
  .brand-title strong { font-size: 24px; }
  .brand-tagline { display: none; }
  .menu-toggle {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-content: center;
    gap: 5px;
    background: #f5efe4;
    cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) {
    width: 18px;
    height: 2px;
    background: var(--navy);
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 6px; }
  .nav-cta { text-align: center; }

  .hero { min-height: 720px; }
  .hero-photo {
    inset: 350px 0 0 0;
    background:
      linear-gradient(180deg, var(--cream) 0%, rgba(251,247,239,.2) 28%, rgba(251,247,239,0) 55%),
      url("assets/hero-retirement-coast.jpg") center / cover no-repeat;
  }
  .hero-grid {
    min-height: 720px;
    grid-template-columns: 1fr;
    align-items: start;
  }
  .hero-copy { padding: 64px 0 0; }
  .hero h1 { max-width: 620px; font-size: clamp(54px, 10vw, 76px); }
  .hero-intro { max-width: 510px; }
  .benefit { padding: 0 28px; }
  .product-grid { grid-template-columns: 1fr; }
  .resource-panel, .contact-card { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { justify-self: start; text-align: left; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1160px); }
  .brand-title strong { font-size: 22px; }
  .brand-rule { width: 58px; margin-top: 9px; }

  .hero { min-height: 680px; }
  .hero-photo { inset: 390px 0 0 0; }
  .hero-copy { padding-top: 50px; }
  .eyebrow { letter-spacing: 3px; font-size: 10px; }
  .hero h1 { font-size: 54px; letter-spacing: -1.7px; }
  .hero-intro { font-size: 18px; margin: 22px 0 26px; }
  .button { min-height: 54px; }

  .benefits { padding: 36px 0; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit { padding: 32px 20px; }
  .benefit + .benefit {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .statement { padding: 38px 0; }
  .statement p { font-size: 36px; }

  .products-section, .resources-section, .contact-section { padding: 68px 0; }
  .product-card { grid-template-columns: 1fr; }
  .product-visual { min-height: 330px; }
  .product-copy { padding: 32px 26px 36px; }
  .section-heading h2, .resource-panel h2, .contact-card h2 { font-size: 42px; }

  .form-row { grid-template-columns: 1fr; }
  .form-row .button { width: 100%; }
  .site-footer nav { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .about-panel { grid-template-columns: 1fr; gap: 30px; }
  .about-heading { position: static; }
  .about-copy { padding: 30px 26px; }
}

/* Wide-screen centering refinement. Mobile and tablet layouts are unchanged. */
@media (min-width: 1200px) {
  .container {
    width: min(1400px, calc(100% - 80px));
  }

  .hero-photo {
    inset: 0 0 0 50%;
  }

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

  .hero-copy {
    padding-left: 0;
    padding-right: 72px;
  }

  .hero h1 {
    max-width: 650px;
  }

  .hero-intro {
    max-width: 520px;
  }
}

/* Stronger wide-screen visual centering. Phone/tablet layouts remain unchanged. */
@media (min-width: 1200px) {
  .hero-copy {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 70px;
    padding-right: 20px;
  }

  .hero h1,
  .hero-intro {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-photo {
    inset: 0 0 0 52%;
  }

  .hero-grid {
    grid-template-columns: 52% 48%;
  }
}

/* Compact wide-screen layout so the three feature tabs fit on one screen.
   Mobile/tablet layouts remain unchanged. */
@media (min-width: 1200px) {
  .hero {
    min-height: 520px;
  }

  .hero-grid {
    min-height: 520px;
  }

  .hero-copy {
    max-width: 520px;
    padding-top: 54px;
    padding-bottom: 44px;
  }

  .hero h1 {
    font-size: clamp(64px, 4.6vw, 84px);
    line-height: 0.95;
    margin-bottom: 26px;
  }

  .hero-kicker {
    margin-bottom: 24px;
  }

  .hero-intro {
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 28px;
  }

  .hero-photo img {
    object-fit: cover;
    object-position: center 46%;
  }

  .features {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .feature {
    padding-top: 0;
    padding-bottom: 0;
  }

  .feature-icon {
    width: 104px;
    height: 104px;
    margin-bottom: 18px;
  }

  .feature h3 {
    margin-bottom: 12px;
  }

  .feature p {
    margin-bottom: 0;
  }
}

/* V5 wide-desktop compaction: uses the site's actual benefit class names.
   Mobile and tablet layouts remain unchanged. */
@media (min-width: 1200px) {
  .header-inner {
    min-height: 82px;
  }

  .hero,
  .hero-grid {
    min-height: 455px;
  }

  .hero-copy {
    max-width: 500px;
    padding-top: 34px;
    padding-bottom: 30px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(56px, 4vw, 72px);
    line-height: .93;
    margin-bottom: 18px;
  }

  .hero-intro {
    max-width: 470px;
    margin: 18px 0 22px;
    font-size: 17px;
    line-height: 1.45;
  }

  .button {
    min-height: 52px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .benefits {
    padding: 26px 0 28px;
  }

  .benefit {
    padding: 0 42px;
  }

  .icon-circle {
    width: 88px;
    height: 88px;
    margin-bottom: 14px;
  }

  .icon-circle svg {
    width: 40px;
    height: 40px;
  }

  .benefit h3 {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .benefit p {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 0;
  }
}

/* V6 hero photo framing: keep compact layout but reveal more of the top of the image. */
@media (min-width: 1200px) {
  .hero-photo img {
    object-position: center 26%;
  }
}

/* V7: the hero uses a CSS background, not an <img>.
   Anchor the actual photo to the top so the woman's head/hat stays visible. */
@media (min-width: 1200px) {
  .hero-photo {
    background-position: left top, center top;
  }
}

.hero-note { display: none; }

/* V8 — desktop layout matched to the supplied reference image.
   Keeps the existing mobile/tablet behaviour below 1200px. */
@media (min-width: 1200px) {
  .container {
    width: min(1280px, calc(100% - 64px));
  }

  .header-inner {
    min-height: 86px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-title strong {
    font-size: 26px;
  }

  .brand-rule {
    width: 70px;
    height: 2px;
    margin: 10px 0 6px;
  }

  .brand-tagline {
    margin-left: 84px;
    margin-top: -12px;
    font-size: 10px;
    letter-spacing: 2.8px;
  }

  .site-nav {
    gap: 24px;
    font-size: 13px;
  }

  .nav-cta {
    padding: 12px 20px;
  }

  .hero {
    min-height: 430px;
    background:
      radial-gradient(circle at 48% 35%, rgba(249,215,121,.20), transparent 24%),
      linear-gradient(90deg, #fffdf8 0%, #fff9f0 49%, #eff9fb 100%);
  }

  .hero-grid {
    min-height: 430px;
    grid-template-columns: 43% 57%;
    align-items: center;
  }

  .hero-photo {
    inset: 0 0 0 43%;
    background:
      linear-gradient(90deg, #fff9f0 0%, rgba(255,249,240,.70) 7%, rgba(255,249,240,0) 24%),
      url("assets/hero-retirement-coast.jpg") right center / auto 100% no-repeat;
  }

  .hero-copy {
    max-width: 500px;
    margin: 0;
    padding: 38px 34px 34px 0;
  }

  .eyebrow {
    margin-bottom: 17px;
    font-size: 11px;
    letter-spacing: 3.8px;
  }

  .hero h1 {
    max-width: 500px;
    font-size: clamp(54px, 4.2vw, 70px);
    line-height: .92;
    letter-spacing: -2px;
    margin-bottom: 0;
  }

  .hero-intro {
    max-width: 430px;
    margin: 24px 0 24px;
    font-size: 17px;
    line-height: 1.5;
  }

  .button {
    min-height: 50px;
    padding: 0 25px;
    gap: 20px;
    font-size: 14px;
  }

  .hero-note {
    display: block;
    position: absolute;
    z-index: 3;
    right: max(38px, calc((100vw - 1280px) / 2 + 20px));
    top: 45px;
    font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
    font-size: 24px;
    line-height: 1.08;
    font-style: italic;
    color: var(--navy);
    text-align: center;
    transform: rotate(-7deg);
    pointer-events: none;
  }

  .hero-note span {
    color: var(--gold);
    font-size: 28px;
  }

  .benefits {
    padding: 28px 0 30px;
  }

  .benefit {
    padding: 0 42px;
  }

  .icon-circle {
    width: 84px;
    height: 84px;
    margin: 0 auto 14px;
  }

  .icon-circle svg {
    width: 38px;
    height: 38px;
  }

  .benefit h2 {
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 2.7px;
  }

  .benefit p {
    max-width: 250px;
    font-size: 14px;
    line-height: 1.45;
  }

  .statement {
    padding: 28px 0 24px;
  }

  .statement p {
    font-size: 34px;
  }

  .gold-rule {
    width: 42px;
    height: 2px;
    margin-top: 16px;
  }
}

/* V9 — make the hero match the supplied reference:
   the photo begins immediately beside the text instead of leaving a large blank gap. */
@media (min-width: 1200px) {
  .hero {
    min-height: 430px;
  }

  .hero-grid {
    min-height: 430px;
    grid-template-columns: 43% 57%;
  }

  .hero-photo {
    inset: 0 0 0 43%;
    background-image:
      linear-gradient(90deg, rgba(255,249,240,.90) 0%, rgba(255,249,240,.30) 8%, rgba(255,249,240,0) 18%),
      url("assets/hero-retirement-coast.jpg");
    background-size: 20% 100%, cover;
    background-position: left center, center center;
    background-repeat: no-repeat, no-repeat;
  }

  .hero-copy {
    max-width: 500px;
    margin: 0;
    padding: 38px 30px 34px 0;
  }

  .hero h1 {
    font-size: clamp(54px, 4.1vw, 70px);
    line-height: .92;
  }

  .hero-intro {
    max-width: 430px;
    font-size: 17px;
  }

  .hero-note {
    right: max(32px, calc((100vw - 1280px) / 2 + 18px));
    top: 38px;
  }
}

/* V10 — move the three feature panels slightly lower on wide desktop only. */
@media (min-width: 1200px) {
  .benefits {
    padding-top: 52px;
    padding-bottom: 22px;
  }
}

/* V11 — viewport-aware homepage.
   On desktop/laptop screens, the hero + three feature panels occupy one full
   browser view, so the About section begins below the fold instead of peeking up.
   Mobile/tablet layouts keep normal document flow. */
@media (min-width: 1000px) {
  .header-inner {
    min-height: clamp(70px, 9vh, 86px);
  }

  .home-fold {
    min-height: calc(100svh - clamp(70px, 9vh, 86px));
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .hero,
  .hero-grid {
    min-height: 0;
    height: 100%;
  }

  .hero-grid {
    align-items: center;
  }

  .hero-copy {
    padding-top: clamp(22px, 4vh, 38px);
    padding-bottom: clamp(20px, 3.5vh, 34px);
  }

  .hero h1 {
    font-size: clamp(48px, min(4.1vw, 8vh), 70px);
  }

  .hero-intro {
    margin-top: clamp(16px, 2.5vh, 24px);
    margin-bottom: clamp(16px, 2.5vh, 24px);
    font-size: clamp(15px, 1.2vw, 17px);
  }

  .benefits {
    padding-top: clamp(20px, 3.2vh, 34px);
    padding-bottom: clamp(18px, 2.8vh, 30px);
  }

  .icon-circle {
    width: clamp(72px, 9vh, 84px);
    height: clamp(72px, 9vh, 84px);
    margin-bottom: clamp(10px, 1.6vh, 14px);
  }

  .icon-circle svg {
    width: clamp(32px, 4.2vh, 38px);
    height: clamp(32px, 4.2vh, 38px);
  }

  .benefit h2 {
    margin-bottom: clamp(6px, 1vh, 8px);
  }

  .benefit p {
    font-size: clamp(13px, 1vw, 14px);
    line-height: 1.4;
  }
}

/* On unusually short desktop windows, allow the content to grow naturally
   rather than clipping. The About section will still remain below it. */
@media (min-width: 1000px) and (max-height: 650px) {
  .home-fold {
    min-height: auto;
  }

  .hero,
  .hero-grid {
    min-height: 380px;
    height: auto;
  }
}

/* V12 — keep the responsive first-screen layout, but anchor the hero photo
   to the top so the hat/head are fully visible on desktop and laptop screens. */
@media (min-width: 1000px) {
  .hero-photo {
    background-position: left center, center top;
  }
}

/* V13 — shift the desktop navigation group left while keeping the logo fixed. */
@media (min-width: 1000px) {
  .site-nav {
    transform: translateX(-70px);
  }
}

/* V14 — make the desktop hero photo slightly smaller and shift it left.
   Mobile/tablet layouts remain unchanged. */
@media (min-width: 1000px) {
  .hero-photo {
    inset: 0 0 0 40%;
    background-size: 20% 100%, auto 92%;
    background-position: left center, left center;
  }
}

/* V15 — soften/blur the visible edges of the desktop hero photo so it blends
   into the surrounding cream background. Mobile/tablet layouts remain unchanged. */
@media (min-width: 1000px) {
  .hero-photo {
    position: absolute;
    overflow: hidden;
  }

  .hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(to right,
        rgba(255,249,240,.95) 0%,
        rgba(255,249,240,.55) 4%,
        rgba(255,249,240,.12) 9%,
        rgba(255,249,240,0) 15%,
        rgba(255,249,240,0) 88%,
        rgba(255,249,240,.12) 94%,
        rgba(255,249,240,.45) 98%,
        rgba(255,249,240,.75) 100%),
      linear-gradient(to bottom,
        rgba(255,249,240,.40) 0%,
        rgba(255,249,240,0) 7%,
        rgba(255,249,240,0) 92%,
        rgba(255,249,240,.28) 100%);
  }
}

/* V16 — subtle feathering on all four sides of the desktop hero photo. */
@media (min-width: 1000px) {
  .hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(to right,
        rgba(255,249,240,.55) 0%,
        rgba(255,249,240,.18) 4%,
        rgba(255,249,240,0) 9%,
        rgba(255,249,240,0) 91%,
        rgba(255,249,240,.18) 96%,
        rgba(255,249,240,.55) 100%),
      linear-gradient(to bottom,
        rgba(255,249,240,.38) 0%,
        rgba(255,249,240,.12) 4%,
        rgba(255,249,240,0) 9%,
        rgba(255,249,240,0) 91%,
        rgba(255,249,240,.12) 96%,
        rgba(255,249,240,.38) 100%);
  }
}

/* V17 — true feathered photo edges on all four sides.
   This fades the photo itself to transparent so the cream background shows through. */
@media (min-width: 1000px) {
  .hero-photo {
    -webkit-mask-image: radial-gradient(
      ellipse at center,
      rgba(0,0,0,1) 58%,
      rgba(0,0,0,.96) 66%,
      rgba(0,0,0,.72) 76%,
      rgba(0,0,0,.34) 88%,
      rgba(0,0,0,0) 100%
    );
    mask-image: radial-gradient(
      ellipse at center,
      rgba(0,0,0,1) 58%,
      rgba(0,0,0,.96) 66%,
      rgba(0,0,0,.72) 76%,
      rgba(0,0,0,.34) 88%,
      rgba(0,0,0,0) 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  .hero-photo::after {
    display: none;
  }
}

/* V18 — clickable contact email. */
.contact-email {
  margin-top: 14px;
}

.contact-email a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.contact-email a:hover,
.contact-email a:focus-visible {
  text-decoration: underline;
}


/* V20 — contact label above email address. */
.contact-block {
  margin-top: 14px;
}

.contact-label {
  margin: 0 0 6px;
  color: var(--navy);
  font-weight: 700;
}


/* V22 — contact invitation above email address. */
.contact-message {
  margin-top: 18px;
}

.contact-heading {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
}

.contact-email {
  margin: 0;
}


/* V23 — soften the invitation line to echo the handwritten hero note.
   The email address styling stays unchanged. */
.contact-heading {
  margin: 0 0 10px;
  color: rgba(20, 58, 90, .82);
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 23px;
  line-height: 1.15;
  font-style: italic;
  font-weight: 400;
  letter-spacing: .2px;
}

/* V24 — slightly smaller About section heading and body copy. */
.about-section h2 {
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.08;
}

.about-section p {
  font-size: 16px;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .about-section h2 {
    font-size: 30px;
  }

  .about-section p {
    font-size: 15px;
  }
}

/* V25 — make secondary section headings match the smaller About heading scale. */
section:not(.hero):not(.about-section) h2,
section:not(.hero):not(.about-section) .section-title {
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.08;
}

@media (max-width: 768px) {
  section:not(.hero):not(.about-section) h2,
  section:not(.hero):not(.about-section) .section-title {
    font-size: 30px;
  }
}

/* V26 — move the handwritten hero note left and soften the pale blue area
   to the right of the hero photo on desktop/laptop screens. */
@media (min-width: 1000px) {
  .hero-note {
    right: max(110px, calc((100vw - 1280px) / 2 + 95px));
  }

  .hero {
    background:
      radial-gradient(circle at 48% 35%, rgba(249,215,121,.20), transparent 24%),
      linear-gradient(90deg, #fffdf8 0%, #fff9f0 49%, #fbfefe 100%);
  }
}

/* V27 — slightly smaller feature headings. */
.benefit h2 {
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 2.2px;
}

@media (max-width: 768px) {
  .benefit h2 {
    font-size: 10px;
    letter-spacing: 1.9px;
  }
}

/* V28 — extend the desktop hero photo further to the right without changing its height. */
@media (min-width: 1000px) {
  .hero-photo {
    right: -5vw;
  }
}

/* V29 — visibly widen the desktop hero photo area by starting it further left.
   The right edge stays aligned with the page, so the photo becomes wider on screen. */
@media (min-width: 1000px) {
  .hero-photo {
    left: 37%;
    right: 0;
  }
}

/* V30 — make the desktop hero image actually fill the wider photo panel.
   This extends the visible photo horizontally to the right without stretching it. */
@media (min-width: 1000px) {
  .hero-photo {
    left: 37%;
    right: 0;
    background-size: 20% 100%, cover;
    background-position: left center, center top;
    background-repeat: no-repeat, no-repeat;
  }

  .hero-note {
    right: 7%;
  }
}

/* V31 — keep the wider desktop photo while revealing more of the lower part
   of the original image so the bottom is not cropped. */
@media (min-width: 1000px) {
  .hero-photo {
    background-size: 20% 100%, cover;
    background-position: left center, center 35%;
  }
}

/* V32 — restore more of the original lower part of the hero photo
   and reduce the three feature headings. */
@media (min-width: 1000px) {
  .hero-photo {
    background-size: 20% 100%, cover;
    background-position: left center, center 62%;
  }

  .benefits .benefit h2 {
    font-size: 17px !important;
    line-height: 1.15 !important;
    letter-spacing: 1.6px !important;
    margin-bottom: 8px;
  }
}

@media (max-width: 999px) {
  .benefits .benefit h2 {
    font-size: 15px !important;
    line-height: 1.2 !important;
    letter-spacing: 1.4px !important;
  }
}


/* V33 — rebalance the hero crop so both the hat and more of the lower photo stay visible. */
@media (min-width: 1000px) {
  .hero-photo {
    background-size: 20% 100%, cover;
    background-position: left center, center 48%;
  }
}

/* V34 — show the full hero photo vertically so the hat and bottom are both visible.
   The photo panel stays wide; any spare space blends into the page background. */
@media (min-width: 1000px) {
  .hero-photo {
    left: 35%;
    right: 0;
    background-size: 20% 100%, auto 96%;
    background-position: left center, center center;
    background-repeat: no-repeat, no-repeat;
  }
}

/* V35 — move the handwritten hero note further left on desktop/laptop screens. */
@media (min-width: 1000px) {
  .hero-note {
    right: 13%;
  }
}
