:root {
  --primary: #663399;
  --primary-dark: #542d80;
  --primary-soft: #f4eefb;
  --ink: #332e38;
  --body: #47404f;
  --muted: #70657b;
  --page: #f8f9fa;
  --card: #ffffff;
  --line: #eeeeee;
  --soft: #f6f7fb;
  --shadow: 0 4px 20px 1px rgb(0 0 0 / 0.06);
  --radius: 10px;
  --font: "Nunito", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --primary: #c9a6ef;
  --primary-dark: #b48ae6;
  --primary-soft: #2c2140;
  --ink: #f6f1fb;
  --body: #d5ccdf;
  --muted: #b0a4bf;
  --page: #121018;
  --card: #1c1826;
  --line: #3a3246;
  --soft: #241e2e;
  --shadow: 0 4px 24px 1px rgb(0 0 0 / 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--page);
  color: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--soft);
  color: var(--ink);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.wrap,
.grid,
.shots,
.features,
.steps,
.steps > *,
.shot,
.frame,
.section,
main {
  min-width: 0;
}

pre {
  margin: 0;
  max-width: 100%;
  padding: 1rem 1.05rem;
  overflow-x: auto;
  background: #1c1826;
  color: #f6f1fb;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
}

pre code { background: transparent; color: inherit; padding: 0; }

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 64px;
  flex-wrap: wrap;
  padding: 0.55rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-right: auto;
}

.brand-name {
  font-size: 1.05rem;
  line-height: 1;
}

.brand-by {
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.2rem 1.3rem;
}

.price-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.price-card p { margin: 0 0 0.7rem; }

.price {
  margin: 0.2rem 0 0.15rem;
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price small {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
}

.price-term {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.price-card ul {
  margin: 0.4rem 0 1rem;
  padding: 0;
  list-style: none;
}

.price-card li {
  padding: 0.38rem 0 0.38rem 1.15rem;
  position: relative;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 99px;
  background: var(--primary);
}

.price-card .btn { width: 100%; }

.price-card-popular {
  border-color: var(--primary);
  box-shadow: 0 8px 28px rgb(102 51 153 / 0.16);
}

.price-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
}

.price-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-badge { position: static; display: inline-block; margin-bottom: 0.55rem; }
}

.mark {
  width: 34px;
  height: 34px;
  color: var(--primary);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.nav a {
  color: var(--body);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover { color: var(--primary); }

.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
}

.hero { padding: 2.4rem 0 1rem; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

h1 {
  margin: 0.7rem 0 0.55rem;
  color: var(--ink);
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 span { color: var(--primary); }

.lead {
  max-width: 44rem;
  margin: 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.15rem 0 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}

.frame {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
}

.frame img { width: 100%; }

.frame figcaption,
.shot figcaption {
  padding: 0.75rem 0.95rem 0.9rem;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section { padding: 2.6rem 0; }

.section h2 {
  margin: 0.25rem 0 0.45rem;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.kicker {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sub { margin: 0 0 1.2rem; max-width: 42rem; }

.grid {
  display: grid;
  gap: 0.9rem;
}

.features { grid-template-columns: 1fr; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem 1.1rem;
}

.card h3 {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.card p { margin: 0; font-size: 0.95rem; }

.shots { grid-template-columns: 1fr; }

.shot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot a { display: block; }

.layout-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.layout-table th,
.layout-table td {
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.layout-table th { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.layout-table td strong { color: var(--ink); }

.table-scroll { overflow-x: auto; border-radius: var(--radius); }

.steps { display: grid; gap: 0.85rem; }

.step-label {
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-weight: 800;
}

.skins {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.skins li {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.2rem 0.95rem;
  box-shadow: var(--shadow);
}

.faq details + details { margin-top: 0.55rem; }

.faq summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.faq p { margin: 0 0 0.9rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 14px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  width: 100%;
}

.footer-plugins {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
}

.footer-plugins a,
.footer-top a {
  color: var(--muted);
  font-weight: 800;
}

.site-footer a { color: var(--muted); }

.shot.phone {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.shot.phone a {
  display: block;
  width: min(280px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 8px solid #332e38;
  border-radius: 28px;
  background: #111;
  box-shadow: var(--shadow);
}

.shot.phone img {
  width: 100%;
}

.shot.phone figcaption {
  text-align: center;
  max-width: 36rem;
  margin: 0.15rem auto 0;
}

.site-footer a { color: var(--muted); }

.frame .shot-card-preview,
.shot .shot-card-preview,
.shot-card-preview {
  position: relative;
  display: grid;
  width: 100%;
  overflow: hidden;
  cursor: zoom-in;
  color: inherit;
  text-decoration: none;
}

.shot-card-preview img,
.shot-card-preview .shot-card-hover {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
}

.shot-card-preview img {
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.shot-card-preview:hover img {
  transform: scale(1.02);
}

.shot-card-hover {
  position: relative;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  height: 100%;
  background: rgb(20 12 28 / 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.shot-card-preview:hover .shot-card-hover,
.shot-card-preview:focus-visible .shot-card-hover {
  opacity: 1;
}

.shot-zoom-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  background: rgb(0 0 0 / 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.device {
  width: min(300px, 100%);
  margin: 1rem auto 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.device .shot-card-preview {
  border: 10px solid #241f29;
  border-radius: 32px;
  background: #111;
  box-shadow: var(--shadow);
}

.device figcaption {
  padding: 0.7rem 0.2rem 0;
  text-align: center;
}

.lightbox-dialog {
  position: fixed;
  inset: 0;
  width: auto;
  max-width: min(94vw, 1100px);
  max-height: min(94vh, 900px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 100px rgb(0 0 0 / 0.45);
}

.lightbox-dialog::backdrop {
  background: rgb(0 0 0 / 0.85);
  backdrop-filter: blur(16px);
}

.lightbox-dialog[open] {
  animation: dialogFadeIn 0.25s ease-out;
}

@keyframes dialogFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-content {
  display: flex;
  max-height: min(94vh, 900px);
  flex-direction: column;
}

.lightbox-topbar,
.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  background: var(--soft);
}

.lightbox-topbar { border-bottom: 1px solid var(--line); }
.lightbox-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

.lightbox-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.lightbox-close-btn {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.lightbox-body {
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow: auto;
  background: #121018;
}

.lightbox-body img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-hint kbd {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font);
}

@media (hover: none) {
  .shot-card-hover {
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.65rem;
    background: linear-gradient(transparent, rgb(0 0 0 / 0.55));
    opacity: 1;
  }
}

@media (min-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .wrap { width: min(1080px, calc(100% - 24px)); }
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.6rem;
    row-gap: 0;
  }
  .brand { margin-right: 0; }
  .nav {
    grid-column: 1 / -1;
    width: auto;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.25rem;
  }
  .nav a {
    flex: 1;
    justify-content: center;
    min-height: 40px;
    font-size: 15px;
  }
  .icon-btn { grid-row: 1; grid-column: 2; }
  .hero { padding-top: 1.4rem; }
}
