:root {
  --paper: #fafafa; --surface: #ffffff; --ink: #1c1f1d; --muted: #62665f;
  --blue: #5c1f22; --wine: #5c1f22; --cta: #003912; --cta-deep: #002a0d; --green-deep: #1f5a36;
  --line: rgba(31,32,30,.12);
  --serif: 'Geist', system-ui, sans-serif; --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { position: relative; width: min(100% - 40px, 680px); margin: 0 auto; }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.wordmark { font: 700 28px/1 var(--serif); letter-spacing: 0; }
.brand-note { color: var(--muted); font-size: 15px; letter-spacing: .02em; line-height: 1.3; }
.site-links { display: none; gap: 26px; font-size: 16px; }
.site-links a { text-decoration: none; color: var(--muted); }
.site-links a:hover, .site-links a[aria-current] { color: var(--ink); }
@media (min-width: 768px) { .site-links { display: flex; } }

.eyebrow { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 56px 0 14px; }
h1 { font: 700 36px/1.12 var(--serif); letter-spacing: 0; }
h2 { font: 700 28px/1.18 var(--serif); letter-spacing: 0; margin: 64px 0 16px; }
.byline { color: var(--muted); font-size: 16px; margin-top: 10px; }
p + p { margin-top: 16px; }
.lead { font-size: 20px; line-height: 1.6; margin-top: 18px; }

.steps { list-style: none; margin-top: 32px; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps .num { font: 400 20px/1.3 var(--serif); color: var(--green-deep); grid-row: span 2; }
.steps strong { font: 500 20px/1.3 var(--serif); }
.steps p { color: var(--muted); }
.closing { margin-top: 24px; font: 400 20px/1.5 var(--serif); }

.contrast { margin-top: 20px; padding-left: 18px; border-left: 2px solid var(--line); color: var(--muted); }
.contrast p + p { margin-top: 12px; }
.kay-list { margin-top: 20px; padding-left: 18px; border-left: 2px solid var(--cta); }
.kay-list p + p { margin-top: 12px; }

.note p { font-size: 17px; }
.signature { margin-top: 28px; font: italic 400 20px/1.3 var(--sans); }

.cta-block { margin: 72px 0 32px; padding: 32px 0; border-top: 1px solid var(--line); text-align: center; }
.cta-block p { color: var(--muted); margin-bottom: 18px; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 15px 28px; border-radius: 12px; background: var(--cta); color: #fff; font: 700 18px/1 var(--sans); text-decoration: none; }
.primary:hover { background: var(--cta-deep); }
.primary:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.foot { padding: 24px 0 16px; color: var(--muted); font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.foot a { text-decoration: none; }

@media (min-width: 768px) {
  h1 { font-size: 44px; }
  .eyebrow { margin-top: 80px; }
}

/* Meet Kay */
.kay { display: flex; align-items: center; gap: 22px; margin: 8px 0 22px; }
.kay-portrait { position: relative; width: 132px; height: 132px; flex-shrink: 0; border: 0; padding: 0; border-radius: 50%; overflow: hidden; cursor: pointer; background: var(--surface); box-shadow: 0 10px 28px rgba(20,24,22,.14); }
.kay-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.kay-play { position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--cta); display: grid; place-items: center; }
.kay-play svg { width: 16px; height: 16px; fill: #fff; margin-left: 2px; }
.kay-portrait.playing .kay-play { background: var(--blue); }
.kay figcaption { color: var(--muted); font-size: 13px; }
.kay-transcript { display: block; margin-top: 4px; color: var(--ink); font-style: italic; font-family: var(--sans); font-size: 16px; }

/* Founder's note: reads like a handwritten letter, stays easy to read */
.author { display: flex; align-items: center; gap: 16px; margin: 8px 0 28px; }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; }
.author-name { font: 500 16px/1.3 var(--sans); }
.author-role { color: var(--muted); font-size: 13px; margin-top: 2px !important; }
.letter { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 32px 26px 28px; box-shadow: 0 1px 0 rgba(20,24,22,.04), 0 18px 40px rgba(20,24,22,.08);
  background-image: repeating-linear-gradient(transparent 0 33px, rgba(46,74,104,.07) 33px 34px); background-position: 0 30px; }
.letter p { font: 400 19px/34px 'Kalam', var(--sans); color: #2f2419; }
.letter p + p { margin-top: 34px; }
.letter .letter-open { font-weight: 700; }
.letter .signature { font: 600 34px/1 'Caveat', cursive; color: var(--blue); margin-top: 30px; }
@media (min-width: 768px) {
  .letter { padding: 44px 48px 40px; }
  .letter p { font-size: 20px; }
  .author img { width: 84px; height: 84px; }
}

.section-eyebrow { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: -6px 0 0; }

.mission-head { margin-bottom: 28px; }
.letter .letter-close { font-weight: 700; }

/* How the gap closes: numbered circles joined by a line (vertical on phones, horizontal on wide screens) */
.framework { position: relative; margin-top: 32px; display: grid; gap: 28px; }
.framework::before { content: ""; position: absolute; left: 22px; top: 22px; bottom: 22px; width: 1px; background: linear-gradient(180deg, var(--line), rgba(0,57,18,.35), var(--line)); }
.framework-step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.framework-num { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid rgba(0,57,18,.35); display: grid; place-items: center; font: 500 13px/1 var(--sans); letter-spacing: .05em; color: var(--green-deep); }
.framework-label { font: 600 20px/1.3 var(--serif); margin: 9px 0 6px; }
.framework-body { color: var(--muted); }
@media (min-width: 900px) {
  .framework { grid-template-columns: repeat(4, 1fr); gap: 28px; width: min(960px, calc(100vw - 80px)); margin-left: calc(50% - min(960px, calc(100vw - 80px)) / 2); }
  .framework::before { left: 12%; right: 12%; top: 22px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,57,18,.35), rgba(0,57,18,.35), transparent); }
  .framework-step { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 0; }
  .framework-label { margin-top: 18px; }
  .framework-body { max-width: 24ch; }
}

/* Friend / chatbot points get muted dots; Kay's points get green checks */
.why-list { list-style: none; margin-top: 14px; }
.why-list li { position: relative; padding: 6px 0 6px 24px; }
.why-list li::before { content: ""; position: absolute; left: 3px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .55; }
.why-list.checks li { padding-left: 36px; }
.why-list.checks li::before { content: "✓"; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--green-deep); background: rgba(0,57,18,.12); color: var(--green-deep); display: grid; place-items: center; font-size: 12px; font-weight: 600; line-height: 1; opacity: 1; }
.foot-mission { text-align: center; font: italic 400 20px/1.4 var(--sans); color: var(--green-deep); margin-top: 8px; }

/* ===== How it works: card layout (one consistent width; nothing breaks out) ===== */
.page-wide .wrap { width: min(100% - 32px, 1000px); }
.hiw { display: grid; gap: 28px; margin-top: 32px; }
.hiw h1 { margin-top: 0; }
.hiw h2 { margin: 0 0 12px; }
.hiw .eyebrow { margin: 0 0 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; box-shadow: 0 1px 0 rgba(20,24,22,.03), 0 14px 34px rgba(20,24,22,.06); }
.block { padding: 8px 0; }
.block-head { margin-bottom: 20px; }
.block-head .section-eyebrow { margin: 0 0 8px; }
.block-head .lead { margin-top: 4px; }

/* Meet Kay hero card */
.kay-card { display: grid; gap: 18px; align-items: center; }
.kay-card .kay { margin: 0; flex-direction: column; text-align: center; gap: 10px; }
.kay-card .lead { margin-top: 6px; }
.kay-card-text > p:last-child { margin-top: 14px; }

/* Steps: four cards joined by a line through the circles, contained within the page width */
.hiw .framework { width: auto; margin: 0; display: grid; gap: 14px; position: relative; }
.hiw .framework::before { content: ""; position: absolute; left: 44px; top: 30px; bottom: 30px; width: 1px; height: auto; right: auto;
  background: rgba(0,57,18,.35); }
.hiw .framework-step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; text-align: left; justify-items: stretch; }
.hiw .framework-label { margin: 8px 0 4px; }
.hiw .framework-body { max-width: none; }
.hiw .closing { margin-top: 18px; font-style: italic; color: var(--muted); font-size: 20px; }

/* Why now: soft green callout */
.card-accent { background: rgba(0,57,18,.08); border-color: rgba(0,57,18,.22); box-shadow: none; }
.card-accent p { font-size: 17px; }

/* Friend/chatbot vs Kay */
.compare { display: grid; gap: 16px; }
.compare-title { font: 600 20px/1.3 var(--serif); margin-bottom: 8px; }
.compare-card > p:not(.compare-title) { color: var(--muted); }
.compare-card .why-list { margin-top: 10px; }
.compare-card:not(.compare-kay) .why-list li { color: var(--muted); }
.compare-kay { border: 1.5px solid rgba(0,57,18,.45); }

@media (min-width: 768px) {
  .card { padding: 34px 36px; }
  .kay-card { grid-template-columns: 200px 1fr; gap: 36px; }
  .compare { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 900px) {
  .hiw .framework { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .hiw .framework::before { left: 12%; right: 12%; top: 38px; bottom: auto; width: auto; height: 1px; }
  .hiw .framework-step { grid-template-columns: 1fr; justify-items: center; align-content: start; text-align: center; padding: 16px 14px 20px; }
  .hiw .framework-label { margin-top: 14px; }
}

/* Header: full-width light brown band */
.masthead { position: relative; background: #5c1f22; box-shadow: 0 0 0 100vmax #5c1f22; clip-path: inset(0 -100vmax -1px); border-bottom: 0; }

    /* Header: identical position on every page, independent of page content width */
    .masthead { box-sizing: border-box; width: min(100vw - 48px, 1200px); margin-left: calc(50% - min(100vw - 48px, 1200px) / 2); margin-right: 0; }
    @media (min-width: 1024px) { .masthead { width: min(100vw - 96px, 1200px); margin-left: calc(50% - min(100vw - 96px, 1200px) / 2); } }

/* The same hand-drawn vine on every page, as a strip after the last content so it never sits behind text */
html.bg-vine { background: var(--paper); }
html.bg-vine body { background: transparent; }
html.bg-vine::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") repeat; opacity: .29; }
html.bg-vine body::after { content: ''; display: block; height: min(12.9vw, 116px); margin-top: 8px; background: url('/bg-vine.png') center bottom / min(100%, 900px) auto no-repeat; opacity: .75; pointer-events: none; }

.masthead .brand-note, .masthead .site-links a { color: rgba(255,255,255,.75); } .masthead .site-links a:hover, .masthead .site-links a[aria-current] { color: #fff; }

/* Elseplay-inspired: tight Geist headlines, highlighter phrases, pill buttons with an arrow in a circle */
h1, .payoff { letter-spacing: -.04em; }
h2 { letter-spacing: -.03em; }
h3 { letter-spacing: -.02em; }
.wordmark { letter-spacing: -.045em; }
.hl { background: #d4e9d9; color: var(--ink); padding: 0 .2em; margin: 0 -.05em; border-radius: .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.primary { border-radius: 999px; padding: 8px 8px 8px 26px; gap: 14px; }
.primary > span[aria-hidden] { width: 32px; height: 32px; border-radius: 50%; background: #d4e9d9; color: #003912; display: grid; place-items: center; }

/* Colour roles: charcoal headlines; oxblood for surfaces (header, one dark block per page); dark green for the user's actions and progress */
h1, h2, h3, .payoff { color: var(--ink); }
.masthead .wordmark { color: #fff; }

/* Solid dark block (wine) on How it works */
.card-accent { background: var(--wine); border-color: var(--wine); color: #fff; }
.card-accent h2, .card-accent h3, .card-accent p { color: #fff; }
.card-accent .hl { background: none; color: #fff; font-weight: 700; padding: 0; margin: 0; }

/* Founder's note: a clean, typeset letter; only the signature is handwritten */
.founder { margin-top: 0; }
.founder .author { margin: 8px 0 24px; }
.founder .letter { background: var(--surface); background-image: none; border: 1px solid var(--line); border-radius: 18px; padding: 32px 24px 30px; box-shadow: 0 1px 0 rgba(20,24,22,.03), 0 14px 34px rgba(20,24,22,.06); }
.founder h1.eyebrow { font: 600 11px/1.4 var(--sans); letter-spacing: .16em; color: var(--muted); }
.founder .letter-open { font: 600 18px/1.6 var(--sans); color: var(--ink); margin-bottom: 18px; }
.founder .letter-body p { font: 400 17px/1.75 var(--sans); color: var(--ink); }
.founder .letter-body p + p { margin-top: 18px; }
.founder .letter-body .letter-close { font-weight: 600; }
.founder .sign-off { margin-top: 28px; }
.founder .signature { font: 600 38px/1 'Caveat', cursive; color: var(--wine); margin: 0; }
@media (min-width: 900px) {
  .founder .letter { padding: 48px 52px 44px; }
}

/* Phone only: smaller header text (matching the home page) and the How it works top card order */
@media (max-width: 767px) {
  .wordmark { font-size: 26px; }
  .brand-note { font-size: 14px; }
  /* Meet Kay and his title sit above his photo, the paragraph below it */
  .kay-card { gap: 0; }
  .kay-card-text { display: contents; }
  .kay-card h1 { order: -2; }
  .kay-card .lead { order: -1; margin: 4px 0 18px; }
  .kay-card-text > p:not(.lead) { order: 1; margin-top: 18px; }
  /* The friend and chatbot comparison reads as plain text, not a card */
  .compare-card:not(.compare-kay) { background: none; border: 0; box-shadow: none; padding: 0; }
}

/* Phone menu: a menu icon in the header that opens a small panel with the two inner pages */
.menu-toggle { display: none; }
.menu-panel[hidden] { display: none !important; }
@media (max-width: 767px) {
  .menu-toggle { display: grid; align-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -10px; padding: 0 10px; background: none; border: 0; cursor: pointer; }
  .menu-toggle[hidden] { display: none; }
  .menu-toggle span { display: block; height: 2px; border-radius: 2px; background: #fff; }
  .menu-panel { position: absolute; top: 84px; left: 0; right: 0; z-index: 30; display: grid; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(20,24,22,.12); overflow: hidden; }
  .menu-panel a { padding: 15px 18px; font-size: 17px; color: var(--ink); text-decoration: none; }
  .menu-panel a + a { border-top: 1px solid var(--line); }
  .menu-panel a[aria-current] { font-weight: 600; }
}
@media (min-width: 768px) { .menu-panel { display: none !important; } }

/* Phone-only copy: some passages have a shorter phone version; laptop keeps the original */
.on-phone { display: none; }
@media (max-width: 767px) {
  .on-laptop { display: none !important; }
  .on-phone { display: revert; }
  .compare-kay .compare-title + .on-phone { margin-bottom: 10px; }
}

/* How it works: the four steps are white cards with a dark green border */
.hiw .framework-step { background: var(--surface); border: 1.5px solid #003912; }
