/* CFPilot. Night-sky navy with a blue-to-teal glow; the hero shows the product itself, a 13-week
   cash flow forecast in a glass window. Wattle gold is kept for the one thing that needs attention. */
:root {
  --bg: #F4F7FC;
  --surface: #FFFFFF;
  --sunk: #E9EFF9;
  --line: #D6DFEE;
  --fg: #0B1834;
  --muted: #56637D;
  --accent: #2357F5;
  --accent-b: #4C82FF;
  --teal: #3FD8C4;
  --gold: #F2B43C;
  --night: #061127;
  --night-2: #0C1D45;
  --night-fg: #F3F6FF;
  --night-muted: #A7B5D8;
  --night-line: rgba(255,255,255,.13);
  --glass: rgba(255,255,255,.07);
  --glass-2: rgba(255,255,255,.12);
  --shadow: 0 18px 40px rgba(11,24,52,.08);
  --shadow-lg: 0 30px 70px rgba(2,8,30,.5);
  --glow-a: rgba(35,87,245,.62);
  --glow-b: rgba(63,216,196,.22);
  --grid: rgba(255,255,255,.07);
  --head-bg: rgba(6,17,39,.92);
  --warn-fg: #F2B43C;
  --display: "Familjen Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --night: #EDF2FC;
  --night-2: #FFFFFF;
  --night-fg: #0B1834;
  --night-muted: #56637D;
  --night-line: rgba(11,24,52,.11);
  --glass: rgba(255,255,255,.75);
  --glass-2: rgba(255,255,255,.92);
  --glow-a: rgba(35,87,245,.20);
  --glow-b: rgba(63,216,196,.20);
  --grid: rgba(35,87,245,.07);
  --head-bg: rgba(244,247,252,.9);
  --warn-fg: #9A6200;
  --shadow-lg: 0 24px 50px rgba(11,24,52,.13);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 22px; }
.num { font-variant-numeric: tabular-nums; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 9; background: var(--head-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--night-line); color: var(--night-fg); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: inherit; text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: -0.01em; }
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { color: var(--night-muted); text-decoration: none; }
.nav a:hover { color: var(--night-fg); }
@media (max-width: 820px) { .nav { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: 600 16px/1.2 var(--body); text-decoration: none; transition: transform .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-b)); border-color: transparent; color: #fff; box-shadow: 0 10px 26px rgba(35,87,245,.32); }
.btn.ghost { background: var(--glass); border-color: var(--night-line); color: var(--night-fg); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--night-fg);
  background: radial-gradient(900px 540px at 82% 6%, var(--glow-a), transparent 62%),
              radial-gradient(640px 420px at 6% 98%, var(--glow-b), transparent 62%), var(--night); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 70% at 62% 30%, #000, transparent); mask-image: radial-gradient(70% 70% at 62% 30%, #000, transparent); }
.hero > .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; padding-block: 80px 64px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--night-fg); background: var(--glass); border: 1px solid var(--night-line); border-radius: 99px; padding: 6px 14px; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(63,216,196,.18); }
.hero .lede { font-size: 19px; color: var(--night-muted); max-width: 34em; }
@media (max-width: 940px) { .hero > .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 52px 44px; } }

/* The forecast window in the hero */
.mock { position: relative; padding: 46px 0 52px; }
.win { background: var(--glass); border: 1px solid var(--night-line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 16px; }
.win-top { display: flex; align-items: center; gap: 12px; }
.win-top .dot { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--accent-b), var(--teal)); display: grid; place-items: center; color: var(--night); flex: none; }
.win-top div { margin-right: auto; min-width: 0; }
.win-top b { display: block; font-family: var(--display); font-size: 17px; }
.win-top span { font-size: 13px; color: var(--night-muted); }
.pill { font-size: 12px; border: 1px solid var(--night-line); border-radius: 99px; padding: 4px 10px; color: var(--night-muted); white-space: nowrap; }
.chart { background: var(--glass); border-radius: 14px; padding: 14px 14px 8px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .legend { display: flex; gap: 16px; font-size: 12px; color: var(--night-muted); margin-top: 6px; }
.chart .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ftable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ftable th { font-weight: 500; color: var(--night-muted); text-align: right; padding: 6px 8px; }
.ftable td { text-align: right; padding: 7px 8px; border-top: 1px solid var(--night-line); }
.ftable th:first-child, .ftable td:first-child { text-align: left; }
.ftable tr.warn td { color: var(--warn-fg); }
.chart svg g { fill: var(--night-muted); }
.status { display: flex; align-items: center; gap: 10px; font-size: 14px; border-top: 1px solid var(--night-line); padding-top: 14px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(242,180,60,.2); flex: none; }
.float { position: absolute; display: flex; align-items: center; gap: 12px; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 14px; padding: 11px 15px; box-shadow: var(--shadow-lg); font-size: 13px; animation: bob 7s ease-in-out infinite; }
.float .ic { color: var(--teal); }
.float b { display: block; font-family: var(--display); font-size: 15px; }
.float span { color: var(--night-muted); }
.float.a { top: 0; right: -8px; }
.float.b { bottom: 0; left: -8px; animation-delay: -3.5s; }
@keyframes bob { 50% { transform: translateY(-7px); } }
@media (max-width: 520px) { .float.a { right: 0; } .float.b { left: 0; } .ftable .hide-s, .win-top .pill { display: none; } .ftable { font-size: 12.5px; } .ftable td, .ftable th { white-space: nowrap; padding-inline: 5px; } .win { padding: 16px; } }

/* Trust strip */
.trust { position: relative; border-top: 1px solid var(--night-line); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 28px; padding-block: 22px; }
.trust .item { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.trust .ic { color: var(--teal); }
.trust small { display: block; color: var(--night-muted); font-size: 13px; }

/* Sections */
section.sec { padding-block: 88px; }
section.band { background: var(--sunk); }
.head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.head p { color: var(--muted); font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.card .ib { width: 46px; height: 46px; border-radius: 13px; background: #E3EBFF; color: var(--accent); display: grid; place-items: center; margin-bottom: 4px; }
.card p { color: var(--muted); }
.card .meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; }
.tag { font-size: 12.5px; border-radius: 99px; padding: 3px 10px; background: var(--sunk); color: var(--muted); }
.state { font-size: 12.5px; font-weight: 600; border-radius: 99px; padding: 3px 10px; background: #FFF3D6; color: #7A4F00; }
.state.live { background: #DDF7F1; color: #0B6B5C; }
.card.lead { border: 2px solid var(--accent); }
.card a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.card h3 a { color: inherit; text-decoration: none; }

/* Subroo spotlight */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .spot { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 13px; height: 7px; border-left: 2.5px solid #12A38D; border-bottom: 2.5px solid #12A38D; transform: rotate(-45deg); }
.ticks b { color: var(--fg); }
.example { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.example h3 { margin: 0 0 4px; }
.example .sub { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.example table { width: 100%; border-collapse: collapse; font-size: 15px; }
.example th, .example td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--sunk); }
.example th { font-size: 13px; color: var(--muted); font-weight: 500; }
.example td:not(:first-child), .example th:not(:first-child) { text-align: right; }
.example tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--fg); }
.example .foot { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* Code preview on course cards */
.code { margin: 4px 0 0; background: #0B1834; color: #CFE0FF; border-radius: 12px; padding: 14px 16px; font: 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-x: auto; }
.code .k { color: var(--teal); }
.code .s { color: var(--gold); }

/* Financial-year timeline */
.fy { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.fy-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 8px; }
.fy-head h3 { font-size: 21px; }
.fy-head p { color: var(--muted); font-size: 15px; }
.path { position: relative; height: 160px; }
.path svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stops { list-style: none; margin: 0; padding: 0; }
.stop { position: absolute; top: 92px; transform: translateX(-50%); width: 150px; text-align: center; font-size: 13px; line-height: 1.3; color: var(--muted); }
.stop b { display: block; color: var(--fg); font-size: 14px; }
.stop.past { opacity: .55; }
.stop.edge-l { transform: none; text-align: left; }
.stop.edge-r { transform: translateX(-100%); text-align: right; }
.today { position: absolute; top: 4px; transform: translateX(-50%); background: var(--gold); color: var(--fg); font: 700 14px/1 var(--body); padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.today::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 0; border-top-color: var(--gold); }
.fy-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (min-width: 721px) { .stop.is-today { display: none; } }
@media (max-width: 720px) {
  .path { height: auto; }
  .path svg, .today { display: none; }
  .stops { display: grid; border-left: 3px solid var(--accent); margin-left: 6px; }
  .stop { position: static; transform: none; width: auto; text-align: left; padding: 8px 0 8px 16px; }
  .stop.edge-l, .stop.edge-r { transform: none; text-align: left; }
  .stop.is-today b::after { content: " (you are here)"; color: #8A6510; }
}

/* Dark band: who makes it */
.night { background: radial-gradient(700px 400px at 90% 0%, var(--glow-a), transparent 65%), var(--night); color: var(--night-fg); }
.night .head p, .night p { color: var(--night-muted); }
.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cred { background: var(--glass); border: 1px solid var(--night-line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.cred .ic { color: var(--teal); width: 26px; height: 26px; }
.cred h3 { color: var(--night-fg); }

/* Waitlist call to action */
.join { background: linear-gradient(120deg, var(--accent), #1B3FC4 55%, #0E8F86); color: #fff; border-radius: 26px; padding: 48px; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; box-shadow: 0 30px 60px rgba(35,87,245,.25); }
.join p { color: rgba(255,255,255,.85); margin-top: 10px; font-size: 18px; }
.join .btn { background: #fff; color: var(--accent); border-color: #fff; }
@media (max-width: 760px) { .join { grid-template-columns: minmax(0, 1fr); padding: 32px; } }

/* Pricing (Subroo page) */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.plan.pro { border: 2px solid var(--accent); }
.price { font: 700 42px/1.1 var(--display); margin: 10px 0 2px; }
.price span { font: 400 16px/1 var(--body); color: var(--muted); }
.plan .when { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.plan ul { padding-left: 20px; margin: 0 0 22px; color: var(--muted); }
.plan li { margin: 6px 0; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Footer */
footer { background: var(--night); border-top: 1px solid var(--night-line); color: var(--night-muted); padding: 36px 0 48px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--night-fg); }

/* Legal pages */
.legal { max-width: 46em; padding-block: 40px 72px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin: 8px 0 6px; }
.legal h2 { font-size: 22px; margin: 34px 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 24px; }
.legal p, .legal li { color: #2A3650; margin-bottom: 10px; }
.draft { background: #FFF6DE; border: 1px solid #EBCB7A; border-radius: 12px; padding: 12px 16px; font-size: 15px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .float { animation: none; } .btn { transition: none; } .btn:hover { transform: none; } }
@media (prefers-reduced-motion: no-preference) { .today { animation: arrive .9s cubic-bezier(.2,.7,.2,1) both .2s; } @keyframes arrive { from { opacity: 0; transform: translate(-50%, -8px); } } }

/* Light and dark switch */
.theme-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--night-line); background: var(--glass); color: var(--night-fg); display: grid; place-items: center; cursor: pointer; }
.theme-btn .ic { width: 20px; height: 20px; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }
.cards.two-up { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ticks.small { margin: 4px 0 0; }
.ticks.small li { padding: 7px 0 7px 30px; font-size: 15px; }
.ticks.small li::before { top: 13px; }
.steps { margin: 4px 0 0; padding-left: 22px; color: var(--muted); }
.steps li { margin: 8px 0; }
.steps b { color: var(--fg); }
