/* learnmyos.com - single stylesheet. Governed by design.md.
   No external requests: no webfonts, no CDNs, no icon fonts. */

:root {
  --bg: #fdfcfa;
  --bg-sunk: #f4f2ee;
  --text: #1a1a1a;
  --text-muted: #5b5852;
  --rule: #e2ded6;
  --accent: #0f766e;
  --accent-strong: #0b5b55;
  --accent-contrast: #ffffff;
  --tint: #edf6f4;
  --code-bg: #f1efe9;
  --measure: 68ch;
  --gap-section: 7rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --bg-sunk: #1c1c1c;
    --text: #e8e6e1;
    --text-muted: #a5a09a;
    --rule: #2e2e2e;
    --accent: #2dd4bf;
    --accent-strong: #5ee7d6;
    --accent-contrast: #0d1614;
    --tint: #16302c;
    --code-bg: #1e1e1e;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

@media (max-width: 40rem) {
  body { font-size: 17px; }
  :root { --gap-section: 4.5rem; }
}

/* --- layout ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.wrap-wide {
  width: 100%;
  max-width: calc(var(--measure) + 12ch);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

section { padding-block: 0; margin-block-end: var(--gap-section); }

section[id], h2[id], .anchor { scroll-margin-top: 5.5rem; }

main { padding-block-start: 3rem; }

/* --- type --------------------------------------------------------------- */

h1, h2, h3 { line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; }

h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-block: 0 1rem;
  letter-spacing: -0.02em;
}

h2 { font-size: 1.6rem; margin-block: 0 1rem; }
h3 { font-size: 1.2rem; margin-block: 2rem 0.5rem; }

p, ul, ol, table, figure { margin-block: 0 1.25rem; }

ul, ol { padding-inline-start: 1.4rem; }
li { margin-block-end: 0.5rem; }

.lede { font-size: 1.2rem; color: var(--text-muted); }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-block-end: 0.75rem;
}

.small { font-size: 0.9rem; color: var(--text-muted); }

strong { font-weight: 650; }

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}
a:hover, a:focus-visible { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

code, kbd, samp {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.12em 0.35em;
  border-radius: 3px;
}

pre {
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.55;
  background: var(--code-bg);
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-block: 0 1.25rem;
}
pre code { background: none; padding: 0; font-size: inherit; }

hr { border: 0; border-top: 1px solid var(--rule); margin-block: 3rem; }

/* --- command block (first-class component) ------------------------------ */

.cmd {
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.5rem;
  margin-block: 1.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cmd-line {
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-all;
  flex: 1 1 24ch;
  margin: 0;
}

.cmd-copy {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-contrast);
  border: 0;
  border-radius: 6px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  flex: 0 0 auto;
}
.cmd-copy:hover { background: var(--accent-strong); }

.cmd-note { font-size: 0.9rem; color: var(--text-muted); margin-block: 0 1.75rem; }

/* --- buy button --------------------------------------------------------- */

.buy {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none;
  padding: 0.9rem 1.9rem;
  border-radius: 6px;
  border: 0;
  cursor: not-allowed;
}
.buy:hover { background: var(--accent-strong); }

.buy-block { margin-block: 1.5rem 0.75rem; }

/* --- waitlist form -------------------------------------------------------
   The one place on the site that talks to a network: our own /api/waitlist
   function. See CLAUDE.md for the fields and the storage handling. */

.waitlist { margin-block: 1.5rem 0.75rem; }

/* Honeypot field: present in the markup for bots, invisible and
   unreachable by keyboard or screen reader for real visitors. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-block: 1rem 0;
}

.waitlist-field { display: flex; flex-direction: column; gap: 0.35rem; flex: 1 1 22ch; }
.waitlist-field label { font-size: 0.9rem; font-weight: 600; }

.waitlist-field input {
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}
.waitlist-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.waitlist-submit {
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  background: var(--accent);
  color: var(--accent-contrast);
  border: 0;
  border-radius: 6px;
  padding: 0.9rem 1.6rem;
  cursor: pointer;
  flex: 0 0 auto;
}
.waitlist-submit:hover { background: var(--accent-strong); }
.waitlist-submit:disabled { cursor: not-allowed; opacity: 0.7; }

.waitlist-status { margin-block: 0.75rem 0; }

/* --- placeholders and draft notes --------------------------------------- */

.placeholder,
.draft-note {
  border: 1px dashed var(--rule);
  border-radius: 6px;
  padding: 1.25rem;
  margin-block: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.placeholder > :last-child,
.draft-note > :last-child { margin-block-end: 0; }

.placeholder-label,
.draft-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-block-end: 0.5rem;
  color: var(--text-muted);
}

.shot {
  border: 1px dashed var(--rule);
  border-radius: 6px;
  min-height: 14rem;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-block: 1.5rem;
}

/* --- table of contents -------------------------------------------------- */

.toc {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-block-end: 1px solid var(--rule);
  padding-block: 0.65rem;
  font-size: 0.85rem;
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li { margin: 0; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* --- two-door question -------------------------------------------------- */
/* Panels and the selected state are CSS only, so the question still works
   with scripting off. Script adds the jump and the remembered answer. */

.door { margin-block: 1.5rem; }

.door input { position: absolute; opacity: 0; pointer-events: none; }

.door-q { font-weight: 650; margin-block-end: 1rem; }

.door-choice { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-end: 1.5rem; }

.door-choice label {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  background: var(--bg-sunk);
}
.door-choice label:hover { border-color: var(--accent); }

.door-panel { display: none; }

#door-yes:checked ~ .door-choice label[for="door-yes"],
#door-no:checked ~ .door-choice label[for="door-no"] {
  border-color: var(--accent);
  color: var(--accent);
}

#door-yes:checked ~ #panel-yes,
#door-no:checked ~ #panel-no { display: block; }

/* The inputs are visually hidden, so the focus ring has to land on the label
   the keyboard is actually sitting on. */
#door-yes:focus-visible ~ .door-choice label[for="door-yes"],
#door-no:focus-visible ~ .door-choice label[for="door-no"] {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.door-memory { margin-block: -0.75rem 1.5rem; }

.linkish {
  font: inherit;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.linkish:hover { text-decoration-thickness: 2px; }

/* --- pricing band (the one tinted band on the page) --------------------- */

.band {
  background: var(--bg-sunk);
  padding-block: 4.5rem;
  margin-block-end: var(--gap-section);
}

.guarantee {
  background: var(--tint);
  border-radius: 8px;
  padding: 1.5rem;
  margin-block: 1.5rem;
}
.guarantee > :last-child { margin-block-end: 0; }

.price {
  font-size: 2.4rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-block: 0 0.25rem;
}

/* --- proof quotes ------------------------------------------------------- */

.quotes { display: grid; gap: 1.25rem; }

blockquote {
  margin: 0;
  padding-inline-start: 1.25rem;
  border-inline-start: 2px solid var(--rule);
  color: var(--text-muted);
}

/* --- tables ------------------------------------------------------------- */

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }

th, td {
  text-align: start;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-block-end: 1px solid var(--rule);
}

th { font-weight: 650; }
td code { white-space: nowrap; }

.table-scroll { overflow-x: auto; margin-block-end: 1.25rem; }

/* --- faq ---------------------------------------------------------------- */

.faq h3 { margin-block-start: 2.25rem; }

/* --- footer ------------------------------------------------------------- */

footer {
  border-block-start: 1px solid var(--rule);
  padding-block: 3rem 4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
footer li { margin: 0; }

/* --- learn wing --------------------------------------------------------- */

.backlink { font-size: 0.9rem; margin-block-end: 2.5rem; display: block; }

.concept-list { list-style: none; padding: 0; }
.concept-list li { margin-block-end: 1.5rem; }
.concept-list a { font-size: 1.1rem; font-weight: 600; }
.concept-list p { margin-block: 0.25rem 0; color: var(--text-muted); font-size: 0.95rem; }

.next { border-block-start: 1px solid var(--rule); padding-block-start: 1.5rem; margin-block-start: 3rem; font-size: 0.95rem; }
