:root {
  --background: #fdf0e3;
  --surface: rgba(255, 253, 253, 0.94);
  --ink: var(--brand-navy);
  --charcoal: #5f5b5d;
  --muted: #777174;
  --pink: #e9175b;
  --pink-dark: #cf114e;
  --pink-pale: #ffe4eb;
  --line: rgba(111, 88, 97, 0.17);
  --shadow: 0 22px 52px rgba(141, 81, 102, 0.11), 0 3px 12px rgba(141, 81, 102, 0.06);
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", Baskerville, "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background-color: #fdf0e3;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--background);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html.landing-page {
  background-color: var(--page-ivory-bottom);
}

body.landing-page {
  /* Fill short viewports and grow with content; normal flow keeps the footer put. */
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--page-frame-top);
  /* One gradient spans the greater of the viewport and document heights. */
  background: linear-gradient(to bottom, var(--page-cream-top), var(--page-ivory-bottom));
}

button, input { font: inherit; }

a { color: inherit; }

.landing-stage {
  position: relative;
  isolation: isolate;
  width: min(100%, 1800px);
  margin-inline: auto;
  overflow-x: clip;
  /* Shared by the content container and the banner's left edge. */
  --content-width: min(1640px, calc(100% - clamp(30px, 5.4vw, 96px)));
  --content-top: 34px;
  --hero-copy-top: 4px;
  --shell-offset: 0px;
  --hero-offset: 0px;
  /* Mirror the content column’s left inset without moving the illustration. */
  --page-frame-right: calc(max(clamp(30px, 5.4vw, 96px) / 2,
    (min(100vw, 1800px) - 1640px) / 2) + var(--shell-offset) + var(--hero-offset));
}

.landing-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.page-shell {
  position: relative;
  width: var(--content-width);
  margin: 0 auto;
  padding: var(--content-top) 0 10px;
  z-index: 2;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, clamp(520px, 40vw, 590px)) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(2px, 0.19vw, 4px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: var(--hero-copy-top);
}

.eyebrow {
  max-width: 520px;
  margin: 0 0 26px;
  color: #555158;
  font-size: 0.75rem;
  line-height: 1.65;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-weight: 620;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 4.55vw, 4.85rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
  font-weight: 650;
}

h1 span { display: block; }
h1 span:first-child { color: var(--pink); }
h1 span + span { margin-top: -8px; }

.hero-description {
  max-width: 545px;
  margin: 18px 0 22px;
  font-size: clamp(1rem, 1.18vw, 1.12rem);
  line-height: 1.62;
  color: var(--brand-navy);
}

.signup-card {
  width: min(100%, 540px);
  position: relative;
  padding: 25px 32px 23px;
  border: 1px solid rgba(166, 126, 140, 0.16);
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 18px 44px rgba(141, 81, 102, 0.09),
            0 2px 8px rgba(141, 81, 102, 0.045);
  text-align: center;
}

.envelope-mark {
  position: relative;
  width: 52px;
  height: 40px;
  margin: 0 auto 8px;
  color: #9f9297;
}

.envelope { width: 52px; height: 39px; }

.envelope-heart {
  position: absolute;
  width: 14px;
  height: 15px;
  left: 19px;
  top: 12px;
}

.signup-card h2 {
  margin: 0;
  color: var(--pink);
  font-family: var(--serif);
  font-size: clamp(1.78rem, 2vw, 2rem);
  line-height: 1.06;
  font-weight: 650;
}

.signup-intro {
  max-width: 425px;
  margin: 9px auto 18px;
  color: #4b4548;
  font-size: 0.95rem;
  line-height: 1.46;
}

.field-row {
  display: grid;
  grid-template-columns: 1.42fr 0.82fr;
  gap: 11px;
}

input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid #d7d2d6;
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input::placeholder { color: #8f8b95; }

input:focus {
  border-color: rgba(233, 23, 91, 0.58);
  box-shadow: 0 0 0 4px rgba(233, 23, 91, 0.11);
  background: #fff;
}

button {
  width: 100%;
  min-height: 52px;
  margin-top: 11px;
  border: 0;
  border-radius: 8px;
  background: #df1454;
  color: white;
  font-weight: 660;
  letter-spacing: 0.005em;
  cursor: pointer;
  box-shadow: 0 11px 24px rgba(233, 23, 91, 0.18);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

button:hover {
  background: var(--pink-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(233, 23, 91, 0.23);
}

button:focus-visible {
  outline: 3px solid rgba(233, 23, 91, 0.25);
  outline-offset: 3px;
}

button:disabled { opacity: .68; cursor: wait; transform: none; }

.form-status {
  min-height: 1.1em;
  margin: 7px 0 -3px;
  color: #7e374f;
  font-size: .78rem;
}

.signup-notes {
  display: grid;
  gap: 10px;
  margin: 16px auto 0;
  max-width: 360px;
  text-align: left;
}

.signup-notes p {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  color: #6d6669;
  font-size: .82rem;
  line-height: 1.45;
}

.signup-notes svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signup-notes p:first-child svg { color: var(--pink); }

.pillars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 1260px);
  margin: -5px auto 0;
  padding: 18px 0 8px;
  z-index: 3;
}

.pillar {
  display: grid;
  grid-template-columns: minmax(0, 255px);
  align-items: start;
  justify-content: center;
  padding: 12px 10px;
}

.pillar + .pillar { border-left: 1px solid var(--line); }

.pillar h2 {
  margin: 0 0 7px;
  color: var(--brand-navy);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.22vw, 1.34rem);
  line-height: 1.15;
  font-weight: 700;
}

.pillar h2::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--pink);
}

.pillar p {
  margin: 0;
  max-width: 255px;
  color: #4f494c;
  font-size: .94rem;
  line-height: 1.48;
}

footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 18px;
  width: min(1640px, calc(100% - clamp(30px, 5.4vw, 96px)));
  margin: 0 auto;
  padding: 0 0 22px;
  color: #6d6669;
  font-size: .75rem;
}

footer a { text-underline-offset: 3px; }

.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;
}

/* Smooth desktop positioning: the offsets taper to zero before the layout stacks. */
@media (min-width: 1081px) {
  .landing-stage {
    --shell-offset: clamp(0px, calc((100vw - 1080px) * 0.0653), 30px);
    --hero-offset: clamp(0px, calc((100vw - 1080px) * 0.1305), 60px);
  }

  .page-shell,
  footer {
    transform: translateX(var(--shell-offset));
  }

  .hero {
    transform: translateX(var(--hero-offset));
  }

  h1 span { white-space: nowrap; }
}

/* Stacked tablet: only stack once the card and couple no longer fit comfortably.
   Reserve space from the artwork dimensions, then centre one readable content group. */
@media (min-width: 901px) and (max-width: 1180px) {
  .landing-stage {
    --content-width: calc(100% - clamp(56px, 6.25vw, 72px));
    --content-top: clamp(30px, 3.2vw, 34px);
    --hero-copy-top: 0px;
    --shell-offset: 0px;
    --hero-offset: 0px;
    --tablet-hero-width: clamp(1040px, calc(100vw + 76px), 1200px);
    --tablet-hero-top: 42px;
    --tablet-copy-width: 620px;
    --tablet-scene-gap-trim: 24px;
    --page-frame-right: 24px;
  }

  .hero {
    display: block;
  }

  .eyebrow {
    max-width: var(--tablet-copy-width);
    margin-bottom: clamp(20px, 2.3vw, 24px);
    font-size: clamp(.72rem, 1.16vw, .78rem);
  }

  h1 {
    max-width: var(--tablet-copy-width);
    font-size: clamp(3.55rem, 6.1vw, 4rem);
    line-height: .96;
  }

  h1 span { white-space: nowrap; }
  h1 span + span { margin-top: -7px; }

  .hero-description {
    max-width: var(--tablet-copy-width);
    margin: clamp(18px, 2vw, 21px) 0 0;
    font-size: clamp(1.02rem, 1.7vw, 1.1rem);
    line-height: 1.58;
  }

  .signup-card {
    width: min(100%, 620px);
    margin: 26px 0 0;
    grid-row: 6;
  }

  .landing-backdrop {
    width: var(--tablet-hero-width);
    max-width: none;
    right: calc((100% - var(--tablet-hero-width)) / 2);
    top: var(--tablet-hero-top);
    clip-path: inset(0 calc(var(--page-frame-right) - (100vw - var(--tablet-hero-width)) / 2) 0 0);
    /* Only soften the shifted top sky edge; retain the PNG's native bottom fade. */
    mask-image: linear-gradient(to bottom, transparent, #000 36px);
  }
  .hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    /* Visible artwork ends at about 92% of its natural height. Leave a small
       gap after that fade; subtract the logo row and trim excess scene space. */
    grid-template-rows: auto calc(var(--tablet-hero-width) * .52 + var(--tablet-hero-top) - 103px - var(--tablet-scene-gap-trim)) auto auto auto auto;
  }
  .hero-copy > :not(.wordmark) {
    width: min(100%, var(--tablet-copy-width));
    margin-inline: auto;
  }
  .wordmark { grid-row: 1; }
  .eyebrow { grid-row: 3; }
  h1 { grid-row: 4; }
  .hero-description { grid-row: 5; }
}

/* Desktop keeps the approved artwork scale, cropping the right side before shrinking.
   Additional benefits clearance follows the larger image only on narrower desktops. */
@media (min-width: 1181px) {
  .landing-backdrop {
    width: var(--desktop-hero-width);
    max-width: none;
    right: var(--desktop-hero-right);
    /* Crop the outer framing only; keep the artwork scale and couple position. */
    clip-path: inset(0 calc(var(--page-frame-right) - var(--desktop-hero-right)) 0 0);
  }
  .pillars { margin-top: max(-5px, calc((1800px - 100vw) * .1)); }
}

/* Mobile: reserve a substantial atmospheric hero area before the stacked content. */
@media (max-width: 900px) {
  .landing-stage {
    --content-width: calc(100% - clamp(40px, 5vw, 48px));
    --content-top: clamp(22px, 5vw, 32px);
    --hero-copy-top: 0px;
    --page-frame-right: 0px;
    --mobile-hero-offset: 42px;
    --mobile-hero-clearance: 34px;
    --mobile-hero-top-blend: 36px;
  }

  .landing-backdrop {
    /* Lower the approved artwork without changing its scale or horizontal crop.
       At 390px this leaves about 36px of sky below the 96px banner. */
    top: var(--mobile-hero-offset);
    /* Fade only the first sky pixels to remove the offset's straight top edge.
       Fully opaque below 36px: faces and the PNG's native bottom fade are untouched. */
    mask-image: linear-gradient(to bottom, transparent, #000 var(--mobile-hero-top-blend));
    right: clamp(-250px, -24vw, -110px);
    width: clamp(900px, 205vw, 1120px);
    max-width: none;
  }

  .hero {
    display: block;
  }

  .hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    /* Reserve the same downward shift plus clearance for the PNG's own fade.
       No extra fade is applied and the logo remains in its original grid row. */
    grid-template-rows: auto calc(clamp(350px, 88vw, 430px) + var(--mobile-hero-offset) + var(--mobile-hero-clearance)) auto auto auto auto;
  }

  .wordmark,
  .eyebrow,
  h1,
  .hero-description,
  .signup-card {
    position: relative;
    z-index: 2;
  }

  .eyebrow {
    grid-row: 3;
    max-width: 500px;
    margin-bottom: clamp(17px, 4vw, 22px);
    font-size: clamp(.72rem, 2.8vw, .8rem);
    line-height: 1.62;
  }

  h1 {
    grid-row: 4;
    max-width: 620px;
    font-size: clamp(3rem, 12vw, 3.375rem);
    line-height: .96;
    letter-spacing: -.045em;
  }

  h1 span { white-space: normal; }
  h1 span + span { margin-top: 0; }

  .hero-description {
    grid-row: 5;
    max-width: 600px;
    margin: clamp(18px, 4vw, 22px) 0 clamp(26px, 6vw, 34px);
    font-size: clamp(1.0625rem, 4.1vw, 1.125rem);
    line-height: 1.58;
  }

  .signup-card {
    grid-row: 6;
    width: min(100%, 540px);
    max-width: 540px;
    justify-self: start;
    padding: clamp(23px, 5vw, 27px) clamp(19px, 4.8vw, 26px) clamp(22px, 5vw, 26px);
    border-radius: clamp(16px, 3vw, 20px);
  }

  .signup-card h2 {
    font-size: clamp(1.9rem, 7.5vw, 2.125rem);
  }

  .signup-intro {
    font-size: clamp(.94rem, 3.7vw, 1rem);
  }

  input,
  button {
    font-size: 1rem;
  }

  .pillars {
    grid-template-columns: 1fr;
    width: 100%;
    margin: clamp(28px, 6vw, 42px) auto 0;
    padding-bottom: 8px;
  }

  .pillar {
    grid-template-columns: minmax(0, 1fr);
    padding: 19px 8px;
  }

  .pillar + .pillar {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  footer {
    flex-wrap: wrap;
    row-gap: 8px;
    width: calc(100% - 40px);
    text-align: center;
  }
}

@media (max-width: 760px) {
  .landing-stage { --content-top: clamp(22px, 5vw, 26px); }
}

@media (max-width: 520px) {
  /* Phone-only scene reserve: 12px tighter than the preceding version.
     Move all following content together; leave the artwork and internal gaps intact. */
  .landing-stage { --mobile-hero-clearance: 11px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.hero-description,
.signup-intro,
.signup-notes p {
  font-weight: 500;
}

/* ==================== Branding: banner and logo ====================
   Adjust these values for exploration without changing the hero geometry. */
:root {
  --brand-navy: #062355;
  --brand-muted-navy: #566780;
  --desktop-hero-width: 1800px;
  --desktop-hero-right: min(0px, calc((100vw - 1800px) * .45));
  /* Outer cream framing is independent of the content and image geometry. */
  --page-frame-top: clamp(24px, 2.2vw, 48px);
  --page-cream-top: #FEF3E8;
  --page-ivory-bottom: #FFF7ED;
  --banner-bottom-left-radius: 12px;
  --banner-height: 124px;
  --logo-inset: 24px;
  --logo-layout-width: clamp(154px, 12.46vw, 187px);
  --logo-lettering-width: calc(var(--logo-layout-width) * 0.8);
  --logo-lettering-height: calc(var(--logo-lettering-width) * 46 / 111);
  --logo-heart-height: calc(var(--logo-lettering-height) * 1.12);
  --logo-heart-width: calc(var(--logo-heart-height) * 60 / 62);
  --logo-gap: calc(var(--logo-lettering-width) * 0.05);
  --logo-heart-rise: calc(var(--logo-lettering-height) * 0.09);
  --logo-row-height: calc(var(--logo-layout-width) * 74.6843 / 194.5353);
  /* The raised heart shifts the combined artwork's centre above the lettering's. */
  --logo-optical-offset: calc((var(--logo-heart-height) - var(--logo-lettering-height)) / 4 + var(--logo-heart-rise) / 2);
  --banner-fade-start: 27%;
  --banner-fade-end: 62%;
}

/* The PNG supplies its bottom fade; mobile alone blends the first sky pixels. */
.landing-stage::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--page-frame-right);
  left: calc((100% - var(--content-width)) / 2 + var(--shell-offset) + var(--hero-offset));
  height: var(--banner-height);
  /* Round only this painted layer; hero and content remain untouched. */
  border-top-left-radius: var(--banner-bottom-left-radius);
  border-bottom-left-radius: var(--banner-bottom-left-radius);
  z-index: 1;
  /* Artwork stays at layer 0; this translucent layer sits below content at 2.
     Keep the gradient sized/anchored to the whole stage, so insetting its left
     edge crops only the solid navy and preserves the existing image overlap. */
  background: linear-gradient(to right, var(--brand-navy) 0,
    var(--brand-navy) var(--banner-fade-start), transparent var(--banner-fade-end));
  background-size: min(100vw, 1800px) 100%;
  background-position: right calc(-1 * var(--page-frame-right)) top;
  background-repeat: no-repeat;
  pointer-events: none;
}

.wordmark {
  position: relative;
  display: inline-block;
  width: calc(var(--logo-lettering-width) + var(--logo-gap) + var(--logo-heart-width));
  /* Preserve the original row height; the larger heart adds no content shift. */
  height: var(--logo-row-height);
  margin-bottom: 24px;
  margin-left: var(--logo-inset);
  text-decoration: none;
}

.wordmark-lockup {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  /* Centre the complete two-SVG unit within the banner, not within its flow row.
     Only the artwork moves; the content below keeps its original position. */
  transform: translateY(calc(var(--banner-height) / 2 - var(--content-top)
    - var(--hero-copy-top) - var(--logo-row-height) / 2 + var(--logo-optical-offset)));
}

.wordmark img {
  display: block;
  height: auto;
  flex-shrink: 0;
}

.wordmark .wordmark-lettering { width: var(--logo-lettering-width); }
.wordmark .wordmark-heart {
  width: var(--logo-heart-width);
  /* Reference: heart slightly taller than the lettering, with its tip just above
     the lettering baseline. Intrinsic SVG ratios remain untouched. */
  transform: translateY(calc(-1 * var(--logo-heart-rise)));
}

@media (min-width: 901px) and (max-width: 1180px) {
  :root {
    --logo-layout-width: clamp(170px, 18vw, 184px);
    --page-frame-top: 24px;
  }
  .wordmark {
    margin-bottom: clamp(20px, 2.3vw, 24px);
  }
}

@media (max-width: 900px) {
  :root {
    --page-frame-top: 0px;
    --banner-height: 96px;
    --logo-inset: 16px;
    --logo-layout-width: clamp(155px, 38vw, 175px);
    /* Fixed fade stops retain the original mobile artwork overlap. */
    --banner-fade-start: 200px;
    --banner-fade-end: 360px;
  }

  /* Mobile artwork stays full bleed; only the banner expands left.
     The existing content/wordmark insets retain comfortable logo padding. */
  .landing-stage::before {
    left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .wordmark {
    grid-row: 1;
    margin-bottom: 0;
  }
}

/* Landing copy palette: primary copy in brand navy, supporting details quieter. */
.landing-page .eyebrow,
.landing-page .signup-intro,
.landing-page .pillar p { color: var(--brand-navy); }
.landing-page .signup-notes p,
.landing-page footer { color: var(--brand-muted-navy); }
