/* Drink Less in 30 Days: the product's screens on top of the brand's tokens (brand/brand.css).
   The quiz and the app are app screens: a top bar, rounded cards on the linen ground, one pinned action. */
.shell { max-width: 560px; margin: 0 auto; padding: 0 var(--gut) 40px; }
.has-tabs .shell { padding-bottom: 110px; }
.appbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--linen) 94%, transparent); }
.appbar-in { max-width: 560px; margin: 0 auto; padding: 10px var(--gut); display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 60px; }
.appbar .logo { justify-self: center; }
.appbar .logo img { height: 26px; }
.iconbtn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--deep); display: grid; place-items: center; cursor: pointer; }
.iconbtn:active { transform: scale(.94); background: var(--linen-2); }
.iconbtn[hidden] { visibility: hidden; display: grid; }
.progress { height: 6px; border-radius: 99px; background: var(--linen-2); overflow: hidden; margin: 0 var(--gut); max-width: 520px; margin-inline: auto; }
.progress i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 99px; transition: width 300ms var(--ease-out); }

.q { padding-top: 22px; }
.q h1 { font-size: clamp(30px, 2vw + 22px, 40px); margin-bottom: 10px; }
.q h2 { font-size: 28px; line-height: 1.15; margin-bottom: 8px; }
.q .sub { color: var(--ink-2); margin-bottom: 18px; }
.opts { display: grid; gap: 10px; margin: 18px 0 0; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 14px 18px; border: 0; border-radius: 18px; background: var(--surface);
  box-shadow: var(--shadow-1), inset 0 0 0 1.5px var(--hair); font: 600 18px/1.3 var(--font); color: var(--ink); text-align: left; cursor: pointer;
  transition: transform 120ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms; }
.opt small { display: block; font-weight: 400; font-size: 16px; color: var(--ink-2); margin-top: 2px; }
.opt .tick { margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ring); display: grid; place-items: center; }
.opt[aria-pressed="true"] { background: var(--mist); box-shadow: inset 0 0 0 2px var(--teal); }
.opt[aria-pressed="true"] .tick { background: var(--teal); box-shadow: none; }
.opt[aria-pressed="true"] .tick::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.opt:active { transform: scale(.98); }
@media (hover: hover) { .opt:hover { box-shadow: var(--shadow-2), inset 0 0 0 1.5px var(--ring); } }
.opts.grid2 { grid-template-columns: 1fr 1fr; }
.opts.grid2 .opt { min-height: 76px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.opts.grid2 .opt .tick { display: none; }
.micro { font-size: 16px; color: var(--ink-2); margin-top: 16px; }

.fact { margin-top: 22px; padding: 26px; border-radius: var(--r-card); background: var(--deep); color: #fff; }
.fact h2 { color: #fff; }
.fact p { color: #d6e6e6; }
.loop3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 6px; }
.loop3 div { background: rgb(255 255 255 / .1); border-radius: 14px; padding: 14px 10px; text-align: center; font-weight: 700; }
.loop3 div small { display: block; font-weight: 400; color: #d6e6e6; font-size: 16px; margin-top: 4px; }
.loop3 .swap { background: var(--apricot); color: var(--deep); }
.loop3 .swap small { color: var(--deep); }

.pin { position: sticky; bottom: 0; z-index: 25; margin: 18px calc(-1 * var(--gut)) 0; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--linen) 70%, transparent); }
.pin-in { max-width: 560px; margin: 0 auto; }

.loader { padding-top: 40px; }
.bars { display: grid; gap: 16px; margin: 24px 0; }
.bars label { font-weight: 600; display: flex; justify-content: space-between; }
.bars .bar { height: 10px; border-radius: 99px; background: var(--linen-2); overflow: hidden; margin-top: 8px; }
.bars .bar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width 900ms linear; }

.profile { margin-top: 18px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-2); overflow: hidden; }
.profile-top { background: var(--deep); color: #fff; padding: 24px; }
.profile-top .k { font-size: 16px; color: #cfe2e2; margin: 0; }
.profile-top h2 { color: #fff; font-size: 34px; margin: 4px 0 8px; }
.profile-top p { color: #e1eeee; margin: 0; }
.rows { padding: 8px 24px 16px; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.row:last-child { border-bottom: 0; }
.row span { color: var(--ink-2); }
.row b { text-align: right; }
.big { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; color: var(--deep); line-height: 1; }

.note-doc { margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: var(--apricot-soft); color: var(--ink); }
.note-doc b { color: var(--deep); }
.note-doc a { font-weight: 700; }

/* Result / paywall */
.hero-r { padding-top: 18px; }
.plans { display: grid; gap: 12px; margin: 18px 0 8px; }
.plan { position: relative; display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: center; padding: 18px; border-radius: 20px; background: var(--surface);
  box-shadow: var(--shadow-1), inset 0 0 0 1.5px var(--hair); cursor: pointer; border: 0; text-align: left; font: inherit; color: var(--ink); width: 100%; }
.plan[aria-checked="true"] { box-shadow: inset 0 0 0 2.5px var(--teal), var(--shadow-2); }
.plan .dot { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ring); }
.plan[aria-checked="true"] .dot { box-shadow: inset 0 0 0 7px var(--teal); }
.plan b { font-size: 19px; }
.plan small { display: block; color: var(--ink-2); font-size: 16px; }
.plan .p { text-align: right; font-weight: 700; font-size: 22px; color: var(--deep); }
.plan .p small { font-weight: 400; }
.plan .flag { position: absolute; top: -12px; left: 18px; background: var(--teal); color: #fff; font-size: 16px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.addon { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--hair); cursor: pointer; }
.addon .box { flex: none; width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--ring); display: grid; place-items: center; margin-top: 1px; }
.addon[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--teal); background: var(--mist); }
.addon[aria-checked="true"] .box { background: var(--teal); box-shadow: none; }
.addon[aria-checked="true"] .box::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.addon small { display: block; color: var(--ink-2); font-size: 16px; }
.gift { display: flex; gap: 12px; align-items: center; margin: 14px 0 0; padding: 14px 18px; border-radius: 18px; background: var(--apricot-soft); }
.gift b { color: var(--deep); }
.fine { font-size: 16px; color: var(--ink-2); margin-top: 12px; }
.section { margin-top: 40px; }
.weeks { display: grid; gap: 10px; margin-top: 14px; }
.wk { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); }
.wk .n { width: 56px; height: 56px; border-radius: 16px; background: var(--mist); color: var(--deep); display: grid; place-items: center; font-weight: 700; font-size: 16px; text-align: center; line-height: 1.1; }
.wk p { margin: 0; color: var(--ink-2); }
.lesson { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-2); padding: 24px; margin-top: 14px; }
.lesson .k { font-size: 16px; color: var(--teal); font-weight: 700; margin: 0 0 4px; }
.lesson h3 { font-size: 24px; }
.lesson .do { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--mist); }
.qa details { border-bottom: 1px solid var(--hair); padding: 14px 0; }
.qa summary { font-weight: 600; cursor: pointer; min-height: 32px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::after { content: "+"; font-size: 22px; color: var(--teal); }
.qa details[open] summary::after { content: "–"; }
.qa p { margin: 10px 0 0; color: var(--ink-2); }

/* The member app */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); box-shadow: 0 -1px 0 var(--hair); padding-bottom: env(safe-area-inset-bottom); }
.tabs-in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.tabs button { min-height: 60px; border: 0; background: transparent; font: 600 16px/1.2 var(--font); color: var(--ink-2); display: grid; place-items: center; gap: 2px; cursor: pointer; padding: 8px 0; }
.tabs button svg { width: 22px; height: 22px; }
.tabs button[aria-current="page"] { color: var(--teal); }
.counter { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 12px; margin: 16px 0; }
.counter button { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--mist); color: var(--deep); font: 700 30px/1 var(--font); cursor: pointer; }
.counter button:active { transform: scale(.94); }
.counter output { text-align: center; font-size: 64px; font-weight: 700; color: var(--deep); letter-spacing: -0.03em; line-height: 1; }
.counter output small { display: block; font-size: 16px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; margin-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.stat { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-1); padding: 14px; }
.stat b { display: block; font-size: 30px; color: var(--deep); letter-spacing: -0.02em; }
.stat span { font-size: 16px; color: var(--ink-2); }
.stat.hot { background: var(--apricot-soft); }
.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 150px; margin-top: 14px; padding: 16px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-1); }
.chart div { display: grid; gap: 6px; justify-items: center; align-self: end; }
.chart i { display: block; width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: var(--teal); min-height: 4px; }
.chart i.zero { background: var(--apricot); height: 8px; }
.chart i.none { background: var(--linen-2); height: 4px; }
.chart span { font-size: 16px; color: var(--ink-2); }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.days button { min-height: 52px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--hair); font: 700 17px/1 var(--font); color: var(--ink); cursor: pointer; }
.days button.done { background: var(--mist); color: var(--deep); box-shadow: none; }
.days button.today { box-shadow: inset 0 0 0 2.5px var(--teal); }
.days button:disabled { color: color-mix(in srgb, var(--ink) 35%, transparent); cursor: default; }
.recipe { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-1); padding: 18px; margin-top: 10px; }
.recipe h3 { margin-bottom: 4px; }
.recipe ol { margin: 8px 0 0; padding-left: 22px; }
.hidden { display: none !important; }
.toast-ok { color: var(--ok); font-weight: 600; }
.err { color: var(--bad); font-weight: 600; }
textarea { min-height: 88px; resize: vertical; }

@media (min-width: 1024px) {
  .split { display: grid; grid-template-columns: 1fr 420px; gap: 48px; max-width: 1080px; margin: 0 auto; padding: 0 var(--gut); align-items: start; }
  .split .shell { margin: 0; max-width: none; padding: 0 0 80px; }
  .split aside { position: sticky; top: 88px; }
}

/* The paywall's buy bar pins to the screen once the offer card scrolls away. */
#bar.pin { position: fixed; left: 0; right: 0; margin: 0; }
a[href^="tel:"] { white-space: nowrap; }

/* One job per screen (brands/strong-mornings/design.md, 2026-11-01) */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.center { text-align: center; margin-inline: auto; }
.stages { max-width: 560px; margin: 6px auto 0; padding: 0 var(--gut) 8px; display: flex; justify-content: space-between; font-size: 16px; color: var(--ink-2); }
.stages span.on { color: var(--teal); font-weight: 600; }
.stages span.done { color: var(--deep); }
.stages:empty { display: none; }
.opt .oi { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--linen-2); color: var(--teal); display: grid; place-items: center; }
.opt[aria-pressed="true"] .oi { background: #fff; }
.opts.grid2 .opt .oi { margin-bottom: 4px; }
.kick { color: var(--teal); font-weight: 600; margin: 0 0 6px; font-size: 16px; }
.loopv { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; margin: 22px 0 14px; }
.loopv div { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-1); padding: 16px 8px; text-align: center; min-height: 96px; display: grid; align-content: center; gap: 6px; }
.loopv div b { font-size: 16px; line-height: 1.2; color: var(--deep); }
.loopv div span { font-size: 16px; color: var(--ink-2); }
.loopv div.sw { background: var(--teal); }
.loopv div.sw b, .loopv div.sw span { color: #fff; }
.loopv i { font-style: normal; color: var(--ink-2); }
.bigstat { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 14px; margin: 22px 0; }
.bigstat b { font-size: 64px; line-height: 1; letter-spacing: -0.03em; color: var(--teal); }
.bigstat span { font-size: 18px; color: var(--ink-2); }
.ring { --p: 0; width: 180px; height: 180px; margin: 28px auto; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--linen) 82%, transparent 83%), conic-gradient(var(--teal) calc(var(--p) * 1%), var(--linen-2) 0); }
.ring b { font-size: 40px; color: var(--deep); }
.ticks { list-style: none; padding: 0; margin: 0 auto; max-width: 320px; display: grid; gap: 12px; }
.ticks li { padding-left: 34px; position: relative; color: var(--ink-2); min-height: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ring); }
.ticks li.on { color: var(--ink); }
.ticks li.on::before { background: var(--teal); box-shadow: none; }
.ticks li.on::after { content: ""; position: absolute; left: 7px; top: 7px; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.bars2 { display: flex; justify-content: center; align-items: flex-end; gap: 40px; height: 240px; margin: 18px 0 10px; }
.bars2 div { display: grid; justify-items: center; gap: 8px; }
.bars2 i { display: block; width: 76px; border-radius: 18px 18px 8px 8px; background: var(--linen-2); }
.bars2 .to i { background: var(--teal); }
.bars2 .v { font-size: 34px; font-weight: 700; color: var(--deep); line-height: 1; }
.bars2 .to .v { color: var(--teal); }
.bars2 span:last-child { color: var(--ink-2); font-size: 16px; }
.pin .btn + .btn { margin-top: 6px; }
.ticks3 { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; }
.ticks3 li { position: relative; padding-left: 32px; font-weight: 500; }
.ticks3 li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--mist); }
.ticks3 li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 9px; height: 5px; border: solid var(--teal); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.homecard { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-2); padding: 18px; margin-top: 8px; }
.ring.sm { width: 112px; height: 112px; margin: 0; }
.ring.sm b { font-size: 30px; }
.ring.sm small { font-size: 16px; color: var(--ink-2); font-weight: 500; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--linen-2); }
.dots i.log { background: var(--teal); }
.dots i.dry { background: var(--apricot); }
.steps { display: flex; gap: 6px; margin: 14px 0 16px; }
.steps i { flex: 1; height: 5px; border-radius: 9px; background: var(--linen-2); }
.steps i.on { background: var(--teal); }
.lcard { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-2); padding: 28px 24px; min-height: 300px; display: grid; align-content: center; gap: 10px; }
.lcard .lead { font-size: 22px; line-height: 1.45; margin: 0; color: var(--ink); }
.wkstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 4px; }
.wkstrip span { background: var(--linen-2); border-radius: 12px; padding: 8px 4px; text-align: center; font-size: 16px; line-height: 1.25; color: var(--ink-2); }
.wkstrip b { display: block; color: var(--deep); font-size: 16px; }
.urgebtn { display: grid; gap: 2px; width: 100%; text-align: left; padding: 18px 20px; border: 0; border-radius: var(--r-card); background: var(--deep); color: #fff; font: inherit; cursor: pointer; box-shadow: var(--shadow-2); }
.urgebtn b { font-size: 20px; }
.urgebtn span { color: #d6e6e6; font-size: 16px; }
.urgebtn:active { transform: scale(.98); }
.days button.done { background: var(--mist); }

/* Desktop: use the width (agent/SITE.md "Desktop is its own layout"): a wide column, answers side by side. */
@media (min-width: 1024px) {
  .shell, .appbar-in, .stages, .tabs-in, .progress { max-width: 1000px; }
  .q > .sub, .q > p { max-width: 760px; }
  .progress { margin-inline: auto; }
  .q h1 { font-size: 46px; max-width: 760px; }
  .opts { grid-template-columns: 1fr 1fr; }
  .opts.grid2 { grid-template-columns: repeat(4, 1fr); }
  .homecard, .lcard { max-width: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .split { max-width: 1120px; grid-template-columns: minmax(0, 1fr) 440px; }
}
/* The result's cue and swap (2026-11-01 loop: the free result explains the pattern before the goal). */
.why3 { list-style: none; margin: 14px 0 4px; padding: 0; display: grid; gap: 10px; }
.why3 li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--linen-2); }
.why3 b { font-size: 14px; color: var(--teal); font-weight: 600; }
.why3 span { color: var(--deep); font-size: 16px; line-height: 1.35; }
.micro.center { text-align: center; }
.why3 ~ .bars2 { height: 190px; margin: 18px 0 4px; }
.why3 ~ .micro { margin-top: 6px; padding-bottom: 96px; }

/* product name in the quiz and price bars (2026-11-02: "who runs Strong Mornings", 4–8 of 12 test buyers at the landing) */
.appbar .pname { display: flex; flex-direction: column; align-items: center; line-height: 1.1; text-decoration: none; }
.appbar .pname .pn { display: flex; align-items: center; gap: 6px; color: var(--deep); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.appbar .pname .pn img { width: 20px; height: 20px; }
.appbar .pname small { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.whois { font-size: 15px; color: var(--ink-2); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hair); line-height: 1.45; }
.whois a { color: var(--deep); }
.forwho { margin-top: 12px; }

/* All 30 days (sample.html #all30, app Lessons tab): one row per day, title first. */
.plan30 { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plan30 li { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--hair); }
.plan30 .d { font: 700 13px/1.2 var(--font); color: var(--deep); }
.plan30 .t { font: 600 16px/1.3 var(--font); color: var(--ink); }
.plan30 .m { font-size: 13px; color: color-mix(in srgb, var(--ink) 72%, transparent); }

.plan30 li.done { background: var(--mist); box-shadow: none; }
.plan30 li.today { box-shadow: inset 0 0 0 2.5px var(--teal); }
.plan30 li.locked .t { color: color-mix(in srgb, var(--ink) 72%, transparent); }
.plan30 li.has-btn { padding: 0; }
.plan30 li.has-btn button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: 14px; cursor: pointer; }
.plan30 li.has-btn button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.plan30 li.has-btn { display: block; }
