@font-face { font-family: "Geist Variable"; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Variable"; font-weight: 200 1000; font-display: swap;
  src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2"); }

:root {
  /* the brand (web/src/signin/Story.tsx, web/src/landing/Landing.tsx) */
  --navy: #0B1A3E; --indigo: #1A1450; --violet: #2A1A5E; --night: #040A1C;
  --gold: #F4A801; --gold-soft: #FFD27A; --gold-ink: #07132B;
  --ink: #0B1A36; --muted: #4F607C; --line: #E3E8F2; --mist: #F1F4FA;
  --chip: #EEF3FC; --chip-ink: #2557C4; --ask: #2F6FE0; --glass-ink: #AFC0DD;
  --sans: "Geist Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.08; }
p { margin: 0; }

/* buttons and links — every target at least 44 px */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 14px; font-weight: 750; font-size: 17px; text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #FFB81F; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { border: 1.5px solid currentColor; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--chip-ink); text-underline-offset: 4px; }

/* ── header ─────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.top .logo img { height: 50px; width: auto; }
.top nav.pages { display: none; gap: 2px; margin-inline-start: 10px; }
.top nav.pages a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15.5px; color: #33425E; }
.top nav.pages a:hover { background: var(--mist); color: var(--ink); }
.top .acts { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.top .acts a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15.5px; }
.top .acts .up { background: var(--ink); color: #fff; }
.top .acts .in { display: none; }
.top details.menu { position: relative; }
.top details.menu summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 15.5px; cursor: pointer; }
.top details.menu summary::-webkit-details-marker { display: none; }
.top details.menu .drop { position: absolute; inset-inline-end: 0; top: 52px; width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 18px 40px -18px rgba(11,26,54,.35); }
.top details.menu .drop a { display: flex; align-items: center; min-height: 46px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.top details.menu .drop a:hover { background: var(--mist); }

/* ── hero: notes that answer back ───────────────────── */
.hero { background: linear-gradient(150deg, var(--navy) 0%, var(--indigo) 55%, var(--violet) 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; padding-top: 52px; padding-bottom: 60px; }
.hero h1 { font-size: clamp(46px, 5vw, 72px); font-weight: 850; letter-spacing: -0.045em; line-height: .98; }
.hero h1 .l1 { display: block; white-space: nowrap; }
.hero h1 .ask { color: var(--gold); display: block; }
.hero .tag { margin-top: 22px; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; color: #fff; }
.hero .line { margin-top: 8px; max-width: 46ch; font-size: 18px; color: #C9D4EA; }
.hero .go { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .go .btn-line { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .small { margin-top: 18px; font-size: 15px; color: var(--glass-ink); max-width: 48ch; }
.hero .small b { color: var(--gold-soft); font-weight: 700; }

.stage { position: relative; }
.wall { display: grid; grid-template-columns: 1fr; gap: 10px; }
.note { position: relative; border-radius: 14px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); padding: 11px 13px; font-size: 14px; }
.note small { display: block; font-size: 12px; color: var(--glass-ink); }
.note b { font-size: 14.5px; font-weight: 700; }
.note:nth-child(n+4) { display: none; }
.note.src { animation: src 11s infinite; }
.note.src::after { content: "Source"; position: absolute; top: -9px; inset-inline-end: 10px; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 800; opacity: 0; animation: srcTag 11s infinite; }

.askbox { margin-top: 14px; border-radius: 18px; border: 1px solid rgba(255,255,255,.14); background: rgba(4,10,28,.55); padding: 16px; display: grid; gap: 10px; min-height: 178px; align-content: start; }
.askbox .head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--glass-ink); }
.askbox .head img { width: 22px; height: 22px; border-radius: 30%; background: #fff; }
.q { justify-self: end; background: var(--ask); color: #fff; font-weight: 650; font-size: 15px; padding: 8px 14px; border-radius: 16px 16px 4px 16px; white-space: nowrap; animation: type 11s steps(28) infinite; }
.a { display: flex; gap: 9px; align-items: flex-start; animation: answer 11s infinite; }
.a img { width: 28px; height: 28px; border-radius: 30%; background: #fff; flex: none; }
.a .bubble { background: #fff; color: var(--ink); border-radius: 16px 16px 16px 4px; padding: 10px 13px; font-size: 14.5px; line-height: 1.45; max-width: 46ch; }
.chips { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-block; border-radius: 999px; background: var(--chip); color: var(--chip-ink); font-size: 12px; font-weight: 750; padding: 2px 9px; }

@keyframes type   { 0% { clip-path: inset(0 100% 0 0); } 20%, 92% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@keyframes answer { 0%, 26% { opacity: 0; transform: translateY(8px); } 31%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes src    { 0%, 26% { border-color: rgba(255,255,255,.15); box-shadow: none; } 31%, 90% { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244,168,1,.22), 0 0 28px rgba(244,168,1,.30); } 100% { border-color: rgba(255,255,255,.15); box-shadow: none; } }
@keyframes srcTag { 0%, 26% { opacity: 0; } 31%, 90% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .q, .a, .note.src, .note.src::after { animation: none; }
  .note.src { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244,168,1,.22); }
  .note.src::after { opacity: 1; }
}

/* ── shared section rhythm ──────────────────────────── */
.band { padding: 88px 0; }
.band + .band { padding-top: 0; }
.mist { background: var(--mist); }
.mist + .band, .band + .mist { padding-top: 88px; }
.h2 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 820; letter-spacing: -0.035em; }
.lead { margin-top: 14px; font-size: 20px; color: #33425E; max-width: 52ch; }

/* how it works — the brand's three verbs, set as type */
.how .cols { margin-top: 40px; display: grid; gap: 34px; }
.how h3 { font-size: 40px; font-weight: 850; letter-spacing: -0.045em; }
.how h3.gold { color: #B67C00; }
.how p { margin-top: 10px; color: var(--muted); max-width: 36ch; }

/* persona rows: words on one side, the app in that persona's own theme on the other */
.persona .row { display: grid; gap: 40px; align-items: center; }
.who { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: #FFF4D6; color: #7A5200; font-weight: 800; font-size: 14px; }
.persona h2 { margin-top: 14px; font-size: clamp(30px, 3.8vw, 42px); font-weight: 820; letter-spacing: -0.035em; max-width: 20ch; }
.facts { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 50ch; }
.facts li { position: relative; padding-inline-start: 26px; color: #33425E; }
.facts li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); }
.facts b { color: var(--ink); }
.persona .more { margin-top: 14px; }

.app { border-radius: 24px; padding: 22px; border: 1px solid; }
.app .bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.app .title { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.app .pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 750; }
.app .card { border-radius: 16px; border: 1px solid; padding: 16px; }
.app .lbl { font-size: 12.5px; font-weight: 700; }

/* Students — the Doodle theme (web/src/themes/doodle.css) */
.doodle { --bg: #F3F0FC; --surface: #fff; --l: #E4DFF5; --l2: #CEC6EC; --i: #2A285E; --m: #5A578A; --acc: #5646C9; --soft: #E9E3FD;
  font-family: "Nunito Variable", var(--sans); background: var(--bg); border-color: var(--l); color: var(--i); }
.doodle .pill { background: var(--soft); color: var(--acc); }
.doodle .card { background: var(--surface); border-color: var(--l2); border-width: 1.5px; box-shadow: 4px 4px 0 var(--soft); }
.doodle .lbl { color: var(--m); }
.doodle .face { font-size: 21px; font-weight: 800; margin-top: 6px; line-height: 1.3; }
.doodle .back { margin-top: 12px; padding-top: 12px; border-top: 1.5px dashed var(--l2); font-size: 17px; font-weight: 700; }
.doodle .grade { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.doodle .grade span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; font-weight: 800; font-size: 15px; border: 1.5px solid var(--l2); background: #fff; }
.doodle .grade span:nth-child(1) { background: #FDE2E4; border-color: #F7B9BF; }
.doodle .grade span:nth-child(2) { background: #FFF1D6; border-color: #F5D79A; }
.doodle .grade span:nth-child(3) { background: #DDF5E6; border-color: #A9E0BE; }
.doodle .grade span:nth-child(4) { background: #DCEBFF; border-color: #A9C8F5; }
.doodle .next { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.doodle .next span { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1.5px solid var(--l2); font-size: 13px; font-weight: 700; color: var(--m); }

/* Professors — the Notebook theme (web/src/themes/notebook.css) */
.notebook { --bg: #F1F3F9; --l: #E1E6F0; --l2: #C8D1E3; --i: #1F2A5A; --m: #556089; --acc: #2F54EB; --soft: #FFF8C4;
  background: var(--bg); border-color: var(--l); color: var(--i); }
.notebook .pill { background: #E6ECFF; color: var(--acc); }
.notebook .sec { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1px solid var(--l); margin-top: 8px; font-weight: 700; }
.notebook .sec small { color: var(--m); font-weight: 600; font-size: 13px; }
.notebook .sec.on { border-color: var(--acc); box-shadow: inset 4px 0 0 var(--acc); }
.notebook .share { margin-top: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--l); padding: 14px; }
.notebook .share .row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; font-size: 14.5px; }
.notebook .share .row2 + .row2 { border-top: 1px solid var(--l); }
.notebook .role { padding: 3px 10px; border-radius: 8px; background: var(--soft); font-weight: 750; font-size: 13px; }
.notebook .role.edit { background: #E6ECFF; color: var(--acc); }

/* Field staff — the Field theme (web/src/themes/field.css) */
.fieldt { --bg: #F1F2F4; --l: #D5D8DE; --l2: #B9BEC7; --i: #0F1115; --m: #3F4652; --acc: #C2410C; --acc2: #FACC15; --soft: #FFF1E6;
  background: var(--bg); border-color: var(--l); color: var(--i); }
.fieldt .pill { background: var(--soft); color: var(--acc); }
.fieldt .photo { border-radius: 12px; overflow: hidden; border: 2px solid var(--l2); background: #fff; }
.fieldt .photo svg { display: block; width: 100%; height: auto; }
.fieldt .kv { margin-top: 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; }
.fieldt .kv dt { color: var(--m); font-weight: 600; }
.fieldt .kv dd { margin: 0; font-weight: 700; }
.fieldt .foot { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fieldt .foot .pdf { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--i); color: #fff; font-weight: 800; font-size: 14.5px; }
.fieldt .foot .exp { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; background: #fff; border: 2px solid var(--l2); font-weight: 700; font-size: 14px; }

/* Busy days — the Studio theme (web/src/themes/studio.css) */
.studio { --bg: #F3F4F9; --l: #E1E4EF; --l2: #C9CEDF; --i: #17182B; --m: #565A73; --acc: #4757E6; --acc2: #A04CF0; --soft: #ECEEFF;
  background: var(--bg); border-color: var(--l); color: var(--i); display: grid; gap: 12px; }
.studio .card { background: #fff; border-color: var(--l); }
.studio .voice { display: flex; align-items: center; gap: 12px; }
.studio .play { width: 44px; height: 44px; border-radius: 50%; background: var(--acc); flex: none; position: relative; }
.studio .play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 13px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.studio .wave { flex: 1; height: 30px; background: repeating-linear-gradient(90deg, var(--l2) 0 3px, transparent 3px 7px); -webkit-mask: linear-gradient(90deg, #000 0 100%); border-radius: 4px; clip-path: polygon(0 40%, 6% 20%, 12% 55%, 18% 10%, 25% 45%, 31% 25%, 38% 60%, 45% 15%, 52% 50%, 60% 30%, 66% 65%, 73% 20%, 80% 55%, 87% 35%, 94% 50%, 100% 40%, 100% 100%, 0 100%); }
.studio .said { margin-top: 10px; font-size: 15px; color: var(--m); }
.studio .said b { color: var(--i); }
.studio .rem { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.studio .rem .t { font-weight: 800; }
.studio .rem .t small { display: block; font-weight: 600; color: var(--m); font-size: 13.5px; }
.studio .rem .b { display: flex; gap: 6px; }
.studio .rem .b span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--l2); font-weight: 700; font-size: 13.5px; background: #fff; }
.studio .rem .b span:first-child { background: var(--acc); border-color: var(--acc); color: #fff; }
.studio .catch .lbl { color: var(--acc); }
.studio .catch p { margin-top: 6px; font-size: 15px; line-height: 1.5; }
.studio .catch .chip { margin-top: 8px; background: var(--soft); color: var(--acc); }

/* Slack teams — one band, deliberately smaller */
.slack .box { border-radius: 24px; background: var(--ink); color: #fff; padding: 36px; display: grid; gap: 28px; }
.slack h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 820; letter-spacing: -0.03em; }
.slack .lead { color: #C9D4EA; font-size: 18px; }
.slack .cmds { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.slack .cmds code { font-family: inherit; font-weight: 700; font-size: 14.5px; padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.slack .kept { margin-top: 16px; color: var(--gold-soft); font-weight: 700; }
.slack .btn { margin-top: 22px; background: #fff; color: var(--ink); }
.msg { border-radius: 16px; background: #fff; color: var(--ink); padding: 16px; position: relative; }
.msg .who2 { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: 15px; }
.msg .av { width: 34px; height: 34px; border-radius: 9px; background: #CFE3D8; }
.msg p { margin: 6px 0 0 44px; font-size: 15px; }
.msg .menu2 { margin: 14px 0 0 44px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 14px 30px -18px rgba(11,26,54,.5); max-width: 260px; }
.msg .menu2 span { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: 8px; font-size: 14.5px; color: var(--muted); }
.msg .menu2 span.hit { background: #FFF4D6; color: var(--ink); font-weight: 800; }
.msg .menu2 img { width: 20px; height: 20px; border-radius: 30%; }

/* everything TraqBro does — an index of the feature lanes */
.lanes .list { margin-top: 36px; border-top: 1px solid var(--line); }
.lane { display: grid; gap: 10px 40px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.lane h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.lane p { color: var(--muted); max-width: 58ch; }
.lane .tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.lane .tags span { padding: 4px 11px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); font-size: 13.5px; font-weight: 650; color: #33425E; }
.types { margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.types div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.types b { display: block; font-size: 15px; }
.types small { color: var(--muted); font-size: 13px; }

/* six languages — each name in its own script */
.langs .names { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 760; letter-spacing: -0.02em; color: var(--indigo); }

/* pricing */
.price .grid { margin-top: 34px; display: grid; gap: 16px; }
.price .cell { border-radius: 20px; border: 1px solid var(--line); background: #fff; padding: 26px; }
.price .cell h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.price .cell p { margin-top: 8px; color: var(--muted); }
.price .cell .amt { margin-top: 12px; font-size: 18px; color: var(--ink); font-weight: 650; }
.price .cell.free { border: 2px solid var(--gold); }

/* FAQ — the questions people type into Google or ask an AI */
.faq .qa { margin-top: 30px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-weight: 750; font-size: 19px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 500; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: #33425E; max-width: 66ch; }

/* last call */
.end { background: linear-gradient(150deg, var(--navy) 0%, var(--indigo) 55%, var(--violet) 100%); color: #fff; padding: 76px 0; }
.end .wrap { display: grid; gap: 22px; justify-items: start; }
.end h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 850; letter-spacing: -0.04em; max-width: 18ch; }
.end p { color: #C9D4EA; font-size: 18px; }

footer { padding: 54px 0 40px; color: var(--muted); font-size: 15px; }
footer .cols { display: grid; gap: 30px; grid-template-columns: repeat(2, 1fr); }
footer h4 { margin: 0 0 8px; color: var(--ink); font-size: 15px; }
footer ul { margin: 0; padding: 0; list-style: none; }
footer li a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
footer li a:hover { color: var(--ink); text-decoration: underline; }
footer .base { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
footer .base a { display: inline-flex; align-items: center; min-height: 44px; }
footer select { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); padding: 0 10px; font: inherit; color: var(--ink); background: #fff; }
footer .base .c { margin-inline-start: auto; }

.mock { position: fixed; inset-inline-start: 12px; bottom: 12px; z-index: 20; padding: 6px 12px; border-radius: 999px; background: #E11D48; color: #fff; font-size: 12.5px; font-weight: 800; }

/* ── wide screens (the app's rule: 1024 px and up) ──── */
@media (min-width: 1024px) {
  .top nav.pages { display: flex; }
  .top .acts .in { display: inline-flex; }
  .top details.menu { display: none; }
  .hero .wrap { grid-template-columns: 1.1fr 1fr; align-items: center; padding-top: 72px; padding-bottom: 84px; gap: 56px; }
  .wall { grid-template-columns: repeat(3, 1fr); }
  .note:nth-child(n+4) { display: block; }
  .how .cols { grid-template-columns: repeat(3, 1fr); }
  .persona .row { grid-template-columns: 1fr 1fr; gap: 72px; }
  .persona .row.flip .words { order: 2; }
  .slack .box { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 48px; }
  .lane { grid-template-columns: 300px 1fr; }
  .types { grid-template-columns: repeat(5, 1fr); }
  .price .grid { grid-template-columns: repeat(3, 1fr); }
  footer .cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
