:root {
  --purple: #7c3aed;
  --purple-d: #6d28d9;
  --purple-deep: #2a1259;
  --lavender: #efe8ff;
  --lavender-2: #e2d6fd;
  --ink: #0f0d1a;
  --ink-2: #4b4c55;
  --muted: #6c6e76;
  --line: rgba(15, 13, 26, 0.1);
  --bg: #ffffff;
  --soft: #f6f4fb;
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --display: 'Manrope', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.04; margin: 0; }
h2 { font-size: clamp(36px, 5.4vw, 72px); font-weight: 800; }
h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--purple-d); margin-bottom: 16px;
}
.accent { color: var(--purple); }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 34ch; margin-top: 20px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--purple); color: #fff; font-weight: 700; text-decoration: none;
  transition: background .2s, transform .2s;
}
.pill:hover { background: var(--purple-d); transform: translateY(-1px); }
.pill-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.pill-light { background: #fff; color: var(--purple-deep); }
.pill-light:hover { background: #fff; transform: none; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--ink); }
.link-arrow::after { content: ' ↓'; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 12px; left: 12px; right: 12px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 58px; padding: 0 12px 0 24px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 6px 24px -10px rgba(15, 13, 26, 0.25);
}
.wordmark { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: var(--purple); text-decoration: none; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav nav { display: none; } }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1000px;
  overflow: hidden; background: var(--purple-deep); color: #fff;
}
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08); transition: transform 7s ease-out;
}
.slide.is-active img { transform: scale(1); }
.slide::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 8, 40, 0.78) 0%, rgba(18, 8, 40, 0.5) 40%, rgba(18, 8, 40, 0) 72%),
    linear-gradient(0deg, rgba(18, 8, 40, 0.35) 0%, rgba(18, 8, 40, 0) 30%);
}
.slide-copy {
  position: absolute; z-index: 2; left: max(112px, 8vw); top: 50%; transform: translateY(-46%);
  max-width: min(620px, 84vw);
}
.slide-copy h1, .slide-copy .slide-title {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02;
  font-size: clamp(42px, 5.6vw, 84px); color: #fff;
}
.slide-copy p { margin-top: 18px; font-size: clamp(17px, 1.5vw, 21px); color: rgba(255, 255, 255, 0.9); max-width: 34ch; }
.slide-copy > * { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.slide.is-active .slide-copy > * { opacity: 1; transform: none; }
.slide.is-active .slide-copy > :nth-child(2) { transition-delay: .12s; }
.slide.is-active .slide-copy > :nth-child(3) { transition-delay: .24s; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.pill-white { background: #fff; color: var(--ink); min-width: 180px; }
.pill-white:hover { background: #f1ecff; }
.pill-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85); min-width: 180px; }
.pill-outline:hover { background: rgba(255, 255, 255, 0.12); }

.arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--ink); font-size: 20px; line-height: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.arrow:hover { background: #f1ecff; }
.arrow-prev { left: 28px; }
.arrow-next { right: 28px; }
.dots {
  position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-radius: 999px; background: #fff;
}
.dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: #c9c5d3; transition: width .3s, background .3s;
}
.dots button[aria-current="true"] { width: 24px; background: var(--ink); }
@media (max-width: 760px) {
  .arrow { display: none; }
  .slide-copy { left: var(--gutter); right: var(--gutter); top: auto; bottom: 96px; transform: none; }
  .slide::after { background: linear-gradient(0deg, rgba(18, 8, 40, 0.8) 0%, rgba(18, 8, 40, 0.35) 50%, rgba(18, 8, 40, 0) 75%); }
}

/* ---------- 2. Story ---------- */
.story { background: #fff; }
.story-pin {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.6fr; align-items: center; gap: 4vw;
  padding: 96px var(--gutter) 48px;
}
.story-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; counter-reset: s; }
.story-steps li {
  position: relative; padding-left: 46px; color: var(--muted); font-size: 18px;
  transition: color .4s, opacity .4s; opacity: .55;
}
.story-steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
  background: var(--lavender); color: var(--purple-d); transition: background .4s, color .4s;
}
.story-steps li strong { color: var(--ink); }
.story-steps li.is-active { opacity: 1; color: var(--ink-2); }
.story-steps li.is-active::before { background: var(--purple); color: #fff; }
.story-stage { position: relative; }
.story-stage img { width: 100%; height: auto; }

.tag { position: absolute; left: var(--x); top: var(--y); z-index: 2; }
.dot {
  position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--purple); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(124, 58, 237, .25);
}
.tag-card {
  position: absolute; left: 18px; top: -30px;
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 12px 16px 12px 12px; border-radius: 18px; background: #fff;
  box-shadow: 0 18px 40px -12px rgba(42, 18, 89, .35), 0 0 0 1px var(--line);
  font-size: 14px; line-height: 1.25;
}
.tag-card small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.tag-card b { display: block; font-size: 15px; }
.tag-card em { display: block; font-style: normal; color: var(--purple-d); font-size: 12px; font-weight: 600; }
.tag-receipt .tag-card, .tag-warranty .tag-card { left: auto; right: 18px; }
.swatch { width: 40px; height: 40px; border-radius: 12px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.icon { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--lavender); font-size: 20px; }

@media (max-width: 860px) {
  .story-pin { grid-template-columns: 1fr; padding-top: 88px; }
  /* On phones the tags sit under the picture as a small grid of cards. */
  .story-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .story-stage img { grid-column: 1 / -1; margin-bottom: 6px; }
  .tag { position: static; }
  .dot { display: none; }
  .tag-card { position: static; white-space: normal; height: 100%; padding: 10px; gap: 10px; }
  .tag-card .swatch, .tag-card .icon { width: 32px; height: 32px; font-size: 16px; border-radius: 10px; }
}

/* ---------- 3. Paint-chip wall ---------- */
.chips { background: #fff; }
.chips-pin {
  min-height: 100vh; min-height: 100svh; padding: 96px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 32px;
}
.chips-head { text-align: center; max-width: 1000px; margin: 0 auto; }
.chips-head h2 { font-size: clamp(36px, 4.4vw, 64px); }
.chips-sub { margin: 16px auto 0; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 20px); max-width: 46ch; }
.chip-grid {
  list-style: none; margin: 0 auto; padding: 0; width: 100%;
  max-width: min(1180px, calc((100svh - 380px) / 3 * 1.25 * 6 + 90px));
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px);
  perspective: 1400px;
}
.chip { aspect-ratio: 5 / 4; }
.chip-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transform: rotateY(180deg);
}
.chip-face {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -18px rgba(42, 18, 89, .35);
  display: flex; flex-direction: column;
}
.chip-front { background: var(--soft); }
.chip-blank { flex: 1; margin: 8px 8px 0; border-radius: 10px; background: repeating-linear-gradient(135deg, #ece8f4 0 8px, #f4f1fa 8px 16px); }
.chip-lines { height: 30%; margin: 10px 12px 12px; background: linear-gradient(#e3dfeb, #e3dfeb) 0 30% / 70% 8px no-repeat, linear-gradient(#ebe8f1, #ebe8f1) 0 70% / 45% 8px no-repeat; }
.chip-back { transform: rotateY(180deg); }
.chip-color { flex: 1; margin: 8px 8px 0; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.chip-label { padding: 8px 12px 10px; line-height: 1.2; }
.chip-label b { display: block; font-size: clamp(12px, 1vw, 15px); }
.chip-label small { display: block; color: var(--muted); font-size: clamp(11px, .85vw, 13px); }
@media (max-width: 860px) {
  .chip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .chip { aspect-ratio: 1 / 1.1; }
  .chip:nth-child(n+13) { display: none; }
}

/* ---------- 4. Features ---------- */
.features { background: var(--soft); overflow: hidden; }
.features-pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 84px 0 32px; }
.features-head { padding: 0 var(--gutter); margin-bottom: 32px; max-width: 900px; }
.features-head h2 { font-size: clamp(34px, 4.2vw, 60px); }
.features-track { display: flex; gap: 24px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.panel {
  width: min(78vw, 440px); flex: none; border-radius: var(--radius); background: #fff; overflow: hidden;
  box-shadow: 0 30px 60px -36px rgba(42, 18, 89, .35); display: flex; flex-direction: column;
}
.panel > img { width: 100%; height: min(34vh, 300px); object-fit: cover; }
.panel .mock { height: min(34vh, 300px); background: linear-gradient(160deg, var(--lavender), #fff); padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.panel .mock { overflow: hidden; }
.mock-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 8px 14px 8px 8px; box-shadow: 0 0 0 1px var(--line); }
.mock-row div { flex: 1; min-width: 0; }
.mock-row b { display: block; font-size: 15px; }
.mock-row small { display: block; color: var(--muted); font-size: 12.5px; }
.mock-row .swatch, .mock-row .icon { width: 36px; height: 36px; font-size: 18px; }
.status { flex: none; white-space: nowrap; font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 999px; }
.status.ok { background: #e7f6ec; color: #17663a; }
.status.warn { background: #fff1db; color: #8a4b00; }
.amt { font-weight: 700; font-size: 15px; }
.panel-body { padding: 26px 28px 32px; }
.panel-body p { color: var(--ink-2); margin-top: 10px; }
.num { display: block; font-family: var(--display); font-weight: 800; color: var(--purple); margin-bottom: 8px; }

@media (max-width: 860px) {
  .features-track { flex-direction: column; width: auto; }
  .panel { width: 100%; }
  .panel > img, .panel .mock { height: auto; aspect-ratio: 4 / 3; }
}

/* ---------- 5. Agents ---------- */
.agents {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 5vw;
  padding: 16vh var(--gutter);
}
.agents-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; }
.agents-media img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.checks li::before {
  content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--lavender); color: var(--purple-d); display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
@media (max-width: 860px) { .agents { grid-template-columns: 1fr; padding: 12vh var(--gutter); } }

/* ---------- 6. Pricing ---------- */
.pricing { padding: 14vh var(--gutter); text-align: center; background: var(--soft); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 24px; margin-top: 48px; text-align: left; }
.plan { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: 0 0 0 1px var(--line); }
.plan-featured { background: var(--purple-deep); color: #fff; box-shadow: none; }
.plan .price { margin-top: 18px; font-size: 18px; color: var(--muted); }
.plan .price span { font-family: var(--display); font-weight: 800; font-size: 48px; letter-spacing: -0.04em; color: var(--ink); }
.plan-featured .price, .plan-featured .alt { color: #cbb8fb; }
.plan-featured .price span { color: #fff; }
.plan .alt { color: var(--muted); font-size: 15px; }
.plan ul { padding: 0 0 0 20px; margin: 24px 0 0; display: grid; gap: 8px; }
.fineprint { margin-top: 28px; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- 7. Get ---------- */
.get {
  padding: 18vh var(--gutter); text-align: center; color: #fff;
  background: radial-gradient(120% 120% at 50% 0%, #8b5cf6 0%, var(--purple-deep) 70%);
}
.get h2 { font-size: clamp(44px, 8vw, 120px); }
.get p { margin: 18px 0 32px; color: #e2d6fd; font-size: 19px; }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 36px var(--gutter); border-top: 1px solid var(--line); color: var(--muted);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a { text-decoration: none; font-weight: 600; color: var(--ink-2); }
.footer a:hover { color: var(--purple-d); }

/* ---------- Legal and support pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 128px var(--gutter) 96px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; }
.doc .updated { color: var(--muted); margin-top: 12px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -0.02em; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.doc ul + p, .doc p + ul { margin-top: 12px; }
mark.todo { background: #fff1db; color: #8a4b00; padding: 0 4px; border-radius: 4px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.doc a { color: var(--purple-d); font-weight: 600; }
.doc .callout { margin-top: 28px; padding: 24px 26px; border-radius: 20px; background: var(--lavender); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--ink); }
.faq details p { margin-top: 10px; }

/* Reduced motion: everything is visible, nothing pins or slides. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
