@font-face { font-family: "Outfit"; src: url("/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cabin"; src: url("/fonts/cabin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cabin"; src: url("/fonts/cabin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cabin"; src: url("/fonts/cabin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cabin"; src: url("/fonts/cabin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #16303d;
  --navy-deep: #10252f;
  --muted: #55666e;
  --line: #d9e2e6;
  --sky: #5fd3ee;
  --sky-hover: #45c8e6;
  --cyan: #07cff6;
  --teal: #0f8fa1;
  --sand: #f7ede6;
  --white: #ffffff;
  --pad: clamp(20px, 5vw, 64px);
  --wrap: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Outfit", "Outfit Fallback", system-ui, sans-serif;
  --body: "Cabin", "Cabin Fallback", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  caret-color: var(--teal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--sky); color: var(--navy); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: -0.03em; }
p { margin: 0; text-wrap: pretty; }
.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; }
.dot { color: var(--cyan); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* Masthead: brand only, nothing to click (one page, one offer, one choice). */
.masthead { max-width: var(--wrap); margin: 0 auto; padding: 22px var(--pad) 0; }
.masthead img { width: auto; height: 44px; }

/* Hero */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) var(--pad) clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: min(calc(100svh - 66px), 860px);
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.02; max-width: 12ch; }
.whisper { margin-top: 14px; font-style: italic; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--navy); }
.lede { margin-top: 22px; max-width: 34em; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.15rem); }

/* Opt-in form */
.optin { margin-top: 30px; max-width: 560px; }
.fields { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 10px; }
.field input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  font: 500 17px/1 var(--body);
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input:hover { border-color: #b9c8ce; }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(7, 207, 246, 0.22); }
.field input[aria-invalid="true"] { border-color: #c2412d; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  margin-top: 10px;
  padding: 0 28px;
  font: 600 1.15rem/1 var(--display);
  letter-spacing: -0.005em;
  color: var(--navy);
  background: var(--sky);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(15, 143, 161, 0.75);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
button:hover, .button:hover { background: var(--sky-hover); transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(15, 143, 161, 0.8); }
button:active, .button:active { transform: translateY(0); }
button:disabled { cursor: progress; opacity: 0.75; transform: none; }
button[aria-busy="true"]::after {
  content: "";
  width: 16px; height: 16px; margin-left: 12px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { margin-top: 12px; font-size: 0.95rem; color: var(--muted); }
.form-error { margin-top: 10px; font-size: 0.98rem; font-weight: 600; color: #b23a26; }


/* Box art: designed cover in front, the real first page peeking behind */
.hero-art { width: 100%; max-width: 560px; justify-self: end; }
.boxart { width: 100%; transform-origin: 40% 80%; transition: transform 1.1s var(--ease); }
.js .hero-art:not(.is-in) .boxart { transform: translateY(18px) rotate(-2.5deg) scale(0.97); }

/* Tally: what you get */
.tally {
  background: var(--sand);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: clamp(28px, 4vw, 44px) var(--pad);
}
.tally p {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 6px clamp(20px, 4vw, 56px);
  font-size: 1.1rem;
  color: var(--navy);
}
.tally p + p { border-left: 1px solid rgba(22, 48, 61, 0.15); }
.tally strong { font: 700 clamp(2.6rem, 5vw, 3.8rem)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

/* Inside the guide */
.inside {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.inside-head { position: sticky; top: 32px; }
.inside h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.06; }
.inside-head p { margin-top: 18px; color: var(--muted); max-width: 30em; }
.moments { list-style: none; margin: 0; padding: 0; }
.moments li { padding: 26px 0; border-top: 1px solid var(--line); }
.moments li:last-child { border-bottom: 1px solid var(--line); }
.moments h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.moments p { margin-top: 6px; color: var(--muted); max-width: 36em; }

/* Maker */
.maker {
  background: var(--navy);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: clamp(56px, 8vw, 104px) max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
}
.maker-photo { margin: 0; }
.maker-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 24px; }
.maker h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.06; max-width: 16ch; }
.creds { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.creds li { position: relative; padding-left: 36px; font-size: 1.08rem; color: rgba(255, 255, 255, 0.92); }
.creds li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316303d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.maker blockquote { margin: 34px 0 0; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.maker blockquote p { font-style: italic; font-size: 1.12rem; color: rgba(255, 255, 255, 0.88); max-width: 38em; }
.maker blockquote footer { margin-top: 12px; font-size: 0.95rem; color: var(--sky); }

/* Closer */
.closer { max-width: 760px; margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--pad); text-align: center; }
.closer h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; }
.closer > p { margin-top: 14px; color: var(--muted); }
.closer .optin { margin-left: auto; margin-right: auto; text-align: left; }

.base { border-top: 1px solid var(--line); padding: 28px var(--pad) 40px; text-align: center; font-size: 0.92rem; color: var(--muted); }
.base p + p { margin-top: 6px; }

/* Thank-you page: navy, so it reads as a different page from the white opt-in. */
.thanks-page { background: var(--white); }
.thanks-page .masthead { max-width: none; padding: 22px max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad))) 0; background: var(--navy); }
.thanks-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(36px, 6vw, 80px) max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad))) clamp(40px, 6vw, 88px); background: var(--navy); color: var(--white); }
.thanks [data-when] { display: none; }
.thanks[data-state="ok"] [data-when="ok"], .thanks[data-state="none"] [data-when="none"] { display: revert; }
.thanks[data-state="ok"] a[data-when="ok"], .thanks[data-state="none"] a[data-when="none"] { display: inline-flex; }
.thanks[data-state="loading"] .thanks-badge { visibility: hidden; }
.thanks[data-state="none"] .thanks-badge { display: none; }
.thanks-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--cyan); color: var(--navy); box-shadow: 0 0 0 10px rgba(7, 207, 246, 0.16); }
.thanks-badge svg { width: 34px; height: 34px; }
.thanks-kick { margin-top: 22px; font: 600 0.95rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.thanks h1 { margin-top: 10px; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.035em; color: var(--white); }
.thanks-lede { margin-top: 16px; max-width: 30ch; font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: rgba(255, 255, 255, 0.86); }
.thanks-open { max-width: 380px; margin-top: 28px; }
.thanks-steps { list-style: none; margin: 34px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.16); display: grid; gap: 14px; counter-reset: step; max-width: 520px; }
.thanks-steps li { counter-increment: step; position: relative; padding-left: 44px; color: rgba(255, 255, 255, 0.82); }
.thanks-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 0.95rem/1 var(--display); color: var(--navy); background: var(--sky); }
.thanks-steps b { display: block; color: var(--white); font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.thanks-steps strong { color: var(--white); font-weight: 600; overflow-wrap: anywhere; }
.thanks-art { margin: 0; justify-self: center; width: min(100%, 280px); }
.thanks-art img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(255, 255, 255, 0.08); transform: rotate(3deg); }
.thanks-next { max-width: var(--wrap); margin: clamp(36px, 5vw, 64px) auto; padding: 0 var(--pad); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.thanks-next > img { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 4px var(--sand); }
.thanks-next h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.1; }
.thanks-next p { margin-top: 6px; color: var(--muted); max-width: 56ch; }
.thanks-call { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 26px; border-radius: 999px; font: 600 1.05rem/1 var(--display); color: var(--white); background: var(--navy); text-decoration: none; white-space: nowrap; transition: background-color 0.2s var(--ease), transform 0.2s var(--ease); }
.thanks-call:hover { background: var(--navy-deep); transform: translateY(-1px); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero h1 { max-width: 14ch; }
  .hero-art { justify-self: center; max-width: 420px; margin-top: 4px; }
  .inside { grid-template-columns: 1fr; }
  .inside-head { position: static; }
  .maker { grid-template-columns: 1fr; }
  .maker-photo img { aspect-ratio: 5 / 4; object-position: 50% 28%; }
  .thanks-hero { grid-template-columns: 1fr; }
  .thanks-art { width: min(55%, 200px); }
  .thanks-art img { transform: rotate(2deg); }
  .thanks-next { grid-template-columns: auto minmax(0, 1fr); }
  .thanks-call { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .masthead img { height: 36px; }
  .fields { grid-template-columns: 1fr; }
  .tally { flex-direction: column; align-items: center; }
  .tally p { padding: 10px 0; width: 100%; max-width: 300px; }
  .tally p + p { border-left: 0; border-top: 1px solid rgba(22, 48, 61, 0.15); }
    .thanks-badge { width: 54px; height: 54px; }
  .thanks-badge svg { width: 28px; height: 28px; }
  .thanks-open { max-width: none; }
  .thanks-next { grid-template-columns: 1fr; }
  .thanks-next > img { width: 80px; height: 80px; }
  .thanks-call { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boxart, button, .button, .field input { transition: none; }
  .js .hero-art:not(.is-in) .boxart { transform: none; }
}
