/*
 * DiviTorque — Landing page sections.
 * Built from semantic tokens + global components. Source: 04-LANDING-PAGE.md,
 * rendered in style-tile.html. One composition per first viewport; no two
 * adjacent sections share a background.
 */

/* ─── 1 · Hero ────────────────────────────────────────────────────── */
.dt-hero { padding: clamp(72px, 11vw, 128px) 0 clamp(40px, 6vw, 64px); text-align: center; }
.dt-hero .dt-eyebrow { margin-bottom: 18px; }
.dt-hero .dt-d5 { margin-bottom: clamp(20px, 3vw, 28px); }
.dt-hero__title { font-size: var(--text-3xl); font-weight: var(--fw-semi); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; color: var(--color-text); max-width: 18ch; margin-inline: auto; }
.dt-hero__sub { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--color-text-muted); max-width: 56ch; margin: clamp(16px, 2vw, 22px) auto 0; text-wrap: balance; }
.dt-hero__cta { display: flex; gap: var(--space-2); justify-content: center; align-items: center; margin: 36px 0 0; flex-wrap: wrap; }
.dt-hero__reassure { margin: 16px 0 0; font-size: var(--text-sm); color: var(--color-text-faint); }

/* Trust row: review faces + rating */
/* review component sits at the TOP of the hero now */
.dt-hero__trust { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 0 0 clamp(22px, 3vw, 32px); }
.dt-faces { display: flex; }
.dt-faces__face { width: 36px; height: 36px; border-radius: var(--radius-pill); border: 2px solid var(--color-bg); margin-left: -10px; object-fit: cover; box-shadow: var(--shadow-sm); }
.dt-faces__face:first-child { margin-left: 0; }
.dt-faces__face--ph { background: radial-gradient(70% 70% at 30% 25%, var(--mesh-sky), transparent 60%), radial-gradient(70% 70% at 75% 80%, var(--mesh-peri), transparent 60%), var(--gray-200); }
.dt-faces__face--ph[data-i="1"] { background: radial-gradient(70% 70% at 30% 25%, var(--mesh-peach), transparent 60%), radial-gradient(70% 70% at 75% 80%, var(--mesh-coral), transparent 60%), var(--gray-200); }
.dt-faces__face--ph[data-i="2"] { background: radial-gradient(70% 70% at 30% 25%, var(--mesh-mint), transparent 60%), radial-gradient(70% 70% at 75% 80%, var(--mesh-grass), transparent 60%), var(--gray-200); }
.dt-faces__face--ph[data-i="3"] { background: radial-gradient(70% 70% at 30% 25%, var(--mesh-amber), transparent 60%), radial-gradient(70% 70% at 75% 80%, var(--mesh-violet), transparent 60%), var(--gray-200); }
.dt-faces__face--ph[data-i="4"] { background: radial-gradient(70% 70% at 30% 25%, var(--mesh-aqua), transparent 60%), radial-gradient(70% 70% at 75% 80%, var(--mesh-indigo), transparent 60%), var(--gray-200); }
.dt-hero__proof { font-size: var(--text-sm); color: var(--color-text-faint); }
.dt-hero__proof b { color: var(--color-text); font-weight: var(--fw-med); font-variant-numeric: tabular-nums; }
.dt-stars { letter-spacing: 1px; }

.dt-hero__shot { display: block; width: 100%; height: auto; margin: 0 auto; max-width: 1080px; border-radius: var(--radius-xl); border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); }
.dt-plane {
	margin: 48px auto 0; max-width: 980px; border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 64px);
	background:
		radial-gradient(60% 70% at 14% 14%,  var(--mesh-peach), transparent 62%),
		radial-gradient(58% 68% at 86% 20%,  var(--mesh-sky), transparent 60%),
		radial-gradient(70% 80% at 28% 100%, var(--mesh-mint), transparent 64%),
		radial-gradient(70% 80% at 84% 92%,  var(--mesh-peri), transparent 64%),
		radial-gradient(50% 52% at 50% 46%,  var(--mesh-pink), transparent 72%),
		linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0) 44%),
		var(--gray-0);
}
.dt-panel { background: var(--gray-0); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.dt-panel__bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--color-border); }
.dt-panel__bar i { width: 10px; height: 10px; border-radius: 999px; background: var(--color-border); }
.dt-panel__url { margin-left: 10px; font-size: 12px; color: var(--color-text-faint); }
.dt-panel__body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; }
.dt-panel__body div { height: 78px; border-radius: 9px; background: var(--color-surface); }
.dt-panel__body div:nth-child(2) { background: linear-gradient(135deg, var(--mesh-coral), var(--mesh-pink)); }
.dt-panel__body div:nth-child(5) { background: linear-gradient(135deg, var(--mesh-sky), var(--mesh-indigo)); }

/* ─── Launch-discount popup (bottom-left) + floating launcher ─────── */
.dt-toast {
	position: fixed; left: 22px; bottom: 22px; z-index: 60;
	width: 360px; max-width: calc(100vw - 36px); padding: 22px 22px 20px;
	background: var(--color-bg); border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	box-shadow: 0 1px 2px rgba(16,16,24,.04), 0 18px 50px -12px rgba(16,16,24,.28);
	animation: dt-toast-in .5s var(--ease) both;
	transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.dt-toast--leaving { opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none; }
/* the `hidden` attribute must win over the display rules below (same specificity,
   theme CSS loads after the UA sheet) — otherwise the popup/launcher show always. */
.dt-toast[hidden], .dt-toast-fab[hidden] { display: none !important; }

.dt-toast__head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.dt-toast__badge { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-pill); font-size: 18px;
	background: radial-gradient(80% 80% at 30% 25%, var(--mesh-peach), transparent 60%), radial-gradient(80% 80% at 80% 80%, var(--mesh-pink), transparent 60%), var(--color-surface); }
.dt-toast__eyebrow { font-size: var(--text-label); font-weight: var(--fw-semi); letter-spacing: .05em; text-transform: uppercase; color: var(--color-text-muted); }
.dt-toast__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: var(--fw-semi); letter-spacing: -.015em; line-height: 1.2; margin: 0 0 8px; color: var(--color-text); }
.dt-toast__text { font-size: var(--text-sm); line-height: var(--lh-body); color: var(--color-text-muted); margin: 0 0 16px; }
.dt-toast__form { display: flex; flex-direction: column; gap: 10px; }
.dt-toast__form input[type="email"] { width: 100%; font: var(--fw-reg) 16px/1.4 var(--font-sans); padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-2); color: var(--color-text); transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.dt-toast__form input[type="email"]:focus-visible { outline: none; border-color: var(--color-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-text) 12%, transparent); }
.dt-toast__cta { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 13px 16px; border: 0; border-radius: var(--radius-pill); background: var(--color-text); color: var(--color-bg); font: var(--fw-semi) 15px/1 var(--font-sans); cursor: pointer; transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease); }
.dt-toast__cta:hover { transform: translateY(-1px); }
.dt-toast__cta[aria-busy="true"] { opacity: .75; }
.dt-toast__fine { font-size: 12px; color: var(--color-text-faint); margin: 2px 0 0; text-align: center; }
.dt-toast__turnstile { margin: 2px 0; }

/* success state */
.dt-toast__done { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); color: var(--color-text); margin: 2px 0 0; line-height: var(--lh-body); }
.dt-toast__check { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--mesh-grass, #34D08C) 22%, transparent); color: #1f9d63; animation: dt-toast-pop .42s var(--ease) both; }
.dt-toast--done .dt-toast__title, .dt-toast--done .dt-toast__text { display: none; }
/* A class's display: (above) beats the UA [hidden] rule at equal specificity,
   so the form + success message would show at once. Restore [hidden] here. */
.dt-toast__form[hidden], .dt-toast__done[hidden] { display: none !important; }
@keyframes dt-toast-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

/* close (minimize to launcher) */
.dt-toast__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; border: 0; background: none; color: var(--color-text-faint); cursor: pointer; width: 30px; height: 30px; border-radius: var(--radius-pill); transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease); }
.dt-toast__close:hover { background: var(--color-surface); color: var(--color-text); }
.dt-toast__close:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.dt-toast--pulse .dt-toast__cta { animation: dt-cta-pulse 1.5s var(--ease) 3; }
@keyframes dt-cta-pulse { 0%,100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--color-text) 10%, transparent); } }
@keyframes dt-toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* floating launcher (collapsed state) — animated gift icon + label */
.dt-toast-fab { position: fixed; left: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 9px;
	padding: 11px 18px 11px 13px; border: 0; border-radius: var(--radius-pill); cursor: pointer;
	background: var(--color-text); color: var(--color-bg); font: var(--fw-semi) var(--text-sm)/1 var(--font-sans);
	box-shadow: 0 1px 2px rgba(16,16,24,.06), 0 14px 34px -10px rgba(16,16,24,.45);
	animation: dt-fab-in .5s var(--ease) both; transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.dt-toast-fab:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(16,16,24,.06), 0 18px 40px -10px rgba(16,16,24,.55); }
.dt-toast-fab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.dt-toast-fab__icon { font-size: 18px; line-height: 1; display: inline-block; transform-origin: 70% 70%; animation: dt-gift 2.6s var(--ease) infinite .8s; }
@keyframes dt-fab-in { from { opacity: 0; transform: translateY(16px) scale(.85); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dt-gift { 0%,55%,100% { transform: rotate(0); } 64% { transform: rotate(-13deg); } 74% { transform: rotate(11deg); } 84% { transform: rotate(-6deg); } }

@media (max-width: 600px) {
	.dt-toast { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
	.dt-toast-fab { left: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.dt-toast, .dt-toast-fab, .dt-toast__check, .dt-toast-fab__icon, .dt-toast--pulse .dt-toast__cta { animation: none; }
	.dt-toast--leaving { transition: none; }
}

/* ─── 2 · Trust bar ───────────────────────────────────────────────── */
.dt-trust { background: var(--color-surface); margin-top: 56px; }
.dt-trust__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding: 26px var(--gutter); font-size: var(--text-sm); color: var(--color-text-muted); }
.dt-trust__sep { width: 1px; height: 16px; background: var(--color-border); align-self: center; }

/* ─── 3 · Feature showcases ───────────────────────────────────────── */
.dt-feat-intro { padding: var(--section-y) 0 clamp(8px, 2vw, 24px); text-align: center; }
.dt-feat-intro__title { font-size: var(--text-2xl); font-weight: var(--fw-semi); letter-spacing: -.02em; }
.dt-feat-intro__sub { font-size: var(--text-lg); color: var(--color-text-muted); margin: 12px auto 0; max-width: 54ch; text-wrap: balance; }
.dt-feat { padding: clamp(40px, 6vw, 72px) 0; }
.dt-feat--surface { background: var(--color-surface); }
.dt-feat__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.dt-feat__row--alt .dt-feat__copy { order: 2; }
.dt-feat__cat { font-size: var(--text-label); font-weight: var(--fw-med); letter-spacing: .04em; color: var(--color-text-faint); margin-bottom: 16px; }
.dt-feat__title { font-size: var(--text-2xl); font-weight: var(--fw-semi); line-height: var(--lh-heading); letter-spacing: -.015em; }
.dt-feat__lead { font-size: var(--text-lg); color: var(--color-text-muted); margin-top: 14px; max-width: 42ch; }
/* Feature visual = clean image frame (placeholder; swap for a real screenshot). */
.dt-feat__frame { width: 100%; max-width: 380px; aspect-ratio: 4 / 3; background: var(--gray-0); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; place-items: center; }
.dt-feat__shot { display: block; width: 100%; max-width: 600px; height: auto; margin: 0 auto; filter: drop-shadow(0 16px 34px rgba(22,22,30,.15)); }

/* ─── 4 · More features grid ──────────────────────────────────────── */
.dt-mods { background: var(--color-surface); padding: var(--section-y) 0; text-align: center; }
.dt-mods__title { font-size: var(--text-2xl); font-weight: var(--fw-semi); }
.dt-mods__sub { font-size: var(--text-lg); color: var(--color-text-muted); margin: 14px auto 0; max-width: 46ch; }
.dt-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 36px 0 32px; }
.dt-tab { font-size: var(--text-sm); font-weight: var(--fw-med); color: var(--color-text-muted); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 9px 18px; cursor: pointer; font-family: var(--font-sans); }
.dt-tab[aria-selected="true"] { background: var(--color-action); color: var(--color-on-action); border-color: var(--color-action); }
.dt-tab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.dt-mods .grid { text-align: left; margin-top: clamp(40px, 5vw, 56px); }
.dt-mods__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dt-mods__grid .modicon { width: 42px; flex-basis: 42px; height: 42px; }
.dt-mods__grid .mod { gap: 14px; padding: 18px; }
.dt-mods__grid .mod__body { padding-right: 0; }
.dt-mods .mod { color: var(--color-text); }
@media (max-width: 1024px) { .dt-mods__grid { grid-template-columns: repeat(2, 1fr); } }
.dt-viewall {
	display: inline-flex; align-items: center; gap: 7px; margin-top: 44px;
	font-weight: var(--fw-med); font-size: var(--text-base); color: var(--color-text);
	background: var(--color-surface-2); border: 1px solid var(--color-border);
	border-radius: var(--radius-pill); padding: 12px 22px;
	transition: border-color var(--dur-base) var(--ease), background var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.dt-viewall:hover { border-color: var(--gray-400); background: var(--color-surface); transform: translateY(-1px); }
.dt-viewall:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ─── 6 · Testimonials (marquee) ──────────────────────────────────── */
.dt-testi { background: var(--color-bg); padding: var(--section-y) 0; }
.dt-testi__head { text-align: center; margin-bottom: clamp(36px, 5vw, 52px); }
.dt-testi__title { font-size: var(--text-2xl); font-weight: var(--fw-semi); }
.dt-testi__sub { font-size: var(--text-lg); color: var(--color-text-muted); margin-top: 10px; }
.dt-testi__sub b { color: var(--color-text); font-weight: var(--fw-med); font-variant-numeric: tabular-nums; }
.dt-testi__proof { text-align: center; margin-top: 8px; }
/* trust cards */
/* review cards themselves use the shared .dt-review component (global.css) */
.dt-testi__foot { text-align: center; margin-top: 36px; }

/* ─── 8 · Pricing (Lifetime-deal focus) ───────────────────────────── */
.dt-pricing { background: var(--color-surface); padding: var(--section-y) 0; text-align: center; }
.dt-pricing .dt-eyebrow { margin-bottom: 12px; }
.dt-pricing__title { font-size: var(--text-2xl); font-weight: var(--fw-semi); }
.dt-pricing__sub { font-size: var(--text-lg); color: var(--color-text-muted); margin: 12px auto 0; max-width: 52ch; }
/* shared plan-cards grid (dt_plan_cards) inside the home pricing section */
.dt-pricing .dt-pp__grid { margin-top: 44px; text-align: left; }
/* plan cards + guarantee strip are shared primitives — see global.css */

/* ─── 9 · FAQ — styles are shared primitives (see global.css) ──────── */

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
	.dt-feat__row { grid-template-columns: 1fr; gap: clamp(20px, 5vw, 32px); }
	.dt-feat__row--alt .dt-feat__copy { order: 0; }
	.dt-mods .grid { grid-template-columns: 1fr; }
	.dt-feat { padding: clamp(28px, 7vw, 48px) 0; }
	/* keep the showcase mockups from filling the whole screen */
	.dt-feat__shot { max-width: 380px; }
}
@media (max-width: 600px) {
	.dt-hero { padding: clamp(44px, 12vw, 72px) 0 clamp(24px, 6vw, 40px); }
	.dt-hero__title { font-size: clamp(2.15rem, 8.5vw, 2.75rem); }
	.dt-hero__sub { font-size: 1.0625rem; }
	.dt-feat__shot { max-width: 320px; }
	.dt-plane { padding: clamp(18px, 5vw, 28px); }
	.dt-feat-intro__sub, .dt-pricing__sub { font-size: 1.0625rem; }
}
