/*
 * Landing de Upslope (useupslope.com).
 * Misma familia visual que la app («Estudio»): gris cálido, tinta negra, Geist + Instrument Serif.
 * El volt (#D7FF3F) del logo original es el único color de marca: significa «progreso»
 * y solo se usa como relleno (nunca como color de texto sobre claro).
 */

:root {
	color-scheme: light;

	--bg: #ebebe6;
	--bg-2: #e2e2dc;
	--surface: #f7f7f4;
	--surface-2: #efefea;
	--surface-3: #e4e4de;
	--line: rgba(17, 17, 17, 0.08);
	--line-2: rgba(17, 17, 17, 0.14);

	--text: #111111;
	--text-2: #4d4e53;
	--text-3: #6d6e73;

	--ink: #111111;
	--ink-2: #1c1c1e;
	--ink-3: #2a2a2d;
	--on-ink: #f5f5f2;
	--on-ink-2: rgba(245, 245, 242, 0.66);
	--on-ink-3: rgba(245, 245, 242, 0.42);
	--on-ink-line: rgba(245, 245, 242, 0.12);

	--volt: #d7ff3f;
	--volt-soft: rgba(215, 255, 63, 0.55);

	/* Áreas (mismas que la app, apagadas) */
	--study: #3a5ea8;
	--health: #2f7d4f;
	--lang: #a8621a;
	--self: #5b4a9e;
	--danger: #b4374a;

	--font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
	--font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;

	--r-sm: 12px;
	--r-md: 18px;
	--r-lg: 24px;
	--r-xl: 32px;

	--shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(17, 17, 17, 0.04),
		0 18px 40px -26px rgba(17, 17, 17, 0.28);
	--shadow-pop: 0 2px 6px rgba(17, 17, 17, 0.06), 0 36px 70px -30px rgba(17, 17, 17, 0.4);

	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	/* Curva de la píldora deslizante de la app (Segmented.svelte) */
	--glide: 460ms cubic-bezier(0.32, 0.72, 0, 1);

	--max: 1200px;
	--gutter: 16px;
	--nav-h: 64px;
}

@media (min-width: 720px) {
	:root {
		--gutter: 32px;
	}
}

/* ─── Base ─────────────────────────────────────────────── */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nav-h) + 24px);
	interpolate-size: allow-keywords;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

/* Grano muy suave, como en la app */
body::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 100;
	pointer-events: none;
	opacity: 0.035;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
p,
figure,
blockquote {
	margin: 0;
}

h1,
h2,
h3 {
	font-weight: 600;
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button,
input {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

button {
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

svg {
	display: block;
	flex-shrink: 0;
}

::selection {
	background: var(--volt);
	color: var(--ink);
}

:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
	border-radius: 6px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 200;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--on-ink);
	font-weight: 600;
	transition: top 200ms var(--ease);
}

.skip:focus {
	top: 12px;
}

.wrap {
	width: 100%;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ─── Tipografía de la landing ─────────────────────────── */

.display {
	font-size: clamp(2.7rem, 1.55rem + 4.6vw, 5.4rem);
	line-height: 0.98;
	letter-spacing: -0.048em;
}

.h2 {
	font-size: clamp(2.1rem, 1.4rem + 2.7vw, 3.6rem);
	line-height: 1.02;
	letter-spacing: -0.042em;
}

.h3 {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	line-height: 1.08;
	letter-spacing: -0.032em;
}

/* La palabra que importa va en serif cursiva */
.display em,
.h2 em,
.h3 em {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
	font-size: 1.08em;
	line-height: 0;
}

.lead {
	font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
	line-height: 1.55;
	color: var(--text-2);
	max-width: 36rem;
}

.section-head {
	display: grid;
	gap: 18px;
	justify-items: start;
	max-width: 46rem;
}

.section-head.center {
	margin-inline: auto;
	text-align: center;
	justify-items: center;
}

.section {
	padding-block: clamp(84px, 10vw, 148px);
}

/* ─── Botones y formulario ─────────────────────────────── */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	padding: 0 24px;
	border-radius: 999px;
	font-size: 15.5px;
	font-weight: 600;
	letter-spacing: -0.01em;
	white-space: nowrap;
	transition:
		transform 160ms var(--ease),
		background-color 160ms var(--ease),
		box-shadow 160ms var(--ease);
}

.btn:active {
	transform: scale(0.97);
}

.btn-ink {
	background: var(--ink);
	color: var(--on-ink);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 10px 24px -12px rgba(17, 17, 17, 0.6);
}

.btn-ink:hover {
	background: var(--ink-3);
}

.btn-ghost {
	background: var(--surface);
	color: var(--text);
	box-shadow: var(--shadow-card);
}

.btn-ghost:hover {
	background: #fff;
}

.btn-volt {
	background: var(--volt);
	color: var(--ink);
}

.btn-volt:hover {
	background: #e2ff70;
}

.btn .arrow {
	transition: transform 200ms var(--ease);
}

.btn:hover .arrow {
	transform: translateX(3px);
}

.signup {
	display: grid;
	gap: 12px;
	max-width: 30rem;
}

.signup-row {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px;
	border-radius: 999px;
	background: var(--surface);
	box-shadow: var(--shadow-card), 0 0 0 1px var(--line);
	transition: box-shadow 200ms var(--ease);
}

.signup-row:focus-within {
	box-shadow: var(--shadow-card), 0 0 0 2px var(--ink);
}

.signup input {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 8px 0 18px;
	border: 0;
	background: transparent;
	font-size: 16px;
	outline: none;
}

.signup input::placeholder {
	color: var(--text-3);
}

.signup .btn {
	height: 46px;
	padding: 0 20px;
}

.signup-note {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-size: 13.5px;
	color: var(--text-3);
	padding-left: 18px;
}

.signup-note span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.signup-note svg {
	color: var(--text-2);
}

.signup-status {
	min-height: 0;
	padding-left: 18px;
	font-size: 14px;
	font-weight: 500;
}

.signup-status:empty {
	display: none;
}

.signup-status[data-tone='ok'] {
	color: var(--health);
}

.signup-status[data-tone='error'] {
	color: var(--danger);
}

.signup.done .signup-row {
	box-shadow: var(--shadow-card), 0 0 0 2px var(--health);
}

@media (max-width: 460px) {
	.signup-row {
		flex-direction: column;
		align-items: stretch;
		border-radius: 26px;
	}

	.signup input {
		height: 48px;
		text-align: center;
		padding: 0 12px;
	}

	.signup .btn {
		height: 50px;
	}

	.signup-note,
	.signup-status {
		padding-left: 0;
		justify-content: center;
		text-align: center;
	}
}

/* ─── Navegación ───────────────────────────────────────── */

.nav {
	position: fixed;
	inset: 12px 0 auto;
	z-index: 50;
	pointer-events: none;
}

.nav-bar {
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: var(--nav-h);
	padding: 0 10px 0 16px;
	border-radius: 999px;
	background: rgba(247, 247, 244, 0.72);
	backdrop-filter: saturate(1.4) blur(18px);
	-webkit-backdrop-filter: saturate(1.4) blur(18px);
	box-shadow: 0 0 0 1px var(--line);
	transition: box-shadow 260ms var(--ease), background-color 260ms var(--ease);
}

.nav.scrolled .nav-bar {
	background: rgba(247, 247, 244, 0.86);
	box-shadow: 0 0 0 1px var(--line), 0 18px 40px -28px rgba(17, 17, 17, 0.45);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 17px;
	letter-spacing: -0.025em;
}

.nav-links {
	display: none;
	gap: 4px;
}

.nav-links a {
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--text-2);
	transition: color 140ms var(--ease), background-color 140ms var(--ease);
}

.nav-links a:hover {
	color: var(--text);
	background: rgba(17, 17, 17, 0.05);
}

.nav .btn {
	height: 44px;
	padding: 0 18px;
	font-size: 14.5px;
}

@media (min-width: 860px) {
	.nav-links {
		display: flex;
	}
}

/* ─── Hero ─────────────────────────────────────────────── */

.hero {
	position: relative;
	padding-top: calc(var(--nav-h) + 72px);
	padding-bottom: clamp(56px, 8vw, 96px);
}

.hero-grid {
	display: grid;
	gap: 56px;
	align-items: center;
}

.hero-copy {
	display: grid;
	gap: 26px;
	justify-items: start;
}

.hero-copy .lead {
	max-width: 33rem;
}

/* La pendiente: una línea que sube detrás de los dispositivos */
.slope-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

.slope-bg svg {
	position: absolute;
	right: -4%;
	bottom: 6%;
	width: min(1100px, 120%);
	height: auto;
	color: rgba(17, 17, 17, 0.12);
}

.stage {
	position: relative;
	height: 640px;
	display: grid;
	place-items: center;
}

.stage .desk {
	display: none;
}

@media (min-width: 1000px) {
	.hero-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
		gap: 40px;
	}

	.stage {
		display: block;
	}

	.stage .desk {
		display: block;
		position: absolute;
		top: 34px;
		right: 0;
		width: 560px;
	}

	.stage .phone {
		position: absolute;
		left: 0;
		bottom: -4px;
	}

	.stage .toast {
		display: flex;
	}
}

@media (min-width: 1000px) and (max-width: 1140px) {
	.stage .desk {
		width: 500px;
	}
}

@media (min-width: 1360px) {
	.stage .desk {
		right: -32px;
	}
}

/* Aviso flotante (como el del sistema en el escritorio) */
.toast {
	display: none;
	position: absolute;
	top: 0;
	right: 12px;
	z-index: 4;
	align-items: center;
	gap: 12px;
	width: 300px;
	padding: 12px 14px;
	border-radius: 16px;
	background: rgba(250, 250, 248, 0.92);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: var(--shadow-pop), 0 0 0 1px var(--line);
	font-size: 13px;
	line-height: 1.35;
	opacity: 0;
	transform: translateY(-10px) scale(0.98);
	transition: opacity 420ms var(--ease), transform 520ms var(--glide);
}

.toast.show {
	opacity: 1;
	transform: none;
}

.toast b {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
}

.toast small {
	color: var(--text-3);
	font-size: 12px;
}

.toast .when {
	margin-left: auto;
	align-self: flex-start;
	color: var(--text-3);
	font-size: 11.5px;
}

/* ─── Logo ─────────────────────────────────────────────── */

.logo-mark {
	width: 30px;
	height: 30px;
}

/* ─── Marco del iPhone ─────────────────────────────────── */

.phone {
	--pw: 300px;
	position: relative;
	z-index: 3;
	width: var(--pw);
	height: 620px;
	flex-shrink: 0;
	padding: 10px;
	border-radius: 52px;
	background: linear-gradient(145deg, #2b2b2e, #121213 38%, #0b0b0c);
	box-shadow:
		inset 0 0 0 1.5px #3a3a3d,
		inset 0 0 0 3px #0b0b0c,
		0 1px 2px rgba(17, 17, 17, 0.2),
		0 18px 40px -16px rgba(17, 17, 17, 0.45),
		0 60px 90px -40px rgba(17, 17, 17, 0.55);
}

/* Botones laterales */
.phone::before,
.phone::after {
	content: '';
	position: absolute;
	width: 3px;
	border-radius: 2px;
	background: #1e1e20;
}

.phone::before {
	left: -3px;
	top: 120px;
	height: 56px;
	box-shadow: 0 72px 0 #1e1e20;
}

.phone::after {
	right: -3px;
	top: 160px;
	height: 84px;
}

.screen {
	position: relative;
	height: 100%;
	overflow: hidden;
	border-radius: 42px;
	background: #f4f4f0;
	color: var(--text);
	font-size: 13px;
	line-height: 1.35;
	letter-spacing: -0.01em;
	isolation: isolate;
}

.island {
	position: absolute;
	top: 10px;
	left: 50%;
	z-index: 20;
	width: 84px;
	height: 26px;
	border-radius: 20px;
	background: #000;
	transform: translateX(-50%);
}

.status {
	position: absolute;
	inset: 0 0 auto;
	z-index: 15;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 47px;
	padding: 4px 22px 0 30px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.status .icons {
	display: flex;
	align-items: center;
	gap: 4px;
}

.home-bar {
	position: absolute;
	bottom: 7px;
	left: 50%;
	z-index: 20;
	width: 112px;
	height: 4.5px;
	border-radius: 3px;
	background: #111;
	transform: translateX(-50%);
}

/* Cada pantalla ocupa todo el teléfono; solo una se ve a la vez */
.scr {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: 54px 16px 0;
	background: #f4f4f0;
}

.phone[data-stack] .scr {
	opacity: 0;
	transform: translateY(14px) scale(0.985);
	transition:
		opacity 380ms var(--ease),
		transform 560ms var(--glide);
	pointer-events: none;
}

.phone[data-stack] .scr.on {
	opacity: 1;
	transform: none;
}

/* Piezas de la interfaz dentro del teléfono */
.app-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 6px 2px 12px;
}

.app-head small {
	display: block;
	font-size: 11.5px;
	color: var(--text-3);
	font-weight: 500;
}

.app-head h4 {
	margin: 0;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.05;
}

.app-head .pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
	font-size: 11px;
	font-weight: 600;
}

.card {
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.05), 0 8px 18px -14px rgba(17, 17, 17, 0.3);
}

.card-ink {
	border-radius: 18px;
	background: var(--ink);
	color: var(--on-ink);
}

.mini-label {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--text-3);
	text-transform: uppercase;
}

/* Hoy */
.today-sum {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
}

.ring {
	position: relative;
	width: 64px;
	height: 64px;
}

.ring svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.ring .track {
	stroke: rgba(245, 245, 242, 0.14);
}

.ring .bar {
	stroke: var(--volt);
	stroke-linecap: round;
	transition: stroke-dashoffset 900ms var(--ease);
}

.ring .num {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.today-sum b {
	display: block;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.today-sum span {
	font-size: 11.5px;
	color: var(--on-ink-2);
}

.now {
	margin-top: 10px;
	padding: 12px 12px 12px 14px;
	position: relative;
	overflow: hidden;
}

.now::before {
	content: '';
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--lang);
}

.now-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.now-title {
	margin: 3px 0 8px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.025em;
}

.mini-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--on-ink);
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}

.mini-btn.light {
	background: var(--surface-2);
	color: var(--text);
}

.blocks {
	margin-top: 12px;
	display: grid;
	gap: 2px;
}

.blk {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 6px 7px 4px;
	border-radius: 10px;
	transition: background-color 300ms var(--ease);
}

.blk time {
	width: 34px;
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	color: var(--text-3);
}

.blk .t {
	flex: 1;
	font-size: 12.5px;
	font-weight: 500;
	transition: color 300ms var(--ease);
}

.blk .t small {
	display: block;
	font-size: 10.5px;
	font-weight: 400;
	color: var(--text-3);
}

.check {
	position: relative;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1.5px rgba(17, 17, 17, 0.22);
	transition: background-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.check svg {
	position: absolute;
	inset: 0;
	margin: auto;
	opacity: 0;
	transform: scale(0.4);
	transition: opacity 200ms var(--ease), transform 360ms var(--glide);
}

.blk.done .check {
	background: var(--ink);
	box-shadow: none;
}

.blk.done .check svg {
	opacity: 1;
	transform: none;
	color: var(--volt);
}

.blk.done .t {
	color: var(--text-3);
}

.blk.is-now {
	background: rgba(168, 98, 26, 0.08);
}

.tabbar {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 18px;
	z-index: 6;
	display: flex;
	justify-content: space-around;
	align-items: center;
	height: 54px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(17, 17, 17, 0.4);
}

.tabbar span {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: var(--text-3);
}

.tabbar span.on {
	background: var(--ink);
	color: var(--on-ink);
}

/* Burbuja del coach que aparece en el hero */
.coach-pop {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 84px;
	z-index: 7;
	display: flex;
	gap: 10px;
	padding: 11px 12px;
	border-radius: 16px;
	background: var(--ink);
	color: var(--on-ink);
	font-size: 11.5px;
	line-height: 1.4;
	box-shadow: 0 16px 30px -14px rgba(17, 17, 17, 0.7);
	opacity: 0;
	transform: translateY(12px) scale(0.97);
	transition: opacity 360ms var(--ease), transform 560ms var(--glide);
}

.coach-pop.show {
	opacity: 1;
	transform: none;
}

.coach-pop .who {
	display: block;
	font-size: 10px;
	font-weight: 600;
	color: var(--volt);
	margin-bottom: 2px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.spark {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--volt);
	color: var(--ink);
	flex-shrink: 0;
}

/* Coach (chat) */
.chat {
	display: grid;
	gap: 10px;
	align-content: start;
}

.bubble {
	max-width: 88%;
	padding: 10px 12px;
	border-radius: 16px;
	font-size: 12px;
	line-height: 1.42;
}

.bubble.me {
	justify-self: end;
	background: var(--ink);
	color: var(--on-ink);
	border-bottom-right-radius: 6px;
}

.bubble.coach {
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
	border-bottom-left-radius: 6px;
}

.plan {
	padding: 12px;
	display: grid;
	gap: 10px;
}

.plan-top b {
	display: block;
	font-size: 13.5px;
	letter-spacing: -0.02em;
}

.plan-top small {
	font-size: 10.5px;
	color: var(--text-3);
}

.phases {
	display: grid;
	gap: 6px;
}

.phase {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
}

.phase i {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--surface-2);
	font-style: normal;
	font-size: 10px;
	font-weight: 600;
}

.phase:first-child i {
	background: var(--volt);
}

.phase span {
	flex: 1;
	font-weight: 500;
}

.phase em {
	font-style: normal;
	color: var(--text-3);
	font-size: 10.5px;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 22px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--surface-2);
	font-size: 10.5px;
	font-weight: 500;
}

.tag::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--c, var(--lang));
}

.plan-actions {
	display: flex;
	gap: 6px;
}

.plan-actions .mini-btn {
	flex: 1;
	justify-content: center;
	height: 32px;
}

.composer {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 22px;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 6px 0 14px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--line), 0 10px 20px -14px rgba(17, 17, 17, 0.35);
	color: var(--text-3);
	font-size: 12px;
}

.composer span {
	flex: 1;
}

.composer i {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--on-ink);
}

/* Hábito tipo alarma */
.sheet-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 4px 2px 14px;
	font-size: 12.5px;
	color: var(--text-3);
}

.sheet-head b {
	color: var(--text);
	font-size: 14px;
}

.sheet-head strong {
	color: var(--text);
	font-weight: 600;
}

.field {
	padding: 12px 14px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.field small {
	display: block;
	font-size: 10.5px;
	color: var(--text-3);
	font-weight: 500;
	letter-spacing: 0;
}

.seg {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 12px 0 10px;
	padding: 3px;
	border-radius: 999px;
	background: var(--surface-3);
	font-size: 11px;
	font-weight: 600;
}

.seg::before {
	content: '';
	position: absolute;
	top: 3px;
	bottom: 3px;
	left: 3px;
	width: calc(50% - 3px);
	border-radius: 999px;
	background: var(--ink);
}

.seg span {
	position: relative;
	padding: 6px 0;
	text-align: center;
	color: var(--text-2);
}

.seg span:first-child {
	color: var(--on-ink);
}

.days {
	display: flex;
	justify-content: space-between;
	margin-bottom: 14px;
}

.days span {
	display: grid;
	place-items: center;
	width: 33px;
	height: 33px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
	font-size: 12px;
	font-weight: 600;
	color: var(--text-3);
}

.days span.on {
	background: var(--ink);
	color: var(--on-ink);
	box-shadow: none;
}

.alarm {
	text-align: center;
	padding: 10px 0 4px;
}

.alarm b {
	display: block;
	font-size: 58px;
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.alarm small {
	font-size: 11.5px;
	color: var(--text-3);
}

.notif {
	margin-top: 16px;
	padding: 10px 12px;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 0 0 1px var(--line), 0 12px 24px -16px rgba(17, 17, 17, 0.5);
	font-size: 11.5px;
	line-height: 1.35;
}

.notif .app-ico {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--ink);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.notif b {
	font-size: 12px;
}

.notif small {
	color: var(--text-3);
	font-size: 10px;
	float: right;
}

.notif-actions {
	display: flex;
	gap: 5px;
	margin-top: 8px;
}

.notif-actions span {
	flex: 1;
	padding: 5px 0;
	border-radius: 8px;
	background: var(--surface-2);
	text-align: center;
	font-size: 10.5px;
	font-weight: 600;
}

.rows {
	margin-top: 10px;
	padding: 2px 14px;
	font-size: 12px;
}

.rows div {
	display: flex;
	justify-content: space-between;
	padding: 9px 0;
}

.rows div + div {
	border-top: 1px solid var(--line);
}

.rows span {
	color: var(--text-3);
}

/* Foco */
.focus-ring {
	position: relative;
	width: 196px;
	height: 196px;
	margin: 10px auto 14px;
}

.focus-ring svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.focus-ring .track {
	stroke: var(--surface-3);
}

.focus-ring .bar {
	stroke: var(--ink);
	stroke-linecap: round;
}

.focus-ring .center {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	text-align: center;
}

.focus-ring b {
	font-family: var(--font-mono);
	font-size: 40px;
	font-weight: 500;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

.focus-ring small {
	font-size: 11px;
	color: var(--text-3);
}

.focus-task {
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 8px 0 14px;
}

.dots i {
	width: 22px;
	height: 6px;
	border-radius: 3px;
	background: var(--surface-3);
}

.dots i.on {
	background: var(--ink);
}

.dots i.half {
	background: linear-gradient(90deg, var(--ink) 40%, var(--surface-3) 40%);
}

.level {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 11px 12px;
	font-size: 11.5px;
	line-height: 1.4;
}

.level .lv {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--volt);
	font-weight: 700;
	font-size: 12px;
	flex-shrink: 0;
}

/* Tarjetas de repaso */
.deck-progress {
	height: 5px;
	border-radius: 3px;
	background: var(--surface-3);
	overflow: hidden;
	margin-bottom: 12px;
}

.deck-progress i {
	display: block;
	width: 42%;
	height: 100%;
	background: var(--ink);
	border-radius: 3px;
}

.flash {
	padding: 18px 16px;
	min-height: 196px;
	display: grid;
	align-content: space-between;
	gap: 14px;
}

.flash q {
	quotes: none;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.25;
}

.flash hr {
	border: 0;
	border-top: 1px dashed var(--line-2);
	margin: 0;
}

.flash .ans {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 22px;
	line-height: 1.15;
}

.grade {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	margin-top: 12px;
}

.grade span {
	display: grid;
	gap: 1px;
	padding: 8px 0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
	text-align: center;
	font-size: 11.5px;
	font-weight: 600;
}

.grade span small {
	font-size: 9.5px;
	color: var(--text-3);
	font-weight: 500;
}

.grade span.pick {
	background: var(--ink);
	color: var(--on-ink);
	box-shadow: none;
}

.grade span.pick small {
	color: var(--on-ink-2);
}

.boxes {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	height: 58px;
	margin-top: 14px;
	padding: 0 2px;
}

.boxes div {
	flex: 1;
	display: grid;
	gap: 3px;
	text-align: center;
	font-size: 9.5px;
	color: var(--text-3);
}

.boxes i {
	display: block;
	border-radius: 5px;
	background: var(--ink);
	opacity: var(--o, 1);
}

/* Revisión */
.big-pct {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 2px 2px 10px;
}

.big-pct b {
	font-size: 56px;
	font-weight: 500;
	letter-spacing: -0.06em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.delta {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--volt);
	font-size: 11px;
	font-weight: 600;
}

.bars {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	height: 108px;
	padding: 12px 12px 0;
}

.bars div {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	gap: 5px;
	height: 100%;
	font-size: 10px;
	color: var(--text-3);
}

.bars i {
	width: 100%;
	height: calc(var(--h) * 0.8);
	border-radius: 6px;
	background: var(--ink);
	transform-origin: bottom;
}

/* En el iPhone fijo, las barras crecen al llegar a la pantalla */
.phone[data-stack] .scr .bars i {
	transform: scaleY(0.12);
	transition: transform 700ms var(--glide);
	transition-delay: calc(var(--i) * 45ms + 120ms);
}

.phone[data-stack] .scr.on .bars i {
	transform: none;
}

.bars i.low {
	background: var(--surface-3);
}

.trend {
	padding: 10px 12px 12px;
}

.trend-head {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	font-weight: 600;
}

.trend-head span {
	color: var(--text-3);
	font-weight: 500;
}

.trend svg {
	width: 100%;
	height: 48px;
	margin-top: 6px;
}

.coach-note {
	margin-top: 10px;
	display: flex;
	gap: 9px;
	padding: 11px 12px;
	font-size: 11.5px;
	line-height: 1.4;
}

/* ─── Ventana de escritorio ────────────────────────────── */

.desk {
	position: relative;
	z-index: 1;
	border-radius: 16px;
	background: var(--surface);
	box-shadow: var(--shadow-pop), 0 0 0 1px var(--line);
	overflow: hidden;
	font-size: 11px;
}

.desk-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 12px;
	background: var(--surface-2);
	border-bottom: 1px solid var(--line);
}

.desk-bar i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--surface-3);
}

.desk-bar span {
	flex: 1;
	text-align: center;
	margin-right: 42px;
	font-size: 11.5px;
	font-weight: 500;
	color: var(--text-3);
}

.desk-body {
	display: grid;
	grid-template-columns: 46px 1fr;
}

.desk-side {
	display: grid;
	align-content: start;
	justify-items: center;
	gap: 10px;
	padding: 12px 0;
	border-right: 1px solid var(--line);
}

.desk-side span {
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: var(--surface-3);
}

.desk-side span.on {
	background: var(--ink);
}

.desk-main {
	padding: 14px 16px 16px;
}

.desk-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 10px;
}

.desk-head b {
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.desk-head span {
	color: var(--text-3);
}

.week {
	display: grid;
	grid-template-columns: 30px repeat(7, 1fr);
	gap: 4px;
}

.week .hours {
	position: relative;
	height: var(--wh);
	font-size: 9.5px;
	color: var(--text-3);
	font-variant-numeric: tabular-nums;
}

.week .hours span {
	position: absolute;
	right: 4px;
	transform: translateY(-50%);
}

.week .dh {
	text-align: center;
	font-size: 10px;
	color: var(--text-3);
	padding-bottom: 4px;
}

.week .dh b {
	display: block;
	font-size: 13px;
	color: var(--text);
	font-weight: 600;
}

.week .dh.today b {
	display: grid;
	place-items: center;
	margin: -2px auto 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--on-ink);
}

.week .col {
	position: relative;
	height: var(--wh);
	border-radius: 8px;
	background: repeating-linear-gradient(
		to bottom,
		transparent 0,
		transparent calc(var(--ph) - 1px),
		var(--line) calc(var(--ph) - 1px),
		var(--line) var(--ph)
	);
}

.week .col.today {
	background-color: rgba(215, 255, 63, 0.16);
}

.wb {
	position: absolute;
	left: 1px;
	right: 1px;
	top: calc(var(--s) * var(--ph));
	height: calc(var(--l) * var(--ph) - 2px);
	min-height: 9px;
	padding: 2px 4px;
	border-radius: 5px;
	background: color-mix(in srgb, var(--c) 14%, white);
	border-left: 2px solid var(--c);
	overflow: hidden;
	font-size: 8.5px;
	font-weight: 600;
	line-height: 1.15;
	color: color-mix(in srgb, var(--c) 70%, black);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.wb.anchor {
	--c: #8a8a8f;
	background: repeating-linear-gradient(-45deg, #ececea 0 4px, #e3e3e0 4px 8px);
	color: var(--text-2);
}

.wb.done::after {
	content: '';
	position: absolute;
	right: 3px;
	top: 3px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--c);
}

.wb.missed {
	opacity: 0.45;
}

/* ─── Prueba / ciencia ─────────────────────────────────── */

.proof {
	padding-block: 8px 0;
}

.proof-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 32px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--line-2);
}

.proof-head p {
	font-size: 15px;
	color: var(--text-2);
	font-weight: 500;
}

.platforms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: 14px;
	color: var(--text-3);
	font-weight: 500;
}

.platforms span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.science {
	display: grid;
	gap: 0;
}

.sci {
	display: grid;
	gap: 10px;
	padding: 26px 0;
	border-bottom: 1px solid var(--line);
}

.sci b {
	font-size: 22px;
	letter-spacing: -0.03em;
	line-height: 1.15;
	font-weight: 600;
}

.sci p {
	font-size: 15.5px;
	color: var(--text-2);
}

.sci .so {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 14.5px;
	color: var(--text);
	font-weight: 500;
}

.sci .so svg {
	margin-top: 3px;
}

.sci cite {
	font-style: normal;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-3);
}

@media (min-width: 860px) {
	.science {
		grid-template-columns: repeat(3, 1fr);
	}

	.sci {
		padding: 30px 32px 4px 0;
		border-bottom: 0;
		align-content: start;
	}

	.sci + .sci {
		padding-left: 32px;
		border-left: 1px solid var(--line);
	}
}

/* ─── Problema ─────────────────────────────────────────── */

.problems {
	display: grid;
	gap: 14px;
	margin-top: 56px;
}

.prob {
	position: relative;
	display: grid;
	gap: 12px;
	align-content: start;
	padding: 28px;
	border-radius: var(--r-lg);
	background: var(--surface);
	box-shadow: var(--shadow-card);
}

.prob .ico {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: var(--bg);
	margin-bottom: 10px;
}

.prob h3 {
	font-size: 22px;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.prob p {
	font-size: 15.5px;
	color: var(--text-2);
}

.prob q {
	quotes: none;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 20px;
	line-height: 1.25;
	color: var(--text);
}

.turn {
	margin-top: 48px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 18px;
	text-align: center;
	font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
	letter-spacing: -0.025em;
	font-weight: 500;
	color: var(--text-2);
}

.turn strong {
	color: var(--text);
	font-weight: 600;
}

@media (min-width: 860px) {
	.problems {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ─── El bucle (cómo funciona) ─────────────────────────── */

.loop {
	position: relative;
	margin-top: 64px;
	display: grid;
	gap: 14px;
}

.loop-line {
	display: none;
}

.step {
	position: relative;
	display: grid;
	gap: 10px;
	align-content: start;
	padding: 26px 24px 28px;
	border-radius: var(--r-lg);
	background: var(--surface);
	box-shadow: var(--shadow-card);
}

.step .n {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--text-3);
	margin-bottom: 8px;
}

.step .n i {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--on-ink);
}

.step:last-of-type .n i {
	background: var(--volt);
	color: var(--ink);
}

.step h3 {
	font-size: 21px;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.step p {
	font-size: 15.5px;
	color: var(--text-2);
}

.step q {
	quotes: none;
	display: block;
	margin-top: 4px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--bg);
	font-size: 14px;
	color: var(--text);
}

@media (min-width: 960px) {
	.loop {
		grid-template-columns: repeat(4, 1fr);
		align-items: start;
		padding-top: 0;
	}

	/* Los pasos suben como una pendiente */
	.step:nth-of-type(1) {
		margin-top: 144px;
	}

	.step:nth-of-type(2) {
		margin-top: 96px;
	}

	.step:nth-of-type(3) {
		margin-top: 48px;
	}

	.loop-line {
		display: block;
		position: absolute;
		inset: -30px 0 auto;
		width: 100%;
		height: 200px;
		z-index: -1;
		color: rgba(17, 17, 17, 0.18);
	}
}

/* ─── Funciones con el iPhone fijo ─────────────────────── */

.features {
	background: var(--surface-2);
	border-block: 1px solid var(--line);
}

.feat-grid {
	position: relative;
	margin-top: 40px;
	display: grid;
}

.feat {
	display: grid;
	gap: 28px;
	justify-items: center;
	padding: 44px 0;
	border-bottom: 1px solid var(--line);
}

.feat:last-child {
	border-bottom: 0;
}

.feat-copy {
	display: grid;
	gap: 16px;
	max-width: 32rem;
	justify-self: stretch;
}

.feat-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--text-3);
}

.feat-label i {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--surface);
	box-shadow: var(--shadow-card);
	color: var(--text);
	font-style: normal;
}

.feat-copy p {
	color: var(--text-2);
}

.feat-copy ul {
	display: grid;
	gap: 8px;
	margin-top: 4px;
}

.feat-copy li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 15.5px;
	font-weight: 500;
}

.feat-copy li svg {
	margin-top: 4px;
}

.tick {
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--volt);
	flex-shrink: 0;
}

.tick svg {
	margin: 0 !important;
}

.sticky-col {
	display: none;
}

@media (min-width: 960px) {
	.feat-grid {
		grid-template-columns: minmax(0, 1fr) 380px;
		gap: 64px;
	}

	.feat {
		min-height: 78vh;
		align-content: center;
		justify-items: start;
		padding: 0;
		border-bottom: 0;
		opacity: 0.32;
		transition: opacity 400ms var(--ease);
	}

	.feat.active {
		opacity: 1;
	}

	/* En escritorio un solo teléfono fijo cambia de pantalla; los de cada paso se ocultan */
	.js .feat > .phone {
		display: none;
	}

	.js .sticky-col {
		display: block;
		grid-column: 2;
		grid-row: 1 / span 6;
	}

	.sticky-phone {
		position: sticky;
		top: calc(50vh - 310px + var(--nav-h) / 2);
		display: grid;
		justify-items: center;
		gap: 18px;
	}

	.screen-caption {
		font-family: var(--font-mono);
		font-size: 12px;
		color: var(--text-3);
	}
}

@media (min-width: 960px) and (max-height: 780px) {
	.sticky-phone {
		top: 84px;
		zoom: 0.84;
	}
}

/* ─── En todas partes ──────────────────────────────────── */

.everywhere {
	overflow: clip;
}

.ew-grid {
	display: grid;
	gap: 48px;
	align-items: center;
	margin-top: 56px;
}

.ew-stage {
	position: relative;
	display: grid;
	justify-items: center;
}

.ew-stage .desk {
	width: 100%;
	max-width: 620px;
	justify-self: start;
}

.ew-stage .phone {
	display: none;
}

.tray-toast {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 3;
	display: flex;
	gap: 10px;
	width: min(270px, calc(100% - 24px));
	padding: 12px;
	border-radius: 12px;
	background: #1c1c1e;
	color: var(--on-ink);
	font-size: 12px;
	line-height: 1.35;
	box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.7);
}

.tray-toast b {
	display: block;
	font-size: 12.5px;
}

.tray-toast small {
	color: var(--on-ink-2);
	font-size: 11px;
}

.ew-points {
	display: grid;
	gap: 26px;
}

.ew-points li {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 4px 16px;
}

.ew-points .ico {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: var(--surface);
	box-shadow: var(--shadow-card);
}

.ew-points b {
	font-size: 18px;
	letter-spacing: -0.025em;
}

.ew-points p {
	font-size: 15.5px;
	color: var(--text-2);
}

@media (min-width: 1000px) {
	.ew-grid {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		gap: 72px;
	}

	.ew-stage {
		padding: 0 0 70px;
	}

	.ew-stage .phone {
		display: block;
		position: absolute;
		top: 70px;
		right: -24px;
		zoom: 0.72;
	}

	.tray-toast {
		right: auto;
		left: 28px;
		bottom: 34px;
	}
}

/* ─── Comparativa ──────────────────────────────────────── */

.compare-wrap {
	margin-top: 48px;
	overflow-x: auto;
	border-radius: var(--r-lg);
	background: var(--surface);
	box-shadow: var(--shadow-card);
	-webkit-overflow-scrolling: touch;
}

.compare {
	width: 100%;
	min-width: 680px;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 15px;
}

.compare th,
.compare td {
	padding: 16px 18px;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid var(--line);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
	border-bottom: 0;
}

.compare thead th {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-3);
	padding-top: 22px;
	padding-bottom: 14px;
}

.compare tbody th {
	font-weight: 500;
	color: var(--text);
	width: 34%;
}

.compare td {
	color: var(--text-2);
	font-size: 14px;
	width: 22%;
}

.compare .us {
	background: var(--ink);
	color: var(--on-ink);
	border-bottom-color: var(--on-ink-line);
	font-weight: 500;
}

.compare thead .us {
	border-radius: 18px 18px 0 0;
	color: var(--on-ink);
	font-size: 14px;
}

.compare tbody tr:last-child .us {
	border-radius: 0 0 18px 18px;
}

.compare .us-name {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cell {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.yes {
	color: var(--volt);
}

.no {
	color: var(--text-3);
}

.compare-note {
	margin-top: 14px;
	font-size: 13px;
	color: var(--text-3);
}

/* ─── Precios ──────────────────────────────────────────── */

.pricing {
	background: var(--surface-2);
	border-block: 1px solid var(--line);
}

/* Selector mensual/anual con la píldora deslizante de la app */
.billing {
	position: relative;
	display: inline-grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	padding: 4px;
	border-radius: 999px;
	background: var(--surface-3);
	margin-top: 8px;
}

.billing .indicator {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 0;
	border-radius: 999px;
	background: var(--ink);
	box-shadow: 0 6px 14px -8px rgba(17, 17, 17, 0.7);
	transition:
		transform var(--glide),
		width var(--glide);
}

.billing button {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	padding: 0 20px;
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--text-2);
	transition: color 300ms var(--ease);
}

.billing button[aria-pressed='true'] {
	color: var(--on-ink);
}

.billing .save {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--volt);
	color: var(--ink);
	font-size: 11.5px;
	font-weight: 700;
}

.plans {
	display: grid;
	gap: 16px;
	margin-top: 40px;
	max-width: 900px;
	margin-inline: auto;
}

.plan-card {
	display: grid;
	gap: 22px;
	align-content: start;
	padding: 32px 28px;
	border-radius: var(--r-xl);
	background: var(--surface);
	box-shadow: var(--shadow-card);
}

.plan-card.pro {
	background: var(--ink);
	color: var(--on-ink);
	box-shadow: 0 40px 80px -40px rgba(17, 17, 17, 0.7);
}

.plan-name {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.badge {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--volt);
	color: var(--ink);
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

.price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.price b {
	font-size: 56px;
	font-weight: 500;
	letter-spacing: -0.055em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.price span {
	font-size: 15px;
	color: var(--text-3);
}

.pro .price span {
	color: var(--on-ink-2);
}

.price-sub {
	margin-top: -12px;
	font-size: 14px;
	color: var(--text-3);
	min-height: 1.5em;
}

.pro .price-sub {
	color: var(--on-ink-2);
}

.plan-card ul {
	display: grid;
	gap: 11px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}

.plan-card.pro ul {
	border-top-color: var(--on-ink-line);
}

.plan-card li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 15px;
}

.plan-card .tick {
	background: var(--surface-3);
	color: var(--ink);
}

.plan-card.pro .tick {
	background: var(--volt);
	color: var(--ink);
}

.plan-card .btn {
	width: 100%;
}

.plan-card.pro .btn {
	background: var(--volt);
	color: var(--ink);
}

.plan-card.pro .btn:hover {
	background: #e2ff70;
}

.promises {
	display: grid;
	gap: 10px;
	max-width: 900px;
	margin: 22px auto 0;
}

.promises li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-radius: var(--r-md);
	background: var(--surface);
	box-shadow: 0 0 0 1px var(--line);
	font-size: 14.5px;
	font-weight: 500;
}

@media (min-width: 760px) {
	.plans {
		grid-template-columns: 1fr 1fr;
	}

	.promises {
		grid-template-columns: repeat(4, 1fr);
	}

	.promises li {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
}

/* ─── FAQ ──────────────────────────────────────────────── */

.faq-grid {
	display: grid;
	gap: 40px;
}

.faq-side {
	display: grid;
	gap: 18px;
	align-content: start;
}

.faq-list {
	display: grid;
	gap: 10px;
}

.faq-list details {
	border-radius: var(--r-md);
	background: var(--surface);
	box-shadow: 0 0 0 1px var(--line);
	transition: box-shadow 200ms var(--ease);
}

.faq-list details[open] {
	box-shadow: var(--shadow-card);
}

.faq-list summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px;
	cursor: pointer;
	list-style: none;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.faq-list summary::-webkit-details-marker {
	display: none;
}

.faq-list summary .pm {
	position: relative;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--bg);
	flex-shrink: 0;
	transition: transform 360ms var(--glide), background-color 200ms var(--ease);
}

.faq-list details[open] .pm {
	transform: rotate(45deg);
	background: var(--volt);
}

.faq-list details::details-content {
	height: 0;
	overflow: clip;
	transition:
		height 360ms var(--glide),
		content-visibility 360ms allow-discrete;
}

.faq-list details[open]::details-content {
	height: auto;
}

.faq-list .a {
	padding: 0 22px 22px;
	color: var(--text-2);
	font-size: 16px;
	max-width: 44rem;
}

@media (min-width: 960px) {
	.faq-grid {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
		gap: 64px;
	}

	.faq-side {
		position: sticky;
		top: calc(var(--nav-h) + 48px);
	}
}

/* ─── Cierre ───────────────────────────────────────────── */

.final {
	padding-block: 24px clamp(64px, 8vw, 104px);
}

.final-card {
	position: relative;
	overflow: hidden;
	display: grid;
	gap: 26px;
	justify-items: center;
	text-align: center;
	padding: clamp(56px, 8vw, 104px) 20px;
	border-radius: clamp(28px, 4vw, 44px);
	background: var(--ink);
	color: var(--on-ink);
}

.final-card .lead {
	color: var(--on-ink-2);
}

.final-card .signup-row {
	background: #1f1f21;
	box-shadow: 0 0 0 1px var(--on-ink-line);
}

.final-card .signup-row:focus-within {
	box-shadow: 0 0 0 2px var(--volt);
}

.final-card .signup input::placeholder {
	color: var(--on-ink-3);
}

.final-card .signup-note {
	color: var(--on-ink-3);
	justify-content: center;
	padding-left: 0;
}

.final-card .signup-note svg {
	color: var(--on-ink-2);
}

.final-card .signup-status {
	padding-left: 0;
}

.final-card .signup-status[data-tone='ok'] {
	color: var(--volt);
}

.final-card .signup-status[data-tone='error'] {
	color: #f08a9a;
}

.final-slope {
	position: absolute;
	inset: auto -2% -6% -2%;
	width: 104%;
	height: auto;
	color: rgba(215, 255, 63, 0.16);
	pointer-events: none;
}

.final-card > *:not(.final-slope) {
	position: relative;
}

/* ─── Pie ──────────────────────────────────────────────── */

.footer {
	padding-block: 40px 48px;
	border-top: 1px solid var(--line-2);
	font-size: 14px;
	color: var(--text-3);
}

.footer-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
}

.footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
}

.footer nav a:hover {
	color: var(--text);
}

.footer .tagline {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--text-2);
}

.footer .tagline em {
	font-family: var(--font-serif);
	font-size: 18px;
}

/* ─── Aparición al hacer scroll ────────────────────────── */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 700ms var(--ease),
		transform 900ms var(--glide);
	transition-delay: var(--d, 0ms);
}

.js [data-reveal].in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 1ms !important;
		animation-duration: 1ms !important;
		transition-delay: 0ms !important;
	}

	.js [data-reveal] {
		opacity: 1;
		transform: none;
	}
}
