:root {
  --bg: #0f0a22;
  --bg-2: #160e30;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --fg: #f6f3ff;
  --muted: #b8b1d1;
  --accent: #ff5fa8;
  --accent-2: #ffb547;
  --blue: #3d7bff;
  --brand: linear-gradient(90deg, #ff8ac8, #ff5fa8 45%, #ffb547);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 16px; }

.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  background: var(--fg); color: #140a2e; font-weight: 650; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.small { padding: 8px 16px; font-size: 15px; }
.button.big { width: 100%; padding: 16px; font-size: 18px; background: var(--brand); color: #1a0b22; }
.button.ghost { background: var(--card-strong); color: var(--fg); padding: 10px 16px; font-size: 15px; }
.button.ghost[aria-pressed="true"] { background: rgba(255, 95, 168, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 95, 168, 0.5); }
.button:disabled { opacity: 0.5; cursor: default; transform: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100vw - 1200px) / 2));
  background: rgba(15, 10, 34, 0.72);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; text-decoration: none; }
.brand img { border-radius: 9px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 550; }
.nav nav a:hover { color: var(--fg); }
@media (max-width: 720px) { .nav nav { display: none; } .nav .button { margin-left: auto; } }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.stores.compact { margin-top: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 15px; border-radius: 12px;
  text-decoration: none; text-align: left;
}
.badge span { display: flex; flex-direction: column; line-height: 1.05; font-weight: 650; font-size: 19px; letter-spacing: -0.01em; }
.badge small { font-size: 11px; font-weight: 550; letter-spacing: 0; }
.badge.store { background: #000; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); transition: transform 0.15s ease; }
.badge.store:hover { transform: translateY(-1px); }
.badge.soon { border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.badge.soon span { color: var(--fg); font-size: 16px; }
.badge.soon small { color: var(--muted); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 48px;
  max-width: 1200px; margin: 0 auto; padding: 72px 16px 56px;
}
.glow {
  position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; filter: blur(70px); opacity: 0.85;
  background:
    radial-gradient(40% 45% at 18% 25%, rgba(123, 77, 255, 0.55), transparent 70%),
    radial-gradient(35% 40% at 78% 35%, rgba(255, 95, 168, 0.5), transparent 70%),
    radial-gradient(30% 35% at 60% 85%, rgba(31, 200, 224, 0.35), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(3%, 4%, 0) scale(1.08) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .glow { animation: none; } html { scroll-behavior: auto; } }
.hero h1 { font-size: clamp(46px, 7vw, 88px); font-weight: 850; }
.lead { color: var(--muted); font-size: clamp(18px, 2vw, 21px); margin-top: 22px; max-width: 34em; }
.try-link { display: inline-block; margin-top: 18px; color: var(--muted); font-weight: 600; text-decoration: none; }
.try-link:hover { color: var(--fg); }
.hero-phone { display: flex; justify-content: center; }
.phone {
  width: min(320px, 78vw); aspect-ratio: 886 / 1920; border-radius: 52px; padding: 11px;
  background: linear-gradient(145deg, #c9c5d1, #6e6a76 40%, #b5b1bd 70%, #7e7a86);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 42px; background: #000; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; text-align: center; }
  .hero .stores { justify-content: center; }
  .lead { margin-inline: auto; }
}

/* Sections */
section { scroll-margin-top: 72px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 820; }
.section-head p:not(.eyebrow) { color: var(--muted); margin-top: 14px; font-size: 18px; }

/* Maker */
.maker { max-width: 1200px; margin: 0 auto; padding: 72px 16px; }
.maker-grid { display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start; }
@media (max-width: 920px) { .maker-grid { grid-template-columns: 1fr; } }

.stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 640px; padding: 32px; border-radius: 32px;
  background: radial-gradient(70% 60% at 50% 40%, rgba(123, 77, 255, 0.18), transparent), var(--card);
  border: 1px solid var(--line);
}
@media (max-width: 920px) { .stage { min-height: 0; padding: 22px 16px; } }
.device {
  --ratio: 0.4603;
  position: relative; overflow: hidden;
  height: min(620px, 70vh); aspect-ratio: var(--ratio); max-width: 100%;
  border-radius: 46px; background: #1c1630;
  box-shadow: 0 0 0 10px #0b0816, 0 0 0 12px rgba(255, 255, 255, 0.14), 0 30px 70px rgba(0, 0, 0, 0.5);
  touch-action: none;
}
.device.landscape { height: auto; width: min(760px, 100%); border-radius: 18px; }
.device.tablet { border-radius: 30px; }
.device canvas { width: 100%; height: 100%; }
.stage.dragging { outline: 2px dashed var(--accent); outline-offset: -10px; }
.drop-hint {
  position: absolute; inset: 0; display: none; place-items: center; border-radius: 32px;
  background: rgba(15, 10, 34, 0.7); font-size: 22px; font-weight: 700; pointer-events: none;
}
.stage.dragging .drop-hint { display: grid; }

.empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 24px;
  background:
    radial-gradient(60% 40% at 30% 20%, rgba(255, 95, 168, 0.55), transparent 70%),
    radial-gradient(60% 45% at 75% 75%, rgba(61, 123, 255, 0.55), transparent 70%),
    radial-gradient(50% 40% at 70% 30%, rgba(255, 181, 71, 0.45), transparent 70%),
    #241a44;
}
.empty p { color: rgba(255, 255, 255, 0.85); }
.empty-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: rgba(255, 255, 255, 0.16); }
.device.has-photo .empty { display: none; }

.lock {
  position: absolute; top: 9%; left: 0; right: 0; display: flex; flex-direction: column; align-items: center;
  color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18); pointer-events: none;
}
.lock span:first-child { font-size: clamp(11px, 2.2cqh, 16px); font-weight: 600; }
.lock span:last-child { font-size: clamp(54px, 14cqh, 96px); font-weight: 650; letter-spacing: -0.02em; line-height: 1; }
.device { container-type: size; }
.device:not(.has-photo) .lock, .device.lock-off .lock, .device.landscape .lock { display: none; }

.points { position: absolute; inset: 0; pointer-events: none; }
.point {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  border: 2.5px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  pointer-events: auto; cursor: grab; touch-action: none;
}
.point.fixed { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-width: 2px; pointer-events: none; opacity: 0.6; }
.point:active { cursor: grabbing; }

.panel { display: flex; flex-direction: column; gap: 18px; padding: 22px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.control { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row output { color: var(--muted); font-variant-numeric: tabular-nums; }
.panel.disabled [data-needs-photo] { opacity: 0.4; pointer-events: none; }

.samples .sample-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.sample {
  aspect-ratio: 1; border-radius: 16px; overflow: hidden; padding: 0; border: 0; cursor: pointer;
  background: var(--card-strong); box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center; font-size: 26px; transition: transform 0.15s ease;
}
.sample img { width: 100%; height: 100%; object-fit: cover; }
.sample:hover { transform: scale(1.04); }
.sample.add { color: var(--muted); }

.segmented { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); }
.segmented button { border: 0; background: none; padding: 8px 0; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--card-strong); color: var(--fg); }

.stepper { display: flex; align-items: center; gap: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); padding: 3px; }
.stepper button { width: 34px; height: 30px; border: 0; border-radius: 9px; background: none; font-size: 20px; cursor: pointer; }
.stepper button:hover { background: var(--card-strong); }
.stepper output { min-width: 22px; text-align: center; font-weight: 650; color: var(--fg); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }

input[type="range"] { width: 100%; accent-color: var(--accent); }
select { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: #1f1840; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .button { flex: 1; white-space: nowrap; padding-inline: 10px; font-size: 14px; }
.fine { color: var(--muted); font-size: 14px; text-align: center; margin-top: -6px; }
.upsell { border-top: 1px solid var(--line); padding-top: 18px; }
.upsell p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* Features */
.features { max-width: 1200px; margin: 0 auto; padding: 72px 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 920px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.feature h3 { font-size: 22px; margin: 16px 0 8px; }
.feature p { color: var(--muted); }
.dot { display: block; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 8px 24px color-mix(in srgb, var(--c1) 45%, transparent); }

.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 40px -16px 0; padding: 8px 16px 20px; scrollbar-width: thin;
}
.shots img { flex: 0 0 auto; width: min(260px, 62vw); border-radius: 26px; scroll-snap-align: center; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); }

/* Promise */
.promise { max-width: 1200px; margin: 0 auto; padding: 40px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promise > div { padding: 34px; border-radius: 28px; background: linear-gradient(140deg, rgba(123, 77, 255, 0.28), rgba(255, 95, 168, 0.16)); border: 1px solid var(--line); }
.promise > div + div { background: linear-gradient(140deg, rgba(31, 200, 224, 0.22), rgba(61, 123, 255, 0.16)); }
.promise h2 { font-size: clamp(26px, 3.4vw, 36px); }
.promise p { color: var(--muted); margin-top: 12px; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; padding: 72px 16px 40px; }
.faq h2 { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 24px; text-align: center; }
details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
summary { cursor: pointer; font-weight: 650; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin-top: 10px; }
details a { color: var(--accent); }

/* Download */
.download { text-align: center; padding: 72px 16px 96px; display: flex; flex-direction: column; align-items: center; }
.download img { border-radius: 22px; box-shadow: 0 20px 50px rgba(255, 95, 168, 0.3); }
.download h2 { font-size: clamp(36px, 5vw, 56px); margin-top: 22px; }
.download p { color: var(--muted); font-size: 20px; margin-top: 8px; }
.download .stores { justify-content: center; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 28px max(16px, calc((100vw - 1200px) / 2)); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 15px;
}
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--fg); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: var(--fg); color: #140a2e; font-weight: 650;
  transition: opacity 0.2s ease, transform 0.2s ease; z-index: 40;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Plain pages (privacy, support) */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 16px 80px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); font-weight: 820; }
.doc .dates { color: var(--muted); margin-top: 10px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc p, .doc ul { color: #ddd8ee; margin: 0 0 12px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent); }
.doc .summary { margin-top: 28px; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.doc .summary h2 { margin-top: 0; }

/* Web Pro */
.pro-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 6px;
  background: var(--brand); color: #1a0b22;
}
.pro-tag[hidden] { display: none; }
.pro-pill {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; padding: 3px 9px; border-radius: 999px;
  background: var(--brand); color: #1a0b22; vertical-align: 1px;
}
.watermark {
  position: absolute; left: 0; right: 0; bottom: 4.5%; text-align: center; pointer-events: none;
  font-size: clamp(9px, 2.6cqw, 14px); font-weight: 600; color: rgba(255, 255, 255, 0.7); text-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}
.device:not(.has-photo) .watermark, .device.pro .watermark { display: none; }

.swatch { border: 0; padding: 0; cursor: pointer; position: relative; }
.swatch:has(span) { width: auto; min-width: 74px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.swatch span { font: 600 11px ui-monospace, "SF Mono", Menlo, monospace; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); color: #fff; }
.palette-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.palette-actions[hidden] { display: none; }
.palette-actions .button { padding: 9px 6px; font-size: 13px; gap: 5px; white-space: nowrap; }
.select-button { position: relative; }
.select-button select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.button.wide { width: 100%; font-size: 14px; }
.pro-status { color: var(--muted); font-size: 14px; text-align: center; line-height: 1.6; }
.link { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

dialog.paywall, dialog.card-sheet {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 28px 24px 22px; border: 1px solid var(--line); border-radius: 28px;
  background: #1a1236; color: var(--fg); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
dialog::backdrop { background: rgba(8, 5, 20, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] { animation: rise 0.22s ease; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.paywall-close { position: absolute; top: 14px; right: 14px; }
.paywall-close button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--card-strong); cursor: pointer; font-size: 14px; }
.paywall-head { text-align: center; padding: 6px 12px 0; }
.paywall-head h2 { font-size: 28px; margin-top: 14px; }
.paywall-head p { color: var(--muted); margin-top: 8px; }
.paywall-benefits { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.paywall-benefits li { display: grid; gap: 1px; padding-left: 30px; position: relative; }
.paywall-benefits li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--brand); color: #1a0b22;
}
.paywall-benefits span { color: var(--muted); font-size: 15px; }
.paywall-price {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; margin-bottom: 14px;
  border-radius: 18px; border: 2px solid var(--accent); background: rgba(255, 95, 168, 0.08);
}
.paywall-price div { display: grid; }
.paywall-price span { color: var(--muted); font-size: 14px; }
.paywall-price b { font-size: 24px; }
.button.disabled { opacity: 0.55; pointer-events: none; }
.paywall-fine { color: var(--muted); font-size: 13px; text-align: center; margin-top: 10px; }
.paywall-key { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.paywall-key summary { cursor: pointer; font-weight: 600; font-size: 15px; text-align: center; color: var(--fg); }
.paywall-key form { display: flex; gap: 8px; margin-top: 12px; }
.paywall-key input {
  flex: 1; min-width: 0; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3);
  font: 13px ui-monospace, "SF Mono", Menlo, monospace;
}
.paywall-error { color: #ff8a8a; font-size: 14px; margin-top: 8px; }
.paywall-error:empty { display: none; }

.card-sheet h2 { font-size: 24px; }
.card-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.card-sheet canvas { width: 100%; height: auto; margin: 16px 0; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.card-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.segmented.two { grid-template-columns: 1fr 1fr; flex: 0 0 170px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Keep the panel inside narrow screens. */
.maker-grid > * { min-width: 0; }
@media (max-width: 920px) { .maker-grid { grid-template-columns: minmax(0, 1fr); } }
.palette-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.palette-actions .button { min-width: 0; }
select { min-width: 0; text-overflow: ellipsis; }
@media (max-width: 420px) {
  .palette-actions .button { flex-direction: column; gap: 3px; white-space: normal; font-size: 12px; padding: 8px 4px; }
  .panel { padding: 18px 14px; }
}
