/* Code Annex site. Dark only. Colors come from the Condition One icon:
   navy #0f1b26, cream #f4efe4, yellow #f2a900. */

:root {
  color-scheme: dark;
  --bg: #0a131b;
  --surface: #0f1b26;
  --surface-2: #152433;
  --border: #23384b;
  --border-strong: #345069;
  --text: #f4efe4;
  --muted: #b5bec6;
  --faint: #8b98a4;
  --accent: #f2a900;
  --accent-hover: #ffbe24;
  --accent-soft: rgba(242, 169, 0, 0.13);
  --on-accent: #0f1b26;
  --confirmed: #3fd1a5;
  --likely: #f0b84a;
  --unconfirmed: #9aabbb;
  --official: #8fb4ff;
  --error: #ff9b8f;
  --radius: 16px;
  --gutter: 20px;
  --max: 1100px;
  --header-h: 60px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 10;
  background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Beta strip (owner, Nov 7, 2026): every page, above the header, until the January 2027 launch. */
/* Skinny since Nov 11, 2026 (owner): the strip stays pinned on every page, so it earns less height —
   same words, same yellow, less padding, slightly smaller text. */
.beta-strip {
  background: var(--accent); color: var(--on-accent);
  text-align: center; font-size: 13px; font-weight: 600; line-height: 1.3;
  padding: 5px var(--gutter);
}
.beta-strip strong {
  background: var(--on-accent); color: var(--accent);
  border-radius: 5px; padding: 0 6px; margin-right: 7px;
  font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase;
}
.app-page .beta-strip { flex: none; }

/* Header with tabs */

.site-header { flex: none; background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }

.wordmark {
  display: inline-flex; align-items: center; gap: 2px; white-space: nowrap;
  color: var(--text); text-decoration: none;
  font: 800 18px/1 var(--font-display); letter-spacing: -0.01em;
}
.wordmark:hover { color: var(--text); }
.wordmark .bracket { color: var(--accent); font-weight: 700; }

.tabs { display: flex; gap: 4px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px;
  color: var(--muted); font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab[aria-current="page"], .tab[aria-current="true"] { color: var(--accent); background: var(--accent-soft); }
.tab img { width: 20px; height: 20px; border-radius: 5px; }

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .wordmark { font-size: 16px; }
  .tab { padding: 0 10px; font-size: 14px; gap: 6px; }
  .tab img { display: none; }
}

/* Buttons and small parts */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--on-accent);
  font: 700 17px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--accent-hover); color: var(--on-accent); }
.button:disabled { opacity: 0.6; cursor: progress; }
.button-quiet {
  background: transparent; color: var(--text); border: 1px solid var(--border-strong);
}
.button-quiet:hover { background: var(--surface-2); color: var(--text); }

.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.pill {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: 0.01em;
}
.pill-accent { color: var(--accent); background: var(--accent-soft); }
.pill-quiet { color: var(--muted); background: var(--surface-2); }

/* Home */

.intro { padding: 64px 0 48px; }
.intro h1 { font-size: clamp(2.2rem, 7vw, 3.75rem); font-weight: 800; max-width: 16ch; }
.intro .lede { margin-top: 18px; color: var(--muted); font-size: clamp(1.1rem, 2.6vw, 1.3rem); max-width: 34em; }

.apps { padding-bottom: 72px; }
.apps-heading {
  color: var(--faint); font: 700 13px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 16px;
}

.app-featured {
  display: grid; gap: 20px; padding: 24px;
  background: linear-gradient(160deg, rgba(242, 169, 0, 0.09), rgba(242, 169, 0, 0) 55%), var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
}
.app-featured .app-icon { width: 88px; height: 88px; border-radius: 20px; }
.app-featured h3 { font-size: clamp(1.7rem, 5vw, 2.2rem); font-weight: 800; margin-top: 12px; }
.app-featured .tagline { margin-top: 6px; font-size: 1.15rem; font-weight: 600; }
.app-featured .summary { margin-top: 10px; color: var(--muted); max-width: 36em; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }

.app-grid { display: grid; gap: 14px; margin-top: 14px; }

.app-soon {
  display: flex; align-items: center; gap: 16px; padding: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.app-soon h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.icon-placeholder {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.icon-placeholder svg { width: 30px; height: 30px; }

@media (min-width: 720px) {
  .app-featured { grid-template-columns: auto 1fr; gap: 28px; padding: 36px; }
  .app-featured .app-icon { width: 112px; height: 112px; border-radius: 26px; }
  .app-featured h3 { margin-top: 14px; }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .app-soon { flex-direction: column; align-items: flex-start; padding: 22px; }
}


.define {
  margin-top: 22px; padding: 14px 18px; max-width: 46em;
  background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 8px;
}

.chip {
  display: inline-block; padding: 4px 11px; border: 1.5px solid currentColor; border-radius: 999px;
  font-size: 14px; font-weight: 700; line-height: 1.3;
}
.chip-confirmed { color: var(--confirmed); }
.chip-developing { color: var(--likely); }
.chip-single { color: var(--unconfirmed); border-style: dashed; }
/* Official claim: a small blue tag beside Single source (owner, Nov 2, pick c). */
.tag-official {
  display: inline-block; padding: 1px 7px; border: 1px solid var(--official); border-radius: 5px;
  color: var(--official); font-size: 13px; font-weight: 700; line-height: 1.4;
}

.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section h2 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); margin-bottom: 14px; }
.section-intro { color: var(--muted); font-size: 1.1rem; max-width: 40em; }

/* Waitlist page (/conditionone/waitlist) */

.hero { padding: 48px 0 64px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }

.app-id { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; }
.app-id img { width: 48px; height: 48px; border-radius: 12px; }

.hero h1 { margin-top: 22px; font-size: clamp(2.3rem, 7.5vw, 4rem); font-weight: 800; max-width: 13ch; }
.hero .lede { margin-top: 20px; color: var(--muted); font-size: clamp(1.08rem, 2.4vw, 1.2rem); max-width: 34em; }
.hero .launch { margin-top: 16px; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.hero .live-link { margin-top: 8px; }

.signup {
  margin-top: 28px; padding: 22px; scroll-margin-top: 24px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
}
.signup h2 { font-size: 1.35rem; margin-bottom: 14px; }

.field-row { display: flex; flex-direction: column; gap: 10px; }
.field-row input {
  width: 100%; min-height: 52px; padding: 0 16px;
  background: var(--bg); color: var(--text); border: 1.5px solid var(--border-strong); border-radius: 12px;
  font: 400 17px/1.2 var(--font);
}
.field-row input::placeholder { color: var(--faint); }
.field-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.5; cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }

.form-status { margin-top: 12px; font-size: 15px; font-weight: 600; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }

.fine-print { margin-top: 14px; color: var(--faint); font-size: 13.5px; line-height: 1.5; }

.signup-done { display: none; }
.signup.is-done .signup-fields { display: none; }
.signup.is-done .signup-done { display: block; }
.signup-done p { font-size: 1.1rem; font-weight: 600; }
.signup-done p + p { margin-top: 8px; font-size: 15px; font-weight: 400; color: var(--muted); }
.signup-done .check {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 20px;
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 560px) {
  .field-row { flex-direction: row; }
  .field-row input { flex: 1; min-width: 0; }
  .field-row .button { flex: none; }
}

/* The example card */

.demo { margin: 0; max-width: 440px; justify-self: center; width: 100%; }
.demo-stack { position: relative; padding: 0 14px 22px; }
.demo-stack::before,
.demo-stack::after {
  content: ""; position: absolute; left: 30px; right: 30px; height: 40px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.demo-stack::before { bottom: 0; left: 46px; right: 46px; opacity: 0.45; }
.demo-stack::after { bottom: 11px; opacity: 0.75; }

.demo-card {
  position: relative; z-index: 1; padding: 22px;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--faint); }
.demo-tag { color: var(--accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.demo-title { margin-top: 12px; font: 750 1.3rem/1.25 var(--font-display); letter-spacing: -0.01em; }
.demo-count { margin-top: 6px; color: var(--muted); font-size: 15px; }
.demo-label { margin-top: 16px; }
.demo-why { margin-top: 10px; color: var(--muted); font-size: 15px; }
.demo-why strong { color: var(--text); }
.demo figcaption { margin-top: 10px; text-align: center; color: var(--faint); font-size: 13px; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; }
}

/* How it works */

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { color: var(--muted); }

.closing-line { margin-top: 28px; font-size: 1.15rem; font-weight: 600; max-width: 34em; }

/* What Condition One does */

.pillars { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.pillars li { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.pillar-kicker { color: var(--accent); font: 700 13px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.pillars h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pillars p:not(.pillar-kicker) { color: var(--muted); }

.feature-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px 32px; }
.feature-list h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature-list p { color: var(--muted); font-size: 16px; }

.demo-outlets { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border); display: grid; gap: 6px; font-size: 14px; color: var(--text); }
.demo-state { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--likely); font-size: 12px; font-weight: 700; }
.demo-place { margin-top: 12px; color: var(--muted); font-size: 14px; }

.summary-points { margin: 10px 0 0; padding-left: 20px; color: var(--muted); max-width: 36em; display: grid; gap: 6px; }
.summary-points strong { color: var(--text); }

@media (min-width: 760px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .feature-list { grid-template-columns: repeat(3, 1fr); }
}

/* Labels */

.label-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.label-list li { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.label-list p { margin-top: 12px; color: var(--muted); }
.label-list .label-note { margin-top: 8px; font-size: 15px; color: var(--faint); }

.pull {
  margin-top: 32px; padding-left: 18px; border-left: 4px solid var(--accent);
  font: 700 clamp(1.25rem, 3.5vw, 1.6rem)/1.35 var(--font-display); letter-spacing: -0.01em; max-width: 26em;
}

@media (min-width: 760px) {
  .steps, .label-list { grid-template-columns: repeat(3, 1fr); }
}

/* Who it's for */

.who-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.who-list li { position: relative; padding-left: 32px; font-size: 1.1rem; }
.who-list li::before {
  content: "[ ]"; position: absolute; left: 0; top: 0.1em;
  color: var(--accent); font-weight: 800; font-size: 0.9rem; letter-spacing: -0.05em;
}

/* Last call to action */

.cta-end { text-align: center; }
.cta-end h2 { margin-bottom: 10px; }
.cta-end p { color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; margin-top: 24px; }
.cta-end .follow { margin-top: 22px; }

/* Plain message pages (404, signup without JavaScript) */

.message-page { padding: 88px 0; min-height: 50vh; }
.message-page h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; }
.message-page .wrap > p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.message-page .app-actions { margin-top: 28px; }

/* Footer */

.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--faint); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-links .email { overflow-wrap: anywhere; }

/* Unsubscribe and waitlist privacy pages */

.signup.narrow { max-width: 620px; }
.prose h2 { margin-top: 36px; font-size: 1.35rem; }
.prose ul { margin: 14px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.prose li + li { margin-top: 6px; }
.message-page .signup { margin-top: 28px; }
.cf-turnstile { margin-top: 14px; min-height: 65px; }
