:root {
  --black: #0a0a0a;
  --ink: #161616;
  --white: #ffffff;
  --paper: #f5f5f4;
  --line: #e2e2e0;
  --muted: #5f5f5c;
  --on-black-muted: #b5b5b1;
  --ok: #1b7a4b;
  --warn: #9a6a00;
  --bad: #b3261e;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 6.5vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--black); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid #2f6fed; outline-offset: 2px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.site-header .logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--black); }
.nav a.cta-link { background: var(--black); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.nav a.cta-link:hover { background: #333; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.cta-link { text-align: center; margin-top: 12px; border: 0; }
}

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--black); background: var(--black); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: #333; border-color: #333; }
.btn.light { background: #fff; color: var(--black); border-color: #fff; }
.btn.light:hover { background: #e9e9e7; border-color: #e9e9e7; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: rgba(127,127,127,.15); }
.btn.small { padding: 9px 18px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: wait; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 84px 0; }
.dark { background: var(--black); color: #fff; }
.dark .muted, .dark p.lead { color: var(--on-black-muted); }
.paper { background: var(--paper); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.dark .eyebrow { color: var(--on-black-muted); }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.hero { padding: 96px 0 104px; }
.hero h1 { max-width: 860px; }
.hero .lead { margin: 18px 0 32px; }
.page-hero { padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); }
.sec-head { margin-bottom: 40px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
@media (max-width: 480px) { .grid.two { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.paper .card { border-color: transparent; }
.card.dark { background: var(--black); color: #fff; }
.card p { color: var(--muted); }
.card ul { padding-left: 20px; margin: 0 0 18px; }
.card li { margin-bottom: 6px; }
.num { width: 38px; height: 38px; border-radius: 50%; background: var(--black); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }

.stat { font-size: 54px; font-weight: 800; line-height: 1; }
.quote { font-size: 17px; }
.quote footer { margin-top: 16px; font-weight: 700; font-size: 15px; }
.quote footer span { display: block; font-weight: 400; color: var(--muted); }

.split { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } section { padding: 60px 0; } }

/* Forms */
.enquiry { display: grid; gap: 14px; margin-top: 8px; }
.enquiry .row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .enquiry .row { grid-template-columns: 1fr; } }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; color: var(--ink); }
.dark label { color: #fff; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #c9c9c6; border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.dark .check { color: var(--on-black-muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -5000px; }
.status { font-size: 14.5px; min-height: 1.2em; }
.status.ok { color: var(--ok); font-weight: 600; }
.status.err { color: var(--bad); font-weight: 600; }
.dark .status.ok { color: #7fe0ae; }
.dark .status.err { color: #ff9c94; }

details.inline { margin-top: 10px; }
details.inline > summary { list-style: none; display: inline-block; cursor: pointer; }
details.inline > summary::-webkit-details-marker { display: none; }
details.inline[open] > summary { margin-bottom: 14px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Tabs / portal */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabs button { font: inherit; font-weight: 600; padding: 12px 18px; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--black); border-bottom-color: var(--black); }
.list { display: grid; gap: 12px; }
.item { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #fff; }
.item b { display: block; }
.item small { color: var(--muted); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #eee; text-transform: capitalize; }
.pill.submitted, .pill.new { background: #fff3d6; color: var(--warn); }
.pill.in_review, .pill.quoted, .pill.contacted { background: #e5eefc; color: #1d4fb3; }
.pill.accepted, .pill.closed, .pill.completed, .pill.done { background: #dcf3e6; color: var(--ok); }
.pill.declined { background: #fbe3e1; color: var(--bad); }
.auth-card { max-width: 440px; margin: 0 auto; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.empty { border: 1px dashed #c9c9c6; border-radius: 12px; padding: 32px; text-align: center; color: var(--muted); }
.notice { background: var(--paper); border-left: 4px solid var(--black); border-radius: 8px; padding: 16px 20px; font-size: 14.5px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--black); color: var(--on-black-muted); padding: 56px 0 40px; font-size: 14.5px; }
.site-footer .wrap { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer img { height: 70px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { display: block; text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.legal-note { grid-column: 1 / -1; border-top: 1px solid #2a2a2a; padding-top: 24px; font-size: 13px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal .draft { background: #fff8e0; border: 1px solid #ecd98d; border-radius: 10px; padding: 12px 16px; font-size: 14px; color: #6b5312; }

.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.four { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }

.promo-bar { background: #fff; color: var(--black); border-bottom: 1px solid var(--line); font-size: 14px; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 8px 16px; text-align: center; }
.promo-bar a { font-weight: 700; }
.promo-bar button { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--black); color: #fff; margin-right: 6px; }
.badge.free { background: #dcf3e6; color: var(--ok); }
.badge.outline { background: #fff; color: var(--black); border: 1px solid var(--black); }
.cta-card { background: var(--black); color: #fff; border-radius: var(--radius); padding: 32px; margin: 36px 0; }
.cta-card h3 { font-size: 24px; }
.cta-card p { color: var(--on-black-muted); }
.course-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .course-layout { grid-template-columns: 1fr; } }
.syllabus { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.syllabus li button { width: 100%; text-align: left; font: inherit; background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.syllabus li:last-child button { border-bottom: 0; }
.syllabus li button[aria-current="true"] { background: var(--paper); font-weight: 700; }
.syllabus li button[disabled] { color: #8a8a86; cursor: not-allowed; }
.lesson h2 { font-size: 30px; }
.lesson h3 { margin-top: 28px; }
.lesson ul, .lesson ol { padding-left: 22px; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 20px; }
.progress i { display: block; height: 100%; background: var(--black); }
dialog { border: 0; border-radius: 16px; padding: 0; max-width: 480px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0,0,0,.55); }
dialog .close { position: absolute; right: 12px; top: 8px; background: none; border: 0; font-size: 26px; cursor: pointer; }
.price-card { border: 2px solid var(--black); border-radius: 18px; padding: 32px; background: #fff; }
.checks { list-style: none; padding: 0; margin: 18px 0 24px; }
.checks li { padding: 6px 0 6px 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; }
.board { display: grid; gap: 14px; }
.post { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fff; }
.post h3 { margin: 6px 0; }
.post .who { font-size: 14px; color: var(--muted); }

.cta-card label, .cta-card .check { color: #fff; }
.cta-card .check a { color: #fff; }
.cta-card .status.ok { color: #7fe0ae; }
.cta-card .status.err { color: #ff9c94; }

.cta-card .btn:not(.light):not(.ghost) { background: #fff; color: var(--black); border-color: #fff; }
.cta-card .btn:not(.light):not(.ghost):hover { background: #e9e9e7; border-color: #e9e9e7; }
.cta-card input, .cta-card select, .cta-card textarea { border-color: #444; }
