/* Noverra — site styles.
   Palette, type and shape language from docs/BRAND_IDENTITY.md.
   One stylesheet, no build step, no framework. */

:root {
  --forest: #1C3A2E;
  --sage: #7BAE94;
  --linen: #F5F0E8;
  --surface: #FFFFFF;
  --terracotta: #C4623A;
  --ink: #1A1A1A;
  --slate: #5A5A5A;
  --border: #E0DAD0;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1080px;
  --radius-card: 16px;
  --radius-btn: 12px;
  --shadow: 0 2px 10px rgba(28, 58, 46, 0.06);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--forest); }
a:hover { color: #142a21; }

h1, h2, h3 { font-family: var(--serif); color: var(--forest); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.22rem; font-weight: 600; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

.sr-only, .skip {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; margin: 0; padding: 10px 16px; z-index: 50;
  background: var(--forest); color: var(--linen); border-radius: var(--radius-btn);
}

:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- head -- */

.site-head {
  background: var(--linen);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; color: var(--forest); text-decoration: none; }
.wordmark { width: 128px; height: auto; display: block; }
.site-head nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-head nav a {
  font-size: .93rem; font-weight: 500; text-decoration: none; color: var(--forest);
  padding: 8px 12px; border-radius: 20px;
}
.site-head nav a:hover { background: rgba(123, 174, 148, .18); }
.site-head nav a.active { background: rgba(123, 174, 148, .22); }
.site-head nav a.nav-cta {
  background: var(--forest); color: var(--linen); padding: 9px 16px;
}
.site-head nav a.nav-cta:hover { background: #142a21; }

/* ---------------------------------------------------------------- hero -- */

.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); }
.eyebrow {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate); font-weight: 600; margin-bottom: 14px;
}
.hero h1 { max-width: 15ch; margin-bottom: .35em; }
.lede { font-size: 1.16rem; color: var(--slate); max-width: 56ch; }
.hero .lede { color: #3a3a3a; }
.hero-cta { margin-top: 30px; max-width: 520px; }

/* --------------------------------------------------------------- bands -- */

.band { padding: clamp(48px, 7vw, 84px) 0; }
.band.alt { background: rgba(255, 255, 255, .55); border-block: 1px solid var(--border); }
.band > .wrap > h2 { margin-bottom: .4em; }
.section-lede { color: var(--slate); max-width: 62ch; margin-bottom: 2em; }

.cards { display: grid; gap: 20px; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--slate); font-size: .97rem; }

/* --------------------------------------------------------------- steps -- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li { padding-top: 8px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--forest); color: var(--linen);
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  margin-bottom: 14px;
}
.steps h3 { margin-bottom: .4em; }
.steps p { color: var(--slate); font-size: .97rem; margin: 0; }

/* --------------------------------------------------------------- tiers -- */

.tiers .tier { display: flex; flex-direction: column; }
.tier.pro { border-color: var(--sage); box-shadow: 0 3px 16px rgba(28, 58, 46, .09); }
.ticks { list-style: none; margin: 0 0 1em; padding: 0; }
.ticks li {
  position: relative; padding-left: 28px; margin-bottom: 14px;
  color: var(--slate); font-size: .97rem;
}
.ticks li strong { color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 9px; height: 5px; border-left: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage); transform: rotate(-45deg);
}
.tier-note { margin-top: auto; font-size: .87rem; color: var(--slate); padding-top: 8px; border-top: 1px solid var(--border); }

/* ------------------------------------------------------------ boundary -- */

.boundary { list-style: none; margin: 0 0 1.4em; padding: 0; }
.boundary li {
  position: relative; padding-left: 22px; margin-bottom: 14px; color: var(--slate);
}
.boundary li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta);
}
.fineprint { font-size: .9rem; color: var(--slate); }

/* ---------------------------------------------------------------- form -- */

.beta-form { display: flex; gap: 10px; flex-wrap: wrap; }
.beta-form input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-btn);
  padding: 15px 16px;
}
.beta-form input[type="email"]::placeholder { color: #9a938a; }
.beta-form button, .btn {
  display: inline-block; font-family: var(--sans); font-size: 1rem; font-weight: 600;
  background: var(--forest); color: var(--linen);
  border: 1px solid var(--forest); border-radius: var(--radius-btn);
  padding: 15px 24px; min-height: 44px; cursor: pointer; text-decoration: none;
}
.beta-form button:hover, .btn:hover { background: #142a21; color: var(--linen); }
.form-note { font-size: .86rem; color: var(--slate); margin-top: 14px; max-width: 48ch; }

.cta-band { background: var(--forest); color: var(--linen); scroll-margin-top: 84px; }
.cta-band h2 { color: var(--linen); }
.cta-band .lede { color: rgba(245, 240, 232, .82); }
.cta-band .form-note { color: rgba(245, 240, 232, .68); }
.cta-band .btn { background: var(--linen); border-color: var(--linen); color: var(--forest); }
.cta-band .btn:hover { background: var(--surface); border-color: var(--surface); }
.cta-band .beta-form button {
  background: var(--sage); border-color: var(--sage); color: #10251c;
}
.cta-band .beta-form button:hover { background: #6a9d83; border-color: #6a9d83; }
.cta-band .beta-form input[type="email"] { border-color: transparent; }

/* --------------------------------------------------------- articles ----- */

.kicker { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); font-weight: 600; margin-bottom: 10px; }
.article-card h3 { font-size: 1.16rem; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; }
.article-card.locked { background: rgba(255, 255, 255, .55); box-shadow: none; }
.article-card.locked h3 { color: var(--slate); }
.muted { color: var(--slate); font-size: .93rem; }
.pill { display: inline-block; background: rgba(123, 174, 148, .25); color: var(--forest); border-radius: 20px; padding: 2px 10px; letter-spacing: .04em; }
.more { margin-top: 28px; }
.textlink { font-weight: 500; }

.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.doc h1 { margin-bottom: .35em; }
.article h1 { max-width: 22ch; }

.reviewed {
  font-size: .88rem; color: var(--slate);
  background: rgba(123, 174, 148, .14);
  border-left: 3px solid var(--sage);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px; margin: 0 0 2em;
}
.reviewed.pending { background: rgba(196, 98, 58, .1); border-left-color: var(--terracotta); }

.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.9em; padding-bottom: .3em; border-bottom: 1px solid var(--border); }
.prose h3 { font-size: 1.12rem; margin-top: 1.7em; font-family: var(--sans); font-weight: 600; }
.prose ul { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.prose code { font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: rgba(28, 58, 46, .06); padding: 1px 5px; border-radius: 4px; }

.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; color: var(--forest); background: rgba(123, 174, 148, .1); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.endnote {
  margin-top: 3em; padding: 26px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow);
}
.endnote h2 { font-size: 1.3rem; margin-bottom: .4em; border: 0; padding: 0; margin-top: 0; }
.endnote p { color: var(--slate); font-size: .97rem; }
.endnote p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- foot -- */

.site-foot { background: var(--forest); color: rgba(245, 240, 232, .78); padding: 56px 0 40px; margin-top: 0; }
.site-foot a { color: var(--linen); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.foot-brand { color: var(--linen); }
.foot-brand .wordmark { width: 118px; }
.foot-note { margin: 10px 0 0; font-size: .93rem; color: rgba(245, 240, 232, .72); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .93rem; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(245, 240, 232, .18); }
.foot-legal p { font-size: .82rem; color: rgba(245, 240, 232, .6); max-width: 78ch; margin-bottom: .7em; }
.foot-legal p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-head nav a { padding: 8px 10px; }
  .wordmark { width: 112px; }
}

@media print {
  .site-head, .cta-band, .endnote, .skip { display: none; }
  body { background: #fff; }
}

/* ------------------------------------------------- hero illustration ----- */

.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); }
  .hero h1 { max-width: 14ch; }
}
.hero-copy .lede { max-width: 48ch; }

.app-illo { margin: 0; }
.illo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 10px 34px rgba(28, 58, 46, .12);
  padding: 24px 22px;
  max-width: 380px;
}
.illo-date { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); font-weight: 600; margin: 0 0 2px; }
.illo-title { font-family: var(--serif); font-size: 1.9rem; color: var(--forest); margin: 0 0 16px; line-height: 1; }
.illo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.illo-chips span {
  font-size: .8rem; color: var(--forest); background: rgba(123, 174, 148, .2);
  border-radius: 20px; padding: 5px 12px;
}
.illo-chips span.hot { background: rgba(196, 98, 58, .14); color: #8f421f; }
.illo-session { background: var(--linen); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.illo-label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); font-weight: 600; margin: 0 0 4px; }
.illo-session-name { font-family: var(--serif); font-size: 1.35rem; color: var(--forest); margin: 0 0 4px; line-height: 1.15; }
.illo-session-meta { font-size: .85rem; color: var(--slate); margin: 0; }
.illo-why { font-size: .9rem; color: var(--slate); margin: 0 0 18px; }
.illo-bar { height: 8px; border-radius: 20px; background: rgba(28, 58, 46, .1); overflow: hidden; margin-bottom: 8px; }
.illo-bar span { display: block; height: 100%; background: var(--sage); border-radius: 20px; }
.illo-protein-text { font-size: .85rem; color: var(--slate); margin: 0; }
.illo-protein-text strong { font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
.app-illo figcaption { font-size: .78rem; color: var(--slate); margin-top: 12px; max-width: 380px; }

.pill-row { margin: -4px 0 8px; }

/* ------------------------------------------------------ mobile header ---- */

@media (max-width: 700px) {
  .head-inner { flex-wrap: nowrap; gap: 8px; min-height: 60px; }
  .wordmark { width: 96px; }
  .site-head nav { gap: 2px; flex-wrap: nowrap; }
  .site-head nav a { font-size: .85rem; padding: 7px 9px; }
  .site-head nav a.nav-cta { padding: 8px 13px; white-space: nowrap; }
}
@media (max-width: 380px) {
  .site-head nav a:not(.nav-cta) { display: none; }
}

/* Long support addresses must wrap on narrow screens. */
p, li, a { overflow-wrap: anywhere; }
