:root {
  --ink: #102a2a;
  --ink-soft: #3f5553;
  --forest: #123b38;
  --forest-2: #1d514c;
  --mint: #dcebe4;
  --paper: #f7f4ec;
  --white: #fffdf8;
  --gold: #f4c95d;
  --gold-dark: #9a7113;
  --coral: #d9765a;
  --line: #cbd8d2;
  --success: #167557;
  --warning: #995f13;
  --danger: #a33b31;
  --shadow: 0 24px 70px rgba(18, 59, 56, .13);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  z-index: 20;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; transform: translateY(-160%); background: var(--white); padding: 10px 14px; z-index: 99; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid rgba(18, 59, 56, .12); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -.03em; font-size: 1.12rem; }
.brand img { width: 42px; height: 42px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 650; font-size: .94rem; }
.nav-links a:hover { color: var(--forest); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-only { display: none; }

.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 0 22px; border: 1px solid transparent; text-decoration: none; font-weight: 780; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--forest); color: white; box-shadow: 0 12px 28px rgba(18, 59, 56, .22); }
.btn-primary:hover { background: var(--forest-2); }
.btn-gold { background: var(--gold); color: #2b260e; box-shadow: 0 12px 28px rgba(154, 113, 19, .18); }
.btn-ghost { border-color: var(--line); background: rgba(255, 255, 255, .42); color: var(--forest); }
.btn-small { min-height: 40px; padding-inline: 17px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { cursor: not-allowed; opacity: .52; transform: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--forest-2); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 850; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--coral); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.06; letter-spacing: -.035em; margin: 0; }
h1 { font-size: clamp(3.1rem, 7vw, 6.4rem); max-width: 12ch; }
h2 { font-size: clamp(2.25rem, 4.5vw, 4.2rem); max-width: 14ch; }
h3 { font-size: 1.42rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 58ch; }
.muted { color: var(--ink-soft); }
.fine-print { font-size: .82rem; color: var(--ink-soft); }

.hero { min-height: calc(100vh - 78px); display: grid; align-items: center; padding-block: clamp(64px, 8vw, 112px); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 540px; height: 540px; border: 90px solid rgba(244, 201, 93, .2); border-radius: 50%; right: -240px; top: -170px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 8vw, 100px); align-items: center; position: relative; z-index: 1; }
.hero-copy { display: grid; gap: 24px; }
.hero-copy h1 em { color: var(--forest-2); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 6px; color: var(--ink-soft); font-size: .9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--success); font-weight: 900; }

.certificate-visual { position: relative; }
.certificate-card { background: var(--white); border: 1px solid rgba(18, 59, 56, .14); padding: clamp(28px, 4vw, 48px); min-height: 470px; box-shadow: var(--shadow); transform: rotate(2deg); position: relative; overflow: hidden; }
.certificate-card::before { content: ""; position: absolute; inset: 14px; border: 2px solid var(--forest); opacity: .28; }
.certificate-card::after { content: ""; position: absolute; width: 180px; height: 180px; border: 26px solid var(--mint); border-radius: 50%; right: -70px; bottom: -60px; }
.certificate-inner { min-height: 370px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 13px; position: relative; z-index: 1; }
.certificate-inner img { width: 62px; }
.certificate-kicker { text-transform: uppercase; letter-spacing: .18em; color: var(--gold-dark); font-weight: 850; font-size: .7rem; }
.certificate-name { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); font-style: italic; color: var(--forest); }
.certificate-rule { width: 70%; border: 0; height: 1px; background: var(--line); }
.floating-note { position: absolute; left: -28px; bottom: -28px; background: var(--forest); color: white; width: 210px; padding: 20px; border-radius: 16px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.floating-note strong { display: block; color: var(--gold); font-size: 1.1rem; }

.trust-strip { background: var(--forest); color: white; padding-block: 22px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { text-align: center; }
.trust-item strong { display: block; font-family: Georgia, serif; font-size: 1.45rem; color: var(--gold); }
.trust-item span { font-size: .82rem; color: #dce9e7; }

.section { padding-block: clamp(76px, 10vw, 138px); }
.compact-hero { padding-block: clamp(58px, 8vw, 96px); }
.compact-hero h1 { max-width: 16ch; }
.narrow { max-width: 900px; }
.soft-section { background: #e8eee8; }
.partner-strip { background: var(--mint); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.number-list { display: grid; gap: 14px; padding-left: 1.4rem; color: var(--ink-soft); }
.number-list li::marker { color: var(--gold-dark); font-weight: 850; }
.proof-panel { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow); }
.section-heading { display: grid; gap: 18px; margin-bottom: clamp(38px, 6vw, 70px); }
.section-heading.center { text-align: center; justify-items: center; }
.section-heading.center h2 { max-width: 18ch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card, .feature-card { background: rgba(255, 253, 248, .75); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; }
.step-number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--forest); font-family: Georgia, serif; font-size: 1.25rem; }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--mint); color: var(--forest); font-size: 1.3rem; font-weight: 900; }

.course-section { background: #e8eee8; }
.course-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 90px); align-items: start; }
.course-sticky { position: sticky; top: 34px; display: grid; gap: 22px; }
.module-list { display: grid; gap: 12px; }
.module-row { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 16px; background: var(--white); padding: 19px 20px; border-radius: 14px; border: 1px solid rgba(18, 59, 56, .1); }
.module-button { width: 100%; text-align: left; color: inherit; cursor: pointer; }
.module-button:hover { border-color: var(--forest-2); transform: translateY(-1px); }
.module-row b { color: var(--forest); }
.module-num { font-family: Georgia, serif; font-size: 1.35rem; color: var(--gold-dark); }
.module-time { font-size: .78rem; color: var(--ink-soft); background: var(--paper); padding: 4px 9px; border-radius: 99px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 72px); align-items: center; }
.quote-panel { background: var(--forest); color: white; border-radius: 30px; padding: clamp(34px, 6vw, 64px); position: relative; overflow: hidden; }
.quote-panel::after { content: "“"; position: absolute; font-family: Georgia, serif; font-size: 18rem; right: -20px; bottom: -140px; color: rgba(255, 255, 255, .07); }
.quote-panel h2 { color: white; }
.quote-panel .lead { color: #dce9e7; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.check-list li::before { content: "✓"; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--success); font-weight: 900; }

.notice { background: #fff5d8; border: 1px solid #e4c776; border-left: 6px solid var(--gold-dark); border-radius: 14px; padding: 22px 24px; }
.notice strong { color: #72520d; }
.pricing-card { max-width: 800px; margin-inline: auto; display: grid; grid-template-columns: 1fr .8fr; background: var(--white); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.pricing-main { padding: clamp(34px, 6vw, 62px); display: grid; gap: 24px; }
.pricing-side { background: var(--forest); color: white; padding: clamp(34px, 5vw, 52px); display: grid; align-content: center; gap: 22px; }
.price { font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; letter-spacing: -.06em; }
.price sup { font-family: Inter, sans-serif; font-size: 1rem; letter-spacing: 0; }

.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 780; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; font-size: 1.4rem; color: var(--forest); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 0; color: var(--ink-soft); }

.final-cta { background: var(--gold); }
.final-cta .split { min-height: 340px; }
.final-cta h2 { max-width: 12ch; }

.site-footer { background: #0b2826; color: #dce9e7; padding-block: 58px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h3 { font-family: Inter, sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.footer-links { display: grid; gap: 9px; }
.footer-links a { text-decoration: none; color: #dce9e7; }
.footer-links a:hover { color: white; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .13); display: flex; justify-content: space-between; gap: 20px; font-size: .78rem; color: #9db4b1; }

.modal { border: 0; padding: 0; width: min(560px, calc(100% - 28px)); border-radius: 24px; box-shadow: var(--shadow); background: var(--white); }
.modal::backdrop { background: rgba(7, 31, 29, .72); backdrop-filter: blur(5px); }
.modal-card { padding: clamp(28px, 5vw, 48px); display: grid; gap: 22px; }
.modal-top { display: flex; justify-content: space-between; gap: 20px; }
.modal-close { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.4rem; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .84rem; font-weight: 780; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #afc2bb; border-radius: 12px; background: white; padding: 13px 14px; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.check-field { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; font-size: .84rem; color: var(--ink-soft); }
.check-field input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--forest); }
.form-status { min-height: 24px; font-size: .88rem; color: var(--danger); }
.tabs { display: flex; gap: 8px; padding: 5px; background: var(--paper); border-radius: 999px; }
.tab { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: transparent; font-weight: 780; color: var(--ink-soft); }
.tab.active { background: white; color: var(--forest); box-shadow: 0 5px 16px rgba(18, 59, 56, .1); }

/* Learner app */
.app-body { background: #eef1ec; }
.app-header { background: var(--white); border-bottom: 1px solid var(--line); }
.app-shell { width: min(1440px, calc(100% - 32px)); margin: 24px auto 60px; display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 24px; }
.app-sidebar { background: var(--forest); color: white; border-radius: 22px; padding: 24px 18px; align-self: start; position: sticky; top: 20px; }
.progress-label { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; margin-bottom: 8px; color: #dce9e7; }
.progress-track { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--gold); border-radius: inherit; transition: width .3s ease; }
.side-nav { display: grid; gap: 7px; margin-top: 24px; }
.side-link { width: 100%; border: 0; text-align: left; border-radius: 12px; background: transparent; color: #dce9e7; padding: 12px 13px; display: flex; gap: 11px; align-items: center; }
.side-link:hover, .side-link.active { background: rgba(255, 255, 255, .11); color: white; }
.side-link span:first-child { width: 25px; color: var(--gold); font-weight: 850; }
.app-main { min-width: 0; }
.app-panel { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 12px 35px rgba(18, 59, 56, .06); }
.app-panel + .app-panel { margin-top: 18px; }
.module-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.module-hero h1 { font-size: clamp(2.3rem, 5vw, 4.5rem); max-width: 14ch; }
.timer-card { min-width: 190px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; }
.timer-value { display: block; font-family: Georgia, serif; font-size: 2rem; color: var(--forest); }
.lesson-copy { max-width: 78ch; display: grid; gap: 24px; }
.lesson-copy h2 { font-size: 2rem; margin-top: 18px; }
.callout { padding: 20px 22px; border-radius: 14px; background: var(--mint); border-left: 5px solid var(--forest-2); }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--paper); }
.stat-card strong { display: block; font-family: Georgia, serif; font-size: 2rem; color: var(--forest); }
.assessment-list { display: grid; gap: 22px; counter-reset: question; }
.question { border: 1px solid var(--line); border-radius: 16px; padding: 22px; counter-increment: question; }
.question legend { font-weight: 780; padding: 0 8px; }
.question legend::before { content: counter(question) ". "; color: var(--gold-dark); }
.options { display: grid; gap: 9px; margin-top: 12px; }
.option { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px; border-radius: 10px; }
.option:hover { background: var(--paper); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 99px; padding: 6px 11px; font-size: .76rem; font-weight: 800; background: var(--paper); color: var(--ink-soft); }
.status-pill.success { background: #ddf3e9; color: var(--success); }
.status-pill.warning { background: #fff0cf; color: var(--warning); }
.hidden { display: none !important; }
.auth-gate { min-height: 70vh; display: grid; place-items: center; padding: 40px 0; }
.auth-card { width: min(620px, calc(100% - 28px)); background: var(--white); padding: clamp(28px, 5vw, 54px); border-radius: 24px; box-shadow: var(--shadow); display: grid; gap: 22px; }

.verify-result { margin-top: 22px; }
.verify-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 12px; }
.verify-valid { border-left: 7px solid var(--success); }
.verify-invalid { border-left: 7px solid var(--danger); }
.consent-banner { position: fixed; z-index: 100; left: 18px; right: 18px; bottom: 18px; margin-inline: auto; width: min(920px, calc(100% - 36px)); background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.consent-banner p { margin: 4px 0 0; color: var(--ink-soft); font-size: .86rem; }
.consent-actions { display: flex; flex: 0 0 auto; gap: 9px; }

.legal-page { max-width: 920px; margin: 40px auto 90px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 6vw, 64px); }
.legal-page h1 { font-size: clamp(2.8rem, 7vw, 5rem); margin: 16px 0 28px; }
.legal-page h2 { font-size: 1.8rem; margin: 34px 0 12px; }
.legal-page li + li { margin-top: 8px; }
.certificate-page { min-height: 100vh; padding: 30px; display: grid; place-items: center; }
.certificate-page-wrap { width: min(1100px, 100%); }
.certificate-sheet { background: var(--white); padding: 22px; box-shadow: var(--shadow); aspect-ratio: 1.414 / 1; min-height: 680px; }
.certificate-border { height: 100%; border: 3px double var(--forest); padding: clamp(30px, 6vw, 74px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.certificate-border::before, .certificate-border::after { content: ''; position: absolute; width: 120px; height: 120px; border: 18px solid var(--mint); border-radius: 50%; }
.certificate-border::before { top: -55px; left: -55px; }
.certificate-border::after { bottom: -55px; right: -55px; }
.certificate-logo { width: 72px; margin-bottom: 14px; }
.certificate-border h1 { font-size: clamp(1.5rem, 3vw, 2.4rem); margin-top: 22px; }
.certificate-person { font-family: Georgia, serif; color: var(--forest); font-style: italic; font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1.05; margin: 18px 0; border-bottom: 1px solid var(--line); padding: 0 40px 12px; }
.certificate-border h2 { font-size: clamp(1.7rem, 3.5vw, 3rem); max-width: 20ch; }
.certificate-hours { color: var(--gold-dark); font-weight: 800; }
.certificate-details { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr 100px; align-items: center; gap: 24px; text-align: left; }
.certificate-details span { display: block; color: var(--ink-soft); font-size: .78rem; }
.certificate-details img { width: 100px; }
.certificate-actions { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid, .course-layout, .split, .pricing-card, .grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .certificate-visual { max-width: 620px; margin-inline: auto; }
  .course-sticky { position: static; }
  .grid-3 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: static; }
  .side-nav { grid-template-columns: repeat(3, 1fr); }
  .side-link { justify-content: center; text-align: center; }
  .side-link span:first-child { display: none; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav { min-height: 70px; }
  .brand span { display: none; }
  .nav-actions .btn-ghost { display: none; }
  h1 { font-size: clamp(2.65rem, 15vw, 4.2rem); }
  .hero-actions .btn { width: 100%; }
  .floating-note { position: relative; left: 12px; bottom: 12px; width: calc(100% - 24px); }
  .certificate-card { min-height: 410px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 16px 8px; }
  .module-row { grid-template-columns: 40px 1fr; }
  .module-time { grid-column: 2; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .app-shell { width: min(100% - 18px, 1440px); margin-top: 10px; }
  .app-sidebar { border-radius: 16px; }
  .side-nav { grid-template-columns: 1fr 1fr; }
  .module-hero { flex-direction: column; }
  .timer-card { width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .consent-banner { align-items: stretch; flex-direction: column; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .certificate-page { padding: 8px; }
  .certificate-sheet { min-height: 720px; aspect-ratio: auto; }
  .certificate-details { grid-template-columns: 1fr; text-align: center; }
  .certificate-details img { margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: white; }
  .certificate-page { padding: 0; }
  .certificate-page-wrap { width: 100%; }
  .certificate-sheet { box-shadow: none; min-height: 0; width: 100%; }
}
