/* =========================================================================
   IntelliScribe AI — landing page
   Self-contained. Four schemes x light/dark, all inlined below.
   No gradients, no emoji, flat surfaces, 1px lines.
   ========================================================================= */

/* ---------- 04 · IntelliScribe (default) ---------- */
:root,
:root[data-scheme="intelliscribe"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6fb;
  --ink: #14142b;
  --mute: #5b5c73;
  --line: #e6e6f0;
  --line-strong: #d3d3e4;
  --brand: #6c5ce7;
  --brand-dim: #cfc6ff;
  --on-brand: #ffffff;
  --soft: #efeaff;
  --accent: #3b6cff;
  --on-accent: #ffffff;
  --accent-soft: #e8efff;
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --body: Figtree, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --tight: -.03em;
  --display-weight: 800;
  --radius: 12px;
  --radius-lg: 18px;
}
:root[data-theme="dark"],
:root[data-scheme="intelliscribe"][data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1020;
  --surface: #171930;
  --surface-2: #1d2039;
  --ink: #f3f4f8;
  --mute: #b3b5c9;
  --line: #2a2c45;
  --line-strong: #3a3d5e;
  --brand: #8f82ff;
  --brand-dim: #4a3fa8;
  --on-brand: #0f1020;
  --soft: #26235a;
  --accent: #6d93ff;
  --on-accent: #0f1020;
  --accent-soft: #1e2a55;
}

/* ---------- 01 · Inkline ---------- */
:root[data-scheme="inkline"] {
  color-scheme: light;
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #efefea;
  --ink: #101114;
  --mute: #6b6e76;
  --line: #dedfd8;
  --line-strong: #c8c9c1;
  --brand: #f2a900;
  --brand-dim: #f8d789;
  --on-brand: #101114;
  --soft: #fff4d6;
  --accent: #101114;
  --on-accent: #f6f6f3;
  --accent-soft: #e4e5df;
  --display: Manrope, system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --tight: -.03em;
  --display-weight: 800;
  --radius: 8px;
  --radius-lg: 12px;
}
:root[data-scheme="inkline"][data-theme="dark"] {
  color-scheme: dark;
  --bg: #15161a;
  --surface: #1c1e23;
  --surface-2: #24262c;
  --ink: #f3f3ef;
  --mute: #9a9da6;
  --line: #2a2c33;
  --line-strong: #3b3e46;
  --brand: #f2a900;
  --brand-dim: #6d5008;
  --on-brand: #15161a;
  --soft: #3a2f0a;
  --accent: #f3f3ef;
  --on-accent: #15161a;
  --accent-soft: #2a2c33;
}

/* ---------- 02 · Sayso ---------- */
:root[data-scheme="sayso"] {
  color-scheme: light;
  --bg: #efece7;
  --surface: #fbf9f6;
  --surface-2: #e8e3da;
  --ink: #26221f;
  --mute: #77706a;
  --line: #ddd6cb;
  --line-strong: #c9c0b2;
  --brand: #d95d39;
  --brand-dim: #f0b7a3;
  --on-brand: #fff7f2;
  --soft: #fbe6de;
  --accent: #26221f;
  --on-accent: #fbf9f6;
  --accent-soft: #e6e0d7;
  --display: Fraunces, Georgia, serif;
  --body: "Nunito Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --tight: -.01em;
  --display-weight: 700;
  --radius: 14px;
  --radius-lg: 22px;
}
:root[data-scheme="sayso"][data-theme="dark"] {
  color-scheme: dark;
  --bg: #1e1b19;
  --surface: #26221f;
  --surface-2: #2f2a26;
  --ink: #f3ede6;
  --mute: #a49b92;
  --line: #35302c;
  --line-strong: #47403a;
  --brand: #e8734f;
  --brand-dim: #7a3925;
  --on-brand: #1e1b19;
  --soft: #4a2a1e;
  --accent: #f3ede6;
  --on-accent: #1e1b19;
  --accent-soft: #35302c;
}

/* ---------- 03 · Blurt ---------- */
:root[data-scheme="blurt"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f5fc;
  --ink: #0d1b3d;
  --mute: #5c6680;
  --line: #e3e7f1;
  --line-strong: #ccd3e6;
  --brand: #ff7a1a;
  --brand-dim: #ffc79c;
  --on-brand: #ffffff;
  --soft: #ffeede;
  --accent: #1f3bff;
  --on-accent: #ffffff;
  --accent-soft: #e9ecff;
  --display: Unbounded, system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --tight: -.02em;
  --display-weight: 700;
  --radius: 10px;
  --radius-lg: 16px;
}
:root[data-scheme="blurt"][data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1b3d;
  --surface: #142450;
  --surface-2: #1b2a5e;
  --ink: #f4f6ff;
  --mute: #9ba6c4;
  --line: #223261;
  --line-strong: #32447a;
  --brand: #ff8f3d;
  --brand-dim: #7d3f0d;
  --on-brand: #0d1b3d;
  --soft: #4a2a10;
  --accent: #7d92ff;
  --on-accent: #0d1b3d;
  --accent-soft: #1b2a5e;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--tight); line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: var(--accent); }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mute); margin: 0 0 14px;
}
.lede { color: var(--mute); font-size: 17.5px; line-height: 1.65; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hdr { display: flex; align-items: center; gap: 20px; height: 62px; }
.brandmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brandmark svg { width: 28px; height: 28px; display: block; }
.brandmark span { font-family: var(--display); font-weight: var(--display-weight); font-size: 18px; letter-spacing: var(--tight); }
.hdr nav { display: flex; gap: 18px; margin-left: 8px; }
.hdr nav a { color: var(--mute); text-decoration: none; font-size: 14px; font-weight: 500; }
.hdr nav a:hover { color: var(--ink); }
.hdr .spacer { flex: 1; }

.controls { display: flex; align-items: center; gap: 8px; }
.swatches { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.swatch {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong);
  padding: 0; cursor: pointer; position: relative; background: var(--sw);
  transition: transform .12s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.swatch[data-scheme-btn="intelliscribe"] { --sw: #6c5ce7; }
.swatch[data-scheme-btn="inkline"]       { --sw: #f2a900; }
.swatch[data-scheme-btn="sayso"]         { --sw: #d95d39; }
.swatch[data-scheme-btn="blurt"]         { --sw: #ff7a1a; }

.iconbtn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--mute); cursor: pointer;
}
.iconbtn:hover { color: var(--ink); border-color: var(--line-strong); }
.iconbtn svg { width: 16px; height: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-brand { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn-brand:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 15px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 68px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { max-width: 46ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 9px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--mute); }
.facts svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--brand); }
.facts b { color: var(--ink); font-weight: 600; }

/* ---------- the field demo ---------- */
.demo { display: grid; gap: 14px; }
.demo-frame {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 40px -28px rgba(0,0,0,.35);
}
.demo-chrome { display: flex; align-items: center; gap: 7px; padding: 0 4px 14px; }
.demo-chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.demo-chrome span { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--mute); }
.field {
  position: relative; background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 16px 16px 52px;
  font-size: 16px; line-height: 1.75; min-height: 150px;
}
.field .u {
  text-decoration: underline wavy var(--brand);
  text-decoration-thickness: 1.6px; text-underline-offset: 3px;
  cursor: pointer;
}
.field .caret { display: inline-block; width: 1.5px; height: 1.05em; background: var(--ink); vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pill {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand);
  font: 600 13px/1 var(--body); border: none; cursor: pointer;
}
.pill svg { width: 13px; height: 13px; }
.pill.is-clean { background: var(--surface-2); color: var(--mute); }
.demo-note { font-size: 13.5px; color: var(--mute); display: flex; gap: 10px; align-items: baseline; }
.demo-note b { color: var(--ink); font-weight: 600; }
.linkbtn { background: none; border: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* popover on the underline */
.pop {
  position: absolute; z-index: 5; min-width: 190px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 12px 32px -12px rgba(0,0,0,.4); padding: 6px; font-size: 13.5px;
}
.pop .fix { display: block; width: 100%; text-align: left; padding: 7px 10px; border: none; background: none; border-radius: 7px; cursor: pointer; color: var(--ink); font: 600 14px var(--body); }
.pop .fix:hover { background: var(--soft); }
.pop .sub { display: block; width: 100%; text-align: left; padding: 6px 10px; border: none; background: none; border-radius: 7px; cursor: pointer; color: var(--mute); font: 400 13px var(--body); }
.pop .sub:hover { background: var(--surface-2); color: var(--ink); }
.pop hr { border: none; border-top: 1px solid var(--line); margin: 5px 2px; }

/* ---------- section shell ---------- */
section { padding: 74px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.sec-head { max-width: 62ch; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--mute); font-size: 15px; }
.card .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.card .ic svg { width: 18px; height: 18px; }
.card ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.card li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--mute); }
.card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }
.card li b { color: var(--ink); font-weight: 600; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: 4px 9px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- scheme section ---------- */
.scheme-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.scheme-card {
  text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px;
}
.scheme-card:hover { border-color: var(--line-strong); }
.scheme-card[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.scheme-card .nm { font-family: var(--display); font-weight: var(--display-weight); font-size: 17px; letter-spacing: var(--tight); }
.scheme-card .ty { font-family: var(--mono); font-size: 11px; color: var(--mute); line-height: 1.6; }
.chips { display: flex; gap: 6px; }
.chips i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(128,128,128,.25); display: block; }
.scheme-card .state { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.scheme-card[aria-pressed="true"] .state { color: var(--brand); }

/* ---------- popup mock ---------- */
.popup {
  width: 100%; max-width: 330px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  padding: 16px 18px 14px; box-shadow: 0 16px 40px -24px rgba(0,0,0,.45);
}
.popup .top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.popup .top svg { width: 24px; height: 24px; }
.popup .top .nm { font-family: var(--display); font-weight: var(--display-weight); font-size: 16px; letter-spacing: var(--tight); flex: 1; }
.mod { display: grid; grid-template-columns: 32px 1fr auto; gap: 11px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.mod .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--brand); }
.mod .ic.off { background: transparent; border: 1px solid var(--line); color: var(--mute); }
.mod .ic svg { width: 15px; height: 15px; }
.mod b { display: block; font-size: 14px; font-weight: 700; }
.mod small { display: block; color: var(--mute); font-size: 12px; }
.tgl { width: 40px; height: 23px; border-radius: 999px; background: var(--brand); border: none; padding: 0; position: relative; cursor: pointer; }
.tgl::after { content: ""; position: absolute; top: 3px; right: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--on-brand); transition: all .14s ease; }
.tgl[aria-pressed="false"] { background: var(--line-strong); }
.tgl[aria-pressed="false"]::after { right: auto; left: 3px; background: var(--surface); }
.popup .foot { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.popup .foot span { flex: 1; text-align: center; font-size: 13px; font-weight: 600; padding: 8px; border-radius: 9px; border: 1px solid var(--line); }
.popup .foot span.p { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- result bar mock ---------- */
.bar {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  padding: 12px 14px; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center;
  box-shadow: 0 16px 40px -24px rgba(0,0,0,.45);
}
.bar .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; }
.bar .ic svg { width: 16px; height: 16px; }
.bar .tx { font-size: 14px; line-height: 1.4; }
.bar .tx small { display: block; color: var(--mute); font-size: 11.5px; margin-top: 3px; font-family: var(--mono); }
.bar .acts { display: flex; gap: 6px; }
.bar .acts span { font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); }
.bar .acts span.p { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- quiet / stats ---------- */
.quiet { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.stack { display: grid; gap: 14px; }
.rowline { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rowline:last-child { border-bottom: none; }
.rowline .k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.rowline .v { font-size: 15px; }
.rowline .v b { font-weight: 600; }

/* ---------- privacy / school ---------- */
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.plain li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; }
.plain svg { width: 18px; height: 18px; color: var(--brand); margin-top: 3px; }
.plain b { display: block; font-weight: 600; margin-bottom: 3px; }
.plain span { color: var(--mute); font-size: 15px; }

.callout {
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px;
}
.callout h3 { font-size: 20px; margin-bottom: 10px; }
.callout p { font-size: 15px; color: var(--ink); opacity: .85; }
.callout code { font-family: var(--mono); font-size: 12.5px; background: var(--bg); padding: 2px 6px; border-radius: 5px; }

/* ---------- install ---------- */
.install { text-align: center; }
.install h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.install .lede { margin: 0 auto; max-width: 52ch; }
.install .cta { justify-content: center; margin-top: 28px; }
.meta { font-family: var(--mono); font-size: 11.5px; color: var(--mute); margin-top: 18px; letter-spacing: .04em; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.foot .spacer { flex: 1; }
.foot a { color: var(--mute); text-decoration: none; font-size: 14px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .copy { font-size: 13px; color: var(--mute); }

/* ---------- privacy page ---------- */
.doc { max-width: 74ch; padding: 56px 0 80px; }
.doc h1 { font-size: clamp(30px, 4.6vw, 42px); margin-bottom: 12px; }
.doc h2 { font-size: 21px; margin: 40px 0 12px; }
.doc h3 { font-size: 16.5px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--mute); font-size: 15.5px; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .updated { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 34px; }
.doc code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .two, .quiet { grid-template-columns: 1fr; gap: 36px; }
  .three { grid-template-columns: 1fr; }
  .scheme-cards { grid-template-columns: 1fr 1fr; }
  .hdr nav { display: none; }
  .hero { padding: 52px 0 48px; }
  section { padding: 56px 0; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  body { font-size: 15.5px; }
  .hdr { height: auto; flex-wrap: wrap; padding: 12px 0; gap: 12px; }
  .hdr .spacer { display: none; }
  .brandmark { flex: 1; }
  .controls { width: 100%; order: 3; justify-content: space-between; }
  .hdr > .btn { order: 2; }
  .scheme-cards { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 1fr; }
  .bar .ic { display: none; }
  .rowline { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 380px) {
  .swatches { gap: 3px; padding: 3px; }
  .swatch { width: 22px; height: 22px; }
  .hdr > .btn { padding: 9px 13px; font-size: 14px; }
  .card, .callout, .scheme-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
