/* Where We Left Off: one stylesheet for every page. Phone first. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }

:root {
  --green: #17332D;
  --green-2: #1E423A;
  --cream: #F1EBDD;
  --cream-2: #D9D3C4;
  --muted: #B9B3A4;
  --yellow: #F6CE4B;
  --line: rgba(241, 235, 221, 0.14);
  --line-2: rgba(241, 235, 221, 0.35);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--green); color: var(--cream); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--yellow); }
a:hover { color: var(--cream); }
img, svg { display: inline-block; vertical-align: middle; }
[hidden] { display: none !important; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
::placeholder { color: #6B7A72; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.pad-top { padding-top: 32px; }
.section { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.stack > * + * { margin-top: 12px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 24px; max-width: 1240px; margin: 0 auto; }
.wordmark { display: inline-flex; align-items: baseline; gap: 3px; color: var(--cream); text-decoration: none; font-family: var(--display); line-height: 1; }
.wordmark:hover { color: var(--cream); }
.wm-text { font-size: 26px; font-weight: 700; letter-spacing: -0.045em; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 500; background: none; border: 0; cursor: pointer; padding: 0; }

/* ---------- Type ---------- */
.display { margin: 0 0 20px; font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
.display-m { margin: 0 0 16px; font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.02; letter-spacing: -0.04em; }
.h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: -0.03em; }
.h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; letter-spacing: -0.02em; }
.y { color: var(--yellow); }
.trail-dots { width: 48px; height: 14px; margin-left: 4px; vertical-align: baseline; }
.lead { margin: 0 0 24px; font-size: 18px; line-height: 1.5; color: var(--cream-2); }
.muted { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0; }
.eyebrow { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.eyebrow.y { color: var(--yellow); }
.label { display: block; margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.label-soft { display: block; margin: 0 0 8px; font-size: 15px; color: var(--cream-2); font-weight: 400; }
.label-soft span { color: var(--muted); }
.q { font-family: var(--display); font-size: 19px; line-height: 1.3; margin: 0; }

/* ---------- Form controls ---------- */
.input, .textarea { width: 100%; border: 0; border-radius: 10px; background: var(--cream); color: var(--green); font-family: var(--body); }
.input { height: 58px; padding: 0 18px; font-size: 18px; }
.input-big { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.textarea { padding: 14px 16px; font-size: 16px; line-height: 1.45; resize: vertical; }
.field { margin-bottom: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 10px; border: 0; font-family: var(--body); font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-block { width: 100%; }
.btn-primary { background: var(--yellow); color: var(--green); }
.btn-primary:hover { color: var(--green); filter: brightness(1.04); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--cream); border: 1.5px solid var(--line-2); }
.btn-secondary:hover { color: var(--cream); border-color: var(--cream); }
.btn-small { min-height: 44px; font-size: 15px; padding: 0 16px; }
.btn-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.btn-row .btn { min-height: 50px; font-size: 15px; padding: 0 8px; gap: 7px; }
.link-btn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--yellow); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center; }
.link-quiet { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: inherit; }
.error { color: #FFB4A6; font-size: 14px; margin: 8px 0 0; }
.input[aria-invalid="true"] { box-shadow: 0 0 0 3px #FFB4A6; }

/* ---------- Cards, quotes ---------- */
.card { background: var(--green-2); border-radius: 14px; padding: 22px 20px; }
.quote { margin: 0; background: var(--cream); color: var(--green); border-radius: 4px 16px 16px 16px; padding: 16px 18px; font-size: 17px; line-height: 1.5; white-space: pre-wrap; }
.quote-cap { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.qa { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.qa li { display: flex; flex-direction: column; gap: 4px; }
.qa .tag { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); font-weight: 600; }
.qa .q { font-weight: 400; font-size: 20px; }
.facts { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; }
.steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 14px; font-size: 16px; line-height: 1.45; }
.steps .n { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--yellow); width: 18px; flex: none; }
.timeline { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.timeline li { display: flex; gap: 14px; font-size: 16px; line-height: 1.45; }
.timeline .when { flex: none; width: 76px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); font-weight: 600; line-height: 1.6; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 16px; background: var(--green-2); font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.badge { flex: none; padding: 4px 10px; border-radius: 12px; background: var(--green-2); font-size: 12px; font-weight: 600; color: var(--yellow); }

/* ---------- Session outline ---------- */
.outline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.outline li { display: flex; gap: 12px; }
.outline .n { flex: none; width: 16px; font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--yellow); }
.outline .t { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.outline .d { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* ---------- Accordion and choice rows ---------- */
.rows { border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row-btn { width: 100%; min-height: 60px; padding: 12px 0; display: flex; align-items: center; gap: 14px; background: none; border: 0; color: var(--cream); text-align: left; cursor: pointer; }
.row-title { display: block; font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: -0.02em; }
.row-sub { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.row-main { flex: 1; min-width: 0; }
.row-panel { padding: 0 0 22px 36px; }
.row-panel.flush { padding-left: 0; }
.row-panel .q { margin-top: 14px; font-size: 17px; }
.row-panel .muted { margin-top: 8px; font-size: 13px; }
.radio, .check { flex: none; width: 22px; height: 22px; border: 2px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; }
.radio { border-radius: 50%; }
.radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.check { border-radius: 6px; }
[aria-pressed="true"] .radio, [aria-pressed="true"] .check { border-color: var(--yellow); }
[aria-pressed="true"] .radio::after { background: var(--yellow); }
[aria-pressed="true"] .check { background: var(--yellow); }
[aria-pressed="true"] .check::after { content: ""; width: 10px; height: 6px; border-left: 2.4px solid var(--green); border-bottom: 2.4px solid var(--green); transform: translateY(-1px) rotate(-45deg); }
.plus { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--cream); transform: translate(-50%, -50%); border-radius: 1px; }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
[aria-expanded="true"] .plus { background: var(--yellow); border-color: var(--yellow); }
[aria-expanded="true"] .plus::before { background: var(--green); }
[aria-expanded="true"] .plus::after { display: none; }
.chev { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform 0.15s; }
[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--yellow); }

/* ---------- Day picker ---------- */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.day button { width: 100%; height: 48px; padding: 0; border-radius: 10px; border: 1.5px solid var(--line-2); background: transparent; color: var(--cream); font-size: 14px; font-weight: 600; cursor: pointer; }
.day button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--green); }
.day .dot { width: 8px; height: 8px; border-radius: 50%; }
.day .dot.on { background: var(--yellow); }

/* ---------- Landing ---------- */
.hero { padding: 40px 0 48px; }
.story { background-image: radial-gradient(circle, rgba(241, 235, 221, 0.10) 1.6px, transparent 2.2px); background-size: 22px 22px; background-position: 11px 11px; }
.story-inner { background: var(--green); box-shadow: 0 0 0 16px var(--green); }
.price-line { margin: 0; font-size: 15px; font-weight: 600; }
.pick-subject { margin-top: 18px; }

/* Friend's invitation page: narrow column like .wrap, except the invitation itself, which goes two-column on wide screens. */
#friend > section { max-width: 512px; margin-left: auto; margin-right: auto; }
.friend-title { font-size: 40px; }

/* ---------- Footer and consent ---------- */
.site-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; padding: 40px 24px 120px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 48px; }
.site-foot a { color: var(--muted); }
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 520px; margin: 0 auto; background: var(--cream); color: var(--green); border-radius: 14px; padding: 16px 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
.consent p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.consent a { color: var(--green); }
.consent-actions { display: flex; gap: 8px; }
.consent .btn-secondary { color: var(--green); border-color: rgba(23, 51, 45, 0.4); }

/* ---------- Prose (privacy page) ---------- */
.prose h2 { font-family: var(--display); font-size: 22px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--cream-2); }

@media (max-width: 899px) {
  .split > * + * { margin-top: 48px; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 900px) {
  .display { font-size: 72px; line-height: 0.98; letter-spacing: -0.045em; }
  .display-m { font-size: 52px; }
  .wm-text { font-size: 30px; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .split-center { align-items: center; }
  .hero { padding: 64px 0 80px; }
  .hero .card { padding: 36px 36px 32px; }
  .wide-form { max-width: 520px; }
  .row-panel .outline-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
  #friend > .friend-split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(4, auto) 1fr; gap: 0 72px; align-items: start; padding-top: 56px; }
  .friend-split > * { grid-column: 1; }
  .friend-split > .card { grid-column: 2; grid-row: 1 / -1; align-self: start; } /* the 1fr row soaks up the card's extra height, so the left column keeps its own spacing */
  .friend-split .friend-title { font-size: 54px; }
  .friend-split .quote { font-size: 18px; padding: 20px 22px; }
  /* Subjects on the left, "How it works" as a card on the right, in the same two columns as the hero. */
  .below { max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } /* no align-items: the right column must stretch for the sticky card */
  .how-box { position: sticky; top: 24px; background: var(--green-2); border-radius: 14px; padding: 28px 28px 26px; }
  .how-box .steps { margin-bottom: 22px; }
  .how-box .steps li { font-size: 17px; }
  .how-box .price-line { padding-top: 18px; border-top: 1px solid var(--line); }
}

/* New landing hero: the friend's name is typed into the headline. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scene { margin: 0; font-family: var(--display); font-weight: 700; font-size: 39px; line-height: 1.06; letter-spacing: -0.04em; }
.scene > span { display: block; }
.scene-last { white-space: nowrap; }
.name-box { position: relative; display: inline-block; vertical-align: baseline; margin-left: 2px; }
.name-input { width: 248px; max-width: calc(100vw - 110px); border: 0; background: var(--cream); color: var(--green); padding: 2px 12px 4px 15px; margin: 0; font: inherit; letter-spacing: -0.02em; line-height: 1.1; border-radius: 10px; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.name-input::placeholder { color: #A3A69B; font-weight: 400; opacity: 1; }
.name-input:focus { outline: 3px solid var(--yellow, #F6CE4B); outline-offset: 2px; }
.fake-caret { display: none; position: absolute; left: 9px; top: 18%; height: 64%; width: 3px; background: var(--green); pointer-events: none; animation: caret-blink 1s steps(1) infinite; }
.name-input:placeholder-shown:not(:focus) + .fake-caret { display: block; }
@keyframes caret-blink { 50% { opacity: 0; } }
.scene-lead { margin: 22px 0 0; }
.scene-form .error { margin: 18px 0 -10px; font-weight: 600; color: var(--yellow, #F6CE4B); }
.scene-btn { margin-top: 26px; }
@media (min-width: 600px) {
  .scene { font-size: 52px; line-height: 1.05; letter-spacing: -0.045em; }
  .scene > span { white-space: nowrap; }
  .name-input { width: 6.7em; max-width: none; padding: 2px 14px 6px 20px; border-radius: 12px; }
  .fake-caret { left: 11px; width: 4px; }
  .scene-lead { font-size: 20px; max-width: 30em; }
  .scene-btn { width: auto; align-self: flex-start; padding: 0 28px; }
  .scene-form { display: flex; flex-direction: column; }
}
@media (min-width: 900px) {
  .scene { font-size: clamp(44px, 3.9vw, 56px); }
  .scene-form { padding-top: 28px; }
}
