/* /assets/css/onboarding-certificate.css
   Styles for /onboarding/ — scoped to .oc-page
   No global resets, no Bootstrap/Tabler class conflicts.
   Class prefixes: .oc-* (onboarding certificate)
*/

/* White body background ensures white sections look full-bleed, and
   overflow-x: clip prevents horizontal scroll from bleed pseudo-elements. */
body:has(.oc-page) { background: #fff; overflow-x: clip; }

/* Strip Tabler's page-body margins/padding and make .container-xl truly
   full-width so every section reaches the viewport edges naturally.
   Colored sections still use ::before for their background; white sections
   blend with the white body. Removing padding-bottom closes the gap
   between the last section and the footer. */
.page-body:has(.oc-page)  { margin: 0 !important; padding: 0 !important; }
.container-xl:has(.oc-page) { padding: 0 !important; max-width: none !important; }

/* === Color tokens & base styles === */
.oc-page {
	--oc-blue:      #406bab;
	--oc-blue-dark: #16263c;
	--oc-green:     #7fbe41;
	--oc-green-dark:#006624;
	--oc-peach:     #ffb262;
	--oc-yellow:    #ffdf72;
	--oc-cream:     #f2f2ec;
	--oc-ink:       #1c2430;
	--oc-ink-soft:  #4a5568;
	--oc-radius:    14px;
	--oc-shadow:    0 12px 30px rgba(22,38,60,0.08);

	font-family: 'Roboto', system-ui, -apple-system, sans-serif;
	color: var(--oc-ink);
	line-height: 1.6;
	background: #fff;
}

.oc-page h1, .oc-page h2, .oc-page h3 {
	margin: 0 0 .5em;
	font-weight: 700;
	line-height: 1.15;
	font-family: 'Roboto', system-ui, sans-serif;
}
.oc-page p   { margin: 0 0 1em; color: var(--oc-ink-soft); }
.oc-page img { max-width: 100%; display: block; }
.oc-page a   { color: inherit; }

/* === Layout helpers === */
.oc-wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

.oc-eyebrow {
	display: inline-block;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--oc-green-dark);
	margin-bottom: .75em;
}

/* === Full-bleed colored sections ===
   position:relative + ::before pseudo-element extends background color past
   .container-xl to the viewport edges.  body { overflow-x: clip } above
   prevents horizontal scroll from the extending pseudo-element.
   calc(50% - 50vw) is negative when the element is narrower than the
   viewport, exactly spanning from the element's left/right edge to the
   viewport edge (works because the element is horizontally centered).   */
.oc-page .oc-bleed {
	position: relative;
	isolation: isolate;
}
.oc-page .oc-bleed::before {
	content: '';
	position: absolute;
	inset-block: 0;
	left:  calc(50% - 50vw);
	right: calc(50% - 50vw);
	z-index: -1;
	pointer-events: none;
}
.oc-stats-section::before { background: var(--oc-cream); }
.oc-section--alt::before  { background: var(--oc-cream); }
.oc-final-cta::before     { background: var(--oc-green-dark); }

/* === Hero === */
.oc-hero { padding: 64px 0 48px; }
.oc-hero .oc-wrap { max-width: 760px; text-align: left; }
.oc-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); color: var(--oc-blue-dark); }
.oc-hero h1 em { color: var(--oc-green-dark); font-style: italic; }
.oc-hero .oc-lede { font-size: 1.15rem; max-width: 620px; }

.oc-hero-bullets {
	list-style: none;
	margin: 28px 0 32px;
	padding: 0;
	display: grid;
	gap: 14px;
}
.oc-hero-bullets li {
	position: relative;
	padding-left: 30px;
	font-size: 1rem;
	color: var(--oc-ink);
	font-weight: 500;
}
.oc-hero-bullets li::before {
	content: '';
	position: absolute;
	left: 0;
	top: .35em;
	width: 16px;
	height: 16px;
	border-radius: 5px;
	background: var(--oc-green);
}

.oc-btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.oc-btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: .95rem;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
	cursor: pointer;
	border: none;
}
.oc-btn--primary { background: var(--oc-green); color: #fff; }
.oc-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(127,190,65,.35);
	color: #fff;
	text-decoration: none;
}
.oc-btn--secondary { background: transparent; color: var(--oc-blue-dark); border: 2px solid var(--oc-blue-dark); }
.oc-btn--secondary:hover { background: var(--oc-blue-dark); color: #fff; text-decoration: none; }

/* === Stats === */
.oc-stats-section { padding: 36px 0; }
.oc-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	text-align: center;
}
.oc-stat b    { display: block; font-size: 2rem; color: var(--oc-blue-dark); font-weight: 700; }
.oc-stat span { font-size: .85rem; color: var(--oc-ink-soft); }

/* === Section shell === */
.oc-section { padding: 72px 0; }
.oc-section-head { max-width: 680px; margin-bottom: 40px; }
.oc-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--oc-blue-dark); }

/* === Courses === */
.oc-course-groups {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}
.oc-course-group {
	background: #fff;
	border: 1px solid #e7e5df;
	border-radius: var(--oc-radius);
	padding: 26px 28px;
	box-shadow: var(--oc-shadow);
}
.oc-course-group h3 {
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--oc-green-dark);
	font-weight: 700;
	margin-bottom: 14px;
}
.oc-course-group ul    { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.oc-course-group li b  { display: block; color: var(--oc-blue-dark); font-size: 1rem; font-weight: 700; }
.oc-course-group li span { font-size: .92rem; color: var(--oc-ink-soft); }
.oc-course-note { margin-top: 28px; max-width: 680px; font-size: .95rem; }

/* === How it works === */
.oc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.oc-step .oc-num {
	font-size: .85rem;
	font-weight: 700;
	color: var(--oc-green);
	letter-spacing: .05em;
	margin-bottom: 10px;
	display: block;
}
.oc-step h3 { font-size: 1.15rem; color: var(--oc-blue-dark); }
.oc-step p  { font-size: .95rem; }

/* === Pricing === */
.oc-price-card {
	background: var(--oc-blue-dark);
	color: #fff;
	border-radius: 20px;
	padding: 48px;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 40px;
	align-items: center;
}
.oc-price-card h2 { color: #fff; }
.oc-price-card p  { color: #cfd8e6; }
.oc-price-box {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.18);
	border-radius: var(--oc-radius);
	padding: 32px;
	text-align: center;
}
.oc-price-old { font-size: 1.2rem; color: #9fb0c7; text-decoration: line-through; }
.oc-price-new { font-size: 3rem; font-weight: 700; color: #fff; margin: 6px 0; }
.oc-save-badge {
	display: inline-block;
	background: var(--oc-peach);
	color: var(--oc-blue-dark);
	font-weight: 700;
	font-size: .82rem;
	border-radius: 999px;
	padding: 5px 14px;
	margin-bottom: 10px;
}
.oc-price-box .oc-btn--primary {
	width: 100%;
	margin-top: 16px;
	display: block;
	text-align: center;
}
.oc-price-fine     { font-size: .82rem; color: #9fb0c7; margin-top: 14px; }
.oc-price-footnote { margin-top: 28px; font-size: .92rem; color: var(--oc-ink-soft); }
.oc-price-footnote a { color: var(--oc-green-dark); font-weight: 700; text-decoration: underline; }

/* === FAQ === */
.oc-faq { max-width: 760px; }
.oc-faq details { border-bottom: 1px solid #e7e5df; padding: 20px 0; }
.oc-faq details summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--oc-blue-dark);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1.02rem;
}
.oc-faq details summary::-webkit-details-marker { display: none; }
.oc-faq details summary::after {
	content: '+';
	font-size: 1.4rem;
	color: var(--oc-green);
	font-weight: 400;
	margin-left: 12px;
	flex-shrink: 0;
}
.oc-faq details[open] summary::after { content: '\2212'; }
.oc-faq details p { margin-top: 14px; font-size: .95rem; }

/* === Final CTA === */
.oc-final-cta { color: #fff; }
.oc-final-cta .oc-wrap { max-width: 700px; }
.oc-final-cta h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.oc-final-cta p  { color: #dcefd0; font-size: 1.05rem; }

/* === Scroll reveal === */
.oc-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .6s ease, transform .6s ease;
}
.oc-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.oc-reveal { opacity: 1; transform: none; transition: none; }
}

/* === Responsive === */
@media (max-width: 900px) {
	.oc-course-groups { grid-template-columns: 1fr; }
	.oc-steps         { grid-template-columns: 1fr; gap: 36px; }
	.oc-price-card    { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 600px) {
	.oc-stats  { grid-template-columns: 1fr; gap: 24px; }
	.oc-hero   { padding: 40px 0 32px; }
	.oc-section { padding: 52px 0; }
}
