/*
 * onescreen.css
 * Standalone recreation of Figma node 106:18354 ("Slide 16:9 - 272"),
 * migrated onto the shared .ft-* foundation (css/new/foundation.css) + the
 * shared .pr-* pricing skeleton (css/new/pages/pricing.css) in 2026-07.
 *
 * Foundation supplies: tokens, box-sizing, .ft-shell/.ft-section rhythm,
 * .ft-heading/.ft-eyebrow/.ft-title/.ft-accent/.ft-lead, .ft-btn, .ft-split.
 * Pricing supplies the plan-card + Compare-Plans anatomy. This sheet keeps
 * ONLY the genuine OneScreen deltas. NO color normalization was approved for
 * this page — its Figma values that differ from the --ft-* tokens (heading
 * #454442, muted #788089, border #E6E7E9, blue-subtle #EAF6FF) are preserved
 * exactly via the --os-* tokens + body.os-page-scoped overrides below.
 *
 * Figma tokens:
 *   Blue #2DA7FA · Blue-subtle #EAF6FF · Orange #FB8F0C · Green #37AC14
 *   Gray-bg #F6F6F6 · Text #333536 · Muted #788089 · Border #E6E7E9
 */

.os-main {
	/* Page-unique tokens (values with no exact --ft-* counterpart) */
	--os-orange: #fb8f0c;
	--os-gray: #f6f6f6;
	--os-heading: #454442; /* Figma: headings (hero/section titles, quote) */
	--os-text-2: #4f545a;  /* Figma: emphasised subtext (hero subtitle, flow) */
	--os-muted: #788089;   /* Figma Neutral/Text_Secondary (body copy) */
	--os-border: #e6e7e9;
	--os-blue-subtle: #eaf6ff;
}

.os-main img {
	max-width: 100%;
}

/* Foundation caps the shell at 1480px; OneScreen's Figma frame caps content
 * at 1320px (1920 − 2×300 gutters). body.os-page is unique to this page, and
 * the extra specificity keeps this cap winning inside foundation's own media
 * queries (e.g. its ≤380px --ft-shell re-declaration). */
body.os-page .ft-main {
	--ft-shell: min(1320px, 100% - 80px);
}

/* ---- Section background modifiers (foundation has none) ---- */
.os-section--hero {
	background: var(--os-blue-subtle);
}

.os-section--white {
	background: #ffffff;
}

.os-section--gray {
	background: var(--os-gray);
}

.os-section--steps {
	background: #ffffff;
}

/* ---- Heading deltas ---- */
body.os-page .ft-eyebrow {
	line-height: 1.3;
}

body.os-page .ft-title {
	line-height: 28px;
	color: var(--os-heading);
}

.os-heading--center {
	text-align: center;
	justify-items: center;
	max-width: 760px;
	margin: 0 auto 56px;
}

body.os-page .ft-lead {
	color: var(--os-muted);
}

.os-flow {
	margin: 0 0 -16px; /* hug the body copy below (Figma flow→body gap = 8px) */
	font-size: 16px;
	font-weight: 600;
	color: var(--os-text-2);
}

/* ---- Buttons (kept self-contained: the foundation .ft-btn carries a 1.5px
 * transparent border box + 12px gap that differ from OneScreen's Figma button,
 * so os-btn stays its own primitive rather than override nearly every rule) -- */
.os-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: fit-content;
	padding: 12px 32px;
	border: 0;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
}

.os-btn i { font-size: 16px; }
.os-btn--blue { background: var(--ft-blue); }
.os-btn--orange { background: var(--os-orange); }
.os-btn--block { width: 100%; }

/* ===== Hero =====
 * Figma node 106:10392 (OneScreen): the hero copy frame (Frame 1000011670)
 * sits at x=300, width 645 on the 1920 design — i.e. the SAME 15.625% side
 * gutter as every content section below it (NOT the homepage's wider 18.75%
 * hero inset). So the hero just fills the shared shell (1320 block); the
 * copy column is capped at 645px to match Figma.
 *
 * Hero fix (homepage-style): the columns are a PROPORTION (1.04fr : 1fr ≈ the
 * Figma 645:619 split) rather than a fixed 645px copy + 1fr media. With a fixed
 * copy column the media was starved to a ~250px sliver in the 991–1320 band
 * (e.g. at 1040px); as a ratio both columns scale down together so the media
 * stays healthy right down to the 990px stack point. The shell caps at 1320, so
 * at full desktop width the split still resolves to ≈645/619 as in Figma. */
.os-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
}

.os-hero__copy {
	display: grid;
	gap: 8px; /* base gap; Figma rhythm tuned per-element below */
	justify-items: start;
	max-width: 645px; /* Figma hero copy column = 645px on the 1920 frame */
}

/* Figma hero spacing: badge—24—title—32—subtitle—8—desc—8—watch—32—button
 * (per-element margins set on .os-hero__title / __subtitle / the button below) */
.os-hero__copy .os-btn { margin-top: 24px; }

.os-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba(39, 55, 75, 0.08);
	font-size: 14px;
	font-weight: 600;
	color: var(--ft-text);
}

.os-badge i {
	font-size: 15px;
	color: var(--ft-blue);
}

.os-hero__title {
	margin: 16px 0 0;
	font-size: 36px;
	line-height: 44px;
	font-weight: 700;
	color: var(--os-heading);
}

.os-hero__subtitle {
	margin: 24px 0 0;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 600;
	color: var(--os-text-2);
}

.os-hero__desc {
	margin: 0;
	font-size: 16px;
	line-height: 22px;
	font-weight: 500;
	color: var(--os-muted);
}

/* Kept for the hidden "Watch Demo" hero link (restored with the videos
 * section once OneScreen videos exist). */
.os-watch {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ft-blue);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.os-watch i {
	font-size: 12px;
}

.os-hero__media {
	display: flex;
	align-items: center;
	justify-content: center;
}

.os-hero__media img {
	width: 100%;
	max-width: 760px;
	object-fit: contain;
}

/* ===== 4 Setup Steps ===== */
.os-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.os-step {
	display: flex;
	flex-direction: column;
	background: #f6f6f6;
	border-radius: 16px;
	overflow: hidden;
}

.os-step__img {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 240px;
	padding: 14px 14px 0;
}

.os-step__img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.os-step__body {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 16px 20px 24px;
}

.os-step__num {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-top: 1px;
	border-radius: 999px;
	background: var(--ft-blue);
	color: #f0efed;
	font-size: 16px;
	font-weight: 600;
}

.os-step__text {
	display: grid;
	gap: 8px;
}

.os-step__text h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--ft-text);
}

.os-step__text p {
	margin: 0;
	font-size: 16px;
	line-height: 22px;
	font-weight: 500;
	color: var(--os-muted);
}

/* ---- Chips row ---- */
.os-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	margin-top: 48px;
	padding-top: 0;
}

.os-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ft-text);
}

.os-chip i {
	font-size: 17px;
	color: var(--ft-blue);
}

.os-chips__sep {
	width: 1px;
	height: 20px;
	/* Figma stroke is #E0E0E0; darkened per request so the dividers read clearly */
	background: #c4c4c4;
}

/* ---- Divider between chips and quote (Figma "Line 503") ---- */
.os-steps__rule {
	height: 1px;
	margin: 48px 0 0;
	border: 0;
	background: var(--os-border);
}

/* ---- Quote ---- */
.os-quote {
	margin: 48px auto 0;
	max-width: 760px;
	text-align: center;
	font-size: 20px;
	line-height: 1.4;
	font-weight: 700;
	color: var(--os-heading);
}

.os-quote::before { content: "\201C"; }
.os-quote::after { content: "\201D"; }

/* ===== Split layouts — foundation's .ft-split with OneScreen's metrics =====
 * Figma side margins: each split section's content block sits at x=300,
 * width 1320 (15.625% gutter per side) on the 1920 design; the block fills the
 * shared shell. Deltas vs foundation: 440px column basis (ft 460), 560px copy
 * cap (ft 540), 24px content gap (ft 32), 20px img radius / 0.1 shadow
 * (ft 24px / 0.08), and the stack point is 1040 (ft 1080 — see the responsive
 * blocks near the bottom, which restore the row in the 1041–1080 band). */
body.os-page .ft-split__content {
	flex: 1 1 440px;
	max-width: 560px;
	gap: 24px;
	align-content: center;
}

body.os-page .ft-split__media {
	flex: 1 1 440px;
}

body.os-page .ft-split__media img {
	border-radius: 25px;
	box-shadow: 0 24px 60px rgba(20, 33, 50, 0.1);
}

body.os-page .os-split__media--bare {
	position: relative;
}

/* White blob behind the phones (Figma "Vector 83") — left-shifted so it sits
 * behind the two small phones + the left of the big phone (its right edge stops
 * ~84% across, leaving the angled phone's right side on the plain background). */
body.os-page .os-split__media--bare::before {
	content: "";
	position: absolute;
	z-index: 0;
	inset: -3% 16% 13% -13%;
	background: url("/images/new/onescreen/phones_blob.svg") center / contain no-repeat;
	pointer-events: none;
}

body.os-page .os-split__media--bare img {
	position: relative;
	z-index: 1;
	border-radius: 0;
	box-shadow: none;
}

/* Accordion split sections (mobile + web): a wider text column so the long
 * titles fit on one line, and top-aligned content so the title doesn't shift
 * vertically as the scroll-driven accordion expands/collapses (no jitter). */
body.os-page .ft-split.os-split--acc {
	gap: 48px;
}

body.os-page .os-split--acc .ft-split__content {
	max-width: 680px;
	align-self: start;
	padding-top: 28px;
}

body.os-page .os-split--acc .ft-split__media {
	max-width: 600px;
}

body.os-page .os-split--acc .os-stores {
	margin-top: 52px;
}

/* Class & Assessment title: cap width so it wraps after "Into" like Figma
 * ("Turn After-Lecture Review Into" / "Actionable Insight"). Only the class
 * section is a gray split section. */
body.os-page .os-section--gray .ft-split__content .ft-title {
	max-width: 510px;
}

/* ---- Feature accordion (kept page-unique — differs from the foundation's
 * .ft-timeline in gaps, paddings, icon treatment and timings) ---- */
.os-acc {
	display: grid;
	gap: 14px;
}

.os-acc__item {
	padding: 6px 0 6px 18px;
	border-left: 3px solid var(--os-border);
	transition: border-left-color 0.35s ease;
}

.os-acc__item.is-active {
	border-left-color: var(--ft-blue);
}

.os-acc__head {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.os-acc__head i {
	font-size: 18px;
	color: var(--ft-blue);
}

.os-acc__head h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--ft-text);
}

/* Smooth expand/collapse (grid-rows 0fr↔1fr), mirroring homepage's .ft-tl__body */
.os-acc__body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.4s ease;
}

.os-acc__item.is-active .os-acc__body {
	grid-template-rows: 1fr;
}

.os-acc__item p {
	overflow: hidden;
	min-height: 0;
	margin: 0;
	padding-left: 30px;
	padding-top: 0;
	font-size: 16px;
	line-height: 22px;
	font-weight: 500;
	color: var(--os-muted);
	opacity: 0;
	transition: opacity 0.3s ease, padding-top 0.3s ease;
}

.os-acc__item.is-active p {
	padding-top: 10px;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.os-acc__item,
	.os-acc__body,
	.os-acc__item p {
		transition: none;
	}
}

/* ---- Store buttons (kept page-unique — 20px gap / 44px badges vs the
 * foundation's 24px / 40px) ---- */
.os-stores {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.os-stores img {
	height: 44px;
}

/* ===== Pricing — anatomy comes from the shared .pr-* skeleton (pricing.css);
 * below are OneScreen's container, theme + sizing deltas only. ===== */
.os-pricing__head {
	margin-bottom: 40px;
}

/* .os-plans is the carousel track (shared .pr-carousel__track supplies the
 * flex/overflow/snap layout); only the gap delta stays here. */
.os-plans {
	gap: 24px;
}

body.os-page .pr-plan {
	display: flex;
	flex-direction: column;
	border-color: var(--os-border);
	/* Fixed basis (not a 1fr grid track) so the track overflows past 2 plans
	 * instead of shrinking them; 2 cards at 46% still sit centered. The 80% card
	 * scale is baked into the shared .pr-carousel__track > * rule in pricing.css
	 * — do not re-apply it here. */
	flex: 0 0 clamp(320px, 46%, 560px);
}

.os-plan__badge--blue { background: var(--ft-blue); }
.os-plan__badge--orange { background: var(--os-orange); }

.os-plan__tag--blue { background: #e6f4ff; color: var(--ft-blue); }
.os-plan__tag--orange { background: #fff1de; color: var(--os-orange); }

body.os-page .pr-plan__rule {
	border-top-color: var(--os-border);
}

/* Compare Plans deltas: OneScreen's summary is the larger 20px block row, the
 * desktop grid uses 206px check columns (wrapped ≥991 so pricing.css's shared
 * ≤990/≤680 steps win below), checks are 24px bold. */
body.os-page .pr-compare > summary {
	display: flex;
	gap: 12px;
	font-size: 20px;
}

body.os-page .pr-compare__row {
	border-bottom-color: var(--os-border);
}

body.os-page .pr-check {
	font-size: 24px;
	font-weight: 700;
}

/* Compare-header column labels: per-column price accents (Figma 106:18354).
 * These modifiers sit on the kept .os-compare__col--* tokens (the base column
 * layout comes from the shared .pr-compare__col). */
.os-compare__col--trial { color: #022db1; }
.os-compare__col--da { color: #fa8e0c; }
/* Single Dental Anatomy column: recolor its check to match the column. */
body.os-page .pr-check--green { color: #fa8e0c; }

/* OneScreen's muted tone (#788089) differs from --ft-muted (#737A82) — no
 * color normalization was approved for this page. */
body.os-page .pr-plan__desc,
body.os-page .pr-plan__features-title,
body.os-page .pr-plan__features li,
body.os-page .pr-compare__label,
body.os-page .pr-compare > summary i {
	color: var(--os-muted);
}

/* Single-column compare (only the Dental Anatomy column remains): one check
 * column at each step, overriding pricing.css's shared two-column grids. */
@media (min-width: 991px) {
	body.os-page .pr-compare__group,
	body.os-page .pr-compare__row {
		grid-template-columns: minmax(0, 1fr) 206px;
		column-gap: 80px;
	}
}
@media (max-width: 990px) {
	body.os-page .pr-compare__group,
	body.os-page .pr-compare__row {
		grid-template-columns: minmax(0, 1fr) 110px;
	}
}
@media (max-width: 680px) {
	body.os-page .pr-compare__group,
	body.os-page .pr-compare__row {
		grid-template-columns: minmax(0, 1fr) 56px;
	}
}

/* ===== Videos (markup temporarily commented out in onescreen.vue until
 * OneScreen videos exist — rules kept so restoring the section just works) ===== */
.os-videos {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}

.os-video {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.os-video__thumb {
	position: relative;
	aspect-ratio: 286 / 164;
	background: #e9eaec;
	border: 1px solid var(--os-border);
	border-radius: 10px;
	overflow: hidden;
}

.os-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 6px 18px rgba(20, 33, 50, 0.15);
}

.os-video__play i {
	font-size: 18px;
	margin-left: 2px;
	color: var(--ft-blue);
}

.os-video__text {
	display: grid;
	gap: 8px;
}

.os-video__text h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--ft-text);
}

.os-video__text p {
	margin: 0;
	font-size: 12px;
	line-height: 16px;
	font-weight: 500;
	color: var(--os-muted);
}

/* Desktop: tighten the gap between the two cards. The 80% card squeeze itself is
 * applied at every width on the base body.os-page .pr-plan rule above. */
@media (min-width: 991px) {
	.os-plans { gap: 19px; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
	.os-steps {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px 24px;
	}

	.os-videos {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Foundation stacks .ft-split at 1080; OneScreen's splits wrap once two 440px
 * columns + the gap no longer fit (~1010–1032px), so it stacks at 1040 instead.
 * First RESTORE the desktop row inside the 1041–1080 band (out-cascading
 * foundation's ≤1080 column/order/width rules), then restate the stack with
 * OneScreen's own values from 1040 down. */
@media (max-width: 1080px) {
	body.os-page .ft-split { flex-direction: row; gap: 72px; }
	body.os-page .ft-split.os-split--acc { gap: 48px; }
	body.os-page .ft-split__content { flex: 1 1 440px; width: auto; max-width: 560px; }
	body.os-page .ft-split__media { flex: 1 1 440px; width: auto; max-width: 640px; order: 0; }
	body.os-page .os-split--acc .ft-split__content { max-width: 680px; }
	body.os-page .os-split--acc .ft-split__media { max-width: 600px; }
}

@media (max-width: 1040px) {
	body.os-page .ft-split,
	body.os-page .ft-split.os-split--acc {
		flex-direction: column;
		gap: 36px;
	}

	body.os-page .ft-split__content,
	body.os-page .ft-split__media {
		flex: 0 0 auto;
		width: 100%;
		max-width: 640px;
		order: 0;
	}

	body.os-page .ft-split__media {
		order: -1;
	}
	/* the --acc content/media keep their 680/600 caps via the higher-specificity
	 * base rules above — matching the pre-migration cascade */
}

@media (max-width: 990px) {
	.os-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
		text-align: center;
	}

	.os-hero__copy {
		justify-items: center;
		/* Centre the 645px-capped copy block within the full-width stacked cell —
		 * without this it sits left-aligned (its text looked centred but the block
		 * was off-centre vs the centred media below). */
		justify-self: center;
	}

	.os-plans {
		gap: 24px;
	}
	/* Phone/tablet: single-card peek — the track stays a horizontal swipe
	 * carousel rather than stacking. */
	body.os-page .pr-plan {
		flex-basis: 86%;
	}
}

@media (max-width: 680px) {
	body.os-page .ft-main {
		--ft-shell: min(1320px, 100% - 40px);
	}

	.os-hero__title {
		font-size: 30px;
	}

	body.os-page .ft-title {
		font-size: 22px;
	}

	.os-step__img {
		height: 220px;
	}

	.os-chips {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		margin-top: 40px;
	}

	.os-chips__sep {
		display: none;
	}

	.os-quote {
		font-size: 18px;
	}

	/* Plan cards: trim the padding and let the badge/name + tag row wrap so the
	 * card can shrink to the phone gutter (it was forced ~377px wide → overflow at
	 * ≤~420px). */
	body.os-page .pr-plan {
		padding: 28px 24px;
	}

	body.os-page .pr-plan__top {
		flex-wrap: wrap;
	}
}

/* Below 450 → single column (convention, same as modupro/charlie/licensure/
 * accessories): the step + video grids stay 2-col down to 450, then collapse.
 * Narrow the gutter to 16px per side. Min target width 325px. */
@media (max-width: 449px) {
	.os-steps,
	.os-videos {
		grid-template-columns: 1fr;
	}

	body.os-page .ft-main {
		--ft-shell: min(1320px, 100% - 32px);
	}
}
