/* mariolucas.com
   One stylesheet for every page. Order: fonts, tokens, base, header and hero, cards,
   home sections, note pages, popup, small standalone pages. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Big Shoulders Display"; src: url("/assets/fonts/big-shoulders-display.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ground: #E6EBF2;
  --ink: #0B1238;
  --muted: #444E78;
  --rule: rgba(11, 18, 56, 0.14);
  --blue: #2233D4;
  --blue-deep: #18249E;
  --on-blue: #FFFFFF;
  --on-blue-muted: #C9D0FF;
  --sun: #FFC72C;
  --red: #D8352A;
  --green: #0B7A55;
  --night: #0B1238;
  --accent: var(--blue);      /* hover and small label colour on the page ground */
  --link: var(--blue);
  --focus: var(--blue);
  --ca-green: #008545;

  /* Cards stay light in both themes */
  --card: #FBFBFD;
  --card-ink: #0B1238;
  --card-muted: #4A5378;
  --card-rule: rgba(11, 18, 56, 0.16);
  --shadow: 0 1px 2px rgba(11, 18, 56, 0.10), 0 12px 28px -8px rgba(11, 18, 56, 0.28);

  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --data: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --brand: "Inter", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --space: clamp(64px, 9vw, 120px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0A1236;
    --ink: #E8ECF8;
    --muted: #A8B1D8;
    --rule: rgba(232, 236, 248, 0.14);
    --blue: #2738E0;
    --blue-deep: #111A6E;
    --on-blue-muted: #CBD2FF;
    --night: #060B27;
    --accent: var(--sun);
    --link: #9FAAFF;
    --focus: var(--sun);
    --ca-green: #02E77B;
    --card: #EEF1F7;
    --card-muted: #465075;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 36px -10px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--blue) var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  accent-color: var(--blue);
}
::selection { background: var(--sun); color: #0B1238; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Blue and dark surfaces take a yellow focus ring. Cards are always light, so blue. */
.band, .numbers, .dark-sec, .kit, .pop, .note-cta, .solo { --focus: var(--sun); }
.card, .solo-card { --focus: #2233D4; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 6px; background: var(--sun); color: #0B1238;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; outline: 3px solid #0B1238; }

/* ---------- Blue band: header and hero ---------- */
.band { background: var(--blue); color: var(--on-blue); position: relative; overflow: hidden; }
.band::before, .kit::before {
  /* faint printed halftone, the way cheap card stock takes ink */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1.4px);
  background-size: 7px 7px;
  pointer-events: none;
}
.topbar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 22px;
}
.wordmark {
  font: 900 26px/1 var(--display);
  letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 10px;
}
.wordmark small { font: 500 12px/1 var(--data); letter-spacing: 0.08em; color: var(--sun); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 28px); font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--on-blue-muted); transition: color .2s; white-space: nowrap; }
.nav a:hover { color: var(--on-blue); text-decoration: underline; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .nav { font-size: 14px; gap: 12px; } }
@media (max-width: 420px) { .wordmark small { display: none; } .wordmark { font-size: 22px; } }
@media (max-width: 400px) { .nav .hide-xs { display: none; } }

.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(36px, 6vw, 72px) clamp(64px, 9vw, 110px);
}
.hero h1 {
  font: 900 clamp(46px, 6vw, 80px)/0.9 var(--display);
  text-transform: uppercase; letter-spacing: -0.01em;
}
.hero h1 span { color: var(--sun); display: block; }
.hero .lede { margin-top: 28px; max-width: 34em; font-size: clamp(18px, 1.6vw, 20px); color: var(--on-blue-muted); }
.hero .lede strong { color: var(--on-blue); font-weight: 600; }
.hero .signup { margin-top: 22px; max-width: 600px; }
.already { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--on-blue); text-underline-offset: 0.22em; }
.already:hover { color: var(--sun); }

/* What's in the kit */
.kit-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.kit-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--on-blue-muted); font-size: 17px; }
.kit-list li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; border: 2px solid var(--sun); background: radial-gradient(circle, var(--sun) 0 3px, transparent 3.5px); }
.kit-list b { color: var(--on-blue); font-weight: 700; }
.hero-list { margin: 22px 0 0; }

/* ---------- Sign up form ---------- */
.signup { margin-top: 32px; max-width: 520px; }
.signup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input {
  flex: 1 1 240px; min-width: 0;
  font: 500 17px/1 var(--body);
  padding: 17px 18px;
  border: 2px solid transparent; border-radius: 6px;
  background: var(--card); color: var(--card-ink);
}
.signup input[name="first_name"] { flex: 1 1 150px; }
.signup input[type="email"] { flex: 1.4 1 220px; }
.signup input::placeholder { color: var(--card-muted); }
.signup input:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.signup input[aria-invalid="true"] { border-color: var(--red); }
.btn {
  font: 700 17px/1 var(--body);
  padding: 17px 22px; border-radius: 6px; border: 0; cursor: pointer;
  background: var(--sun); color: #0B1238; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .15s ease-out, box-shadow .2s ease-out;
  box-shadow: 0 2px 0 rgba(0,0,0,0.18);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -4px rgba(0,0,0,0.35); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,0.2); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn svg { width: 18px; height: 18px; }
.signup .fine { margin-top: 12px; font-size: 14px; color: var(--on-blue-muted); }
.signup .status { margin-top: 12px; font-size: 15px; font-weight: 600; min-height: 1.4em; }
.signup .status.err { color: #FFD6D2; }
.signup .status.ok { color: var(--sun); }

/* ---------- Card (shared by the ID card and the CourseAdvisor card) ---------- */
.card {
  background: var(--card); color: var(--card-ink);
  border-radius: 10px; box-shadow: var(--shadow);
  overflow: hidden; position: relative;
}
.card-head {
  padding: 18px 20px 16px; color: #fff; position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 12px;
}
.card-name { font: 900 44px/0.85 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.card-meta { font: 500 11px/1.3 var(--data); letter-spacing: 0.06em; text-transform: uppercase; text-align: right; opacity: .9; white-space: nowrap; }
.card-body { padding: 16px 20px 18px; }
.fields { display: grid; grid-template-columns: auto 1fr; margin: 0; border-top: 1px solid var(--card-rule); }
.fields dt, .fields dd { padding: 9px 0; border-bottom: 1px solid var(--card-rule); margin: 0; }
.fields dt { font: 500 11px/1.5 var(--data); letter-spacing: 0.08em; text-transform: uppercase; color: var(--card-muted); padding-right: 16px; padding-top: 11px; }
.fields dd { font-size: 15px; line-height: 1.45; font-weight: 500; }

/* ID card in the hero */
.idcard { position: relative; justify-self: center; width: min(100%, 440px); }
.idcard .card { transform: rotate(2.2deg); }
.idcard .card-head { background: var(--card-ink); }
.idcard .card-name { font-size: clamp(46px, 5vw, 58px); color: var(--sun); }
.idcard-role { font: 700 13px/1.4 var(--body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--card-muted); padding: 14px 20px 0; }
.idcard .card-body { display: grid; gap: 18px; }
.idcard-photo { margin: 0 4px; transform: rotate(-1.4deg); background: #fff; padding: 7px; box-shadow: 0 1px 2px rgba(11,18,56,.15), 0 6px 14px -6px rgba(11,18,56,.35); }
.idcard-photo img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; object-position: 50% 15%; }
.idcard-foot { padding: 0 20px 18px; font: 600 12px/1 var(--data); letter-spacing: 0.1em; color: var(--card-muted); }
.stamp {
  position: absolute; right: -30px; bottom: -62px;
  width: 116px; height: 116px; border-radius: 50%;
  border: 3px solid var(--red); color: var(--red);
  display: grid; place-items: center; text-align: center;
  font: 800 15px/1.05 var(--display); letter-spacing: 0.06em; text-transform: uppercase;
  transform: rotate(-14deg);
  background: radial-gradient(circle, transparent 58%, rgba(216,53,42,0.06) 59%);
  mix-blend-mode: multiply;
  animation: stamp .55s cubic-bezier(.16,1,.3,1) .35s both;
}
.stamp::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed var(--red); }
.stamp b { display: block; font-size: 22px; }
@keyframes stamp {
  from { transform: rotate(-30deg) scale(1.6); opacity: 0.3; filter: blur(2px); }
  to   { transform: rotate(-14deg) scale(1); opacity: 1; filter: blur(0); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .idcard { width: min(100%, 380px); margin-top: 8px; }
  .stamp { right: -4px; bottom: -30px; width: 96px; height: 96px; font-size: 13px; }
  .stamp b { font-size: 18px; }
}

/* ---------- Sections ---------- */
section { padding-block: var(--space); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head > * { min-width: 0; }
.sec-head h2 { font: 900 clamp(36px, 4.8vw, 68px)/0.9 var(--display); text-transform: uppercase; }
.sec-head p { color: var(--muted); max-width: 32em; font-size: 18px; }
@media (max-width: 760px) { .sec-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Flip card ---------- */
.card-slot { perspective: 1400px; }
.flip {
  --tilt: -1.6deg;
  display: grid; transform-style: preserve-3d;
  transform: rotate(var(--tilt)) rotateY(0deg);
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.flip.is-flipped { transform: rotate(calc(var(--tilt) * -1)) rotateY(180deg); }
.face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; }
.face.flipside { transform: rotateY(180deg); }
.face .card-body { flex: 1; display: flex; flex-direction: column; }
.pitch { font-size: 17px; line-height: 1.5; margin-bottom: 16px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; font: 600 12px/1 var(--data); letter-spacing: 0.06em; text-transform: uppercase; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.st-live { color: var(--green); }
.flip-btn { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; }
.flip-btn button {
  font: 700 14px/1 var(--body); color: var(--card-ink);
  background: transparent; border: 1.5px solid var(--card-rule); border-radius: 999px;
  padding: 10px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.flip-btn button svg { width: 16px; height: 16px; }
.flip-btn a { font-size: 14px; font-weight: 600; }
.flipside .card-head { background: transparent; color: var(--card-ink); border-bottom: 2px dashed var(--card-rule); padding-bottom: 14px; }
.flipside h3 { font: 500 11px/1.4 var(--data); letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.flipside h3.fix { color: var(--green); }
.flipside p { font-size: 15.5px; line-height: 1.55; }
.flipside .block + .block { margin-top: 18px; }

/* ---------- CourseAdvisor ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px 72px; align-items: start; }
.feature .card-slot { width: 100%; max-width: 440px; justify-self: center; }
.feature-side { display: grid; gap: 28px; min-width: 0; }
.working { margin: 0; max-width: 400px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.working img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.steps .n { font: 900 48px/0.9 var(--display); color: var(--ca-green); }
.steps h3 { font: 800 clamp(24px, 2.4vw, 30px)/1 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.steps p { color: var(--muted); max-width: 34em; }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature .card-slot { max-width: 400px; } }

/* CourseAdvisor's own brand: Inter wordmark, green on near-black */
.ca-wordmark { font-family: var(--brand); font-weight: 800; letter-spacing: -0.03em; text-transform: none; white-space: nowrap; color: var(--ink); }
.ca-wordmark span { color: var(--ca-green); }
.sec-head h2.ca-wordmark { font: 800 clamp(40px, 5.6vw, 78px)/1 var(--brand); letter-spacing: -0.035em; text-transform: none; }
.c-ca .card-head { background: #0E121B; align-items: center; padding-block: 20px; }
.c-ca .flipside .card-head { background: transparent; }
.ca-lockup { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.ca-icon { display: inline-flex; width: 44px; height: 44px; flex: none; }
.ca-icon svg { width: 100%; height: 100%; }
.ca-lockup .ca-wordmark { font-size: clamp(24px, 2.4vw, 30px); color: #FFFFFF; }
.ca-lockup .ca-wordmark span { color: #02E77B; }
.c-ca .flipside .ca-wordmark { font-size: 26px; color: #0E121B; }
.c-ca .flipside .ca-wordmark span { color: #008545; }
.c-ca .flip-btn a { color: #008545; }
.c-ca .flip-btn button:hover { background: rgba(1, 152, 81, 0.08); border-color: #019851; }
.c-ca ::selection { background: #02E77B; color: #0E121B; }
@media (max-width: 420px) { .ca-icon { width: 36px; height: 36px; } .ca-lockup .ca-wordmark { font-size: 22px; } }

/* ---------- The numbers ---------- */
.numbers { background: var(--blue-deep); color: var(--on-blue); }
.numbers .sec-head p { color: var(--on-blue-muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 2px solid rgba(255,255,255,0.22); }
.stats > div { padding: 26px 24px 30px 0; border-bottom: 1px solid rgba(255,255,255,0.16); display: flex; flex-direction: column; gap: 14px; }
.stats > div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,0.16); }
.stats dt { font: 500 12px/1.4 var(--data); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-blue-muted); }
.stats dd { margin: 0; }
.stats .stat { font: 900 clamp(64px, 8vw, 112px)/0.85 var(--display); color: var(--sun); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stats .what { font-size: 15px; color: var(--on-blue-muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div + div { padding-left: 0; border-left: 0; }
}

/* ---------- Build notes list ---------- */
.note-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.note-list li { border-bottom: 1px solid var(--rule); }
.note-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px 40px; align-items: baseline; padding: 26px 0 28px; text-decoration: none; }
.note-row h3 { font: 900 clamp(28px, 3vw, 40px)/0.95 var(--display); text-transform: uppercase; transition: color .2s; }
.note-row p { color: var(--muted); }
.note-row .meta { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--data); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.note-row .meta svg { width: 16px; height: 16px; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.note-row:hover h3 { color: var(--accent); }
.note-row:hover .meta svg { transform: translateX(4px); }
@media (max-width: 860px) { .note-row { grid-template-columns: minmax(0, 1fr); } }

/* Them and here, above the notes list */
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; margin-bottom: clamp(36px, 5vw, 56px); }
.versus h3 { font: 500 12px/1.4 var(--data); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.versus ul { list-style: none; margin: 0; padding: 0; }
.versus li { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.versus .yes h3 { color: var(--ink); border-bottom: 2px solid var(--ink); }
.versus .yes li { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .versus { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- Tools ---------- */
.dark-sec { background: var(--night); color: #E8ECF8; }
.dark-sec .sec-head p { color: #A8B1D8; }
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(232, 236, 248, 0.16); border: 1px solid rgba(232, 236, 248, 0.16); border-radius: 10px; overflow: hidden; }
.tool { background: var(--night); padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tool-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tool h3 { font: 900 32px/0.95 var(--display); text-transform: uppercase; color: var(--sun); }
.tool p { font-size: 15.5px; line-height: 1.55; color: #C9CFEA; flex: 1; }
.tool .st-live { color: #6FE3B6; }
.tool .st-early { color: var(--sun); }
.tool-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px dashed rgba(232, 236, 248, 0.22); font: 500 12px/1.4 var(--data); letter-spacing: .06em; text-transform: uppercase; }
.tool-meta span:first-child { color: #8F99C4; }
.tool-meta span:last-child { color: #E8ECF8; text-align: right; }
.tools-more { margin-top: 22px; color: #A8B1D8; font-size: 16px; }
.tools-more a { color: var(--sun); font-weight: 600; }
@media (max-width: 960px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tools { grid-template-columns: minmax(0, 1fr); } }

/* ---------- How I work ---------- */
.beliefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.belief { padding-block: 28px 32px; border-top: 2px solid var(--ink); }
.belief h3 { font: 900 clamp(30px, 3.2vw, 40px)/0.95 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.belief p { color: var(--muted); max-width: 30em; }
@media (max-width: 760px) { .beliefs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- About and Why ---------- */
.about, .why { border-top: 1px solid var(--rule); }
.about-grid, .why-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px 72px; align-items: start; }
.about h2, .why h2 { font: 900 clamp(44px, 6vw, 76px)/0.9 var(--display); text-transform: uppercase; }
.about .copy, .why-copy { display: grid; gap: 18px; font-size: 18px; max-width: 36em; }
.about .copy p:first-child { font-size: 22px; line-height: 1.45; font-weight: 500; }
.why-copy .lead { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.4; font-weight: 500; }
.facts { margin: 40px 0 0; border-top: 1px solid var(--rule); }
.fact { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.fact dt { font: 500 12px/1.6 var(--data); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.fact dd { margin: 0; font-weight: 500; }
@media (max-width: 480px) { .fact { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

.about-photos { position: relative; max-width: 460px; }
.portrait { margin: 32px 0 0; max-width: 400px; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 502 / 463; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }
.portrait figcaption { margin-top: 10px; font: 500 12px/1.4 var(--data); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Photo prints */
.why-photos { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; max-width: 460px; }
.why-photo { margin: 0; background: #fff; padding: 9px 9px 12px; box-shadow: 0 1px 2px rgba(11,18,56,.15), 0 18px 36px -14px rgba(11,18,56,.45); }
.why-photo img { display: block; width: 100%; height: auto; object-fit: cover; }
.why-photo figcaption { margin-top: 9px; font: 500 11px/1.4 var(--data); letter-spacing: .08em; text-transform: uppercase; color: #4A5378; text-align: center; }
.why-photo.big { grid-column: 1 / -1; transform: rotate(-1.6deg); }
.why-photo.big img { aspect-ratio: 960 / 722; }
.why-photo.small img, .why-photo.mila img { aspect-ratio: 4 / 5; }
.why-photo.left { transform: rotate(-2.4deg); }
.why-photo.right { transform: rotate(2deg); margin-top: 14px; }
.why-photo.mila { width: min(100%, 220px); transform: rotate(2.6deg); justify-self: start; margin-top: 10px; }
.why-photo.beach { position: absolute; right: -10px; bottom: -40px; width: 46%; transform: rotate(4deg); }
.why-photo.beach img { aspect-ratio: 376 / 335; }
@media (max-width: 860px) {
  .about-grid, .why-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photos { max-width: 420px; margin-bottom: 40px; }
  .why-photo.beach { right: 0; }
}

/* ---------- Also running ---------- */
.side { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--rule); }
.side .sec-head h2 { font-size: clamp(36px, 4.4vw, 54px); }
.side-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.side-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) 110px minmax(0, 0.9fr); gap: 8px 28px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.side-row .nm { font: 800 24px/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; min-width: 0; }
.side-row .ln { color: var(--muted); font-size: 16px; }
.side-row a { font-size: 14px; font-weight: 600; color: var(--link); justify-self: end; overflow-wrap: anywhere; }
.tag { justify-self: start; font: 600 11px/1 var(--data); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 9px; border-radius: 4px; border: 1.5px solid var(--ink); }
.tag.biz { background: var(--ink); color: var(--ground); }
.tag.exp { border-style: dashed; border-color: var(--muted); color: var(--muted); }
@media (max-width: 760px) {
  .side-row { grid-template-columns: minmax(0, 1fr) auto; }
  .side-row .ln { grid-column: 1 / -1; grid-row: 2; }
  .side-row .tag { grid-column: 2; grid-row: 1; justify-self: end; }
  .side-row a { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Closing kit sign up ---------- */
.kit { background: var(--blue); color: var(--on-blue); position: relative; overflow: hidden; }
.kit .inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.kit h2 { font: 900 clamp(56px, 9vw, 120px)/0.86 var(--display); text-transform: uppercase; }
.kit h2 span { color: var(--sun); }
.kit .signup { margin-top: 0; }
.kit .lede { color: var(--on-blue-muted); font-size: 18px; margin-bottom: 22px; max-width: 30em; }
.kit-side { display: grid; gap: 28px; justify-items: start; }
.kit-cover { width: min(100%, 260px); height: auto; aspect-ratio: 440 / 622; border-radius: 6px; transform: rotate(-3deg); box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 2px 4px rgba(0,0,0,.25), 0 24px 40px -14px rgba(0,0,0,.55); }
@media (max-width: 860px) { .kit .inner { grid-template-columns: minmax(0, 1fr); } .kit-cover { width: 200px; } }

/* ---------- Footer ---------- */
footer { padding-block: 40px 48px; font-size: 15px; color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
.email-copy { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; }
.email-copy a { font: 500 15px/1 var(--data); color: var(--ink); }
.email-copy button {
  font: 600 13px/1 var(--body); color: var(--ink); background: transparent; cursor: pointer;
  border: 1.5px solid var(--rule); border-radius: 999px; padding: 7px 12px;
}
.email-copy button:hover { border-color: var(--accent); }

/* ---------- Note and text pages ---------- */
.reader { padding-block: clamp(28px, 5vw, 56px) clamp(64px, 8vw, 110px); }
.note { max-width: 720px; margin-inline: auto; }
.note-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--accent); }
.note-back:hover { text-decoration: underline; }
.note-back svg { width: 18px; height: 18px; }
.note > header { margin: 36px 0 40px; padding-bottom: 32px; border-bottom: 2px solid var(--ink); }
.note-by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 500 12px/1.4 var(--data); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.note-by > :nth-child(n+3)::before { content: "\00B7"; margin-right: 12px; }
.note-by .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--ground), 0 0 0 3px var(--rule); }
.note h1 { font: 900 clamp(44px, 7vw, 84px)/0.9 var(--display); text-transform: uppercase; }
.note-dek { margin-top: 20px; font-size: clamp(19px, 2vw, 22px); line-height: 1.45; color: var(--muted); }
.note-body { font-size: 19px; line-height: 1.65; display: grid; gap: 20px; max-width: 66ch; }
.note-body h2 { font: 800 clamp(28px, 3vw, 36px)/1 var(--display); text-transform: uppercase; margin-top: 22px; }
.note-body strong { font-weight: 700; }
.note-body a { color: var(--link); }
.note-body .ask { margin-top: 12px; padding: 20px 22px; background: var(--card); color: var(--card-ink); border-radius: 8px; font-weight: 500; }
.note-cta { margin-top: 56px; padding: 32px clamp(20px, 4vw, 36px); background: var(--blue); color: var(--on-blue); border-radius: 12px; scroll-margin-top: 24px; }
.note-cta h2 { font: 900 clamp(34px, 4vw, 48px)/0.9 var(--display); text-transform: uppercase; color: var(--sun); }
.note-cta > p { color: var(--on-blue-muted); margin: 10px 0 20px; }
.note-cta .signup { margin-top: 0; }
.note-more { margin-top: 40px; display: grid; gap: 12px; border-top: 1px solid var(--rule); padding-top: 20px; }
.note-more span { font: 500 12px/1.4 var(--data); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.note-more a { font: 800 24px/1.05 var(--display); text-transform: uppercase; text-decoration: none; }
.note-more a:hover { color: var(--accent); }

/* ---------- Test kit popup ---------- */
.pop { position: fixed; z-index: 60; right: max(20px, calc(env(safe-area-inset-right, 0px) + 20px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); width: min(420px, calc(100vw - 32px)); background: #0B1238; color: #E8ECF8; border: 1px solid rgba(232,236,248,.14); border-radius: 14px; padding: 22px 22px 18px; box-shadow: 0 2px 6px rgba(0,0,0,.3), 0 30px 60px -20px rgba(0,0,0,.6); opacity: 0; transform: translateY(18px); transition: opacity .35s ease-out, transform .45s cubic-bezier(.16,1,.3,1); }
.pop.is-open { opacity: 1; transform: none; }
.pop-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #A8B1D8; cursor: pointer; }
.pop-x:hover { background: rgba(232,236,248,.08); color: #fff; }
.pop-x svg { width: 18px; height: 18px; }
.pop-in { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; padding-right: 26px; }
.pop-cover { width: 64px; height: auto; aspect-ratio: 440 / 622; border-radius: 4px; transform: rotate(-4deg); box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 8px 16px -6px rgba(0,0,0,.6); }
.pop h2 { font: 900 30px/0.92 var(--display); text-transform: uppercase; color: var(--sun); }
.pop-in p { margin-top: 8px; font-size: 15px; line-height: 1.45; color: #C9CFEA; }
.pop-in b { color: #fff; }
.pop .signup { margin-top: 16px; max-width: none; }
.pop-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.pop-row .btn { grid-column: 1 / -1; justify-content: center; }
.pop .signup input { padding: 14px 14px; font-size: 16px; }
.pop .fine { margin-top: 10px; font-size: 13px; color: #8F99C4; }
.pop .status { margin-top: 6px; font-size: 14px; min-height: 0; }
@media (max-width: 480px) {
  .pop { right: 12px; left: 12px; width: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }
  .pop-row { grid-template-columns: minmax(0, 1fr); }
  .pop-cover { width: 52px; }
  .pop-in { grid-template-columns: 52px minmax(0, 1fr); }
}

/* ---------- Standalone pages: thanks and 404 ---------- */
.solo { background: var(--blue); color: #fff; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.solo-card { background: var(--card); color: var(--card-ink); max-width: 560px; width: 100%; border-radius: 10px; padding: 40px clamp(22px, 6vw, 36px) 32px; box-shadow: 0 1px 2px rgba(11,18,56,.2), 0 24px 48px -12px rgba(11,18,56,.45); }
.solo-tag { font: 500 13px/1.4 var(--data); letter-spacing: .08em; text-transform: uppercase; color: var(--card-muted); margin-bottom: 18px; }
.solo-card h1 { font: 900 clamp(40px, 8vw, 60px)/0.95 var(--display); text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 18px; }
.solo-card p { font-size: 18px; line-height: 1.55; margin-bottom: 16px; }
.solo-card .btn { margin-top: 8px; }
.solo-back { display: block; margin-top: 24px; color: var(--card-muted); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flip, .pop, .btn, .note-row .meta svg { transition: none; }
  .stamp { animation: none; }
}
