/* The NextFound Academics marketing page (/marketing) and the privacy statement (/privacy).
   NextFound's identity: navy (#0F1A2B) and red (#E23B2E) on white and a warm off-white, with the
   N-that-becomes-an-arrow as the recurring motif. Headlines in Outfit (the wordmark's geometric
   weight), text in Inter, labels in JetBrains Mono. Everything is self-hosted
   (static/fonts/nextfound.css): the Content-Security-Policy allows nothing from outside. */

:root {
  --navy: #0F1A2B;
  --navy-2: #17243A;
  --navy-3: #22314B;
  --navy-soft: #EBEEF3;
  --red: #E23B2E;
  --red-deep: #C12E22;
  --red-ink: #B8291E;
  --red-soft: #FDECEA;
  --ink: #0F1A2B;
  --ink-soft: #3B4659;
  --body: #3B4659;
  --muted: #667085;
  --muted-mono: #7A7F8C;
  --line: #E6E1D8;
  --line-strong: #CCC5B8;
  --paper: #F5F2ED;
  --surface: #FFFFFF;
  --white: #FFFFFF;
  --ok: #157347;
  --ok-soft: #E5F3EB;
  --warn: #9A5B00;
  /* kept for any older markup that still reads them */
  --blue: var(--navy);
  --blue-deep: #0B1422;
  --blue-soft: var(--navy-soft);
  --blue-tint: #F6F7F9;
  --teal: var(--red-ink);
  --teal-soft: var(--red-soft);
  --serif: "Outfit", "Inter", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 26, 43, .05), 0 18px 40px rgba(15, 26, 43, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--body); background: var(--surface); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--red-ink); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; margin: 0; }
h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.28rem; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
code { font-family: var(--mono); font-size: .88em; background: var(--navy-soft); color: var(--navy); padding: .12em .4em; border-radius: 5px; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .76rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--red); }
.eyebrow.red { color: var(--red-ink); }
.lead { font-size: 1.2rem; color: var(--body); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 12px;
  font: 600 1rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 12px 26px rgba(226, 59, 46, .32); }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-red::after { content: "\2192"; font-weight: 700; transition: transform .15s; }
.btn-red:hover::after { transform: translateX(3px); }
.btn-small.btn-red::after { content: none; }
.btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--navy); color: #fff; }
.btn-small { padding: 11px 18px; font-size: .92rem; border-radius: 10px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.top .logo img { height: 28px; width: auto; display: block; }
.top nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; }
.top nav a:not(.btn):hover { color: var(--red-ink); }

/* ---------- hero: navy, with the arrow climbing out of the corner ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 88px 0 96px;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(226, 59, 46, .20), transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, #0B1422 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero-mark { position: absolute; right: -90px; bottom: -120px; width: 560px; pointer-events: none; opacity: .9; }
.hero-mark polygon { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: .5; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero .eyebrow { color: #FF8A80; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { margin: 24px 0 34px; max-width: 34em; color: rgba(255, 255, 255, .74); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-line { color: #fff; border-color: rgba(255, 255, 255, .4); }
.hero .btn-line:hover { background: #fff; border-color: #fff; color: var(--navy); }
.hero .assure { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 24px; color: rgba(255, 255, 255, .66); font-size: .92rem; }
.hero .assure span::before { content: "\2713"; color: var(--red); font-weight: 800; margin-right: 8px; }
.hero-art { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }

/* ---------- the strip: a red ribbon ---------- */
.strip { background: var(--red); color: #fff; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center; padding: 18px 0; font-weight: 600; font-size: .95rem; }
.strip span { display: inline-flex; align-items: center; gap: 9px; }
.strip svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- sections ---------- */
section { padding: 104px 0; }
.section-head { max-width: 780px; margin: 0 auto 58px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin-top: 18px; }
.tint { background: var(--paper); }
.paper { background: var(--paper); }

/* pain */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.pain .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.pain .ico svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pain h3 { margin-bottom: 8px; }
.pain p { color: var(--muted); margin: 0; font-size: .98rem; }
.turn { text-align: center; margin-top: 54px; font: 700 clamp(1.6rem, 3vw, 2.3rem)/1.2 var(--serif); letter-spacing: -.03em; color: var(--ink); }
.turn em { font-style: normal; color: var(--red); }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.features.cols-3 { grid-template-columns: repeat(3, 1fr); }
.features.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::after { transform: scaleX(1); }
.feature .ico { width: 50px; height: 50px; border-radius: 14px; background: var(--red-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature .ico svg { width: 26px; height: 26px; stroke: var(--red); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.16rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* deep dives */
.dive .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.dive.flip .copy { order: 2; }
.dive h2 { margin-bottom: 20px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 8px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .78rem;
}
.checks strong { color: var(--ink); }
.art { width: 100%; height: auto; }
.card-art { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }

/* permission / audit-trail mini components (roles section) */
.perm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.perm-row:last-child { border-bottom: 0; }
.perm-name { font-family: var(--mono); font-size: .82rem; color: var(--ink-soft); }
.perm-pill { font: 600 .72rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; }
.perm-pill.on { background: var(--ok-soft); color: var(--ok); }
.perm-pill.off { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.audit-row { display: grid; grid-template-columns: 1.3fr 1.6fr 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.audit-row:last-child { border-bottom: 0; }
.audit-row.head { font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.audit-row span:first-child { color: var(--ink); font-weight: 600; }
.audit-row time { color: var(--muted-mono); font-family: var(--mono); font-size: .8rem; }

/* compare */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font: 500 .76rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.compare thead th.us { background: var(--navy); color: #fff; }
.compare tbody th { width: 22%; color: var(--ink); font: 700 1.02rem/1.3 var(--serif); letter-spacing: -.01em; }
.compare td.them { color: var(--muted); }
.compare td.us { background: rgba(15, 26, 43, .025); color: var(--ink); font-weight: 500; border-left: 3px solid var(--red); }
.compare td.us::before { content: "\2713"; color: var(--red); font-weight: 800; margin-right: 10px; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.fineprint { color: var(--muted); font-size: .88rem; margin-top: 18px; text-align: center; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.step { position: relative; padding-top: 80px; }
.step::before {
  counter-increment: s; content: "0" counter(s); position: absolute; top: 0; left: 0; width: 58px; height: 58px; border-radius: 16px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font: 700 1.3rem var(--serif); letter-spacing: -.02em;
}
.step:first-child::before { background: var(--red); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 74px; right: -14px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px); }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }

/* people */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; border-top: 4px solid var(--navy); }
.person:nth-child(even) { border-top-color: var(--red); }
.person h3 { font-size: 1.14rem; margin: 14px 0 10px; }
.person ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .95rem; }
.person li { margin: 6px 0; }
.person li::marker { color: var(--red); }
.person .avatar { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--navy-soft); }

/* trust */
.trust { background: var(--navy); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden; }
.trust h2 { color: #fff; }
.trust .eyebrow { color: #FF8A80; }
.trust .section-head p { color: rgba(255, 255, 255, .66); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.trust-item { background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 28px; transition: border-color .2s, background .2s; }
.trust-item:hover { border-color: rgba(226, 59, 46, .6); background: rgba(255, 255, 255, .07); }
.trust-item svg { width: 30px; height: 30px; stroke: var(--red); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.trust-item h3 { color: #fff; font-size: 1.12rem; margin-bottom: 8px; }
.trust-item p { margin: 0; font-size: .96rem; color: rgba(255, 255, 255, .68); }

/* faq */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 24px; transition: border-color .15s, box-shadow .15s; }
.faq details[open] { border-color: var(--navy); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font: 600 1.06rem/1.35 var(--serif); letter-spacing: -.01em; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; font: 500 1.3rem/1 var(--sans); color: #fff; background: var(--red);
}
.faq details[open] summary::after { content: "\2212"; background: var(--navy); }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* call to action: red, with the mark rising out of it */
.cta-band { background: var(--red); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 15% 120%, rgba(15, 26, 43, .35), transparent 55%);
}
.cta-band h2 { color: #fff; max-width: 18em; margin: 0 auto 16px; }
.cta-band p { color: rgba(255, 255, 255, .86); max-width: 34em; margin: 0 auto 32px; font-size: 1.15rem; }
.cta-band .btn-red { background: var(--navy); box-shadow: 0 14px 30px rgba(15, 26, 43, .35); }
.cta-band .btn-red:hover { background: #fff; color: var(--navy); }
.cta-band .stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-band .stars polygon { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: .5; }

/* footer */
footer { background: var(--navy); padding: 56px 0 44px; color: rgba(255, 255, 255, .6); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: center; justify-content: space-between; }
footer img { height: 26px; width: auto; display: block; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; }
  .btn, .feature, .feature::after, .btn-red::after { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 1060px) {
  .top nav { gap: 18px; }
  .top nav a:not(.btn):nth-child(n+4) { display: none; }
}
@media (max-width: 1020px) {
  .features, .features.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .people, .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .trust-grid, .pains { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  section { padding: 72px 0; }
  .hero .wrap, .dive .wrap { grid-template-columns: 1fr; gap: 40px; }
  .dive.flip .copy { order: 0; }
  .top nav a:not(.btn) { display: none; }
  .top nav { margin-left: auto; }
  .hero { padding: 56px 0 64px; }
  .hero-mark { width: 360px; right: -120px; bottom: -80px; }
  .compare th, .compare td { padding: 14px; font-size: .92rem; }
  .audit-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .top .logo img { height: 24px; }
  .features, .features.cols-3, .features.cols-2, .people, .steps, .trust-grid, .pains { grid-template-columns: 1fr; }
  .hero .cta .btn { width: 100%; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tbody th { width: 100%; background: var(--paper); padding-bottom: 8px; }
  .compare td.them::before { content: "Often: "; font-weight: 700; }
}

/* ---------- the legal document layout (/privacy) ---------- */
.legal-top { background: var(--navy); padding: 18px 0; }
.legal-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-top img { height: 24px; width: auto; display: block; }
.legal-top span { color: rgba(255, 255, 255, .66); font-size: .82rem; }
.legal-shell { padding: 64px 0 96px; background: var(--surface); }
.legal-shell .eyebrow { margin-bottom: 14px; }
.legal-shell h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); }
.legal-updated { color: var(--muted); font-size: .95rem; margin: 16px 0 40px; }
.legal-shell h2 { font-size: 1.45rem; margin: 44px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-shell h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 30px; }
.legal-shell h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.legal-shell p, .legal-shell li { color: var(--body); font-size: .98rem; line-height: 1.72; }
.legal-shell ul, .legal-shell ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.legal-shell li { margin: 6px 0; }
.legal-shell li::marker { color: var(--red); }
.legal-shell strong { color: var(--ink); }
.legal-box { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; padding: 20px 24px; margin: 0 0 40px; }
.legal-box p { margin: 4px 0; font-size: .94rem; }
.legal-box .ph { color: var(--red-ink); font-weight: 600; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: .93rem; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--paper); font-weight: 700; color: var(--ink); }
.legal-toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 26px; margin: 0 0 44px; columns: 2; column-gap: 32px; }
.legal-toc a { display: block; padding: 4px 0; color: var(--ink); text-decoration: none; font-size: .92rem; break-inside: avoid; }
.legal-toc a:hover { color: var(--red-ink); }
@media (max-width: 620px) { .legal-toc { columns: 1; } }
