/* Scholarship Buddy. Green brand system from the Phase 2 brief.
   One light theme by choice. Tokens first; components use tokens only. */

@font-face { font-family: "Domine"; src: url("/fonts/domine-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/nunito-sans-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --green: #15754B; --green-deep: #0E5A39; --mint: #D7F0E1;
  --gold: #D9A62B; --gold-text: #8A6508;
  --ink: #13213A; --ink-2: #1C2D4B; --slate: #3E4A5A; --muted: #5F6B7A;
  --paper: #F6F9F6; --card: #FFFFFF; --tint: #EEF4F0; --line: rgba(62, 74, 90, .2);
  --danger: #B42318; --danger-bg: #FBE9E7;
  --on-dark: #F6F9F6; --on-dark-soft: #C9DED2;
  --display: "Domine", Georgia, serif;
  --text: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 20px; --shadow: 0 8px 24px rgba(19, 33, 58, .08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 58px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: 20px; }
p, ul, ol, dl { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.wrap.narrow { max-width: 760px; }
.sr, .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.lede { font-size: 19px; color: var(--slate); max-width: 62ch; }
.fine { font-size: 14px; color: var(--muted); }
.meta { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.more { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spaced { margin-top: 36px; }
.center { text-align: center; margin-inline: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--green); color: var(--on-dark); }
.btn-primary:hover { background: var(--green-deep); color: var(--on-dark); }
.btn-primary[aria-pressed="true"] { background: var(--mint); color: var(--green-deep); border-color: var(--green); }
.btn-ghost { background: var(--card); color: var(--green); border-color: var(--green); }
.btn-ghost:hover, .btn-ghost.is-on { background: var(--mint); color: var(--green-deep); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E4B545; color: var(--ink); }
.btn-text { color: var(--green); padding-inline: 4px; text-decoration: underline; text-underline-offset: 3px; }
.btn-text-light { color: var(--on-dark); padding-inline: 4px; text-decoration: underline; text-underline-offset: 3px; }
.btn-text-light:hover { color: var(--gold); }
.btn-danger { background: var(--card); color: var(--danger); border-color: var(--danger); }
.btn-block { display: flex; width: 100%; }

/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark { width: 40px; height: 40px; border-radius: 11px; background: var(--green); display: grid; place-items: center; flex: none; }
.mark svg { width: 26px; height: 26px; }
.wordmark { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.wordmark b { color: var(--green); font-weight: 700; }
.site-header nav { display: flex; gap: 20px; align-items: center; font-weight: 700; font-size: 15px; }
.site-header nav a { color: var(--slate); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--green-deep); border-bottom-color: var(--green); }
.site-header nav a.nav-plan { color: var(--green); border: 2px solid var(--green); border-radius: 10px; padding: 6px 12px; }
.plan-count { background: var(--gold); color: var(--ink); border-radius: 999px; font-size: 12px; padding: 1px 7px; margin-left: 4px; }
.menu { display: none; font: inherit; font-weight: 800; background: var(--card); color: var(--green); border: 2px solid var(--green); border-radius: 10px; padding: 8px 14px; cursor: pointer; }

/* trust strip */
.strip { background: var(--ink); color: var(--on-dark-soft); font-size: 14px; font-weight: 700; }
.strip .wrap { display: flex; gap: 8px 26px; justify-content: center; flex-wrap: wrap; padding-block: 10px; }
.strip span { display: inline-flex; align-items: center; gap: 8px; }
.strip span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* sections */
section { padding-block: 56px; }
section.tight { padding-block: 32px 56px; }
.band { background: var(--tint); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark .eyebrow { color: var(--gold); }
.dark .sec-head p { color: var(--on-dark-soft); }
.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; max-width: 64ch; }
.sec-head p { color: var(--slate); font-size: 18px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.page-head { padding-block: 44px 8px; }
.page-head .wrap { display: flex; flex-direction: column; gap: 12px; }

/* hero */
.hero { padding-block: 48px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* cards and listings */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-dark { background: var(--ink-2); border-color: transparent; color: var(--on-dark); box-shadow: none; }
.card-dark p { color: var(--on-dark-soft); }
.card-label { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.card-dark .card-label { color: var(--gold); }
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--tint); color: var(--ink); }
.chip-verified { background: var(--mint); color: var(--green-deep); }
.chip-stale { background: var(--danger-bg); color: var(--danger); }
.listing-name { font-family: var(--text); font-size: 19px; font-weight: 800; line-height: 1.25; }
.listing-name a { color: var(--ink); text-decoration: none; }
.listing-name a:hover { color: var(--green-deep); text-decoration: underline; }
.listing-sponsor { color: var(--muted); font-size: 15px; }
.amount { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.reqs { display: flex; gap: 6px; flex-wrap: wrap; }
.req { font-size: 13px; color: var(--slate); background: var(--tint); padding: 4px 10px; border-radius: 8px; }
.req-deadline { font-weight: 800; color: var(--ink); }
.req-soon { background: var(--danger-bg); color: var(--danger); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.listing.is-closed { opacity: .6; }
.result-count { font-weight: 800; margin-block: 18px 14px; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: 22px; color: var(--slate); }

/* forms */
.signup { display: flex; flex-direction: column; gap: 10px; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
input[type="email"], input[type="text"], input[type="search"], input[type="number"], select { font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); min-width: 0; width: 100%; }
.signup-row input { flex: 1 1 200px; width: auto; }
input:focus, select:focus { outline: 3px solid var(--mint); border-color: var(--green); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--slate); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--green); }
.form-status { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form-status.is-error { color: var(--danger); font-weight: 700; }
.form-status.is-ok { color: var(--green-deep); font-weight: 700; }
.dark .consent, .dark .form-status { color: var(--on-dark-soft); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 170px; min-width: 0; }
.field label { font-size: 13px; font-weight: 800; color: var(--slate); }

/* blueprint */
.ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.grade { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--mint); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); min-width: 0; }
.grade:nth-child(2) { border-top-color: #A9DDBF; }
.grade:nth-child(3) { border-top-color: #6FC596; }
.grade:nth-child(4) { border-top-color: var(--green); }
.grade:nth-child(5) { background: var(--green); color: var(--on-dark); border-color: var(--green); border-top-color: var(--gold); }
.grade:hover { box-shadow: var(--shadow); color: var(--ink); }
.grade:nth-child(5):hover { color: var(--on-dark); }
.grade .g { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--green); }
.grade:nth-child(5) .g { color: var(--gold); }
.grade-title { font-weight: 800; }
.grade-job { font-size: 14px; color: var(--slate); }
.grade:nth-child(5) .grade-job { color: var(--mint); }
.grade-list { display: grid; gap: 14px; margin-top: 24px; }
.grade-list h2 { font-size: 24px; }
.grade-list h2 a { color: var(--ink); text-decoration: none; }
.grade-list h2 a:hover { color: var(--green-deep); text-decoration: underline; }

/* detail pages and prose */
.detail { padding-block: 36px 64px; }
.detail .wrap { display: flex; flex-direction: column; gap: 14px; }
.detail h2 { font-size: 24px; margin-top: 18px; }
.crumb { font-size: 14px; font-weight: 700; }
.crumb a::before { content: "← "; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-block: 8px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.facts dt { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 4px 0 0; font-weight: 800; }
.checklist { list-style: none; padding: 0; display: grid; gap: 8px; }
.checklist li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 44px; position: relative; }
.checklist li::before, .ticks li::before, .tick { content: ""; width: 10px; height: 18px; border: solid var(--green); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.checklist li::before { position: absolute; left: 17px; top: 10px; }
.verify-note { background: var(--mint); border-radius: 16px; padding: 18px 20px; margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.verify-note h2 { font-family: var(--text); font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--green-deep); margin: 0; }
.verify-note p { color: var(--ink); }
.verify-note a { color: var(--green-deep); font-weight: 700; }
.prose { display: flex; flex-direction: column; gap: 14px; max-width: 68ch; }
.prose h2 { font-size: 24px; margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; font-weight: 800; }
.post-pick { margin-top: 28px; }

/* posts */
.grid-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.post h2, .post h3 { font-family: var(--text); font-size: 19px; font-weight: 800; line-height: 1.3; }
.post h2 a, .post h3 a { color: var(--ink); text-decoration: none; }
.post h2 a:hover, .post h3 a:hover { color: var(--green-deep); text-decoration: underline; }
.post p:not(.meta) { font-size: 15px; color: var(--slate); }

/* tables */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--tint); white-space: nowrap; }
tbody th { font-weight: 700; }
.cal-group { margin-block: 30px 6px; font-size: 26px; }
.cal-note { color: var(--slate); font-size: 15px; margin-bottom: 12px; max-width: 70ch; }
.cal { min-width: 620px; }

/* sports */
.school h3 { font-family: var(--text); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 6px; }
.school-aid { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--gold-text); }
.coach { background: var(--tint); border-radius: 12px; padding: 12px 14px; font-size: 15px; display: grid; gap: 4px; }
.calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.calc .consent, .calc-out { grid-column: 1 / -1; }
.calc-out { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 6px; }
.calc-out .big { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--green-deep); }
.calc-out .warn { color: var(--danger); font-weight: 700; }

/* my plan */
.plan-list { display: grid; gap: 10px; margin-block: 10px 24px; }
.plan-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.plan-item .who { min-width: 0; flex: 1 1 260px; display: grid; gap: 2px; }
.plan-item .who a { font-weight: 800; color: var(--ink); }
.plan-item .controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-item select { width: auto; max-width: 100%; padding: 8px 10px; font-size: 16px; }
.plan-item .btn { padding: 8px 12px; font-size: 16px; }

/* pricing, modelled on a centred tier layout */
.pricing-hero { padding-block: 52px 40px; text-align: center; }
.pricing-hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pricing-hero .lede { max-width: 56ch; }
.billing { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.billing button { font: inherit; font-weight: 800; font-size: 15px; border: 0; background: transparent; color: var(--slate); padding: 10px 22px; border-radius: 10px; cursor: pointer; }
.billing button.is-on { background: var(--ink); color: var(--on-dark); }
.billing .save { color: var(--green-deep); font-weight: 800; font-size: 14px; padding-inline: 12px; }
.reassure { font-size: 14px; color: var(--muted); }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; text-align: left; margin-top: 18px; width: 100%; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; position: relative; min-width: 0; }
.tier-rec { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.rec { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--on-dark); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.tier h2 { font-size: 26px; }
.tier-for { color: var(--slate); font-size: 15px; min-height: 3em; }
.tier-price { color: var(--slate); font-size: 15px; }
.price-big { font-family: var(--text); font-size: 46px; font-weight: 400; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tier-billed { font-size: 13px; color: var(--muted); }
.tier-key { border-block: 1px solid var(--line); padding-block: 14px; margin-block: 8px 4px; display: grid; }
.tier-key span { color: var(--slate); font-size: 15px; }
.ticks { list-style: none; padding: 0; display: grid; gap: 9px; font-size: 15px; margin-bottom: 14px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { position: absolute; left: 6px; top: 1px; width: 7px; height: 13px; border-width: 0 2.5px 2.5px 0; }
.ticks li.plus { font-weight: 800; }
.ticks li.plus::before { content: "→"; border: 0; transform: none; width: auto; height: auto; left: 2px; top: 0; color: var(--green); }
.tier .btn { margin-top: auto; }
.tier-note { font-size: 13px; color: var(--muted); text-align: center; }
.groups { margin-top: 22px; width: 100%; max-width: 780px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; text-align: left; }
.groups h2 { font-size: 20px; }
.groups p { color: var(--slate); font-size: 15px; max-width: 52ch; }
.groups-contact { font-weight: 800; }
.price-line { font-size: 17px; }
.card-dark .price-big { color: var(--on-dark); }
.compare th:not(:first-child), .compare td { text-align: center; width: 130px; }
.compare tr.group th { background: var(--tint); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: left; }
.tick { display: inline-block; width: 8px; height: 15px; border-width: 0 3px 3px 0; }
.dash { display: inline-block; width: 14px; height: 3px; background: var(--line); vertical-align: middle; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { margin-top: 10px; color: var(--slate); }

/* footer */
.site-footer { background: var(--green-deep); color: var(--mint); padding-block: 40px; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; }
.site-footer .wordmark { color: var(--on-dark); }
.site-footer .wordmark b { color: var(--gold); }
.site-footer a { color: var(--on-dark); }
.footer-brand { display: grid; gap: 8px; align-content: start; }
.footer-nav { display: flex; gap: 8px 20px; flex-wrap: wrap; align-content: start; font-weight: 700; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; color: var(--gold); }
.footer-note { grid-column: 1 / -1; border-top: 1px solid rgba(215, 240, 225, .3); padding-top: 16px; color: var(--on-dark-soft); max-width: 90ch; }

@media (max-width: 920px) {
  .hero-grid, .split, .site-footer .wrap { grid-template-columns: 1fr; }
  .grid-cards, .grid-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu { display: inline-flex; }
  .site-header nav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 14px; }
  .site-header nav.is-open { display: flex; }
}
@media (max-width: 640px) {
  section { padding-block: 40px; }
  .grid-cards, .grid-cards.two, .grid-posts, .tiers, .calc { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .strip .wrap { justify-content: flex-start; }
  .btn { padding: 12px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .grade, .chip { transition: background-color .15s ease, box-shadow .15s ease; }
}
@media (max-width: 480px) {
  .site-header .wrap { min-height: 60px; gap: 10px; }
  .mark { width: 34px; height: 34px; border-radius: 9px; }
  .mark svg { width: 22px; height: 22px; }
  .wordmark { font-size: 19px; }
  .menu { padding: 7px 12px; }
}
