:root {
  color-scheme: light;
  --ink: #13122a;
  --muted: #56546c;
  --violet: #4e39b8;
  --line: #e1dcef;
  --paper: #f9f7ff;
  font: 16px/1.6 Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(calc(100% - 72px), 1220px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 21px;
}
.site-header { border-bottom: 1px solid var(--line); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  font-size: 1.2rem;
  font-weight: 760;
  letter-spacing: -.055em;
  text-decoration: none;
}
.brand img { border-radius: 9px; }
nav { display: flex; gap: 26px; color: var(--muted); font-size: .9rem; font-weight: 600; }
nav a { text-decoration: none; }
nav a:hover, .text-link:hover { color: var(--violet); text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(52px, 8vw, 110px);
}
.kicker { color: var(--violet); font-weight: 700; font-size: .87rem; margin-bottom: 14px; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.055em; }
h1 { font-size: clamp(3rem, 6vw, 5.45rem); font-weight: 740; }
h1 em { display: block; color: var(--violet); font-style: normal; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 720; }
h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
.lead { margin-top: 22px; max-width: 34ch; color: var(--muted); font-size: 1.13rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.button {
  display: inline-flex;
  gap: .65em;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 13px 17px;
  border-radius: 10px;
  background: var(--violet);
  color: white;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
}
.button:hover { background: #37258e; }
.button-small { padding: 9px 13px; font-size: .85rem; }
.text-link { font-weight: 680; font-size: .88rem; text-underline-offset: 3px; }
.hero-note { margin-top: 15px; font-size: .83rem; color: var(--muted); }

.demo {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: 0 18px 65px #39277721;
}
.demo figcaption {
  padding: 11px 16px;
  font-size: .82rem;
  font-weight: 700;
  background: #eeebfa;
  border-bottom: 1px solid var(--line);
}
.demo-body { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; padding: 14px; }
.demo-stage { min-width: 0; }
.demo-stage img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  background: #efedf4;
}
.demo-controls { padding: 8px 2px; min-width: 0; }
.demo-product { font-weight: 760; letter-spacing: -.04em; font-size: clamp(1.06rem, 2vw, 1.45rem); }
.demo-colour { margin: 10px 0 6px; }
.demo-colour, .demo-gallery-heading, .demo-result { color: var(--muted); font-size: .79rem; }
.demo-colour strong { color: var(--ink); margin-left: 4px; }
.swatches { display: flex; gap: 9px; }
.swatch {
  border: 1px solid #aaa7b5;
  border-radius: 100%;
  width: 25px;
  height: 25px;
  cursor: pointer;
}
.swatch[aria-pressed="true"] { outline: 2px solid var(--violet); outline-offset: 2px; }
.swatch:focus-visible { box-shadow: 0 0 0 5px #c0b4fb; }
.sage { background: #8fa48b; }
.navy { background: #263750; }
.white { background: #f6f4f0; }
.demo-divider { height: 1px; background: var(--line); margin-block: 13px 9px; }
.demo-gallery-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; }
.demo-gallery-heading > span { font-weight: 700; color: var(--ink); }
.demo-toggle { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.demo-toggle input { margin: 0; accent-color: var(--violet); }
.demo-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 9px; }
.demo-thumbs button {
  background: transparent;
  border: 1px solid transparent;
  padding: 1px;
  border-radius: 6px;
  cursor: pointer;
}
.demo-thumbs button[aria-pressed="true"] { border-color: var(--violet); }
.demo-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.demo-result { margin-top: 8px; }

.features { border-top: 1px solid var(--line); padding-block: 58px 72px; }
.section-intro { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 22px; margin-bottom: 34px; }
.section-intro p, .feature-row p { color: var(--muted); max-width: 50ch; }
.feature-row {
  background: white;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.feature-row + .feature-row { margin-top: 16px; }
.feature-row.reverse { grid-template-columns: 1.1fr .9fr; }
.feature-row.reverse img { order: -1; }
.feature-row > div { padding: clamp(24px, 5vw, 64px); }
.feature-row p { margin-top: 13px; }
.feature-row img { width: 100%; height: auto; }

.pricing { padding-block: 60px; background: #ede8fb; border-block: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plan { background: white; border: 1px solid var(--line); border-radius: 15px; padding: clamp(15px, 2vw, 24px); }
.plan-featured { border: 2px solid var(--violet); }
.plan h3 { font-size: 1.23rem; }
.price { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 750; margin-top: 8px; letter-spacing: -.06em; }
.price span { font-size: .75rem; font-weight: 600; letter-spacing: normal; color: var(--muted); }
.product-limit { font-size: .9rem; font-weight: 650; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.plan ul { padding-inline-start: 17px; margin: 14px 0 0; font-size: .86rem; color: var(--muted); }
.plan li + li { margin-top: 4px; }
.pricing-action { margin-top: 26px; }
.site-footer { color: var(--muted); font-size: .85rem; }
.site-footer .brand { color: var(--ink); }

@media (max-width: 1010px) {
  .hero { grid-template-columns: 1fr; }
  .demo { width: min(100%, 650px); }
  .demo-thumbs { grid-template-columns: repeat(3, minmax(0, 66px)); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .section-intro, .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse img { order: 0; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .site-footer { flex-wrap: wrap; }
}
@media (max-width: 460px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  .site-header nav { order: 1; width: 100%; gap: 20px; }
  .site-footer nav { gap: 15px; }
  .demo-body { gap: 9px; padding: 9px; }
  .demo-controls { padding-block: 3px; }
  .demo-divider { margin-top: 10px; }
  .hero { padding-block: 40px; }
  .price span { display: block; }
}
