/*
 * DoubleScale feature pages.
 *
 * Shared by the redesigned feature templates. Scoped to .dsx so nothing leaks
 * into the header, footer or shared template parts. Tokens follow the
 * dashboard and the home page: indigo #3A3A99, lavender tints, the orange
 * accent, Sora headings and Inter body text.
 */

.dsx {
	--ink: #09090b;
	--body: #52525b;
	--muted: #71717a;
	--line: #e4e4e7;
	--soft: #eceef3;
	--indigo: #3a3a99;
	--violet: #6d5cf6;
	--lav: #eeeeff;
	--orange: #cb5301;
	--orange-soft: #fff1e6;
	--green: #16a34a;
	font-family: Inter, system-ui, sans-serif;
	color: var(--body);
}
.dsx *, .dsx *::before, .dsx *::after { box-sizing: border-box; }
.dsx-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.dsx-section { position: relative; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 104px 0; }
.dsx-section--tint { background: linear-gradient(180deg, #f7f7fb 0%, #fbfbfd 60%, #fff 100%); }

/* The hero runs up behind the site header so both share one background. */
.header-hero-background { display: none !important; }
.dsx-hero {
	position: relative; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
	margin-top: calc(-1 * var(--dsx-header-h, 96px)); padding: calc(var(--dsx-header-h, 96px) + 72px) 0 96px; isolation: isolate;
	background:
		radial-gradient(55% 60% at 75% 10%, rgba(109, 92, 246, 0.16), transparent 70%),
		radial-gradient(35% 40% at 5% 30%, rgba(203, 83, 1, 0.07), transparent 70%),
		linear-gradient(180deg, #f3f2ff 0%, #fbfbff 60%, #fff 100%);
}
.dsx-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: linear-gradient(rgba(58, 58, 153, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(58, 58, 153, 0.05) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%);
}
.dsx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.dsx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; font: 500 13.5px/1.3 Inter, sans-serif; color: var(--muted); }
.dsx .dsx-crumbs a { color: var(--muted); text-decoration: none; }
.dsx .dsx-crumbs a:hover { color: var(--indigo); }
.dsx-crumbs span[aria-hidden] { color: #c4c4cc; }

.dsx-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--lav); font: 600 13px/1 Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo); }
.dsx-eyebrow svg { width: 16px; height: 16px; }
.dsx-eyebrow--white { background: #fff; box-shadow: 0 1px 2px rgba(16, 16, 40, 0.06), 0 6px 16px -10px rgba(58, 58, 153, 0.35); }
.dsx .dsx-h1 { margin: 20px 0 0; font-family: Sora, Inter, sans-serif; font-weight: 600; color: var(--ink); font-size: clamp(34px, 4.6vw, 56px) !important; line-height: 1.08 !important; letter-spacing: -0.035em; text-wrap: balance; }
.dsx .dsx-h1 em { font-style: normal; color: var(--indigo); }
.dsx-lead { margin: 20px 0 0; max-width: 560px; font-size: 18.5px; line-height: 1.65; color: var(--body); }
.dsx-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.dsx .dsx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 14px; font: 600 15.5px/1 Inter, sans-serif; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s; }
.dsx .dsx-btn svg { width: 18px; height: 18px; }
.dsx .dsx-btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 14px 28px -14px rgba(58, 58, 153, 0.9); }
.dsx .dsx-btn--primary:hover { background: #2f2f85; transform: translateY(-1px); }
.dsx .dsx-btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.dsx .dsx-btn--ghost:hover { border-color: rgba(58, 58, 153, 0.4); }
.dsx-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; }
.dsx-plan li { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 14px/1.3 Inter, sans-serif; color: var(--body); }
.dsx-plan svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* Section headings */
.dsx-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.dsx-head--left { margin-left: 0; text-align: left; }
.dsx .dsx-title { margin: 18px 0 0; font-family: Sora, Inter, sans-serif; font-weight: 600; color: var(--ink); font-size: clamp(28px, 3.6vw, 42px) !important; line-height: 1.15 !important; letter-spacing: -0.025em; text-wrap: balance; }
.dsx-sub { margin: 16px auto 0; max-width: 640px; font-size: 17.5px; line-height: 1.65; color: var(--body); }
.dsx-head--left .dsx-sub { margin-left: 0; }

/* Mock product window */
.dsx-window { position: relative; border-radius: 20px; background: #fff; border: 1px solid var(--soft); box-shadow: 0 40px 80px -40px rgba(27, 19, 71, 0.45), 0 1px 2px rgba(16, 16, 40, 0.05); overflow: hidden; }
.dsx-window-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: #f7f7fb; border-bottom: 1px solid var(--soft); }
.dsx-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e4e4ec; }
.dsx-window-bar i:nth-child(1) { background: #f87171; } .dsx-window-bar i:nth-child(2) { background: #fbbf24; } .dsx-window-bar i:nth-child(3) { background: #34d399; }
.dsx-window-bar span { margin-left: 10px; font: 500 12px/1 Inter, sans-serif !important; color: var(--muted); }
.dsx-window-body { padding: 22px; }
.dsx-stage { position: relative; }
.dsx-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.97); border: 1px solid var(--soft); box-shadow: 0 20px 40px -18px rgba(27, 19, 71, 0.45); animation: dsx-float 6s ease-in-out infinite; }
.dsx-float:nth-of-type(2) { animation-delay: -3s; }
.dsx .dsx-float b { display: block; font: 600 14px/1.2 Inter, sans-serif; color: var(--ink); }
.dsx .dsx-float small { display: block; margin-top: 3px; font: 500 12px/1.2 Inter, sans-serif !important; color: var(--muted); }
@keyframes dsx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.dsx-ico { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--lav); color: var(--indigo); }
.dsx-ico svg { width: 22px; height: 22px; }
.dsx-ico--green { background: #e9f9ef; color: var(--green); }
.dsx-ico--orange { background: var(--orange-soft); color: var(--orange); }
.dsx-ico--sm { width: 32px; height: 32px; border-radius: 9px; }
.dsx-ico--sm svg { width: 18px; height: 18px; }

.dsx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font: 600 11.5px/1 Inter, sans-serif !important; background: var(--lav); color: var(--indigo); white-space: nowrap; }
.dsx-pill--green { background: #e9f9ef; color: var(--green); }
.dsx-pill--orange { background: var(--orange-soft); color: var(--orange); }
.dsx-pill--grey { background: #f4f4f5; color: #52525b; }

/* Steps */
.dsx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: dsx-step; list-style: none; margin: 0; padding: 0; }
.dsx-step { position: relative; margin: 0; padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--soft); box-shadow: 0 1px 2px rgba(16, 16, 40, 0.04); }
.dsx-step-n { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--indigo); color: #fff; font: 700 14px/1 Sora, sans-serif; }
.dsx .dsx-step h3 { margin: 18px 0 0; font: 600 19px/1.3 Sora, Inter, sans-serif !important; color: var(--ink); }
.dsx-step p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.65; }
.dsx-step:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -21px; width: 22px; height: 2px; background: linear-gradient(90deg, var(--indigo), transparent); }

/* Feature cards */
.dsx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dsx-card { margin: 0; padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--soft); box-shadow: 0 1px 2px rgba(16, 16, 40, 0.04); transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s; }
.dsx-card:hover { border-color: rgba(58, 58, 153, 0.22); box-shadow: 0 24px 50px -32px rgba(42, 42, 122, 0.45); transform: translateY(-2px); }
.dsx .dsx-card h3 { margin: 18px 0 0; font: 600 18px/1.35 Sora, Inter, sans-serif !important; color: var(--ink); }
.dsx-card p { margin: 10px 0 0; font-size: 15px; line-height: 1.65; }

/* Split rows */
.dsx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.dsx-split + .dsx-split { margin-top: 96px; }
.dsx-split--flip > :first-child { order: 2; }
.dsx-checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.dsx-checks li { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }
.dsx-checks li b { color: var(--ink); font-weight: 600; }
.dsx-checks svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--indigo); }

/* Privacy / note band */
.dsx-band { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding: 36px 40px; border-radius: 26px; background: linear-gradient(135deg, #3a3a99 0%, #2b1f73 55%, #1b1347 100%); color: #d9d6ff; box-shadow: 0 40px 80px -40px rgba(27, 19, 71, 0.7); }
.dsx-band .dsx-ico { width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, 0.12); color: #fff; }
.dsx-band .dsx-ico svg { width: 28px; height: 28px; }
.dsx .dsx-band h3 { margin: 0; font: 600 22px/1.3 Sora, Inter, sans-serif !important; color: #fff; }
.dsx-band p { margin: 8px 0 0; font-size: 16px; line-height: 1.65; color: #d9d6ff; }
.dsx-band ul { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 16px 0 0; padding: 0; }
.dsx-band li { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 14.5px/1.3 Inter, sans-serif; color: #fff; }
.dsx-band li svg { width: 18px; height: 18px; color: #4ade80; }

/* Related features */
.dsx-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dsx .dsx-rel { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--soft); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.dsx .dsx-rel:hover { border-color: rgba(58, 58, 153, 0.3); box-shadow: 0 20px 40px -28px rgba(42, 42, 122, 0.45); transform: translateY(-2px); }
.dsx .dsx-rel b { font: 600 16px/1.3 Sora, Inter, sans-serif; color: var(--ink); }
.dsx .dsx-rel span:last-child { font-size: 14px; line-height: 1.55; color: var(--body); }

/* Reveal on scroll */
.dsx-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.dsx-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1023px) {
	.dsx-hero { padding-bottom: 72px; }
	.dsx-hero-grid, .dsx-split { grid-template-columns: 1fr; gap: 40px; }
	.dsx-split--flip > :first-child { order: 0; }
	.dsx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dsx-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dsx-steps { grid-template-columns: 1fr; }
	.dsx-step:not(:last-child)::after { display: none; }
	.dsx-float { display: none; }
}
@media (max-width: 767px) {
	.dsx-section { padding: 72px 0; }
	.dsx-hero { padding-top: calc(var(--dsx-header-h, 96px) + 40px); }
	.dsx-cards, .dsx-related { grid-template-columns: 1fr; }
	.dsx-band { grid-template-columns: 1fr; padding: 28px 22px; }
	.dsx-split + .dsx-split { margin-top: 64px; }
	.dsx-lead { font-size: 17px; }
	.dsx .dsx-btn { flex: 1 1 auto; }
}
@media (max-width: 520px) { .dsx-wrap { padding: 0 16px; } .dsx-window-body { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .dsx-reveal { opacity: 1; transform: none; transition: none; } .dsx-float { animation: none; } }
