/* Design tokens */
:root {
	--bg: #0b0f14;
	--bg-soft: #0f141b;
	--surface: #121826;
	--surface-2: #0f1724;
	--text: #e6eef8;
	--muted: #a6b0c3;
	--primary: #6ee7ff;
	--primary-2: #4cc9f0;
	--accent: #9b8cff;
	--ok: #4ade80;
	--warn: #fbbf24;
	--danger: #ef4444;
	--glass: rgba(255, 255, 255, 0.05);
	--border: rgba(255, 255, 255, 0.08);
	--shadow: 0 10px 30px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.2);
	--radius: 14px;
	--radius-sm: 10px;
	--container: 1120px;
}
/* Hide package visual trigger on small screens */
@media (max-width: 899px) {
  #showVisual { display: none !important; }
}

* { box-sizing: border-box; }

html, body {
	padding: 0;
	margin: 0;
	background: radial-gradient(1200px 800px at 80% -10%, rgba(110, 231, 255, 0.08), transparent), radial-gradient(1000px 600px at -10% 20%, rgba(155, 140, 255, 0.08), transparent), var(--bg);
	color: var(--text);
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.container {
	width: min(100% - 2rem, var(--container));
	margin-inline: auto;
}

/* Header */
.site-header {
	position: sticky;
	min-height: 70px;
	display: flex;
	top: 0;
	z-index: 50;
	background: linear-gradient(180deg, rgba(10, 15, 22, 0.9), rgba(10, 15, 22, 0.6));
	backdrop-filter: saturate(1.2) blur(8px);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.9rem 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	color: var(--text);
	font-weight: 700;
	letter-spacing: 0.3px;
}
.brand-mark {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--accent), var(--primary));
	color: #0b0f14;
	box-shadow: 0 6px 14px rgba(110,231,255,0.25);
}

.main-nav {
	display: flex;
	gap: clamp(0.6rem, 2vw, 1.2rem);
	align-items: center;
}
.main-nav a {
	color: var(--muted);
	text-decoration: none;
	font-weight: 500;
	transition: color .2s ease, transform .2s ease;
}
.main-nav a:hover { color: var(--text); transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; place-items: center; transition: background .25s ease, border-color .25s ease; }
.nav-toggle:hover { background: rgba(255,255,255,.09); }
.nav-toggle .bar-wrap { position: relative; width: 22px; height: 18px; }
.nav-toggle .bar { position: absolute; left: 0; width: 100%; height: 3px; border-radius: 3px; background: currentColor; transition: transform .4s ease, top .4s ease, opacity .35s ease; }
.nav-toggle .bar:nth-child(1){ top: 0; }
.nav-toggle .bar:nth-child(2){ top: 7.5px; }
.nav-toggle .bar:nth-child(3){ top: 15px; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1){ top: 7.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3){ top: 7.5px; transform: rotate(-45deg); }

/* Mobile menu panel */
@media (max-width: 860px){
	.site-header .main-nav { position: fixed; top: 70px; right: 0; width: min(260px, 80vw); height: calc(100vh - 70px); flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem 2rem; gap: .6rem; background: linear-gradient(180deg, rgba(24,30,46,.95), rgba(12,18,31,.92)); backdrop-filter: blur(10px) saturate(1.3); border-left: 1px solid var(--border); box-shadow: -10px 0 30px -5px rgba(0,0,0,.55); transform: translateX(110%); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.22,.61,.36,1), opacity .35s ease; }
	body.nav-open .site-header .main-nav { transform: translateX(0); opacity: 1; pointer-events: auto; }
	.site-header { justify-content: space-between; }
	.nav-toggle { display: grid; }
	.main-nav a { width: 100%; padding: .75rem .5rem; border-radius: 10px; font-size: 1rem; }
	.main-nav a:hover { background: rgba(255,255,255,.06); transform: none; }
	.main-nav a.btn { width: auto; }
	.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .35s ease; z-index: 40; }
	body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
	.site-header { z-index: 50; }
}

/* Buttons */
.btn {
	--bgc: var(--glass);
	--fg: var(--text);
	display: inline-block;
	padding: 0.8rem 1.1rem;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--bgc);
	color: var(--fg);
	text-decoration: none;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .2px;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.btn:active { transform: translateY(0); }
.btn-primary { --bgc: linear-gradient(135deg, rgba(110,231,255,.18), rgba(155,140,255,.18)); border-color: rgba(255,255,255,.18); }
.btn-ghost { --bgc: transparent; }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.95rem; }
.btn-stable { min-width: 160px; text-align: center; }

/* Hero */
.hero { position: relative; padding: 8rem 0 5rem; overflow: hidden; }
.hero .hero-inner { text-align: center; }
.eyebrow { color: var(--primary); font-weight: 600; letter-spacing: .4px; margin-bottom: .6rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.15; margin: 0.3rem 0 0.8rem; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.2rem); margin: 0 auto 1.2rem; max-width: 65ch; }
.cta-row { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: .6rem; }
.cta-row.left { justify-content: flex-start; }
.with-tablet .cta-row { justify-content: flex-start; }
.trust-badges { display: flex; flex-wrap: wrap; gap: .6rem 1rem; justify-content: center; color: var(--muted); margin-top: 1.2rem; }
.trust-badges span { padding: .4rem .8rem; background: var(--glass); border: 1px solid var(--border); border-radius: 999px; font-size: .95rem; }

.bg-blobs { position: absolute; inset: -20% -10% auto -10%; pointer-events: none; }
.blob { position: absolute; filter: blur(40px); opacity: 0.5; transform: translateZ(0); animation: float 18s ease-in-out infinite; }
.blob-a { width: 520px; height: 520px; top: -120px; right: -120px; background: radial-gradient(circle at 30% 30%, rgba(110,231,255,0.35), transparent 60%); }
.blob-b { width: 420px; height: 420px; bottom: -160px; left: -120px; background: radial-gradient(circle at 60% 60%, rgba(155,140,255,0.28), transparent 60%); animation-delay: -6s; }
@keyframes float { 0%,100%{ transform: translateY(0)} 50%{ transform: translateY(-14px)} }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); }
.section-title { text-align: center; font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 1rem; }
.section-subtitle { text-align: center; color: var(--muted); margin: 0 auto 2rem; max-width: 65ch; }

/* Cards */
.card { background: linear-gradient(180deg, rgba(24, 30, 46, 0.7), rgba(18, 24, 38, 0.7)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
/* .card:hover { transform: translateY(-3px); transition: transform .2s ease; } */

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 1.1rem; }
.feature .icon { font-size: 1.6rem; margin-bottom: .4rem; }
.feature h3 { margin: .2rem 0 .3rem; font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; }

/* Pricing */
.pricing-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.4rem; }
@media (min-width: 860px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { padding: 1.1rem; position: relative; display: flex; flex-direction: column; }
.price-card .badge { position: absolute; top: -12px; right: 14px; background: linear-gradient(135deg, var(--accent), var(--primary)); color: #0b0f14; padding: .35rem .6rem; font-weight: 800; font-size: .8rem; letter-spacing: .3px; border-radius: 999px; box-shadow: 0 10px 22px rgba(110,231,255,.25); }
.price-card.highlight { border-color: rgba(110,231,255,.35); box-shadow: 0 20px 40px rgba(110,231,255,.12), 0 8px 18px rgba(0,0,0,.35); }
.price-card-head h3 { margin: 0; font-size: 1.25rem; }
.price-card .muted { color: var(--muted); margin-top: .2rem; }
.features { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.features li { display: flex; align-items: flex-start; gap: .5rem; }
.features li::before { content: '✓'; color: var(--ok); font-weight: 800; margin-top: .05rem; }
.price-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .8rem; row-gap: .2rem; margin-top: auto; padding-top: .8rem; }
.price-cta .price { grid-column: 1; grid-row: 1; }
.price-cta .small { grid-column: 1; grid-row: 2; }
.price-cta .btn { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center; }
@media (max-width: 540px) {
	.price-cta { grid-template-columns: 1fr; }
	.price-cta .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .4rem; }
}
.price { font-size: 1.25rem; font-weight: 800; background: linear-gradient(135deg, #fff, #bfefff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footnote { text-align: center; margin-top: 1.2rem; }

/* Two column */
.two-col { display: grid; gap: 1.2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.1fr auto; } }
.col { min-width: 0; }
.with-tablet { position: relative; }
.with-tablet > :not(.tablet-mock) { position: relative; z-index: 2; }
.tablet-mock { position: absolute; top: -90px; left: -120px; width: min(54vw, 680px); aspect-ratio: 3/2; z-index: 1; opacity: 0.32; transform: rotate(-3.5deg); transform-origin: top left; filter: saturate(1.05) drop-shadow(0 30px 60px rgba(0,0,0,.45)); pointer-events: none; }
.tablet-frame { position: relative; width: 100%; height: 100%; border-radius: 28px; background: linear-gradient(180deg, #11182a, #0c121f); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); overflow: hidden; }
.tablet-screen { position: absolute; inset: 10px; border-radius: 22px; background: linear-gradient(180deg, #111a2c, #0e1626); border: 1px solid rgba(255,255,255,.08); padding: 12px; display: grid; }
.ha-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ha-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 10px; }
.ha-card h4 { margin: 0 0 6px; font-size: .9rem; }
.ha-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.ha-card .ok { color: var(--ok); font-weight: 700; }
.ha-card.wide { grid-column: span 3; }
.thumbs { display: flex; gap: 8px; }
.thumb { width: 100%; aspect-ratio: 16/9; min-height: 54px; background: linear-gradient(180deg, #1a2236, #121a2c); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; }
@media (min-width: 1200px) {
	.tablet-mock { top: -120px; left: -160px; width: 720px; }
}
@media (max-width: 900px) {
	.tablet-mock { top: -30px; left: -20px; width: min(72vw, 560px); opacity: 0.22; transform: rotate(-2deg); }
}
@media (max-width: 640px) {
	.tablet-mock { display: none; }
}

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .45rem; }
.checklist li { position: relative; padding-left: 1.5rem; }
.checklist li::before { content: ''; position: absolute; left: 0; top: .45rem; width: .8rem; height: .8rem; border-radius: 4px; background: linear-gradient(135deg, var(--ok), var(--primary)); box-shadow: 0 4px 10px rgba(74,222,128,.35); }

/* Graphic device mock */
.graphic { display: grid; place-items: center; }
.device-card { display: none; }
.phone-card { position: relative; min-width: 350px; width: min(100%, 360px); aspect-ratio: 9/19; background: linear-gradient(180deg, #0c111b, #0f1522); border-radius: 34px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 40px 80px rgba(110,231,255,.06), 0 10px 24px rgba(0,0,0,.45); overflow: hidden; transform: translateZ(0); }
.phone-card .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 34%; height: 18px; background: #0b0f14; border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; border: 1px solid rgba(255,255,255,.06); }
.phone-screen { position: absolute; inset: 10px; border-radius: 26px; background: linear-gradient(180deg, #0f1524, #0e1422); border: 1px solid rgba(255,255,255,.06); }
.screen-glow { position: absolute; inset: -10% -10% auto -10%; height: 40%; background: radial-gradient(600px 300px at 50% 0%, rgba(110,231,255,.18), transparent 60%); filter: blur(20px); }
.device-ui { position: absolute; inset: 0; padding: 1rem; display: grid; gap: .6rem; align-content: start; }
.ui-card.alarm-card {
	display: grid;
	justify-items: center;
	gap: .8rem;
	padding: 20px;
	border-radius: 16px;
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.08);
}
.ui-card.alarm-card .icon { font-size: 1.8rem; line-height: 1; filter: drop-shadow(0 4px 10px rgba(74,222,128,.25)); }
.ui-card.alarm-card .icon.ok { color: var(--ok); }
.ui-card.alarm-card .title { font-weight: 800; }
.ui-card.alarm-card .subtitle { color: var(--muted); margin-top: -2px; }
.ui-card.alarm-card .ui-btn {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .6rem .8rem;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,.14);
	background: linear-gradient(135deg, rgba(110,231,255,.14), rgba(155,140,255,.14));
	color: var(--text);
	font-weight: 800;
}
.ui-row {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	align-items: start;
	row-gap: 6px;
	column-gap: 8px;
	padding: 20px;
	border-radius: 14px;
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.08);
}
.ui-row .dot { grid-column: 1; grid-row: 1; align-self: center; }
.ui-row .label { grid-column: 2; grid-row: 1; color: var(--text); font-weight: 700; }
.ui-row .value { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-weight: 500; }
.ui-row .label { color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 6px rgba(74,222,128,.08); }
.dot.door { background: var(--warn); box-shadow: 0 0 0 6px rgba(251,191,36,.08); }
.dot.motion { background: var(--danger); box-shadow: 0 0 0 6px rgba(239,68,68,.08); }
.dot.cam { background: var(--primary-2); box-shadow: 0 0 0 6px rgba(76,201,240,.08); }
.ui-actions { display: flex; gap: .5rem; margin-top: .2rem; }
.chip { background: linear-gradient(135deg, rgba(110,231,255,.12), rgba(155,140,255,.12)); border: 1px solid rgba(255,255,255,.14); color: var(--text); padding: .5rem .7rem; border-radius: 999px; font-weight: 700; letter-spacing: .2px; }
.chip-alt { background: rgba(255,255,255,.06); }

/* Design / Theme showcase */
.design-show { position: relative; }
.design-grid { align-items: stretch; }
/* Ensure predictable column widths for mock + controls */
@media (min-width: 900px){
	.design-grid { grid-template-columns: minmax(0,560px) 1fr; }
}
.design-mock-col { position: relative; display: flex; align-items: center; }
/* Constrain and center mock, add its own subtle entrance so content fades even if parent already shown */
.design-mock-col .screen-mock { max-width: 560px; margin: 0 auto; }
/* Extra animation polish: only affect inner mock if parent uses reveal */
.design-mock-col.reveal .screen-mock { opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .7s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.design-mock-col.reveal.show .screen-mock { opacity: 1; transform: translateY(0) scale(1); }
.screen-mock { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 38px; padding: 16px; background: #111823; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 40px 80px -20px rgba(0,0,0,.55), 0 20px 40px rgba(0,0,0,.35); overflow: hidden; display: flex; align-items: stretch; justify-content: center; }
.screen-inner { position: relative; flex: 1; border-radius: 26px; padding: 18px; display: flex; flex-direction: column; justify-content: center; backdrop-filter: blur(14px) saturate(1.15); background: linear-gradient(180deg, rgba(20,30,48,.55), rgba(12,18,31,.55)); transition: background .6s ease, color .5s ease; }
.screen-fade { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 65%); mix-blend-mode: overlay; pointer-events: none; opacity: .5; }
.demo-grid { position: relative; z-index: 2; }
.screen-mock .ha-card { transition: background .6s ease, border-color .6s ease, transform .5s ease; }

/* Theme picker */
.design-controls { position: relative; }
.theme-picker { list-style: none; padding: 0; margin: 1rem 0 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.theme-chip { cursor: pointer; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: var(--text); padding: .55rem .9rem; border-radius: 14px; font-weight: 600; font-size: .85rem; letter-spacing: .3px; display: inline-flex; align-items: center; gap: .4rem; position: relative; overflow: hidden; transition: background .3s ease, border-color .3s ease, transform .25s ease; }
.theme-chip::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 70%); opacity: 0; transition: opacity .4s ease; }
.theme-chip:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.theme-chip:hover::after { opacity: .4; }
.theme-chip.active { background: linear-gradient(135deg, rgba(110,231,255,.25), rgba(155,140,255,.25)); border-color: rgba(255,255,255,.4); box-shadow: 0 10px 22px -6px rgba(110,231,255,.35); }

/* Themes */
.screen-inner.theme-default { background: linear-gradient(180deg, rgba(20,30,48,.55), rgba(12,18,31,.55)); }

.screen-inner.theme-sunset { background: linear-gradient(135deg, rgba(72,36,95,.55), rgba(255,136,75,.45)); }

.screen-inner.theme-aqua { background: linear-gradient(135deg, rgba(4,42,58,.65), rgba(18,179,255,.5)); }

.screen-inner.theme-glass { background: linear-gradient(135deg, rgba(255,255,255,.65), rgba(255,255,255,.2)); backdrop-filter: blur(22px) saturate(1.4); }
.screen-inner.theme-glass .ha-card { background: rgba(255,255,255,.5); border-color: rgba(255,255,255,.55); }

.screen-inner.theme-forest { background: linear-gradient(135deg, rgba(13,40,21,.7), rgba(30,98,52,.5)); }

.screen-inner.theme-sunset .ha-card { background: rgba(255,255,255,.15); }
.screen-inner.theme-aqua .ha-card { background: rgba(255,255,255,.14); }
.screen-inner.theme-forest .ha-card { background: rgba(255,255,255,.12); }

.screen-inner.theme-sunset .ha-card .ok,
.screen-inner.theme-aqua .ha-card .ok,
.screen-inner.theme-forest .ha-card .ok { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,.5); }

/* Adaptive text color for light (glass) theme */
.screen-inner.theme-glass, .screen-inner.theme-glass h4, .screen-inner.theme-glass p, .screen-inner.theme-glass .ha-card p, .screen-inner.theme-glass .ha-card h4 { color: #111; }
.screen-inner.theme-glass .ha-card .ok { color: #0d7a3a; text-shadow: none; }

/* Ensure cards inherit correct contrast */
.screen-inner.theme-glass .ha-card { box-shadow: 0 4px 18px rgba(0,0,0,.08); }

/* Smooth theme transition */
.screen-mock { transition: background .9s ease, border-color .6s ease; }
.screen-mock .screen-inner, .screen-mock .ha-card { transition: background .7s ease, border-color .7s ease, box-shadow .7s ease; }

@media (max-width: 900px) {
	.screen-mock { aspect-ratio: 3/2; }
}

/* iPhone-style bottom gesture bar */
.gesture-bar { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 36%; height: 4px; border-radius: 3px; background: rgba(255,255,255,.9); opacity: .9; box-shadow: 0 1px 4px rgba(0,0,0,.25); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.step-no { position: absolute; top: -14px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; font-weight: 800; color: #0b0f14; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 6px 14px rgba(110,231,255,.25); }
.step h3 { margin: .2rem 0 .3rem; }
.step p { color: var(--muted); margin: 0; }

/* FAQ */
.faq-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: repeat(3, 1fr); } }
.faq-item { padding: 1rem; }
.faq-item h3 { margin-top: 0; }
.faq-item p { color: var(--muted); }

/* Contact */
.contact-card { padding: 1rem; }
.contact-form { display: grid; gap: .7rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 600; color: var(--text); }
.contact-form input, .contact-form textarea { width: 100%; padding: .8rem .9rem; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(110,231,255,.45); box-shadow: 0 0 0 4px rgba(110,231,255,.12); }
.small { font-size: .92rem; }

/* Contact (two-column refined) */
.contact-two { align-items: start; }
@media (min-width:900px){ .contact-two { align-items: stretch; } }
.contact-two > .col { display:flex; flex-direction:column; }
.contact-info { display:flex; flex-direction:column; }
.contact-info .contact-card { margin-top:.4rem; flex-grow:1; display:flex; flex-direction:column; justify-content:stretch; }
@media (max-width: 900px){ .contact-two { grid-template-columns: 1fr; } }
.contact-info h2 { margin-top: 0; }
.contact-card { position: relative; overflow: hidden; }
.contact-card .team { margin-top: 0; font-size: 1.05rem; }
.contact-lines { list-style: none; padding: 0; margin: .6rem 0 1rem; display: grid; gap: .4rem; }
.contact-lines li { font-size: .9rem; color: var(--muted); }
.contact-lines a { color: var(--text); text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.contact-form { padding: 1.2rem 1.2rem 1.4rem; }
.contact-form .form-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); margin-bottom: .6rem; }
.contact-form label { font-size: .78rem; letter-spacing: .35px; font-weight: 600; text-transform: uppercase; opacity: .9; }
.contact-form input, .contact-form select, .contact-form textarea { background: linear-gradient(140deg, rgba(255,255,255,.05), rgba(255,255,255,.025)); border:1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px) saturate(1.15); font-size:.9rem; }
.contact-form input, .contact-form select { height: 42px; color: white; }
.contact-form textarea { resize: vertical; min-height: 150px; line-height: 1.4; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: rgba(110,231,255,.55); box-shadow: 0 0 0 4px rgba(110,231,255,.18); background: rgba(255,255,255,.08); }
.contact-form .cta-row.left { justify-content: flex-start; }
.contact-form button#buildMail { font-weight:700; }
.contact-form.contact-narrow { max-width: 520px; margin-left: auto; }
.contact-form .three-cols { display:grid; gap:.7rem; grid-template-columns: repeat(3,1fr); align-items: end; }
.contact-form .three-cols > label { margin:0; }
.contact-form .three-cols .small-input { grid-column: span 1; }
.contact-form .three-cols .span-1 input { height:42px; }
.contact-form .short-text textarea { min-height:12px; }
@media (max-width:720px){
	.contact-form.contact-narrow { max-width:100%; }
	.contact-form .three-cols { grid-template-columns: 1fr 1fr; }
	.contact-form .three-cols .small-input { grid-column: 1 / -1; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(10, 15, 22, 0.9), rgba(10, 15, 22, 0.95)); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; }
.muted { color: var(--muted); }

/* a11y */
.visually-hidden {
	position: absolute !important;
	height: 1px; width: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	clip-path: inset(50%);
}

/* Sticky */
.sticky {position: sticky; top: 80px;}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--delay, 0s); }
.reveal.show { opacity: 1; transform: translateY(0); }

/* Survey UI */
.survey-step { padding: 1rem; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.survey-step.show { opacity: 1; transform: translateY(0); }
.survey-body label { display: grid; gap: .35rem; font-weight: 600; }
.survey-body input[type="number"] { width: 160px; padding: .65rem .75rem; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text); }
.survey-body input[type="number"]:focus { border-color: rgba(110,231,255,.45); box-shadow: 0 0 0 4px rgba(110,231,255,.12); outline: none; }
.check-options { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); margin: .4rem 0 .2rem; }
.check-option { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .6rem; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.04); cursor: pointer; user-select: none; }
.check-option input { appearance: none; width: 18px; height: 18px; border-radius: 6px; border: 2px solid rgba(255,255,255,.35); display: inline-grid; place-items: center; background: transparent; transition: all .2s ease; }
.check-option input:checked { background: linear-gradient(135deg, var(--primary), var(--accent)); border-color: transparent; box-shadow: 0 2px 10px rgba(110,231,255,.35); }
.check-option span { font-weight: 600; }
.addons { border: 1px dashed var(--border); border-radius: 10px; padding: .8rem; }
.addons legend { padding: 0 .3rem; color: var(--muted); }
#survey.card, #result.card, #catalog.card { padding: 1rem 1.2rem; }
#result.card .checklist { margin-top: .8rem; }
.survey-head h3 { margin: 0 0 .3rem; }
.survey-head .muted { margin: 0 0 .8rem; display: block; }
.survey-body { display: grid; gap: .8rem; }
.choice-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.choice-grid .btn { width: 100%; text-align: center; }

/* Survey progress */
.survey-progress { position: sticky; top: calc(90px + 8px); z-index: 1; background: transparent; padding-bottom: .6rem; }
.progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.progress-track { position: relative; height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--border); overflow: hidden; }
.progress-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .45s cubic-bezier(.22,.61,.36,1); }
.progress-thumb { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: 0 6px 18px rgba(110,231,255,.35); transition: left .45s cubic-bezier(.22,.61,.36,1); }
.addons { border: 1px dashed var(--border); border-radius: 10px; padding: .8rem; }
.addons legend { padding: 0 .3rem; color: var(--muted); }

/* Product grid */
.product-grid { display: grid; gap: 1rem; grid-template-columns: repeat(1, 1fr); }
@media (min-width:700px){ .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width:1040px){ .product-grid { grid-template-columns: repeat(3, 1fr); } }
.prod-card { padding: .9rem; display: grid; gap: .6rem; }
.prod-img { position: relative; width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); height: 170px; display: flex; align-items: center; justify-content: center; }
.prod-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; padding: 10px; object-fit: contain; display: block; filter: saturate(1.05); }
.prod-placeholder { font-size: .75rem; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); opacity: .65; }
.prod-title { font-weight: 700; }

/* Slide-in cart */
.cart-panel { position: sticky; top: 90px; align-self: start; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: .9rem; transform: translateX(16px); transition: transform .35s ease, opacity .35s ease, width .35s ease, padding .35s ease; display: flex; flex-direction: column; max-height: calc(100vh - 110px); }
.cart-panel .cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-body { display: flex; flex-direction: column; gap: .6rem; overflow: hidden; flex: 1 1 auto; min-height: 0; margin-top: .6em; }
.cart-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; overflow-y: auto; scrollbar-width: thin; flex: 1 1 auto; }
.cart-list li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.04); flex: 0 0 auto; }
.cart-actions { margin-top: .9rem; display: flex; flex-direction: column; gap: .6rem; }
.cart-actions .btn { width: 100%; justify-content: center; }
.cart-panel.open { transform: translateX(0); }
/* collapsed body (mobile) */
.cart-panel.body-collapsed .cart-body, .cart-panel.body-collapsed .cart-actions { display: none; }

/* Collapsed desktop state (keeps sticky button visible) */
@media (min-width: 900px){
	.cart-panel.collapsed-desktop { padding: .55rem .55rem; width: auto; }
	.cart-panel.collapsed-desktop .cart-head h2 { display: none; }
	.cart-panel.collapsed-desktop .cart-body, .cart-panel.collapsed-desktop .cart-actions { display: none; }
}

/* Mobile behaviour: do not slide off screen, only collapse content */
@media (max-width: 899.98px){
	.cart-panel { transform: none; margin-top: 1rem; }
	.cart-panel.open { transform: none; }
	.cart-panel .cart-body { transition: max-height .35s ease, opacity .3s ease; max-height: 1200px; opacity: 1; }
	.cart-panel.body-collapsed .cart-body { max-height: 0; opacity: 0; }
	.cart-panel .cart-actions { transition: opacity .25s ease; }
	.cart-panel.body-collapsed .cart-actions { opacity: 0; }
}

/* Product page mobile: show cart above catalog */
@media (max-width: 899.98px){
	.two-col.product-layout { display: flex; flex-direction: column; }
	.two-col.product-layout > .col { width: 100%; }
	.two-col.product-layout > .col.sticky { order: -1; }
	.two-col.product-layout #catalog { margin-top: 1.2rem; }
	/* Disable sticky behaviour for cart on mobile */
	.two-col.product-layout > .col.sticky, .two-col.product-layout .cart-panel, .two-col.product-layout .cart-panel.sticky, .two-col.product-layout .sticky { position: static !important; top: auto !important; }
	.two-col.product-layout .cart-panel { max-height: none; }
}

/* Motion sensitivity */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Modal */
.modal-overlay { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 60; }
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal-card { width: min(92vw, 660px); padding: 1rem; position: relative; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transform: translateY(10px) scale(.98); transition: transform .25s ease; }
.modal-overlay.show .modal-card { transform: translateY(0) scale(1); }
.modal-card h3 { margin-top: .2rem; margin-bottom: .6rem; }
.modal-card .btn-row { display: flex; gap: .6rem; justify-content: center; margin-top: 1rem; }
.modal-card input { width: 100%; padding: .8rem .9rem; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.05); color: var(--text); }
.modal-card input.input-error { border-color: rgba(239,68,68,.7); box-shadow: 0 0 0 4px rgba(239,68,68,.18); }
.modal-close { position: absolute; top: 15px; right: 15px; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.06); color: var(--text); font-size: 1.1rem; line-height: 1; display: grid; place-items: center; cursor: pointer; }

/* Toast notifications */
.toast-container { position: fixed; top: 14px; right: 14px; display: flex; flex-direction: column; gap: .6rem; z-index: 200; width: min(320px, 90vw); }
.toast { position: relative; padding: .75rem .9rem; background: linear-gradient(180deg, rgba(24,30,46,.92), rgba(18,24,38,.92)); border: 1px solid var(--border); border-radius: 12px; color: var(--text); box-shadow: var(--shadow); font-size: .9rem; font-weight: 500; opacity: 0; transform: translateY(-6px) scale(.96); transition: opacity .35s ease, transform .45s cubic-bezier(.22,.61,.36,1); backdrop-filter: blur(6px) saturate(1.1); }
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast-info { border-color: rgba(110,231,255,.35); }
.toast-success { border-color: rgba(74,222,128,.45); }
.toast-error { border-color: rgba(239,68,68,.55); }
.toast-success { background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(24,30,46,.9)); }
.toast-error { background: linear-gradient(135deg, rgba(239,68,68,.18), rgba(24,30,46,.9)); }


/* Package visual (survey result) */
.package-visual-card { max-width: min(92vw, 620px); }
.package-visual-wrapper { position: relative; width: 100%; aspect-ratio: 1/1; max-width: 480px; margin: 40px auto; }
.circle-stage { position: relative; width: 100%; height: 100%; }
.circle-stage .pv-item { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100px; height: 100px; border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.35); backdrop-filter: blur(6px) saturate(1.1); transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity .45s ease; }
.circle-stage .pv-item img { max-width: 90%; max-height: 90%; object-fit: contain; filter: saturate(1.05); }
.circle-stage .pv-item.stack { width: 80px; height: 80px; }
.circle-stage .pv-item[data-index] { opacity: 0; }
.circle-stage.ready .pv-item[data-index] { opacity: 1; }
.circle-stage .pv-item::after { content: attr(data-count); position: absolute; bottom: 4px; right: 6px; font-size: .65rem; font-weight: 700; background: rgba(0,0,0,.85); padding: 2px 6px; border-radius: 999px; letter-spacing: .5px; }
.circle-stage .pv-item[data-count="1"]::after { display: none; }
.circle-stage .ring { position: absolute; inset: 12%; border: 1px dashed rgba(255,255,255,.1); border-radius: 50%; pointer-events: none; opacity: .5; }
.circle-stage .ring.inner { inset: 36%; opacity: .35; }
@media (max-width: 640px){
	.circle-stage .pv-item { width: 80px; height: 80px; }
	.circle-stage .pv-item.stack { width: 60px; height: 60px; }
}
