/* Scholarships For Me: the Planner colors (deep teal, gold for dates, light and dark) in the Agent Savings layout
   (2026-11-30): Instrument Sans for everything, one Instrument Serif italic phrase, light headline weights,
   a soft glow, rounded cards that lift on hover, pill buttons. Fonts are self-hosted (SIL OFL). No Google Fonts. */
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600 700; font-display: swap }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap }
:root {
  --bg: #fbfcfc; --surface: #ffffff; --sunk: #f1f5f4; --line: #e2e8e7;
  --fg: #11201f; --muted: #50615f; --faint: #667573;
  --accent: #0e6d6f; --accent-dark: #0a5658; --accent-fg: #ffffff; --accent-soft: #e2f2ef;
  --gold: #f2b83d; --gold-soft: #fdf3dc; --gold-ink: #7c5208;
  --good: #1a7a43; --bad: #b3342f; --warn: #8a5a06;
  --display: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --glow: color-mix(in srgb, var(--accent) 16%, transparent);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1515; --surface: #152020; --sunk: #1c2828; --line: #283636;
    --fg: #eaf2f1; --muted: #a3b3b1; --faint: #8a9b99;
    --accent: #5cc6c4; --accent-dark: #43aeac; --accent-fg: #062020; --accent-soft: #163332;
    --gold: #f2b83d; --gold-soft: #3a2f16; --gold-ink: #f5cf7a;
    --good: #4cc38a; --bad: #f08080; --warn: #e3a84e;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1515; --surface: #152020; --sunk: #1c2828; --line: #283636;
  --fg: #eaf2f1; --muted: #a3b3b1; --faint: #8a9b99;
  --accent: #5cc6c4; --accent-dark: #43aeac; --accent-fg: #062020; --accent-soft: #163332;
  --gold: #f2b83d; --gold-soft: #3a2f16; --gold-ink: #f5cf7a;
  --good: #4cc38a; --bad: #f08080; --warn: #e3a84e;
}
body { font: 16px/1.6 var(--body); }
.num, .totals b, .price .amount, .tile b { font-variant-numeric: tabular-nums }
h1, h2, h3 { font-family: var(--display); }
h1 { font-weight: 550; font-size: clamp(36px, 7vw, 64px); line-height: 1.03; letter-spacing: -0.045em; text-wrap: balance }
h2 { font-weight: 550; font-size: clamp(25px, 4vw, 32px); letter-spacing: -0.035em; margin: 56px 0 10px }
h3 { font-weight: 600; letter-spacing: -0.015em }
.logo { font: 600 17px/1 var(--display); letter-spacing: -0.02em; gap: 9px; color: var(--fg); text-decoration: none }
.logo::before { content: ""; width: 26px; height: 26px; flex: none; background: url(/brand/mark.svg) center / contain no-repeat; }
.kit-btn { border-radius: 12px; box-shadow: none; font-weight: 600 }
.kit-btn-quiet { background: var(--sunk); color: var(--fg) }
.card { border-radius: var(--radius) }
.lede { color: var(--muted) }

/* Hero: a faint dot grid fading out, one soft teal glow, centered headline, and the two starting questions. */
.hero { position: relative; text-align: center; padding: 40px 0 8px; isolation: isolate }
.hero::before { content: ""; position: absolute; z-index: -1; inset: -90px -50vw 0; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(circle, color-mix(in srgb, var(--fg) 11%, transparent) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 45%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 45%, transparent); }
.hero h1 { margin: 0 auto 14px; max-width: 14ch }
.hero h1 em { font-style: normal; color: var(--accent) }
.hero .lede { margin: 0 auto 28px; max-width: 42ch; font-size: 18px }
.ask { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 12px;
  box-shadow: 0 30px 70px -32px rgba(14, 60, 60, .38); display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; text-align: left }
.ask label { display: flex; flex-direction: column; background: var(--sunk); border-radius: 14px; padding: 8px 12px; margin: 0; min-width: 0 }
.ask label span { font-size: 12.5px; color: var(--muted) }
.ask select { appearance: none; border: 0; background: transparent; color: var(--fg); font: 500 16px var(--body); padding: 2px 0; width: 100%; min-height: 28px; cursor: pointer }
.ask select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px }
.ask .kit-btn { min-height: 56px; padding: 0 22px; font-size: 16px }
.ask-note { font-size: 14px; color: var(--muted); margin: 12px 0 0 }
.hero-links { margin: 14px 0 0; font-size: 15px }
.hero-links a { color: var(--accent); font-weight: 500 }
@media (max-width: 600px) { .ask { grid-template-columns: 1fr 1fr } .ask .kit-btn { grid-column: 1 / -1 } }

/* Feature band: a gentle gradient behind short reasons to trust it (never behind long body text). */
.band { margin: 56px 0 0; border-radius: 26px; padding: 26px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, var(--surface)) 60%, var(--gold-soft)) }
.band h3 { margin: 0 0 4px; font-size: 17px }
.band p { margin: 0; color: var(--muted); font-size: 15px }
.faint { color: var(--faint) }
.tool { margin: 14px 0; min-height: 220px }
code { background: var(--sunk); border-radius: 6px; padding: 1px 6px; font-size: .92em; overflow-wrap: anywhere }

.topnav { display: flex; gap: 16px; margin-left: auto; font-size: 15px }
.topnav a, .subnav a { color: var(--muted); text-decoration: none; font-weight: 500 }
.topnav a:hover, .subnav a:hover { color: var(--accent) }
.subnav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -12px 0 18px; font-size: 15px }
.crumbs { font-size: 14px; color: var(--faint); margin: 0 0 6px }
.crumbs a { color: var(--muted) }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px }
.totals { list-style: none; padding: 0; margin: 36px 0 18px; text-align: left; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) }
.totals li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column }
.totals b { font: 600 28px/1.1 var(--display); letter-spacing: -0.03em; color: var(--fg) }
.totals span { color: var(--muted); font-size: 14px }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start }

.price .amount { font: 500 24px/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 8px }
.price .amount b { color: var(--accent); font-size: 40px }
.steps { padding-left: 20px; margin: 0 0 14px }
.steps li { margin: 6px 0 }
.copy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }

.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px }
.chat p { margin: 0 }
.chat .you { background: var(--sunk); border-radius: 12px; padding: 10px 12px; justify-self: end; max-width: 92% }
.chat .tool { margin: 0; min-height: 0; font-size: 13.5px; color: var(--faint) }
.chat .claude ul { padding-left: 18px; margin: 8px 0 }
.chat .claude li { margin: 6px 0 }

/* Directory pages: each award is a row with a calendar tile for its deadline, the name and funder, then the amount. */
.awards { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px }
.award { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 14px 14px; margin: 0;
  display: grid; grid-template-columns: 64px 1fr; gap: 4px 16px; align-items: start }
.award > :not(.tile) { grid-column: 2; min-width: 0 }
.tile { grid-row: 1 / span 4; border-radius: 12px; background: var(--gold-soft); text-align: center; padding: 7px 0 9px; line-height: 1.1 }
.tile small { display: block; font-size: 11px; font-weight: 650; letter-spacing: .08em; color: var(--gold-ink) }
.tile b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; color: var(--fg) }
.tile.none { background: var(--sunk) }
.tile.none small { color: var(--muted); letter-spacing: .02em; text-transform: none; font-size: 11.5px; padding: 8px 4px }
.tile.past { background: var(--sunk) } .tile.past small { color: var(--muted) }
.award h3 { margin: 0; font-size: 17px; line-height: 1.3 }
.award h3 a { color: var(--fg); text-decoration: none }
.award h3 a:hover { color: var(--accent); text-decoration: underline }
.award p { margin: 2px 0 }
.award .amt { font-weight: 650; font-size: 16px }
.meta { color: var(--muted); font-size: 14.5px }
.meta a { color: var(--muted) }
.checked { color: var(--faint); font-size: 13px }
.more { border-style: dashed }
.cta { background: var(--sunk) }
.empty { color: var(--muted) }
.notice { border-color: var(--warn) }
.note { color: var(--warn) }
.chips { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px }
.chips a { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--fg) }
.chips a:hover { border-color: var(--accent) }
.chips .num { color: var(--faint); font-weight: 400; margin-left: 4px }
.plain { list-style: none; padding: 0 }
.plain li { padding: 4px 0 }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 16px 0 }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px }
.facts dt { font-size: 13px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em }
.facts dd { margin: 2px 0 0; font-weight: 600 }
.search { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; margin: 18px 0 8px }
.search label { font-size: 14px; font-weight: 600; margin: 0 }
.locked { font-size: 14px; color: var(--muted) }
.lock { display: inline-block; border: 1px dashed var(--line); border-radius: 8px; padding: 1px 8px; margin: 2px 2px; color: var(--faint) }
.sample-banner { background: var(--warn); color: var(--bg); padding: 10px 14px; border-radius: 10px; margin: 0 0 16px; font-size: 15px }
.kit-form textarea.field { resize: vertical }
.kit-form .check { display: flex; gap: 8px; align-items: center }
.kit-form .check input { width: auto; margin: 0 }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px }

/* Header: wraps instead of squeezing the account button, and every header link is a 44px target. */
.top { flex-wrap: wrap; row-gap: 4px }
.topnav a { display: inline-flex; align-items: center; min-height: 44px }
.logo { display: inline-flex; align-items: center; min-height: 44px }
.kit-btn { min-height: 44px }
.chips a { min-height: 44px; display: inline-flex; align-items: center }
.search button, .search .kit-btn { min-height: 44px }

/* Standalone links (sub navigation, breadcrumbs, link lists, footer) are 44px targets. Links inside a sentence are not. */
.subnav a, .crumbs a, .plain a, .foot a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px }
.subnav { margin: -12px 0 6px; row-gap: 0 }
.crumbs { margin: 0 0 6px }
.plain li { padding: 0 }
.crumbs span { display: inline-flex; align-items: center; min-height: 44px }

/* Award-page footer: the correction link is its own 44px target. */
.corr { display: flex; flex-wrap: wrap; align-items: center; column-gap: .3em }
.corr a, .plain a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px }

/* Phone header: logo, Browse and the account button on one line. */
@media (max-width: 600px) { .top { flex-wrap: nowrap; gap: 8px } .topnav { gap: 12px } .topnav a + a { display: none } .logo { white-space: nowrap } }
/* Phone sub navigation: one row that scrolls sideways instead of wrapping. */
@media (max-width: 600px) { .subnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * max(16px, env(safe-area-inset-right))); } .subnav a { white-space: nowrap; flex: none } }


/* ---- Agent Savings layout, Planner colors (2026-11-30) ---- */
html, body { overflow-x: clip }
body { position: relative; font-size: 17px }
body::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 900px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0, var(--glow), transparent 70%), radial-gradient(35% 30% at 100% 12%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 70%) }
.wrap { max-width: 1080px }
h1 { font: 400 clamp(40px, 8.5vw, 80px)/1.02 var(--display); letter-spacing: -.04em }
h1 em, h2 em { font: italic 400 1.04em var(--serif); letter-spacing: -.01em; color: var(--accent) }
h2 { font: 400 clamp(28px, 4.6vw, 40px)/1.1 var(--display); letter-spacing: -.03em; margin: 64px 0 16px }
h3 { font-weight: 500 }
.lede { font-size: clamp(18px, 2.3vw, 21px) }
.logo { font: 500 19px/1 var(--body); letter-spacing: -.02em }

.topnav { gap: 22px; margin-left: auto; margin-right: 8px }
.topnav a { font: 500 15px/1 var(--body) }
.top-actions { display: flex; align-items: center; gap: 10px }
.top-actions > [data-kit-account] { max-width: none !important; flex: none }
.top-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font: 500 15px/1 var(--body); text-decoration: none; white-space: nowrap }
.top-cta:hover { background: var(--accent-dark) }
@media (max-width: 860px) { .topnav { display: none } .top-actions { margin-left: auto } }
@media (max-width: 420px) { .logo { font-size: 16px } .top-cta { padding: 0 12px; min-height: 36px; font-size: 14px } }

.hero { padding: clamp(56px, 10vw, 120px) 0 12px }
.hero h1 { max-width: 15ch; margin: 0 auto 20px }
.hero .lede { max-width: 44ch }
.eyebrow { font-size: 15px; color: var(--muted); margin: 0 0 16px; display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .02em }
.ask { border-radius: 24px; box-shadow: 0 30px 80px -24px color-mix(in srgb, var(--accent) 35%, transparent), 0 4px 14px rgb(0 0 0 / .05) }
.ask .kit-btn, .kit-btn { border-radius: 999px }
.ask label { border-radius: 16px }
.totals { max-width: 720px; margin: 40px auto 8px; grid-template-columns: repeat(3, 1fr) }
.totals li { text-align: center; align-items: center; background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(6px) }
.totals b { font-weight: 400; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.04em }
@media (max-width: 520px) { .totals { grid-template-columns: 1fr 1fr } .totals li:last-child { grid-column: 1 / -1 } }

.tool { max-width: 760px; margin: 28px auto }

.card { border-radius: var(--radius); padding: 22px }
.grid .card { margin: 0; transition: border-color .15s, transform .15s }
.grid .card:hover { border-color: var(--accent); transform: translateY(-2px) }
.card h3 { margin: 0 0 6px; font: 500 19px/1.25 var(--body); letter-spacing: -.01em }
.card p { color: var(--muted); margin: 0 }
.card p + p { margin-top: 8px }
.band { border-radius: 26px; padding: clamp(22px, 4vw, 40px) }
.band h3 { font-weight: 500; font-size: 18px }

/* The AI section: an editorial panel with hairline rows; labels in a left column on desktop */
.agent { margin: 72px 0 0; padding: clamp(22px, 4vw, 48px); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%), var(--surface); border: 1px solid var(--line); border-radius: 26px }
.agent h2 { font-size: clamp(30px, 5vw, 48px); margin: 6px 0 14px; max-width: 20ch }
.agent h3 { margin: 26px 0 8px; padding-top: 22px; border-top: 1px solid var(--line); font: 500 15px/1.3 var(--body); letter-spacing: .01em; color: var(--accent) }
.agent-eyebrow { margin: 0; font-size: 15px; font-weight: 500; color: var(--accent) }
.agent-lede { font-size: 19px; color: var(--muted); max-width: 58ch }
.agent ul { margin: 6px 0; padding-left: 0; list-style: none }
.agent li { margin: 8px 0; padding-left: 18px; position: relative }
.agent .agent-asks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .55 }
.agent .chat ul li { padding-left: 0 }
.agent .chat ul { padding-left: 18px; list-style: disc }
.agent .steps { padding-left: 20px }
.agent .steps li { padding-left: 0 }
.chat { border-radius: 18px; background: var(--bg) }
@media (min-width: 900px) {
  .agent { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 40px }
  .agent > .agent-eyebrow, .agent > h2, .agent > .agent-lede { grid-column: 1 / -1 }
  .agent > h3 { grid-column: 1; margin: 12px 0 0 }
  .agent > :not(h3):not(.agent-eyebrow):not(h2):not(.agent-lede) { grid-column: 2 }
  .agent > h3 + * { margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line) }
}
.chips a { border-radius: 999px }
.faq details { padding: 14px 0; border-bottom: 1px solid var(--line) }
.faq summary { font-weight: 500; cursor: pointer }
.price .amount b { font-weight: 400; font-size: 48px; letter-spacing: -.04em }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)) }
@media (max-width: 960px) { .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 560px) { .grid.four { grid-template-columns: 1fr } }
@media (max-width: 520px) { .top-cta { display: none } }

/* ---- Header, hero, stats, AI section: clean pass (2026-12-01) ---- */
.wrap { position: relative }
.top { min-height: 72px; padding: 0 }
.subnav { display: none }
/* Nav: quiet text links in the header row; the current page is marked by a short accent bar, not a filled pill. */
.tabs { display: flex; gap: 2px; align-items: center }
.tabs a { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font: 500 15px/1 var(--body); white-space: nowrap }
.tabs a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent) }
.tabs a[aria-current="page"] { color: var(--fg) }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent) }
@media (min-width: 960px) {
  .tabs { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 2 }
}
@media (max-width: 959px) {
  .tabs { overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * max(16px, env(safe-area-inset-right))) 4px 0; padding-bottom: 2px; border-bottom: 1px solid var(--line) }
  .tabs::-webkit-scrollbar { display: none }
  .tabs a { padding: 0 10px; font-size: 14.5px }
}
.top-cta { display: none }

.hero { padding: clamp(48px, 9vw, 112px) 0 0 }
.hero h1 { max-width: 14ch; margin: 0 auto 18px }
.hero .lede { max-width: 36ch; margin: 0 auto 32px; font-size: clamp(18px, 2.1vw, 20px) }
.ask-note { margin: 14px 0 0; font-size: 14.5px }
.ask-note a { font-weight: 500 }

.stats { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 820px }
.stats .totals { margin: 0; max-width: none; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--surface) 70%, transparent); overflow: hidden }
.stats .totals li { border: 0; border-radius: 0; background: transparent; padding: 22px 16px; backdrop-filter: none }
.stats .totals li + li { border-left: 1px solid var(--line) }
.stats .totals b { font: 400 clamp(30px, 4.4vw, 44px)/1 var(--display); letter-spacing: -.045em; margin-bottom: 8px }
.stats .totals span { font-size: 14px; color: var(--muted); max-width: 18ch; text-align: center; line-height: 1.35 }
.stats .totals sup { font-size: .7em; color: var(--faint) }
.stats-note { margin: 12px auto 0; max-width: 70ch; font-size: 12.5px; line-height: 1.5; color: var(--faint); text-align: center }
.stats-note a { color: var(--muted) }
@media (max-width: 600px) {
  .stats .totals li { padding: 16px 6px }
  .stats .totals b { font-size: 26px; margin-bottom: 6px }
  .stats .totals span { font-size: 12px }
}
.tool { max-width: 760px; margin: clamp(48px, 7vw, 80px) auto 0 }

/* AI section: copy on the left, a live example chat on the right. */
.ai-home { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin: clamp(64px, 9vw, 112px) 0 0;
  padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 55%) }
.ai-home .kicker { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--accent) }
.ai-home h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 44px) }
.ai-home p { color: var(--muted); margin: 0 0 22px; max-width: 42ch }
.ai-demo .chat { box-shadow: 0 24px 60px -30px rgb(0 0 0 / .35) }
.ai-demo .chat .faint { font-size: 12.5px }
@media (max-width: 860px) { .ai-home { grid-template-columns: 1fr } }

/* Typing demo in the empty ask fields (trade grader style) */
.ask label { position: relative }
.ask select.demoing { color: transparent }
.ask-demo { position: absolute; left: 12px; bottom: 8px; font: 600 18px var(--body); color: var(--fg); pointer-events: none; white-space: nowrap; overflow: hidden; max-width: calc(100% - 24px) }
.ask-demo .caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.2em; background: var(--accent); animation: askblink 1s steps(1) infinite }
@keyframes askblink { 50% { opacity: 0 } }

.page-head { padding: clamp(32px, 6vw, 64px) 0 8px }
.page-head h1, .agent-h1 { font: 400 clamp(36px, 6vw, 60px)/1.05 var(--display); letter-spacing: -.04em; margin: 0 0 14px }
.agent-h1 em { font: italic 400 1.04em var(--serif); color: var(--accent) }
@media (min-width: 900px) { .agent > .agent-h1.agent-h1.agent-h1 { grid-column: 1 / -1 } }
.stats .totals li[hidden], .stats-note[hidden] { display: none !important }

/* Browse filters (2026-12-01) */
.filters { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px; margin: 8px 0 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface) }
.filters label { display: flex; flex-direction: column; gap: 4px; margin: 0; min-width: 0 }
.filters label span { font-size: 13px; font-weight: 500; color: var(--muted) }
.filters .field { width: 100%; min-height: 44px; box-sizing: border-box }
.filters .f-q { grid-column: 1 / -1 }
.filters .f-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px }
.filters .f-clear { color: var(--muted); font-size: 15px }
@media (max-width: 720px) { .filters { grid-template-columns: 1fr 1fr } }
@media (max-width: 440px) { .filters { grid-template-columns: 1fr } }
.results-h { margin: 8px 0 12px; font-size: clamp(24px, 3.4vw, 32px) }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; font-size: 15px; color: var(--muted) }
.pager a { font-weight: 500 }

/* AI search box (paid; hidden until AI_SEARCH_UI = "on") */
.ai-search { margin: 8px 0 24px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 60%) }
.ai-search h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px) }
.ai-search textarea { width: 100%; box-sizing: border-box; margin: 10px 0; resize: vertical }
.ai-search .f-actions { display: flex; align-items: center; gap: 14px }
.ai-pick { grid-template-columns: 1fr }

/* Selects: our own chevron, inset 14px from the edge (2026-12-01: "the dropdown arrows are too far right") */
select.field { -webkit-appearance: none; appearance: none; padding-right: 42px; background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238a9b99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") }

/* Tabs centered on the logo row (measured: logo middle at 54px) */
@media (min-width: 960px) { .tabs { top: 34px } }

/* Hero: AI search first (2026-12-01: "ai search should be more front and center on the home page") */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
.mode { display: inline-flex; gap: 4px; padding: 4px; margin: 0 auto 12px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent) }
.mode button { border: 0; background: transparent; color: var(--muted); font: 500 14.5px/1 var(--body); padding: 10px 16px; border-radius: 999px; cursor: pointer; min-height: 40px }
.mode button[aria-selected="true"] { background: var(--accent); color: var(--accent-fg) }
.ai-hero { max-width: 680px; margin: 0 auto; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; text-align: left;
  box-shadow: 0 30px 80px -24px color-mix(in srgb, var(--accent) 35%, transparent), 0 4px 14px rgb(0 0 0 / .05) }
.ai-hero textarea { width: 100%; box-sizing: border-box; border: 0; border-radius: 16px; background: var(--sunk); color: var(--fg); font: 400 17px/1.5 var(--body); padding: 14px 16px; resize: vertical; min-height: 96px }
.ai-hero textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.ai-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap }
.ai-hero-row .faint { font-size: 13.5px; padding-left: 4px }
.ai-hero-row .kit-btn { min-height: 48px; padding: 0 22px }
#ai-hero-note { max-width: 62ch; margin: 12px auto 0; font-size: 12.5px; color: var(--faint) }
.ai-hero-results { max-width: 760px; margin: 16px auto 0; text-align: left }
.ai-hero-results .awards { margin-top: 8px }
@media (max-width: 560px) { .ai-hero-row .kit-btn { width: 100% } }
.ask[hidden], .ai-hero[hidden], #ai-hero-note[hidden] { display: none !important }
.ai-hero-row .faint { flex: 1 1 220px }

/* Buy button at the end of the tab row on every main page (2026-12-01) */
.tabs a.tab-cta { margin-left: 8px; background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: 0 14px; font-weight: 600 }
.tabs a.tab-cta:hover { background: var(--accent-dark); color: var(--accent-fg) }
.tabs a.tab-cta::after { display: none }
.tabs a.tab-cta[hidden] { display: none }
@media (max-width: 959px) { .tabs a.tab-cta { order: -1; margin: 0 6px 0 0 } }
@media (min-width: 960px) {
  .tabs { left: auto; right: 132px; transform: none }
  .tabs a { padding: 0 10px; font-size: 14.5px }
  .tabs a.tab-cta { padding: 0 14px; margin-left: 6px }
}
@media (min-width: 960px) and (max-width: 1100px) { .tabs a[href="/for-funders"] { display: none } }
