:root {
  --navy: #0e1c3a;
  --navy-2: #15294f;
  --ink: #1a2440;
  --muted: #56617a;
  --blue: #2757d6;
  --blue-dark: #1d43a8;
  --accent: #ffb703;
  --accent-dark: #e5a200;
  --bg: #f6f8fc;
  --card: #ffffff;
  --border: #dfe4ef;
  --ok: #17734f;
  --ok-bg: #e6f5ee;
  --err: #b3261e;
  --err-bg: #fdecea;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 28, 58, 0.12);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.brand:hover { color: #fff; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--navy); font-size: 1.15rem; font-weight: 800; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { color: #d5dcf0; text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.site-header nav a:hover { color: #fff; }
.site-header nav a.btn { color: var(--navy); }

/* Buttons */
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 13px 22px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; line-height: 1.2; transition: transform 0.05s, background 0.15s; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-dark); color: var(--navy); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); border: 2px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-danger { background: var(--err); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; border-radius: 8px; }
.btn-block { display: block; width: 100%; font-size: 1.05rem; padding: 15px 22px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #8fb0ff; outline-offset: 2px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #26457f 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero h1 { color: #fff; }
.hero .grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.eyebrow { display: inline-block; background: rgba(255, 183, 3, 0.16); color: #ffd25f; border: 1px solid rgba(255, 183, 3, 0.4); padding: 5px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: #d5dcf0; max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 22px 0; }
.ticks li { padding-left: 32px; position: relative; margin: 10px 0; color: #eef2ff; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 5px; height: 9px; border: solid var(--navy); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.hero-tutor { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: #c9d3ee; font-size: 0.95rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--navy); display: grid; place-items: center; font-weight: 800; flex: none; }
.sym { position: absolute; font-weight: 800; color: rgba(255, 255, 255, 0.05); user-select: none; pointer-events: none; line-height: 1; }

/* Form card */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 10px rgba(14, 28, 58, 0.05); }
.form-card { color: var(--ink); box-shadow: var(--shadow); border: 0; padding: 28px; }
.form-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.form-card .sub { color: var(--muted); margin-bottom: 18px; font-size: 0.95rem; }
label, .label { display: block; font-weight: 600; font-size: 0.93rem; margin: 14px 0 6px; color: var(--ink); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=url], input[type=datetime-local], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #c8cfdf; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { margin: 0; border: 1.5px solid #c8cfdf; border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.seg input { accent-color: var(--blue); }
.seg label:has(input:checked) { border-color: var(--blue); background: #eef3ff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.86rem; color: #3c465e; margin: 12px 0 0; line-height: 1.45; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: var(--err); font-size: 0.86rem; margin-top: 4px; font-weight: 600; }
input.has-error, select.has-error { border-color: var(--err); }
.fine { font-size: 0.8rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.optional { font-weight: 400; color: var(--muted); }

.alert { padding: 12px 16px; border-radius: 10px; margin: 0 0 18px; font-weight: 600; font-size: 0.95rem; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-error { background: var(--err-bg); color: var(--err); }
.alert-warn { background: #fff6dd; color: #6b4e00; font-weight: 500; }

/* Sections */
section { padding: 68px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section-head p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature .num { width: 42px; height: 42px; border-radius: 12px; background: #e9efff; color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 24px 24px 24px 24px; }
.step .n { font-size: 0.8rem; font-weight: 800; color: var(--blue); letter-spacing: 0.08em; text-transform: uppercase; }
.tutor { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; }
.tutor .avatar { width: 120px; height: 120px; font-size: 2.4rem; }
.callout { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 20px; padding: 40px; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: center; }
.callout h2, .callout h3 { color: #fff; }
.callout p { color: #d5dcf0; }
.price { font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; }
details { border-bottom: 1px solid var(--border); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blue); }
details[open] summary::after { content: "\2212"; }
details p { margin: 10px 0 0; color: var(--muted); }
.final-cta { background: var(--navy); color: #fff; text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #d5dcf0; }

/* Trust strip: short row of differentiators, used on light backgrounds */
.trust-strip { background: #fff; border-bottom: 1px solid var(--border); padding: 22px 0; }
.trust-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; }
.trust-strip li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.trust-strip li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }

/* Guarantee badge: small risk-reversal callout used near pricing */
.guarantee { display: flex; align-items: flex-start; gap: 12px; background: var(--ok-bg); border: 1px solid #bfe3d1; border-radius: 12px; padding: 14px 16px; margin: 18px 0; }
.guarantee .mark { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-weight: 800; }
.guarantee p { margin: 0; color: #12523a; font-size: 0.93rem; }
.guarantee strong { color: var(--ok); }

/* Compare list: this program vs. generic self-paced platforms */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .card h3 { display: flex; align-items: center; gap: 8px; }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--muted); }
.compare li:last-child { border-bottom: 0; }
.compare .yes li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.compare .no li::before { content: "\2013"; position: absolute; left: 4px; color: #9aa4bd; font-weight: 800; }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }

/* Article pages (privacy, terms) */
.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page h2 { font-size: 1.4rem; margin-top: 2em; }
.page h3 { margin-top: 1.4em; }
.page ul { padding-left: 1.3em; }
.page li { margin: 0.35em 0; }
.page table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1em 0; }
.page th, .page td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.page th { background: #eef2fb; }
.notice { background: #fff6dd; border: 1px solid #f1d98a; border-radius: 10px; padding: 12px 16px; font-size: 0.92rem; }

/* Footer */
.site-footer { background: var(--navy); color: #b8c3e0; padding: 44px 0 90px; font-size: 0.93rem; }
.site-footer a { color: #dbe3fb; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.82rem; color: #93a0c4; }

/* Cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28); padding: 16px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 0.9rem; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1 1 320px; }
.cookie .actions { display: flex; gap: 8px; }

/* Mobile CTA bar */
.mobile-cta { display: none; }

/* App pages (login, portal, admin) */
.auth { min-height: 70vh; display: grid; place-items: center; padding: 48px 20px; }
.auth .card { width: 100%; max-width: 440px; padding: 32px; }
.app { padding: 36px 0 72px; }
.app-nav { background: #fff; border-bottom: 1px solid var(--border); }
.app-nav .wrap { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; align-items: center; }
.app-nav a { padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.93rem; }
.app-nav a:hover { background: #eef2fb; }
.app-nav a.on { background: #e5edff; color: var(--blue-dark); }
.app-nav form { margin-left: auto; }
.grid-2 { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 24px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.stat b { display: block; font-size: 1.8rem; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.86rem; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
table.t { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.t th, .t td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.t th { background: #f0f3fa; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
.t tr:last-child td { border-bottom: 0; }
.t select, .t input[type=text] { padding: 6px 8px; font-size: 0.88rem; border-radius: 8px; }
.t select { min-width: 140px; }
.inline { display: inline; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: #e9edf7; color: #3c465e; }
.badge.enrolled { background: var(--ok-bg); color: var(--ok); }
.badge.attended { background: #e8f0ff; color: var(--blue-dark); }
.badge.not_interested { background: #f3e9e9; color: #7a4a4a; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.toolbar > * { margin: 0; }
.link-box { background: #f0f3fa; border: 1px dashed #aab4d0; border-radius: 10px; padding: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; word-break: break-all; }
.msg { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.msg .reply { margin-top: 10px; padding: 10px 12px; background: #eef6f1; border-left: 4px solid var(--ok); border-radius: 6px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }

@media (max-width: 900px) {
  .hero .grid, .callout, .grid-2 { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: 1fr; }
  .tutor { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header nav a:not(.btn):not(.keep) { display: none; }
  .site-header nav { gap: 12px; }
  .hero { padding: 36px 0 48px; }
  .form-card { padding: 22px 18px; }
  .callout { padding: 28px 22px; }
  .mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(14, 28, 58, 0.16); transition: transform 0.2s; }
  .mobile-cta.hide { transform: translateY(110%); }
  .cookie { bottom: 84px; padding: 12px 14px; font-size: 0.82rem; gap: 10px; }
  .cookie p { flex-basis: 100%; }
  .lead { font-size: 1.05rem; }
  .brand { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
