/* Goals That Stick, in Energising Choices' brand: Instrument Serif for headlines and italic emphasis, Poppins for text,
   Mynerve for the handwritten notes. Her five colours only: sage, deep green, dusty pink, cream white and maroon.
   Default Energising Choices balance: deep green and sage lead, cream white throughout, dusty pink for the flexible 20, maroon for small labels. */

@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Mynerve"; src: url("../assets/fonts/Mynerve-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  /* her five colours */
  --lime: #BED079;      /* sage (light green) */
  --green: #344C19;     /* deep green */
  --pink: #DAA69C;      /* dusty pink */
  --cream: #FAF8F0;     /* her white: every background and card. Never pure white. */
  --maroon: #6E1916;
  /* soft tints, mixed only from the five above */
  --sage: color-mix(in srgb, #BED079 34%, #FAF8F0);
  --blush: color-mix(in srgb, #DAA69C 30%, #FAF8F0);
  --line: color-mix(in srgb, #BED079 50%, #FAF8F0);
  --panel: color-mix(in srgb, #FAF8F0 9%, #344C19);
  --muted: color-mix(in srgb, #344C19 84%, #FAF8F0);
  --r: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--green);
  font: 400 16px/1.55 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--maroon); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

#app { max-width: 640px; margin: 0 auto; padding-bottom: calc(120px + var(--safe-b)); }
.tool, .foot { margin-left: 18px; margin-right: 18px; }

/* ---------- hero ---------- */
.hero {
  background: var(--green); color: var(--cream);
  padding: calc(22px + env(safe-area-inset-top, 0px)) 20px 26px;
  border-radius: 0 0 30px 30px;
}
.hero-logo { height: 64px; width: auto; }
.kicker { font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--maroon); margin-bottom: 2px; }
.kicker.light { color: var(--pink); margin-top: 18px; }
.hero h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 3.4rem; line-height: 1; margin: 2px 0 10px; color: var(--cream); }
.hero h1 em { font-style: italic; color: var(--lime); }
.hero-lead { font-size: 1.02rem; max-width: 38ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 0; }
.stats li { background: var(--panel); border-radius: 14px; padding: 12px 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.stats b { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.95rem; line-height: 1; color: var(--lime); }
.stats span { font-size: .74rem; line-height: 1.3; }
.staples { margin-top: 16px; background: var(--lime); color: var(--green); border-radius: 14px; padding: 12px 14px 14px; }
.staples-h { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--maroon); margin-bottom: 2px; }
.staples p:not(.staples-h) { font-size: .92rem; font-weight: 600; line-height: 1.4; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid var(--green); background: var(--green); color: var(--cream); font-weight: 600; font-size: .98rem; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: .88rem; }
.link-btn { background: none; border: 0; padding: 8px 4px; color: var(--maroon); text-decoration: underline; font-weight: 600; font-size: .88rem; min-height: 44px; }

/* ---------- the tool ---------- */
.tool { margin-top: 30px; }
.tool-h { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 2.2rem; line-height: 1.1; }
.tool-h em { font-style: italic; }
.how { font-size: .92rem; margin: 4px 0 16px; color: var(--muted); }

.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 4px; border: 2px solid var(--green); border-radius: 999px; }
.mode { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 46px; padding: 6px 3px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: .78rem; line-height: 1.15; color: var(--green); }
.mode .step { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .66rem; font-weight: 700; }
.mode[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.mode[aria-pressed="true"] .step { background: var(--lime); border-color: var(--lime); color: var(--green); }

.hint { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.28rem; line-height: 1.3; margin: 14px 2px 2px; }
.hint-sub { font-size: .8rem; color: var(--muted); margin: 0 2px 16px; }

.panel { display: none; }
body[data-tab="goal"] .panel[data-panel="goal"],
body[data-tab="food"] .panel[data-panel="food"],
body[data-tab="move"] .panel[data-panel="move"],
body[data-tab="stick"] .panel[data-panel="stick"] { display: block; }

/* ---------- summary ---------- */
.summary { border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--cream); margin-bottom: 18px; }
.sum-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.big { font-family: "Instrument Serif", Georgia, serif; font-size: 3.4rem; line-height: 1; color: var(--green); }
.big small { font-size: 1.5rem; color: var(--muted); }
.lab { font-size: .82rem; font-weight: 600; }
.sum-note { font-size: .86rem; font-weight: 600; margin-top: 12px; line-height: 1.45; }
.split { display: flex; height: 12px; border-radius: 999px; background: var(--sage); margin-top: 14px; overflow: hidden; }
.split i { display: block; height: 100%; transition: width .2s; }
.split .n { background: var(--green); }
.split .f { background: var(--pink); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: .76rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; background: var(--sage); border: 1.5px solid var(--line); }
.legend .ln::before { background: var(--green); border-color: var(--green); }
.legend .lf::before { background: var(--pink); border-color: var(--pink); }

/* ---------- sections (accordions) ---------- */
.sec { margin-bottom: 14px; }
.sec > h2 { font-size: 1rem; font-weight: 400; }
.sec-head { display: grid; grid-template-columns: 1fr 20px; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 14px; border: 0; border-radius: 14px; background: var(--lime); color: var(--green); text-align: left; }
.sec-head .t { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.sec-head .m { display: block; font-weight: 400; font-size: .76rem; }
.sec-head svg { width: 18px; height: 18px; transition: transform .15s; }
.sec-head[aria-expanded="false"] svg { transform: rotate(-90deg); }
.sec-head.soft { background: var(--sage); }
.sec-body { padding: 2px 2px 0; }
.sec-intro { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.12rem; line-height: 1.3; margin: 10px 2px 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- week navigator ---------- */
.wknav { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; margin-bottom: 14px; }
.wknav button { min-height: 48px; border-radius: 50%; border: 2px solid var(--green); background: transparent; color: var(--green); font-size: 1.4rem; line-height: 1; }
.wknav button:disabled { opacity: .3; cursor: default; }
.wkt { text-align: center; line-height: 1.2; }
.wkt b { display: block; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.7rem; }
.wkt span { display: block; font-size: .84rem; font-weight: 600; }
.wkt em { display: inline-block; font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--maroon); background: var(--blush); border-radius: 999px; padding: 1px 10px; margin-top: 3px; }
.wkt em:empty { display: none; }

/* ---------- 80/20 grid ---------- */
.wk { display: grid; gap: 6px; margin-bottom: 18px; }
.wk-head, .wk-row { display: grid; grid-template-columns: 46px repeat(4, 1fr); gap: 6px; align-items: center; }
.wk-head span { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.wk-day { font-weight: 700; font-size: .86rem; line-height: 1.1; }
.wk-day small { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--maroon); }
.wk-cell { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--sage); color: var(--maroon); font-weight: 700; font-size: .7rem; padding: 0 2px; }
.wk-cell[data-st="1"] { background: var(--green); border-color: var(--green); color: var(--cream); }
.wk-cell[data-st="2"] { background: var(--pink); border-color: var(--pink); color: var(--maroon); }
.wk-cell:active { transform: scale(.97); }

/* ---------- shared card pieces ---------- */
.card { border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px 16px; background: var(--cream); margin-bottom: 14px; }
.card h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.field { margin-top: 14px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 5px; }
.field textarea, .field input[type="text"] { width: 100%; border: 2px solid var(--line); background: var(--cream); border-radius: 12px; padding: 10px 12px; font-size: 16px; line-height: 1.45; outline: none; resize: vertical; }
.field textarea { min-height: 76px; }
.field input[type="text"] { min-height: 46px; }
.field textarea:focus, .field input[type="text"]:focus { border-color: var(--green); }
.egline { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.05rem; line-height: 1.25; color: var(--muted); margin: 0 2px 6px; }
.fnote { font-size: .8rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.chip-btn { min-height: 40px; padding: 6px 14px; border-radius: 999px; background: var(--sage); border: 1.5px solid var(--line); font-weight: 600; font-size: .82rem; color: var(--green); }
.chip-btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }

/* ---------- Start ---------- */
.s-head { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 2.1rem; line-height: 1.05; margin: 0 0 6px; }
.s-head em { font-style: italic; }
.s-lead { font-size: .94rem; margin-bottom: 16px; }
.order { display: grid; gap: 10px; margin-top: 10px; }
.order li { display: flex; gap: 12px; align-items: flex-start; border-bottom: 1.5px solid var(--line); padding-bottom: 10px; }
.order .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; font-family: "Instrument Serif", Georgia, serif; font-size: 1.2rem; }
.order b { display: block; font-size: .98rem; line-height: 1.3; }
.order span.s { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.startwk { background: var(--sage); border-radius: var(--r); padding: 14px 16px; margin-top: 16px; }
.startwk p { font-size: .9rem; font-weight: 600; }
.startwk .when { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.startwk input[type="date"] { margin-top: 8px; min-height: 46px; border: 2px solid var(--line); background: var(--cream); border-radius: 12px; padding: 8px 12px; font-size: 16px; }
.go-row { margin-top: 16px; }

/* ---------- week review ---------- */
.felt { display: grid; gap: 8px; margin-top: 8px; }
.felt button { min-height: 46px; padding: 8px 14px; text-align: left; border-radius: 12px; border: 1.5px solid var(--line); background: var(--sage); font-weight: 600; font-size: .9rem; color: var(--green); }
.felt button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }
.after-note { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.12rem; line-height: 1.3; margin-top: 10px; }

/* ---------- 80/20 logic ---------- */
.holds { display: grid; gap: 10px; padding: 10px 0 2px; }
.hold { border-radius: 14px; background: var(--cream); border: 1.5px solid var(--line); padding: 12px 14px; }
.hold h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.hold p { font-size: .9rem; line-height: 1.5; margin-top: 3px; }
.info-list { display: grid; gap: 10px; padding: 10px 2px 2px; }
.info-list li { position: relative; padding-left: 22px; font-size: .92rem; line-height: 1.5; }
.info-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--green); }
.fine { font-size: .78rem; color: var(--muted); margin-top: 10px; padding: 0 2px; }

/* ---------- Movement: her tracker, one card per anchor, seven day buttons each ---------- */
.mdots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.mdots span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mdots i { width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); background: var(--sage); }
.mdots .on i { background: var(--green); border-color: var(--green); }
.mdots .today { color: var(--maroon); }
.anchor { border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 12px 14px; background: var(--cream); margin-bottom: 12px; }
.a-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.a-top b { font-size: 1rem; line-height: 1.3; }
.a-stat { flex: none; font-size: .76rem; font-weight: 700; color: var(--maroon); background: var(--blush); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.a-stat.met { background: var(--lime); color: var(--green); }
.a-aim { font-size: .78rem; font-weight: 600; color: var(--maroon); margin-top: 2px; }
.a-sub { font-size: .84rem; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.a-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 10px; }
.dayb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--sage); padding: 4px 0; font-weight: 700; color: var(--green); }
.dayb small { font-size: .58rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.dayb .g { font-size: 1.05rem; line-height: 1; min-height: 1.05em; }
.dayb[data-st="1"] { background: var(--green); border-color: var(--green); color: var(--cream); }
.dayb[data-st="1"] small { color: var(--lime); }
.dayb[data-st="2"] { background: var(--lime); border-color: var(--green); border-width: 2px; }
.dayb[data-st="2"] small { color: var(--green); }
.dayb[data-st="2"] .g { color: var(--green); font-weight: 700; }
.dayb.today small { color: var(--maroon); }
.dayb[data-st="1"].today small { color: var(--pink); }
.dayb:active { transform: scale(.97); }
.a-own { margin-top: 8px; }
.a-own input { width: 100%; min-height: 44px; border: 2px solid var(--line); background: var(--cream); border-radius: 12px; padding: 8px 12px; font-size: 16px; font-weight: 600; outline: none; }
.a-own input:focus { border-color: var(--green); }
.a-why { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.after-box { margin-top: 18px; background: var(--green); color: var(--cream); border-radius: var(--r); padding: 16px 18px 18px; }
.after-box p { font-size: .92rem; }
.after-box .btn { margin-top: 12px; background: var(--lime); border-color: var(--lime); color: var(--green); }

/* ---------- How it sticks ---------- */
.mycard { background: var(--sage); border-radius: var(--r); padding: 14px 16px 16px; margin-bottom: 14px; }
.mycard .kicker { margin-bottom: 4px; }
.mycard dl { display: grid; gap: 8px; margin-top: 4px; }
.mycard dt { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mycard dd { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.2rem; line-height: 1.25; }
.mycard .link-btn { padding-left: 0; }
.glance { display: grid; gap: 10px; margin-bottom: 14px; }
.wkcard { display: block; width: 100%; text-align: left; border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px 14px; background: var(--cream); }
.wkcard[data-now="1"] { border-color: var(--green); border-width: 2px; }
.wkcard .top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wkcard h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.wkcard .when { font-size: .78rem; font-weight: 600; color: var(--muted); }
.wkcard .nums { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .84rem; margin-top: 6px; }
.wkcard .nums b { font-weight: 700; }
.wkcard .felt-tag { display: inline-block; margin-top: 6px; font-size: .74rem; font-weight: 700; color: var(--maroon); background: var(--blush); border-radius: 999px; padding: 1px 10px; }
.insight { background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px 16px; margin-bottom: 14px; }
.insight h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.insight p { font-size: .9rem; line-height: 1.5; margin-top: 6px; }
.insight .hand { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.12rem; color: var(--muted); }

/* what comes next */
.next { margin-top: 18px; background: var(--blush); border-radius: var(--r); border-top: 5px solid var(--green); padding: 16px 16px 18px; }
.next h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 2rem; line-height: 1.05; }
.next h2 em { font-style: italic; color: var(--maroon); }
.next .lead { font-size: .9rem; margin-top: 6px; }
.prog { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; background: var(--cream); border-radius: 14px; padding: 10px 12px; margin-top: 10px; }
.ptag { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--maroon); margin-bottom: 2px; }
.prog img { width: 100%; height: auto; max-height: 64px; object-fit: contain; }
.prog p { font-size: .84rem; line-height: 1.45; }
.next .close { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.2rem; line-height: 1.3; margin-top: 14px; }
.next .btn { margin-top: 12px; }
.next .fine { margin-top: 10px; }

/* ---------- actions ---------- */
.actions { margin-top: 26px; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-row > :last-child:nth-child(odd) { grid-column: 1 / -1; }
#confirm:not(:empty) { margin-top: 12px; }
.confirm { background: var(--blush); border-radius: 14px; padding: 14px; }
.confirm p { font-size: .9rem; margin-bottom: 10px; }
.confirm .btn { margin-right: 8px; }
.note { font-size: .88rem; margin-top: 12px; font-weight: 600; }
.note:empty { display: none; }
.share-box { width: 100%; margin-top: 10px; border: 2px solid var(--line); background: var(--cream); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.keep { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* ---------- footer ---------- */
.foot { margin-top: 30px; padding-top: 18px; border-top: 1.5px solid var(--line); font-size: .78rem; color: var(--muted); }
.foot p + p { margin-top: 8px; }
.foot .credit { margin-top: 14px; font-weight: 600; color: var(--green); }

/* ---------- bottom bar ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; margin: 0 auto; max-width: 640px; background: var(--green); color: var(--cream); border-radius: 20px 20px 0 0; padding: 12px 18px calc(12px + var(--safe-b)); box-shadow: 0 -6px 22px color-mix(in srgb, #344C19 30%, transparent); }
.bar:empty, body[data-tab="stick"] .bar { display: none; }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar-lab { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.bar strong { display: block; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.85rem; line-height: 1.05; }
.bar-sub { display: block; font-size: .76rem; }
.bar-btn { flex: none; min-height: 46px; padding: 8px 20px; border-radius: 999px; border: 0; background: var(--lime); color: var(--green); font-weight: 700; font-size: .95rem; }

@media (max-width: 440px) {
  .mode .step { display: none; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 3.1rem; }
  .stats b { font-size: 1.6rem; }
  .big { font-size: 3rem; }
  .action-row { grid-template-columns: 1fr; }
  .prog { grid-template-columns: 72px 1fr; }
  .a-days { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- print: a clean page she can stick on the fridge (prints whichever tab is open) ---------- */
@media print {
  body { background: none; font-size: 11pt; }
  .stats, .staples, .kicker, .hero-lead, .tool-h, .how, .modes, .hint-sub, .actions, .bar, .foot .credit, .sec-head svg, .wknav button, .next, .go-row, .after-box .btn { display: none !important; }
  #app { max-width: none; padding: 0; }
  .hero { background: none; color: #000; padding: 0 0 6px; border-radius: 0; }
  .hero-logo { height: 40px; background: var(--green); padding: 8px 12px; border-radius: 10px; width: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hero h1 { color: #000; font-size: 26pt; margin: 8px 0 2px; }
  .hero h1 em { color: #000; }
  .tool, .foot { margin: 0; }
  .hint { font-size: 14pt; margin: 6px 0; }
  .sec { break-inside: avoid; margin-bottom: 10px; }
  .sec-head { background: #ddd !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; min-height: 0; padding: 4px 10px; }
  .sec-body[hidden] { display: block !important; }
  .wk-cell, .dayb, .split i, .mdots i, .a-stat { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .after-box { background: none; color: #000; border: 1px solid #000; }
  .anchor, .card { break-inside: avoid; }
  .foot { font-size: 8pt; color: #000; border: 0; }
}


/* ---------- Goals That Stick: the goal builder, the goal check and the path ---------- */
.stepn { display: flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--maroon); margin-bottom: 4px; }
.stepn span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: var(--cream); font-family: "Instrument Serif", Georgia, serif; font-size: .95rem; letter-spacing: 0; }
.card.step { margin-top: 12px; }
.card h4 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.35rem; line-height: 1.1; margin-bottom: 2px; }
.s-head.sm { font-size: 1.6rem; margin: 18px 0 8px; }

.goalcard { background: var(--green); color: var(--cream); border-radius: var(--r); padding: 16px 18px 16px; margin-bottom: 14px; }
.goalcard .kicker { color: var(--pink); }
.goalcard .gs { font-family: "Instrument Serif", Georgia, serif; font-size: 1.75rem; line-height: 1.15; }
.goalcard .gl { font-size: .88rem; line-height: 1.45; margin-top: 8px; }
.link-btn.light { color: var(--lime); padding-left: 0; }
.gpreview { background: var(--sage); border-radius: 14px; padding: 12px 14px 14px; margin-top: 16px; }
.gpreview .k, .gstrip .k { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--maroon); }
.gpreview .gs { font-family: "Instrument Serif", Georgia, serif; font-size: 1.4rem; line-height: 1.2; margin-top: 2px; }
.gs.small { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.15rem; line-height: 1.3; margin-top: 8px; color: var(--muted); }
.gs.small:empty { display: none; }
.gstrip { background: var(--sage); border-radius: var(--r); padding: 10px 14px 4px; margin-bottom: 14px; }
.gstrip p { font-size: .84rem; }
.gstrip .sent { font-family: "Instrument Serif", Georgia, serif; font-size: 1.2rem; line-height: 1.2; margin-top: 2px; }
.gstrip .link-btn { padding-left: 0; min-height: 36px; }
.partof { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.15rem; color: var(--maroon); margin: 0 2px 10px; }

.test { margin-top: 18px; }
.tests { display: grid; gap: 8px; }
.tbtn { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); min-height: 56px; }
.tbtn .tk { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--green); display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.tbtn .tk svg { opacity: 0; }
.tbtn[aria-pressed="true"] { background: var(--sage); }
.tbtn[aria-pressed="true"] .tk { background: var(--green); }
.tbtn[aria-pressed="true"] .tk svg { opacity: 1; }
.tt b { display: block; font-size: .92rem; line-height: 1.3; }
.tt span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.felt button b { font-weight: 700; }

.path { margin: 8px 0 18px; }
.path h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 2rem; line-height: 1.05; }
.path .lead { font-size: .9rem; margin-top: 6px; }
.steps { display: grid; gap: 12px; margin-top: 14px; }
.pstep { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.pn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--green); font-family: "Instrument Serif", Georgia, serif; font-size: 1.2rem; margin-top: 8px; }
.pstep[data-done="1"] .pn { background: var(--green); }
.pb { border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px 14px; background: var(--cream); min-width: 0; }
.pstep[data-done="1"] .pb { border-color: var(--green); }
.pb > b { display: block; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.pline { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.1rem; line-height: 1.25; color: var(--muted); margin-top: 2px; }
.pstat { font-size: .84rem; line-height: 1.45; margin-top: 8px; }
.pstat em { font-style: normal; font-weight: 700; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; background: var(--blush); color: var(--maroon); border-radius: 999px; padding: 1px 9px; margin-right: 6px; }
.pstep[data-done="1"] .pstat em { background: var(--lime); color: var(--green); }
.pwhere { background: var(--blush); border-radius: 12px; padding: 10px 12px 11px; margin-top: 10px; }
.pp { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--maroon); }
.pwhere p { font-size: .84rem; line-height: 1.45; margin-top: 2px; }
.path .close { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.2rem; line-height: 1.3; margin-top: 14px; }

.next .wl { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--maroon); margin-top: 16px; }
.wchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wchips li { background: var(--cream); border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 600; }
.wchips b { color: var(--maroon); margin-right: 2px; }

@media print {
  .pwhere, .gstrip .link-btn, .goalcard .link-btn { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .goalcard { background: none; color: #000; border: 1px solid #000; }
  .goalcard .kicker { color: #000; }
  .tbtn[aria-pressed="true"] .tk { background: #000; }
}


/* ---------- welcome back, wins, where am I at, habit ideas ---------- */
.backcard { background: var(--blush); border-left: 5px solid var(--maroon); border-radius: var(--r); padding: 14px 16px 16px; margin-bottom: 14px; }
.backcard .kicker { margin-bottom: 2px; }
.backcard h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.7rem; line-height: 1.05; }
.backcard p:not(.kicker) { font-size: .9rem; line-height: 1.5; margin-top: 6px; }

.quizres { background: var(--sage); border-radius: var(--r); padding: 14px 16px 12px; margin-top: 16px; }
.quizres h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.9rem; line-height: 1.05; }
.quizres p:not(.kicker) { font-size: .9rem; line-height: 1.5; margin-top: 8px; }
.quizres .link-btn { padding-left: 0; }
.fnote.hl { background: var(--sage); border-radius: 12px; padding: 8px 12px; color: var(--green); font-weight: 600; margin: 8px 0 4px; }

.wins { display: grid; gap: 8px; padding: 8px 0 2px; }
.win { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); }
.win .wk { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
.win[data-on="1"] { background: var(--sage); border-color: var(--green); }
.win[data-on="1"] .wk { background: var(--green); border-color: var(--green); }
.win b { display: block; font-size: .92rem; }
.win span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.win[data-on="0"] b { color: var(--muted); }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(112px + var(--safe-b)); z-index: 20; max-width: 560px; margin: 0 auto; background: var(--lime); color: var(--green); border: 2px solid var(--green); border-radius: 16px; padding: 12px 16px; font-weight: 600; font-size: .92rem; line-height: 1.4; box-shadow: 0 6px 22px color-mix(in srgb, #344C19 28%, transparent); }
body[data-tab="stick"] .toast { bottom: calc(24px + var(--safe-b)); }

@media print { .toast, .backcard { display: none !important; } }
