/* Strahes AI member area. Tokens follow site/src/css/tokens.css (the founders page). */
@font-face { font-family: "Fraunces"; src: url("/static/fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/static/source-sans-3-var.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #FBF8F3; --linen: #F3ECE1; --card: #FFFFFF; --night: #16212B; --night-2: #223140;
  --ink: #1B2733; --ink-2: #3A4754; --muted: #56616C; --on-night: #F7F2EA; --on-night-2: #C8D1D9;
  --ember: #B23A2C; --ember-deep: #8E2C21; --ember-text: #A3341F; --ember-tint: #F8E6E1; --coral: #ED4441;
  --gold: #E4C98E; --gold-hover: #EED8A6; --fern: #2D6A4F; --fern-tint: #E4EFE8; --rule: #DCD3C5; --focus: #1D5FBF;
  --display: "Fraunces", Georgia, serif;
  --body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 14px; --shadow: 0 1px 2px rgba(27,39,51,.06), 0 2px 8px rgba(27,39,51,.05);
  --tabs-h: 64px; --top-h: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.1875rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 16px); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 .5rem; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 1.3rem + .8vw, 1.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 .9rem; text-wrap: pretty; }
a { color: var(--ember-text); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--card); padding: .5rem 1rem; border-radius: 999px; z-index: 50; }
.skip:focus { top: .5rem; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* header */
.top { background: var(--night); color: var(--on-night); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 60rem; margin: 0 auto; padding: 0 1rem; height: var(--top-h); display: flex; align-items: center; gap: 1rem; }
.brand { color: var(--on-night); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.brand-sub { font-family: var(--body); font-weight: 400; color: var(--on-night-2); font-size: 1rem; }
.nav-top { display: none; gap: 1.25rem; margin-left: auto; }
.nav-top a { color: var(--on-night-2); text-decoration: none; font-size: 1rem; font-weight: 600; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav-top a[aria-current] { color: var(--on-night); border-color: var(--gold); }
.signout { margin-left: auto; }
.signout .linkbtn { color: var(--on-night-2); font-size: .95rem; }
@media (min-width: 900px) {
  .nav-top { display: flex; }
  .signout { margin-left: 1rem; }
  .tabs { display: none !important; }
  body { padding-bottom: 3rem; }
}

/* bottom tabs on phones */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--tabs-h);
  color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 600; }
.tabs a[aria-current] { color: var(--ember-text); }

/* layout */
main { display: block; }
main:focus { outline: none; }
.wrap { width: min(100% - 2rem, 44rem); margin: 0 auto; padding: 1.75rem 0 1rem; }
.wrap > section { margin-top: 1.5rem; }
.narrow .wrap, .narrow main { max-width: 30rem; margin: 0 auto; }
.eyebrow { font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ember-text); margin: 0 0 .35rem; }
.lead { font-size: 1.25rem; color: var(--ink-2); }
.muted { color: var(--muted); font-size: 1rem; }
.big { font-size: 1.3rem; font-weight: 600; }
.center { text-align: center; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.25rem 1.25rem .5rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.card-ember { border-color: #E9C3BB; background: linear-gradient(var(--card), var(--card)) padding-box; border-left: 5px solid var(--ember); }
.card-fern { background: var(--fern-tint); border-color: #C9DED1; }
.card-night { background: var(--night); color: var(--on-night-2); border-color: var(--night); }
.card-night h2 { color: var(--on-night); }
.card-night .eyebrow { color: var(--gold); }
.auth-card { margin: 2.5rem 1rem; padding: 1.75rem 1.5rem 1rem; }
.note { padding: .75rem 1rem; border-radius: 10px; background: var(--linen); font-size: 1rem; }
.note.warn { background: var(--ember-tint); }
.note.ok { background: var(--fern-tint); }
.quote { font-family: var(--display); font-size: 1.3rem; line-height: 1.35; }
.sig { font-family: var(--display); font-style: italic; }
.plain { padding-left: 1.2rem; }
.plain li { margin: .25rem 0; }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .7rem 1.5rem; border-radius: 999px;
  background: var(--ember); color: #fff; font: 700 1.1rem/1.2 var(--body); text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: var(--ember-deep); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-quiet { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); }
.btn-quiet:hover { background: var(--linen); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost { background: transparent; color: var(--on-night); border: 1.5px solid var(--on-night-2); }
.btn-ghost:hover { background: var(--night-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: .75rem 0; }
.linkbtn { background: none; border: 0; padding: .5rem 0; color: var(--ember-text); font: 600 1rem var(--body); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; min-height: 44px; }
.row-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.stack { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
label { font-weight: 600; font-size: 1rem; }
input[type=email], input[type=text], textarea { width: 100%; font: 1.1rem/1.4 var(--body); padding: .8rem .9rem; border: 1.5px solid #B9AE9E; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(29,95,191,.25); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip { display: inline-block; font-size: .9rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; background: var(--linen); color: var(--ink-2); white-space: nowrap; }
.chip-ok { background: var(--fern-tint); color: var(--fern); }
.chip-wait { background: var(--ember-tint); color: var(--ember-text); }
.bar { height: 8px; background: var(--linen); border-radius: 999px; overflow: hidden; margin: .5rem 0 1rem; }
.bar span { display: block; height: 100%; background: var(--fern); border-radius: 999px; transition: width .4s; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--linen); border-top-color: var(--ember); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 0 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* sessions */
.sessions { list-style: none; padding: 0; margin: 1rem 0; border-top: 1px solid var(--rule); }
.sess { display: grid; grid-template-columns: 1fr; gap: .2rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.sess-when { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: 1rem; color: var(--ink-2); }
.sess-day { font-weight: 700; }
.sess-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: 1rem; margin-top: .2rem; }
.sess.is-past { opacity: .65; }
@media (min-width: 640px) { .sess { grid-template-columns: 13rem 1fr; } .sess-when { flex-direction: column; gap: 0; } }

/* playbook */
.doc-list, .class-list { list-style: none; padding: 0; margin: 1rem 0; }
.doc-card, .class-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1rem; padding-bottom: 1.25rem; }
.doc-card h3 { margin-bottom: .3rem; }
.class-card > div { flex: 1 1 18rem; }
.class-card p { margin-bottom: .3rem; }
.class-card.is-locked { background: var(--linen); box-shadow: none; }
.doc { padding: 1.5rem 1.25rem; }
.doc h1 { font-size: 1.9rem; }
.doc h2 { font-size: 1.35rem; margin-top: 1.5rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin: .3rem 0; }
.checks { list-style: none; padding: 0; }
.checks li { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; }
.checks form { margin: 0; }
.tick { width: 32px; height: 32px; flex: none; border: 2px solid var(--ink-2); border-radius: 8px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--fern); font-weight: 900; font-size: 1.1rem; cursor: pointer; }
.checks li.done .tick { border-color: var(--fern); background: var(--fern-tint); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: .9rem; display: flex; flex-direction: column; font-size: 1rem; color: var(--ink-2); }
.stat .n { font-family: var(--display); font-size: 2rem; font-weight: 600; color: var(--ink); line-height: 1.1; }

/* chat */
.chat-page { padding-bottom: 0; }
.chat { width: min(100%, 44rem); margin: 0 auto; min-height: calc(100dvh - var(--top-h)); display: flex; flex-direction: column;
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { .chat { padding-bottom: 0; } }
.chat-head { position: sticky; top: var(--top-h); z-index: 10; background: var(--paper); padding: .75rem 1rem 0; border-bottom: 1px solid var(--rule); }
.chat-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.chat-title h1 { font-size: 1.35rem; margin: 0; }
.chat-head .bar { margin: .4rem 0 .6rem; height: 6px; }
.topics { list-style: none; padding: 0 0 .75rem; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.topics li { font-size: .9rem; padding: .15rem .6rem; border-radius: 999px; background: var(--linen); color: var(--ink-2); }
.topics li.done { background: var(--fern-tint); color: var(--fern); }
.topics li.done::before { content: "\2713  "; }
.chat-log { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.intro { margin-top: .5rem; }
.msg { max-width: 88%; padding: .75rem 1rem; border-radius: 18px; font-size: 1.125rem; line-height: 1.5; box-shadow: var(--shadow); }
.msg p { margin: 0; }
.msg p + p { margin-top: .6rem; }
.msg-ai { background: var(--card); border: 1px solid var(--rule); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg-me { background: var(--night); color: var(--on-night); border-bottom-right-radius: 6px; align-self: flex-end; white-space: pre-wrap; }
.typing { display: flex; gap: 6px; padding: 1rem 1.1rem; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.panel { margin: 0 1rem .75rem; background: var(--card); border: 1.5px solid var(--ember); border-radius: var(--r); padding: 1rem; }
.panel-done { border-color: var(--fern); background: var(--fern-tint); }
.panel-h { font-weight: 700; font-size: 1.15rem; margin-bottom: .25rem; }
.panel-sub { font-size: 1rem; color: var(--ink-2); }
.panel-status { font-size: 1rem; color: var(--fern); min-height: 1.2em; margin: .25rem 0; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .5rem; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; text-align: left; min-height: 64px; padding: .7rem .8rem; border: 1.5px solid var(--ink-2);
  border-radius: 12px; background: #fff; color: var(--ink); font: 1rem var(--body); cursor: pointer; }
.choice strong { font-size: 1.15rem; }
.choice span { font-size: .9rem; color: var(--muted); }
.choice:hover { border-color: var(--ember); background: var(--ember-tint); }
.choice-quiet { border-style: dashed; }
.sample-list { list-style: none; padding: 0; margin: .5rem 0; }
.sample-list li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: 1rem; border-bottom: 1px solid var(--rule); }
.composer { position: sticky; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); display: flex; align-items: flex-end; gap: .5rem;
  padding: .6rem 1rem; background: var(--paper); border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .composer { bottom: 0; } }
.composer textarea { flex: 1; resize: none; min-height: 52px; max-height: 180px; border-radius: 26px; padding: .8rem 1.1rem; }
.iconbtn { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 1.5px solid var(--ink-2); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.iconbtn.send { background: var(--ember); border-color: var(--ember); color: #fff; }
.iconbtn.send:disabled { opacity: .5; }
.iconbtn.on { background: var(--ember-tint); border-color: var(--ember); color: var(--ember); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(178,58,44,.15); } }
.toast { position: fixed; left: 1rem; right: 1rem; bottom: calc(var(--tabs-h) + 90px); z-index: 40; max-width: 30rem; margin: 0 auto; background: var(--night); color: var(--on-night);
  padding: .8rem 1rem; border-radius: 12px; font-size: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
