/* Strong Mornings: the brand's look (brands/strong-mornings/design.md, 2026-11-01). Wellness subscription leaders'
   grammar (BetterMe, Noom, Rise, Reframe): a warm morning-light ground, near-black ink, ONE confident accent (deep teal),
   a friendly rounded geometric sans (Lexend), big rounded cards and pill buttons, progress you can see.
   Colours as sRGB hex (lib/visual.ts reads rgb() only). Every stream page of the brand wears it; names kept stable. */
@font-face {
  font-family: "Lexend";
  src: url("fonts/lexend-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: "Lexend Fallback"; src: local("Arial"), local("Helvetica Neue"); size-adjust: 108%; ascent-override: 92%; descent-override: 23%; line-gap-override: 0%; }

:root {
  --linen: #fbf8f3;       /* page: morning light, warm white */
  --linen-2: #f2ece3;     /* sand: sunk panels, hover, the progress track */
  --surface: #ffffff;     /* cards, fields, sheets */
  --hair: rgb(28 27 25 / .09);
  --ring: rgb(28 27 25 / .20);
  --ink: #1c1b19;         /* text */
  --ink-2: #57524b;       /* secondary text (AA on the ground) */
  --deep: #12343a;        /* headings, the dark band */
  --teal: #1d5f6b;        /* the one accent: logo, buttons, selected, progress */
  --teal-2: #164b55;      /* button hover / pressed */
  --mist: #e1efed;        /* selected fill */
  --apricot: #f4b183;     /* cheers and streaks only (never text, never a button) */
  --apricot-soft: #fdebdc;
  --night: #0f1b2d;       /* sleep's in-plan night screens only */
  --ok: #1f7a55;
  --bad: #a63a2b;
  --r-chip: 12px; --r-field: 16px; --r-card: 24px; --r-sheet: 28px; --r-btn: 999px;
  --shadow-1: 0 1px 2px rgb(28 27 25 / .05), 0 1px 1px rgb(28 27 25 / .03);
  --shadow-2: 0 1px 2px rgb(28 27 25 / .04), 0 8px 24px rgb(28 27 25 / .06);
  --shadow-sheet: 0 -2px 14px rgb(28 27 25 / .07), 0 -12px 40px rgb(28 27 25 / .09);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Lexend", "Lexend Fallback", system-ui, Arial, sans-serif;
  --gut: clamp(20px, 5vw, 32px);
  --accent: var(--teal); --accent-dark: var(--deep); --soft: var(--mist); --paper: var(--linen);
  --kit-accent: var(--teal); --kit-ink: var(--ink); --kit-bg: var(--surface); --kit-line: var(--ring);
  --kit-soft: var(--linen-2); --kit-err: var(--bad); --kit-ok: var(--ok); --kit-radius: var(--r-field);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { touch-action: manipulation; background: var(--linen); color-scheme: light; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 18px/1.55 var(--font); color: var(--ink); background: var(--linen); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img, video { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
@media (hover: hover) { a:hover { color: var(--deep); } }
h1, h2, h3 { margin: 0 0 .5em; color: var(--deep); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(34px, 3vw + 22px, 58px); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 1vw + 24px, 38px); line-height: 1.1; letter-spacing: -0.022em; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); }
.page { padding-top: 40px; padding-bottom: 64px; }
.page > h1, .page > h2, .page > h3, .page > p, .page > ul, .page > ol, .page > table { max-width: 720px; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 55%, transparent); outline-offset: 2px; }

/* Buttons: one teal pill per screen, a quiet secondary, a ghost. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border: 0; border-radius: var(--r-btn);
  font: 600 18px/1.1 var(--font); letter-spacing: 0; text-decoration: none; text-align: center; cursor: pointer;
  color: #fff; background: var(--teal);
  box-shadow: 0 1px 2px rgb(15 58 66 / .28), inset 0 1px 0 rgb(255 255 255 / .14);
  transition: transform 120ms var(--ease-out), background-color 200ms var(--ease-out);
  touch-action: manipulation; user-select: none;
}
@media (hover: hover) { .btn:hover { background: var(--teal-2); color: #fff; } }
.btn:active { transform: scale(.97); background: var(--teal-2); }
.btn:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--linen-2); color: color-mix(in srgb, var(--ink) 45%, transparent); box-shadow: none; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn.alt, .btn--secondary { background: var(--surface); color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--ring), var(--shadow-1); }
@media (hover: hover) { .btn.alt:hover, .btn--secondary:hover { background: var(--linen-2); color: var(--deep); } }
.btn.alt:active, .btn--secondary:active { background: var(--linen-2); }
.btn--ghost { background: transparent; color: var(--teal); box-shadow: none; }
@media (hover: hover) { .btn--ghost:hover { background: var(--linen-2); color: var(--deep); } }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn--light { background: #fff; color: var(--deep); }
@media (hover: hover) { .btn--light:hover { background: var(--mist); color: var(--deep); } }
.spin { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 2.5px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: hw-spin .7s linear infinite; }
@keyframes hw-spin { to { transform: rotate(360deg); } }

/* Fields */
label { display: block; font-weight: 600; font-size: 17px; }
input[type=text], input[type=email], input[type=number], input[type=tel], input[type=date], select, textarea {
  width: 100%; min-height: 52px; margin-top: 6px; padding: 12px 16px; border: 0; border-radius: var(--r-field);
  font: 400 18px/1.3 var(--font); color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ring);
}
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--teal), 0 0 0 4px var(--mist); }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--hair); padding: 12px 8px; text-align: left; vertical-align: top; }
th { font-weight: 600; color: var(--ink-2); }

/* Header: logo left, one action on the right. On the brand website (body.brand-site) a "Plans" button opens the
   products menu ({{menu}}): a full-screen sheet on phones, a dropdown panel on desktop (popover, no script). */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--linen) 92%, transparent); backdrop-filter: saturate(1.2); box-shadow: 0 1px 0 var(--hair); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: flex; align-items: center; min-height: 48px; flex: none; margin-right: auto; text-decoration: none; }
.logo img { height: 30px; width: auto; }
.top-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--r-btn); background: var(--teal); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; flex: none; }
@media (hover: hover) { .top-cta:hover { background: var(--teal-2); color: #fff; } }
.top-cta:active { transform: scale(.97); }
.top-cta[hidden], body[data-cta="none"] .top-nav, body[data-cta="none"] .top-cta { display: none !important; }
.top-by { display: none; }
.top-nav:empty { display: none; }
body.landing .top-plans { display: none !important; } /* an ad's landing page: one action only */
.top-plans { display: none; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px 0 18px; border: 0; border-radius: var(--r-btn);
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--hair), var(--shadow-1); color: var(--deep); font: 600 16px/1 var(--font); cursor: pointer; flex: none;
  transition: transform 120ms var(--ease-out), background-color 160ms var(--ease-out); }
.top-plans:active { transform: scale(.96); }
@media (hover: hover) { .top-plans:hover { background: var(--linen-2); } }
body.brand-site .top:has(.top-nav a) .top-plans { display: inline-flex; }
@media (max-width: 760px) {
  .logo img { height: 26px; }
  body.brand-site .top:has(.top-nav a) .top-cta { display: none; }
  .top-plans { padding: 0; width: 44px; justify-content: center; }
  .top-plans span { display: none; }
}

/* The products menu (popover). Phones: the whole screen, big rows, close where the menu button was (Oura, Noom).
   Desktop: a panel under the header. Each row: a thumbnail (by its path), the product's name, a chevron. */
.menu-sheet { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0 var(--gut) 32px; border: 0;
  background: var(--linen); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-12px);
  transition: opacity 220ms var(--ease-out), transform 320ms var(--ease-sheet), overlay 320ms allow-discrete, display 320ms allow-discrete; }
.menu-sheet:popover-open { opacity: 1; transform: none; }
@starting-style { .menu-sheet:popover-open { opacity: 0; transform: translateY(-12px); } }
.menu-sheet::backdrop { background: rgb(18 52 58 / 0); transition: background-color 220ms, overlay 220ms allow-discrete, display 220ms allow-discrete; }
.menu-sheet:popover-open::backdrop { background: rgb(18 52 58 / .18); }
@starting-style { .menu-sheet:popover-open::backdrop { background: rgb(18 52 58 / 0); } }
html:has(.menu-sheet:popover-open) { overflow: hidden; }
.menu-head { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.menu-head img { height: 26px; width: auto; }
.menu-x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 22px; background: var(--surface); color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--hair); cursor: pointer; }
.menu-x:active { transform: scale(.94); }
.top .menu-sheet .top-nav { display: grid; gap: 10px; margin: 12px 0 28px; }
.menu-sheet .top-nav a { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 10px 16px 10px 10px; border-radius: 20px; background: var(--surface);
  box-shadow: var(--shadow-1); color: var(--deep); font-size: 18px; font-weight: 600; line-height: 1.25; text-decoration: none;
  transition: transform 120ms var(--ease-out), background-color 160ms var(--ease-out); }
.menu-sheet .top-nav a::before { content: ""; flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--mist) url("img/mark.svg") center / 26px no-repeat; }
.menu-sheet .top-nav a::after { content: ""; flex: none; width: 10px; height: 10px; margin-left: auto; border: solid var(--ink-2); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.menu-sheet .top-nav a:active { transform: scale(.985); background: var(--linen-2); }
@media (hover: hover) { .menu-sheet .top-nav a:hover { background: var(--linen-2); color: var(--deep); } }
.menu-sheet .top-nav a[href$="/strength/"]::before { background: url("img/plans/strength.jpg") 50% 18% / cover; }
.menu-sheet .top-nav a[href$="/drink-less/"]::before { background: var(--apricot-soft) url("img/plans/drink-less.jpg") 50% 0 / 86% auto no-repeat; }
.menu-sheet .top-nav a[href$="/sleep/"]::before { background: var(--night) url("img/plans/sleep.jpg") 50% 0 / 86% auto no-repeat; }
.menu-sheet .top-nav a[href$="/pelvic-floor/"]::before { background: var(--mist) url("img/plans/pelvic-floor.jpg") 50% 0 / 86% auto no-repeat; }
.menu-sheet .top-nav a[href$="/muscle-plan/"]::before { background: var(--linen-2) url("img/plans/muscle-plan.jpg") 50% 0 / 86% auto no-repeat; }
.menu-more { display: grid; }
.menu-more a { display: flex; align-items: center; min-height: 48px; color: var(--ink); font-size: 17px; text-decoration: none; }
@media (hover: hover) { .menu-more a:hover { color: var(--teal); } }
@media (min-width: 761px) {
  .menu-sheet { inset: 72px max(var(--gut), calc((100vw - 1120px) / 2 + var(--gut))) auto auto; width: 420px; height: auto; max-height: calc(100dvh - 96px);
    padding: 12px 16px 16px; border-radius: var(--r-sheet); background: var(--linen); box-shadow: var(--shadow-2), 0 24px 64px rgb(28 27 25 / .14); }
  .menu-head { display: none; }
  .top .menu-sheet .top-nav { margin: 4px 0 12px; }
  .menu-more { padding: 0 8px; }
  html:has(.menu-sheet:popover-open) { overflow: auto; }
}

/* Inside a product (agent/SITE.md "A brand with several products"): the product's own header. The stream page wraps the
   brand:header pair in <div class="ph"><div class="wrap ph-bar"><a class="ph-name" …>Name</a> … </div></div> and adds
   class="product" to <body>; the product's name and its one action (the .top-cta, pointed by data-cta) lead, "by
   Strong Mornings" sits small under the name and links back to the brand website. No brand menu inside a product. */
.ph { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--linen) 94%, transparent); backdrop-filter: saturate(1.2); box-shadow: 0 1px 0 var(--hair); }
.ph-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name cta" "by cta"; align-items: center; column-gap: 12px; min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
.ph .top, .ph .bar { display: contents; }
.ph .logo, .ph .top-plans, .ph .menu-sheet { display: none !important; }
.ph-name { grid-area: name; align-self: end; display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--deep); font-size: 19px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; text-decoration: none;
  padding: 11px 0; margin: -11px 0; } /* a 44px tap, laid out at text height */
.ph-name img { width: 22px; height: 22px; flex: none; }
.ph-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph .top-by { display: block; grid-area: by; align-self: start; justify-self: start; padding: 12px 0 12px 30px; margin: -10px 0 -12px; color: var(--ink-2); font-size: 16px; line-height: 1.3; text-decoration: none; }
@media (hover: hover) { .ph .top-by:hover, .ph-name:hover { color: var(--teal); } }
.ph .top-cta { grid-area: cta; }
body.product .top-plans, body.product .menu-sheet { display: none !important; }

/* Smooth page changes: every page of the brand (its website and its products) cross-fades into the next, and the header
   stays put (cross-document view transitions; inside a flow the kit's kit.swap does the same in place). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; }
}
.top, .ph { view-transition-name: sm-top; }
.ph .top { view-transition-name: none; }

/* Footer: short, one tinted band. On result and checkout pages only the legal links stay. */
.foot { margin-top: 72px; padding: 36px 0 28px; background: var(--linen-2); color: var(--ink); }
.foot-grid { display: grid; gap: 16px; }
.foot-line { margin: 0; font-size: 16px; color: var(--ink); max-width: 70ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { color: var(--ink); font-size: 16px; padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
@media (hover: hover) { .foot-links a:hover { color: var(--teal); text-decoration: underline; } }
.legal { margin: 0; font-size: 14px; color: var(--ink-2); }
body[data-cta="none"] .foot-links a:not([href$="refunds.html"]):not([href$="terms.html"]):not([href$="privacy.html"]):not([href$="trust.html"]) { display: none; }

/* Surfaces */
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-2); padding: 24px; }
.band { background: var(--deep); color: #fff; }
.band h1, .band h2, .band h3 { color: #fff; }
.band a:not(.btn) { color: #fff; }
.soft-band { background: var(--mist); }

/* Brand home and brand pages */
.hw-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hw-hero p { font-size: 20px; color: var(--ink-2); }
.hw-services { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.hw-service { display: grid; gap: 10px; align-content: start; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-2); padding: 24px; text-decoration: none; color: var(--ink); }
.hw-service h3 { margin: 0; }
.hw-service p { margin: 0; color: var(--ink-2); }
.hw-service .btn { justify-self: start; margin-top: 6px; }
.doc h2 { margin-top: 1.6em; font-size: 26px; }
.doc li { margin-bottom: .4em; max-width: 64ch; }

/* The brand website's home (the outside): a short hero naming the buyer, then one strong card per product (its photo or
   app screen, one line, its price from, one button), three checkable promises, the footer. Hims / Oura grammar. */
.sm-hero { padding: clamp(28px, 6vw, 72px) 0 clamp(20px, 3vw, 36px); }
.sm-hero h1 { max-width: 15ch; margin-bottom: 12px; }
.sm-hero p { margin: 0; font-size: 20px; color: var(--ink-2); max-width: 40ch; }
.sm-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.sm-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-2);
  color: var(--ink); text-decoration: none; transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.sm-card:active { transform: scale(.985); }
@media (hover: hover) { .sm-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 1px 2px rgb(28 27 25 / .05), 0 14px 36px rgb(28 27 25 / .10); } }
.sm-media { position: relative; display: block; height: 220px; overflow: hidden; background: var(--tint, var(--mist)); }
.sm-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.sm-media--screen img { position: absolute; left: 50%; top: 28px; width: min(62%, 240px); height: auto; transform: translateX(-50%); border-radius: 22px 22px 0 0;
  object-fit: initial; box-shadow: 0 0 0 6px rgb(255 255 255 / .55), 0 18px 40px rgb(28 27 25 / .16); }
.sm-media--night img { box-shadow: 0 0 0 6px rgb(255 255 255 / .10), 0 18px 40px rgb(0 0 0 / .35); }
.sm-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; }
.sm-body h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.012em; }
.sm-body p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.45; }
.sm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.sm-price { font-size: 17px; font-weight: 600; color: var(--deep); white-space: nowrap; }
.sm-foot .btn { pointer-events: none; }
.sm-promise { padding: clamp(36px, 6vw, 64px) 0 0; }
.sm-ticks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sm-ticks li { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; color: var(--deep); }
.sm-ticks li::before { content: ""; flex: none; width: 28px; height: 28px; border-radius: 14px;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231d5f6b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
body.home .foot { margin-top: clamp(48px, 7vw, 88px); }
@media (min-width: 761px) {
  .sm-grid { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .sm-grid > .sm-card { grid-column: span 2; }
  .sm-grid > .sm-card:nth-child(-n + 2) { grid-column: span 3; }
  .sm-grid > .sm-card:nth-child(-n + 2) .sm-media { height: 300px; }
  .sm-ticks { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; }
}
