/* Movra site: the Training Log.
   White ruled paper, Coach in blue pen, Nana in green, Kona orange for today and what changed.
   To try the original Hawaiian palette, set <html data-palette="hawaii">.
   Motion snippets live in transitions.css, loaded beside this file. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 500 800; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
    --paper: #FDFDFB;
    --sand: #F5F3EC;
    --grid-line: #E3E9F1;
    --rule: #BCCADC;
    --ink: #141414;
    --mute: #3D4652;      /* 8.9:1 on paper, 8.3:1 on sand */
    --coach: #173A6B;
    --coach-tint: #E4ECF6;
    --nana: #1E6B45;
    --nana-tint: #E3F1E6;
    --kona: #FF6A2B;      /* fills and highlighter only, never text */
    --kona-wash: rgba(255, 106, 43, .30);
    --kona-ink: #A83A0E;  /* orange as text */
    --card: #FFFFFF;

    --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
    --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    --hand: "Caveat", "Segoe Print", cursive;

    --r: 14px;
    --r-sm: 10px;
    --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 12px 32px -8px rgba(23, 58, 107, .18);
    --nav: 72px;
    --gap: 24px;
    --space: clamp(88px, 10vw, 144px);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

html[data-palette="hawaii"] {
    --paper: #F7F3ED; --sand: #EFE7DC; --coach: #21534C; --coach-tint: #E2EEEC; --nana: #2F6E4B; --nana-tint: #E4F0E6;
    --kona: #E66C3C; --kona-wash: rgba(230, 108, 60, .28); --kona-ink: #A63A16; --grid-line: #E8E0D4; --rule: #CFC3B4;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav); }

body {
    font: 400 17px/1.6 var(--body);
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--kona-wash); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
button, input, textarea { font: inherit; color: inherit; }
a, button, input, textarea { touch-action: manipulation; -webkit-tap-highlight-color: rgba(23, 58, 107, .12); }
:focus-visible { outline: 3px solid var(--coach); outline-offset: 3px; border-radius: 4px; }
.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; }

/* One container, one 12-column grid. Text and visual swap sides section by section. */
.wrap { width: min(1240px, 100% - 2 * clamp(20px, 4vw, 48px)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.col-a { grid-column: 1 / span 5; }
.col-b { grid-column: 7 / -1; }
.grid--flip .col-a { grid-column: 8 / -1; grid-row: 1; }
.grid--flip .col-b { grid-column: 1 / span 6; grid-row: 1; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }

.ic { width: 24px; height: 24px; flex: none; }
.ic--sm { width: 18px; height: 18px; }
.pen-coach { color: var(--coach); }
.pen-nana { color: var(--nana); }
.hand { font: 600 1.35rem/1.3 var(--hand); }

/* Type */
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); font-weight: 800; line-height: .98; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; line-height: 1.03; }
h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.lead { font-size: clamp(1.08rem, 1.3vw, 1.22rem); line-height: 1.55; color: var(--mute); max-width: 48ch; margin-top: 18px; text-wrap: pretty; }
.lead a { color: var(--coach); font-weight: 600; }

/* Buttons: one style, ink fill; line only for the share action */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 22px; border-radius: var(--r-sm);
    font: 700 1rem var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .18s var(--ease), background-color .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--ink { background: var(--ink); color: #fff; border: 0; }
.btn--ink:hover { background: var(--coach); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn--line { background: transparent; border: 2px solid var(--ink); color: var(--ink); min-height: 48px; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 700; color: var(--nana); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .2s; min-height: 44px; }
.link:hover { text-decoration-color: currentColor; }
.link__note { font-size: .93rem; color: var(--mute); max-width: 44ch; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.45rem var(--display); font-stretch: 112%; text-decoration: none; letter-spacing: -.02em; min-height: 44px; }
.nav__links { display: flex; gap: 32px; list-style: none; }
.nav__links a { font-weight: 500; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .2s; padding: 10px 0; }
.nav__links a:hover { text-decoration-color: var(--kona); }

/* Sections: content sets the height; one rhythm of space */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav) + 40px) 0 64px; }
.section { padding: var(--space) 0; }
.section--sand { background-color: var(--sand); background-image: linear-gradient(#E6E2D6 1px, transparent 1px), linear-gradient(90deg, #E6E2D6 1px, transparent 1px); background-size: 28px 28px; }
.hero__lead { font-size: clamp(1.08rem, 1.3vw, 1.22rem); color: var(--mute); margin-top: 22px; max-width: 38ch; text-wrap: pretty; }
.hero__lead b { font-weight: 700; }

/* Waitlist form */
.join { margin-top: 32px; max-width: 540px; }
.join__label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.join__row { display: flex; gap: 10px; }
.join input {
    flex: 1; min-width: 0; min-height: 56px; padding: 0 18px; font-size: 1.05rem;
    background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-sm);
    transition: border-color .15s, box-shadow .15s;
}
.join input::placeholder { color: #5E6773; }
.join input:focus-visible { outline: none; border-color: var(--coach); box-shadow: 0 0 0 4px rgba(23, 58, 107, .18); }
.join input[aria-invalid="true"] { border-color: var(--kona-ink); }
.join .btn { min-height: 56px; }
.join__note { margin-top: 12px; font-size: .93rem; color: var(--mute); }
.join__note.is-error { color: var(--kona-ink); font-weight: 600; }

/* The log page: used for every product picture on the page */
.log { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(18px, 2vw, 28px); border: 1.5px solid var(--ink); }
.log__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.log__title { font: 700 1.1rem var(--display); }
.log__phase { font-size: .9rem; color: var(--mute); }
.log__cols, .log__row { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.log__cols { padding: 12px 0 6px; font: 700 .85rem var(--display); }
.log__rows { list-style: none; }
.log--page .log__rows { margin-top: 6px; }
.log__row { padding: 12px 0; border-top: 1.5px solid var(--rule); align-items: start; font-size: 1rem; }
.log--page .log__row:first-child { border-top: 0; }
.log__day { font: 700 .95rem var(--display); }
.log__row.is-done { color: var(--mute); }
.log__row.is-today, .log__row.is-changed { margin: 4px -12px; padding: 14px 12px; border-top-color: transparent; border-radius: var(--r-sm); background: linear-gradient(100deg, var(--kona-wash), rgba(255, 106, 43, .16)); }
.log__planned { display: block; color: var(--mute); text-decoration-thickness: 2px; text-decoration-color: var(--kona-ink); }
.log__planned[hidden] { display: none; }
.log__session { font: 800 1.35rem/1.15 var(--display); font-stretch: 112%; color: var(--coach); margin-top: 2px; }
.log__line { display: block; font: 700 1.05rem/1.25 var(--display); color: var(--coach); }
.log__meal { font-weight: 600; }
.log__row .hand { margin-top: 6px; }
.mark { display: inline-block; margin-top: 6px; font-size: .88rem; font-weight: 700; color: var(--kona-ink); }
.tag { display: inline-block; margin-top: 6px; font-size: .8rem; font-weight: 700; color: var(--coach); border: 1.5px solid var(--coach); border-radius: 999px; padding: 1px 10px; }

.checkin { border: 0; margin: 14px 0 4px; padding: 14px; border-radius: var(--r-sm); background: var(--sand); display: grid; gap: 10px; }
.checkin legend { font: 700 .95rem var(--display); padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.checkin__group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; clear: both; }
.checkin__label { width: 52px; font-size: .9rem; color: var(--mute); }
.chip {
    min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink);
    background: var(--card); font-weight: 600; font-size: .95rem; cursor: pointer;
    transition: background-color .15s, color .15s, transform .15s var(--ease);
}
.chip:hover { background: var(--paper); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }


/* Coach and Nana: the handoff */
.voices { display: grid; gap: 22px; margin-top: 30px; }
.voice h3 { font-size: 1.25rem; }
.voice p { color: var(--mute); margin-top: 6px; max-width: 46ch; }
.handoff { display: grid; gap: 16px; }
.note { border-radius: var(--r-sm); padding: 16px 18px; }
.note--nana { background: var(--nana-tint); }
.note--coach { background: var(--coach-tint); margin-left: clamp(16px, 4vw, 48px); position: relative; }
.note--coach::before { content: ""; position: absolute; left: -22px; top: -16px; width: 14px; height: 40px; border-left: 2px solid var(--coach); border-bottom: 2px solid var(--coach); border-bottom-left-radius: 10px; }
.note__who { display: block; font: 700 .85rem var(--display); margin-bottom: 4px; }
.note .hand { margin-top: 8px; }

/* Nana's chat, on a phone in the log's own palette */
.phone-col { display: flex; justify-content: center; }
.phone { width: min(330px, 100%); aspect-ratio: 9 / 14.5; background: var(--ink); border-radius: 46px; padding: 11px; box-shadow: var(--shadow); }
.phone__screen { height: 100%; border-radius: 36px; overflow: hidden; background: var(--paper); background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 22px 22px; }
.chat-screen { display: flex; flex-direction: column; }
.chat-screen__top { display: flex; align-items: center; gap: 8px; padding: 30px 20px 12px; font: 700 1rem var(--display); border-bottom: 1.5px solid var(--rule); background: var(--paper); }
.chat__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--nana); }
.chat-screen__body { padding: 16px 14px; display: grid; gap: 10px; align-content: start; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.4; }
.msg--you { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg--nana { background: var(--nana-tint); color: var(--ink); border-bottom-left-radius: 4px; }

/* Rules and lists */
.rules { list-style: none; margin-top: 26px; }
.rules li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--rule); font-size: 1.04rem; align-items: flex-start; }
.rules .ic { color: var(--nana); }

/* Motivation */
.never { margin-top: 22px; color: var(--mute); max-width: 48ch; }
.never s { text-decoration-color: var(--kona-ink); text-decoration-thickness: 2px; }
.unlock { display: grid; gap: 16px; }
.earned { list-style: none; display: grid; gap: 8px; }
.earned li { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--rule); border-radius: var(--r-sm); padding: 10px 14px; font-weight: 600; }
.earned .ic { color: var(--nana); }
.card-story { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 30px); }
.card-story__tag { font-size: .88rem; font-weight: 700; color: var(--nana); }
.card-story__title { font: 800 1.6rem/1.1 var(--display); font-stretch: 112%; margin-top: 6px; }
.card-story__blurb { margin-top: 10px; font: 600 1.4rem/1.3 var(--hand); color: var(--nana); }
.card-story__why { margin-top: 12px; color: var(--mute); }


/* Story and the rolling photo strip */
.section--story .grid { align-items: start; }
.prose { display: grid; gap: 14px; }
.prose p { font-size: 1.12rem; max-width: 58ch; }
.sign { margin-top: 18px; font: 600 1.6rem var(--hand); color: var(--coach); }
.reel { margin-top: clamp(40px, 5vw, 64px); overflow: hidden; }
.reel__track { display: flex; gap: var(--gap); width: max-content; padding: 18px 0 24px; animation: reel 48s linear infinite; }
.print { position: relative; flex: none; background: #fff; padding: 8px; border-radius: 3px; box-shadow: var(--shadow); }
.print::before { content: ""; position: absolute; left: 50%; top: -10px; width: 72px; height: 22px; transform: translateX(-50%); background: rgba(255, 230, 160, .75); border-left: 1px dashed rgba(0,0,0,.08); border-right: 1px dashed rgba(0,0,0,.08); }
.print img { width: clamp(200px, 20vw, 280px); aspect-ratio: 1; object-fit: cover; }
.reel.is-paused .reel__track { animation-play-state: paused; }
.reel__controls { display: flex; justify-content: flex-end; margin-top: 4px; }
.reel__toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); font-weight: 600; cursor: pointer; }
.reel__toggle:hover { background: var(--paper); }
@keyframes reel { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* FAQ */
#faq .grid { align-items: start; }
.faq__list { border-top: 2px solid var(--ink); }
.faq__list .t-acc { border-bottom: 1px solid var(--rule); }
.faq__list h3 { font: inherit; letter-spacing: 0; }
.t-acc-head { width: 100%; background: none; border: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; min-height: 44px; font: 700 1.1rem/1.3 var(--display); text-align: left; transition: color .15s; }
.t-acc-head:hover { color: var(--coach); }
.t-acc-chevron { color: var(--coach); }
.t-acc-chevron svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-acc-panel-inner p { padding: 0 0 20px; color: var(--mute); max-width: 60ch; }
/* Without scripts every answer stays open */
html:not(.js) .t-acc-panel { grid-template-rows: 1fr; }
html:not(.js) .t-acc-panel-inner { opacity: 1; filter: none; }

/* Close and footer */
.closing { padding: var(--space) 0 32px; }
.close__photo { display: flex; justify-content: center; }
.print--big img { width: 100%; max-width: 520px; aspect-ratio: 5 / 4; }
.bib__card { position: relative; outline: none; margin-top: 28px; padding: 24px; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); max-width: 540px; }
.bib__label { font: 700 1rem var(--display); color: var(--mute); }
.bib__num { font: 800 clamp(3.5rem, 8vw, 6.5rem)/1 var(--display); font-stretch: 112%; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 6px 0 4px; display: flex; align-items: center; }
.bib__num .hash { color: var(--kona-ink); }
.bib__msg { font-size: 1.08rem; color: var(--mute); max-width: 40ch; margin: 8px 0 20px; }
.bib__card.is-in { animation: rise .6s var(--ease); }
.foot__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 96px); padding-top: 20px; border-top: 1px solid var(--rule); }
.brand--foot { font-size: 1.2rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.foot__links a:hover, .foot__links a[aria-current] { text-decoration-color: currentColor; }
.foot__legal { color: var(--mute); font-size: .95rem; }

/* Hero entrance, once on load */
@media (prefers-reduced-motion: no-preference) {
    [data-enter] .hero__copy > * { animation: rise .8s var(--ease) both; }
    [data-enter] .hero__copy > :nth-child(2) { animation-delay: .08s; }
    [data-enter] .hero__copy > :nth-child(3) { animation-delay: .16s; }
    [data-enter] .log { animation: rise .9s var(--ease) .2s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reel { overflow-x: auto; }
    .reel__track { animation: none; }
    .reel__controls { display: none; }
}

/* Tablet and phone */
@media (max-width: 1100px) {
    .nav__links { gap: 20px; }
    .col-a { grid-column: 1 / span 6; }
    .col-b { grid-column: 7 / -1; }
    .grid--flip .col-a { grid-column: 7 / -1; }
    .grid--flip .col-b { grid-column: 1 / span 6; }
}
@media (max-width: 900px) {
    .nav__links { display: none; }
    .col-a, .col-b, .grid--flip .col-a, .grid--flip .col-b { grid-column: 1 / -1; grid-row: auto; }
    .col-b { margin-top: 40px; }
    .hero { min-height: 0; display: block; padding: calc(var(--nav) + 28px) 0 56px; }
    .close__photo { margin-top: 48px; }
    .print--big img { max-width: 300px; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .join__row { flex-direction: column; }
    .join .btn { width: 100%; }
    .log__cols, .log__row { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
    .log__row { font-size: .95rem; }
    .checkin__label { width: 40px; }
    .chip { padding: 0 13px; }
    .note--coach::before { display: none; }
    .note--coach { margin-left: 0; }
}

/* Slim footer on sub-pages */
.closing--slim { padding: 0 0 28px; }
.foot__row--flush { margin-top: 0; }

/* Round 4: the wide log spread and food shown your way */
.grid--top { align-items: start; }
.log--wide { margin-top: clamp(40px, 5vw, 64px); }
.log__cols--wide, .log__row--wide { grid-template-columns: 52px minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1fr); }
.log__aside { color: var(--mute); font-size: .95rem; }
.log__aside.hand { font-size: 1.3rem; color: var(--coach); }
.modes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.modes__label { font-size: .9rem; color: var(--mute); margin-right: 4px; }
.chip--sm { min-height: 44px; padding: 0 14px; font-size: .9rem; }
.aside-note { margin-top: 28px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--card); border: 1.5px solid var(--rule); color: var(--mute); max-width: 44ch; font-size: .97rem; }
.bib__link { margin-top: 12px; font-weight: 700; user-select: all; }

/* Phone only: the join bar */
.actionbar { display: none; }
@media (max-width: 900px) {
    .actionbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--rule); }
    .actionbar[hidden] { display: none; }
    .actionbar .btn { width: 100%; }
    .log__cols--wide { display: none; }
    .log__row--wide { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr); }
    .log__row--wide > :nth-child(4) { grid-column: 2 / -1; }
    .modes { width: 100%; }
}

/* Round 5 */
.how__head { max-width: 760px; }
.log__row:not(.is-changed) .mark { color: var(--mute); font-weight: 600; }
.card-story__tag { text-wrap: balance; }
.bib__reset { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0; background: none; border: 0; color: var(--coach); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.bib__card .btn { margin-right: 12px; }
@media (max-width: 900px) {
    body.has-bar { padding-bottom: 76px; }
}
@media (max-width: 560px) {
    /* Phones: Nana's note sits under Coach's, so Wednesday has room to breathe */
    .log__cols { display: none; }
    .log__row, .log__row--wide { grid-template-columns: 40px minmax(0, 1fr); row-gap: 8px; }
    .log__row > :nth-child(n+3) { grid-column: 2; }
    .modes__label { width: 100%; }
}

/* Round 6: Nana's chat as a taped log page, not a device */
.phone { aspect-ratio: auto; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 0; position: relative; width: min(400px, 100%); }
.phone::before { content: ""; position: absolute; left: 50%; top: -12px; width: 84px; height: 24px; transform: translateX(-50%) ; background: rgba(255, 230, 160, .8); z-index: 1; }
.phone__screen { height: auto; border-radius: var(--r); }
.chat-screen__top { padding: 20px 20px 12px; border-radius: var(--r) var(--r) 0 0; }
.chat-screen__body { padding: 18px 16px 22px; }
.join__fix { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-weight: 700; color: var(--coach); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

@media (max-width: 560px) {
    /* Phones: each pen is named, not told apart by colour alone */
    .log__row:not(.log__row--wide) > :nth-child(2)::before,
    .log__row--wide > :nth-child(2)::before { content: "Coach"; display: block; font: 700 .72rem var(--display); letter-spacing: .02em; color: var(--coach); margin-bottom: 2px; }
    .log__row:not(.log__row--wide) > :nth-child(3)::before,
    .log__row--wide > :nth-child(3)::before { content: "Nana"; display: block; font: 700 .72rem var(--display); letter-spacing: .02em; color: var(--nana); margin-bottom: 2px; }
    .log__row > .t-text-soft { grid-template-rows: auto auto; }
    .log__row > .t-text-soft > span { grid-area: 2 / 1; }
    .log__row > .t-text-soft::before { grid-area: 1 / 1; }
}

/* Round 6 polish */
.join__note.is-suggest { color: var(--coach); }
.bib__next { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font-weight: 700; color: var(--nana); text-underline-offset: .2em; }
.bib__next + .bib__reset { display: flex; margin-top: 0; }
@media (max-width: 900px) {
    /* One primary button at a time on phones: the thumb-zone bar wins */
    body.has-bar .nav__cta { visibility: hidden; }
}

/* Round 7: the next chapter of Nana's story */
.card-next { background: var(--paper); border: 1.5px dashed var(--rule); border-radius: var(--r-sm); padding: 14px 16px; }
.card-next__tag { font-size: .85rem; font-weight: 700; color: var(--nana); }
.card-next__title { font: 700 1.1rem var(--display); margin-top: 2px; }
.card-next__blurb { color: var(--mute); font-size: .97rem; }
.card-story__tag { color: var(--nana); }

/* Round 8: the closing band is sand; the fixed group ride gets a quiet outline */
.closing.section--sand { padding: var(--space) 0 32px; }
.log__row.is-fixed { margin: 4px -12px; padding: 14px 12px; border-radius: var(--r-sm); border-top-color: transparent; background: var(--coach-tint); }

/* Round 9: partners and progress */
.together { display: grid; gap: 20px; }
.log__rows--plain .log__row:first-child { border-top: 0; }
.log__row--two { grid-template-columns: 52px minmax(0, 1fr); }
.log__row--two .tag { margin: 0 0 0 8px; vertical-align: 1px; }
.log__foot { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--rule); font-size: .93rem; color: var(--mute); }
.records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.records__item--new { grid-column: 1 / -1; }
.records__item { background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--r-sm); padding: 12px 14px; }
.records__item dt { font-size: .85rem; color: var(--mute); }
.records__item dd { font: 800 1.25rem/1.15 var(--display); font-stretch: 112%; margin-top: 4px; font-variant-numeric: tabular-nums; }
.records__item dd.records__from { font: 500 .85rem var(--body); color: var(--mute); }
.records__item--new { border-color: var(--kona); background: linear-gradient(100deg, var(--kona-wash), rgba(255, 106, 43, .12)); }
@media (max-width: 560px) {
    .records { grid-template-columns: 1fr; }
    .log__row.log__row--two > :nth-child(2)::before, .log__row.log__row--two:not(.log__row--wide) > :nth-child(2)::before { content: none; }
}

/* Formspree spam trap: invisible to people, filled only by bots */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Legal pages */
.legal { padding: calc(var(--nav) + clamp(40px, 7vw, 88px)) 0 clamp(56px, 8vw, 104px); }
.legal__inner { max-width: 720px; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.legal-updated { color: var(--mute); margin: 10px 0 36px; }
.legal h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--mute); max-width: 68ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 8px 0 16px; display: grid; gap: 6px; }
.legal a { color: var(--coach); font-weight: 600; }
