/* MeriTeach public landing — brand palette from the app (academic violet on cream-lavender). */
:root {
	--bg: #f6f5fb;
	--panel: #ffffff;
	--soft: #efecf8;
	--ink: #1f1b2e;
	--muted: #6c6880;
	--line: #e7e4f1;
	--brand: #6d28d9;
	--brand-dark: #57219f;
	--accent: #b45309;
	--dark: #1e1633;
	--dark-2: #2b2150;
	--good: #2f7d50;
	--shadow: 0 20px 50px rgba(30, 22, 51, .18);
	--shadow-sm: 0 12px 30px rgba(30, 22, 51, .1);
	--radius: 12px;
	--font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* Single container for the whole site. Lateral breathing room scales with the viewport:
   20px on mobile, 40px on tablet, 60px on desktop. Sections must not override padding-inline. */
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 40px; } }
@media (min-width: 1200px) { .wrap { padding-inline: 60px; } }

.eyebrow {
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--brand-dark);
	margin: 0 0 14px;
}

/* ---- Buttons ---- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 11px 20px;
	border: 1.5px solid transparent;
	border-radius: 10px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 750;
	line-height: 1.2;
	cursor: pointer;
	transition: transform .06s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.06rem; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.34); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---- Nav ---- */
.nav {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(30, 22, 51, .92);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.nav-logo img { height: 110px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: rgba(236,233,247,.8); font-weight: 650; font-size: .96rem; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { min-height: 42px; padding: 9px 16px; }
.nav-cta .accedi { color: rgba(236,233,247,.9); font-weight: 700; }
.nav-cta .accedi:hover { color: #fff; }
.nav-toggle { display: none; }

/* ---- Hero ---- */
.hero {
	position: relative;
	overflow: hidden;
	color: #ece9f7;
	background:
		radial-gradient(1200px 500px at 78% -8%, rgba(109,40,217,.32), transparent 60%),
		linear-gradient(160deg, #1e1633 0%, #2b2150 55%, #3a2a63 100%);
}
/* Soft fade from the dark hero into the white section below. Uses rgba white (not `transparent`,
   which is black-transparent and would muddy the midtones) and lands on pure #fff to match .features,
   so there is no hard seam. pointer-events:none so it never blocks the hero content. */
.hero::after {
	content: "";
	position: absolute;
	inset: auto 0 -1px 0;
	height: 120px;
	background: linear-gradient(to bottom,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.42) 55%,
		rgba(255, 255, 255, 0.82) 80%,
		#ffffff 100%);
	pointer-events: none;
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 54px;
	align-items: center;
	padding-block: 72px 96px;
}
.hero .eyebrow { color: #c4a7f2; }
.hero h1 {
	margin: 0;
	font-size: clamp(2.3rem, 4.6vw, 3.6rem);
	line-height: 1.06;
	font-weight: 800;
	letter-spacing: -.02em;
	text-wrap: balance;
}
.hero h1 .hl { color: #c4a7f2; }
.hero-lead {
	margin: 20px 0 0;
	max-width: 34em;
	color: rgba(236,233,247,.82);
	font-size: 1.14rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 26px;
	color: rgba(236,233,247,.62);
	font-size: .9rem;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust i { color: #c4a7f2; }

/* ---- Hero product mock ---- */
.mock {
	background: #fffdfb;
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 16px;
	box-shadow: 0 30px 70px rgba(0,0,0,.4);
	overflow: hidden;
	color: var(--ink);
	transform: rotate(.6deg);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: var(--dark); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.28); }
.mock-bar .t { margin-left: 10px; color: rgba(236,233,247,.7); font-size: .78rem; font-weight: 700; }
.mock-body { padding: 16px; display: grid; gap: 12px; }
.mock-row { display: flex; align-items: center; gap: 12px; }
.mock-col { display: grid; gap: 10px; }
.mock-card {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 13px;
	background: #fff;
	box-shadow: var(--shadow-sm);
}
.mock-proj { border-left: 4px solid var(--brand); }
.mock-proj.b2 { border-left-color: var(--accent); }
.mock-proj.b3 { border-left-color: #2f6fb0; }
.mock-title { font-weight: 800; font-size: .92rem; }
.mock-sub { color: var(--muted); font-size: .78rem; margin-top: 3px; }
.mock-tasks { display: grid; gap: 8px; margin-top: 12px; }
.mock-task { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.mock-check { width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--line); flex: 0 0 auto; }
.mock-check.done { background: var(--good); border-color: var(--good); }
.mock-task.done .lbl { color: var(--muted); text-decoration: line-through; }
/* Grade chip used in the mock register (average / single mark) */
.mock-grade {
	margin-left: auto; flex: 0 0 auto;
	min-width: 30px; height: 26px; padding: 0 8px;
	display: inline-grid; place-items: center;
	border-radius: 8px; font-weight: 900; font-size: .82rem;
	background: rgba(47,125,80,.15); color: #256b44;
}
.mock-grade.mid { background: rgba(180,83,9,.15); color: #92400e; }
.mock-pill {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 5px 11px; border-radius: 999px;
	background: rgba(109,40,217,.14); color: var(--brand-dark);
	font-size: .74rem; font-weight: 800;
}
.mock-voice {
	display: flex; align-items: center; gap: 11px;
	padding: 11px 13px; border-radius: 10px;
	background: var(--dark); color: #ece9f7;
}
.mock-voice .rec { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.mock-wave { display: flex; align-items: center; gap: 3px; height: 20px; }
.mock-wave i { width: 3px; border-radius: 2px; background: #c4a7f2; display: block; }

/* ---- Sections ---- */
section { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
	margin: 0;
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -.02em;
	text-wrap: balance;
}
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 1.08rem; }
.section-head .eyebrow { text-align: center; }

/* ---- Features ---- */
.features { background: var(--panel); border-block: 1px solid var(--line); }
/* The hero already fades into this section, so drop the hard top border right at that seam. */
.hero + .features { border-top: 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg);
}
.feat-ic {
	width: 46px; height: 46px; border-radius: 11px;
	display: grid; place-items: center; margin-bottom: 16px;
	background: rgba(109,40,217,.13); color: var(--brand-dark); font-size: 1.35rem;
}
.feat h3 { margin: 0 0 7px; font-size: 1.12rem; font-weight: 800; }
.feat p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---- Steps ---- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.step .n {
	display: inline-grid; place-items: center;
	width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px;
	background: var(--brand); color: #fff; font-weight: 900;
}
.step h3 { margin: 0 0 8px; font-size: 1.14rem; font-weight: 800; }
.step p { margin: 0; color: var(--muted); }

/* ---- Spotlight ---- */
.spotlight { background: var(--soft); border-block: 1px solid var(--line); }
.spot-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 52px; align-items: center; }
.spot h2 { margin: 0 0 16px; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.14; }
.spot p { margin: 0 0 14px; color: #37324a; font-size: 1.06rem; }
.spot ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.spot li { display: flex; gap: 11px; align-items: flex-start; font-weight: 600; }
.spot li i { color: var(--good); margin-top: 3px; }

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 22px; justify-content: center; }
.price-card {
	position: relative;
	display: flex; flex-direction: column;
	padding: 30px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--panel);
	box-shadow: var(--shadow-sm);
}
.price-card.best { border-color: var(--brand); box-shadow: var(--shadow); }
.price-tag {
	position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
	background: var(--brand); color: #fff;
	font-size: .74rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
	padding: 5px 13px; border-radius: 999px;
}
.price-card h3 { margin: 0; font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.price-amt { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 4px; }
.price-amt .v { font-size: 2.6rem; font-weight: 900; letter-spacing: -.02em; }
.price-amt .p { color: var(--muted); font-weight: 700; }
.price-note { color: var(--good); font-weight: 800; font-size: .92rem; min-height: 1.2em; }
.price-tax { color: var(--muted); font-size: .82rem; margin-top: 3px; }
.price-list { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 11px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.price-list i { color: var(--brand-dark); margin-top: 4px; }
.price-card .btn { margin-top: auto; }
.price-foot { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 22px; }

/* ---- FAQ ---- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
	border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
	padding: 4px 20px; overflow: hidden;
}
.faq summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 16px 0; font-weight: 750; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--brand-dark); transition: transform .2s ease; flex: 0 0 auto; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* ---- Final CTA ---- */
.cta-band {
	color: #ece9f7;
	background:
		radial-gradient(900px 400px at 20% 0%, rgba(109,40,217,.32), transparent 60%),
		linear-gradient(150deg, #1e1633, #3a2a63);
	text-align: center;
}
.cta-band h2 { margin: 0 0 14px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.cta-band p { margin: 0 auto 26px; max-width: 40em; color: rgba(236,233,247,.8); font-size: 1.08rem; }

/* ---- Founding members (REUSABLE across the suite: only --brand changes per app) ---- */
.founder-band {
	background-color: var(--panel);
	background-image: radial-gradient(820px 360px at 12% -18%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 62%);
	border-block: 1px solid var(--line);
}
.founder-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px 52px; align-items: center; }
.founder-head { grid-column: 1; }
.founder-eyebrow {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	color: var(--brand-dark); background: color-mix(in srgb, var(--brand) 14%, transparent);
	padding: 6px 12px; border-radius: 999px;
}
.founder-head h2 { margin: 14px 0 12px; font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 800; letter-spacing: -.02em; }
.founder-lead { margin: 0; color: var(--muted); font-size: 1.08rem; max-width: 40em; }
.founder-benefits { grid-column: 1; list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.founder-benefits li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.02rem; line-height: 1.5; }
.founder-benefits i { color: var(--brand-dark); font-size: 1.15rem; margin-top: 2px; flex: 0 0 auto; }
.founder-benefits strong { font-weight: 800; }
.founder-cta {
	grid-column: 2; grid-row: 1 / span 2; align-self: stretch;
	display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px;
	padding: 28px; border: 1px solid var(--line); border-radius: 18px;
	background: color-mix(in srgb, var(--brand) 7%, var(--panel)); box-shadow: var(--shadow);
}
.founder-scarcity { display: flex; align-items: center; gap: 14px; }
.founder-count {
	font-size: 2.6rem; font-weight: 900; line-height: 1; color: var(--brand-dark);
	background: color-mix(in srgb, var(--brand) 16%, transparent); border-radius: 14px; padding: 8px 16px;
}
.founder-count-label { font-size: 1rem; font-weight: 800; color: var(--ink); }
.founder-note { font-size: .86rem; font-weight: 700; color: var(--brand-dark); display: inline-flex; align-items: flex-start; gap: 6px; }
.founder-cta .btn { width: 100%; justify-content: center; }

/* ---- Founding members popup (REUSABLE; brand-neutral) ---- */
.founder-popup { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.founder-popup[hidden] { display: none; }
.founder-popup-overlay { position: absolute; inset: 0; background: rgba(23, 35, 31, .62); backdrop-filter: blur(2px); }
.founder-popup-card {
	position: relative; z-index: 1; width: 100%; max-width: 460px; text-align: center;
	background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
	padding: 32px 28px 26px; animation: founderPopIn .28s ease;
}
@keyframes founderPopIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.founder-popup-card .founder-eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.founder-popup-card h2 { margin: 12px 0 12px; font-size: clamp(1.4rem, 3.2vw, 1.85rem); font-weight: 800; letter-spacing: -.02em; }
.founder-popup-card p { margin: 0 0 22px; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.founder-popup-card .btn { width: 100%; }
.founder-popup-x {
	position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.05rem; cursor: pointer;
}
.founder-popup-x:hover { background: var(--soft); color: var(--ink); }
.founder-popup-dismiss { margin-top: 14px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.founder-popup-dismiss:hover { color: var(--ink); }
body.founder-popup-lock { overflow: hidden; }

/* ---- Try 24h without card (demo) ---- */
.try-band {
	background-color: var(--panel);
	background-image: radial-gradient(760px 320px at 82% -12%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%);
	border-block: 1px solid var(--line);
}
.try-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 44px; }
.try-copy { flex: 1 1 480px; }
.try-copy h2 { margin: 8px 0 12px; font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -.02em; }
.try-copy p { margin: 0; color: var(--muted); font-size: 1.06rem; max-width: 42em; }
.try-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 0 0 auto; }
.try-note { font-size: .86rem; font-weight: 700; color: var(--brand-dark); display: inline-flex; align-items: center; gap: 6px; }

/* ---- Footer ---- */
.footer { background: #171029; color: rgba(236,233,247,.66); padding: 44px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 28px 40px; justify-content: space-between; align-items: flex-start; }
.footer-logo img { height: 130px; width: auto; margin-bottom: 14px; }
.footer p { margin: 0; max-width: 30em; font-size: .92rem; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 44px; }
.footer-col h4 { margin: 0 0 12px; color: #ece9f7; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-col a { display: block; padding: 4px 0; font-size: .94rem; }
.footer-col a:hover { color: #c4a7f2; }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); font-size: .86rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.hero-grid, .spot-grid { grid-template-columns: 1fr; gap: 40px; }
	.mock { transform: none; }
	.feat-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
	.founder-inner { grid-template-columns: 1fr; }
	.founder-head, .founder-benefits, .founder-cta { grid-column: 1; }
	.founder-cta { grid-row: auto; }
	.nav-links { display: none; }
	.nav-cta { margin-left: auto; }
}
@media (max-width: 620px) {
	section { padding: 60px 0; }
	.hero-grid { padding-block: 52px 72px; }
	.feat-grid, .steps-grid, .price-grid { grid-template-columns: 1fr; }
	.price-grid { max-width: 380px; margin: 0 auto; }
	.hero-actions .btn { width: 100%; }
	.nav-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.mock { transform: none; }
	* { transition: none !important; }
}
