/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #555;
  --line: #e3e3e3;
  --accent: #ff2d2d;        /* primary red CTA */
  --accent-ink: #ffffff;
  --green: #18c964;
  --pill-bg: #f4f4f5;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06);
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

a { color: inherit; }

.stars { color: #111; letter-spacing: 1px; }
.rating-count { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: .7em 1.2em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #e51f1f; box-shadow: 0 6px 18px rgba(255,45,45,.32); }

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

.btn--block { width: 100%; padding: .9em; font-size: 1.05rem; }
.btn--wide { flex: 1; }
.btn--icon { width: 46px; }

/* ---------- Sticky top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(6px);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.price-badge {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: .35em .7em;
  border-radius: 6px;
  clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%);
  padding-right: 1.1em;
  white-space: nowrap;
}
.topbar__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}
.topbar__cta { white-space: nowrap; }

/* ---------- Page wrapper ---------- */
.page { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0d0d;
  box-shadow: var(--shadow);
}
/* Cover art behind the headline */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
/* Dark scrim so the headline stays readable over the art */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,8,5,.78) 0%, rgba(10,8,5,.45) 45%, rgba(10,8,5,.78) 100%);
  z-index: 1;
}
/* Product name across the top of the hero */
.hero__name {
  position: absolute;
  top: 1.3rem;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  padding: 0 1.5rem;
  text-align: center;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.hero__art {
  position: relative;
  z-index: 2;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  text-align: center;
  color: #fff;
  padding: 2rem;
}
.hero__kicker {
  letter-spacing: .35em;
  font-size: .8rem;
  color: #9a9a9a;
  margin: 0;
  text-transform: uppercase;
}
.hero__headline {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 800;
  font-style: italic;
  margin: 0;
  text-transform: uppercase;
}
.hero__headline .accent { color: var(--green); }
.hero__btn {
  background: var(--green);
  color: #04140b;
  font-weight: 800;
  text-decoration: none;
  padding: .8em 2em;
  border-radius: 999px;
  letter-spacing: .05em;
  box-shadow: 0 8px 24px rgba(24,201,100,.35);
}

/* ---------- Two-column layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}

/* ---------- Content (left) ---------- */
.content__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 1rem;
}
.seller {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}
.seller__author { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
.seller__avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #ff2d2d, #ffb199);
  display: inline-block;
}
.seller__name { text-decoration: underline; }
.seller__rating { display: flex; align-items: center; gap: .5rem; }

.prose p { margin: 0 0 1.1rem; }
.prose h3 { font-size: 1.35rem; font-weight: 700; margin: 2rem 0 .8rem; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose .note { color: var(--ink-soft); font-size: .92rem; }
.prose u { text-underline-offset: 3px; }

/* ---------- Sidebar (right) ---------- */
.sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1.25rem; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card__price-row { display: flex; gap: .9rem; }
.price-pill {
  flex: none;
  height: fit-content;
  background: var(--pill-bg);
  border-radius: 999px;
  padding: .45em .9em;
  font-weight: 700;
}
.card__version-title { margin: 0 0 .6rem; font-weight: 700; }
.signup-title { margin: 0 0 .25rem; font-weight: 700; font-size: 1rem; }
.ml-embedded { margin-bottom: .25rem; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.checklist li { position: relative; padding-left: 1.6em; font-size: .92rem; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 1.15em; height: 1.15em;
  background: var(--green); color: #fff;
  border-radius: 4px;
  display: grid; place-items: center;
  font-size: .72em; font-weight: 800;
}

.info-line {
  background: #f3f1fb;
  color: #3a3a4a;
  border-radius: 8px;
  padding: .65em .8em;
  font-size: .9rem;
}
.info-line strong { color: var(--ink); }

.quote-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .9em 1em;
  font-size: .9rem;
  color: var(--ink-soft);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .7rem 0;
  font-size: .92rem;
}
.spec-row__label { font-weight: 600; }

.card__actions { display: flex; gap: .6rem; }

.guarantee-link {
  text-align: center;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink);
}

/* ---------- Ratings breakdown ---------- */
.ratings {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.ratings__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.ratings__head h3 { margin: 0; font-size: 1.2rem; }
.ratings__avg { font-size: .9rem; font-weight: 600; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.bars li { display: grid; grid-template-columns: 56px 1fr 40px; align-items: center; gap: .6rem; font-size: .85rem; }
.bar { background: #f0f0f0; border: 1px solid var(--line); border-radius: 5px; height: 14px; overflow: hidden; }
.bar__fill { display: block; height: 100%; background: var(--accent); }
.bars__pct { text-align: right; color: var(--ink-soft); }

/* ---------- Thank-you / download page ---------- */
.thanks { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.thanks__hero {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 1.75rem;
  box-shadow: var(--shadow);
}
.thanks__check {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid; place-items: center;
  font-size: 2rem; font-weight: 800;
}
.thanks__title { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin: 0 0 .6rem; }
.thanks__sub { color: var(--ink-soft); font-size: 1.05rem; margin: 0 auto 1.75rem; max-width: 48ch; }
.thanks__download { max-width: 420px; margin: 0 auto; font-size: 1.05rem; }
.thanks__note { color: var(--ink-soft); font-size: .85rem; margin: 1rem 0 0; }

.thanks__next { margin-top: 3rem; }
.thanks__next-title { font-size: 1.4rem; margin: 0 0 .3rem; text-align: center; }
.thanks__next-sub { color: var(--ink-soft); text-align: center; margin: 0 0 1.5rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: .85rem;
}

/* ---------- Top bar: back-to-store link ---------- */
.topbar__home {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
}
.topbar__home:hover { color: var(--ink); }

/* ================================================== */
/*  STOREFRONT / CATALOG                              */
/* ================================================== */

/* Store header */
.store-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.store-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.store-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.store-brand__mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #ffb199);
}
.store-nav { display: flex; gap: 1.5rem; }
.store-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.store-nav a:hover { color: var(--ink); }

/* Store hero */
.store-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2rem;
  text-align: center;
}
.store-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin: 0 0 .75rem;
}
.store-hero .accent { color: var(--accent); }
.store-hero p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

/* Store / grid */
.store { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.store__heading { font-size: 1.3rem; margin: 0 0 1.25rem; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Product card */
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.product-card__thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  background: #0d0d0d;
  color: #fff;
  overflow: hidden;
}
.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card__thumb-name {
  position: absolute;
  top: 22%;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 1rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.65);
}
.product-card__thumb--alt  { background: radial-gradient(120% 120% at 50% 0%, #2b3a67 0%, #0b1734 100%); }
.product-card__thumb--alt2 { background: radial-gradient(120% 120% at 50% 0%, #5a2b67 0%, #1b0b34 100%); }
.product-card__thumb--alt3 { background: radial-gradient(120% 120% at 50% 0%, #6b4a17 0%, #241403 100%); }
.product-card__thumb-text {
  font-weight: 800;
  font-style: italic;
  letter-spacing: .04em;
  text-align: center;
  line-height: 1.2;
  font-size: 1.05rem;
}
.product-card__price {
  position: absolute;
  top: .7rem; right: .7rem;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: .85rem;
  padding: .25em .7em;
  border-radius: 999px;
}

.product-card__body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.product-card__title { font-size: 1.1rem; font-weight: 700; margin: 0; }
.product-card__desc { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.product-card__seller {
  margin-top: .35rem;
  font-size: .82rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.product-card--placeholder { opacity: .65; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; order: 2; }
  .topbar__title { display: none; }
}
@media (max-width: 480px) {
  .topbar__meta { display: none; }
  .bars li { grid-template-columns: 48px 1fr 36px; }
  .store-nav { gap: 1rem; font-size: .9rem; }
}

/* ================================================== */
/*  ABOUT PAGE (matches the light store theme)        */
/* ================================================== */
.about { max-width: 880px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.about-hero { text-align: center; margin-bottom: 2.5rem; }
.about-hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  line-height: 1.1;
}
.about-hero h1 .accent { color: var(--accent); }
.about-hero p {
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto;
}

.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 2rem;
}
.about-card h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 .9rem; }
.about-card p { color: var(--ink-soft); line-height: 1.65; margin: 0 0 1rem; }
.about-card p:last-child { margin-bottom: 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.about-feature h3 { font-size: 1.25rem; font-weight: 800; margin: 1rem 0 .55rem; }
.about-feature p { color: var(--ink-soft); line-height: 1.6; margin: 0; }

.icon-badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--cyan { background: rgba(24,201,100,.14); color: #12a152; }
.icon-badge--red { background: rgba(255,45,45,.12); color: var(--accent); }

.about-cta { text-align: center; padding: 2.5rem 2rem; }
.about-cta .icon-badge { margin: 0 auto 1.25rem; width: 56px; height: 56px; }
.about-cta h2 { font-size: 1.7rem; margin: 0 0 .7rem; }
.about-cta p { max-width: 34rem; margin: 0 auto 1.5rem; }

/* ================================================== */
/*  SITE FOOTER (shared, dark)                        */
/* ================================================== */
.site-footer { background: #0a0d13; color: #9aa3b2; border-top: 1px solid #1c2330; }
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 3rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer__brand .store-brand__mark { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), #ffb199); display: inline-block; vertical-align: middle; }
.site-footer__brand .name { color: #fff; font-weight: 800; font-size: 1.1rem; margin-left: .5rem; }
.site-footer__brand p { margin: .9rem 0 0; font-size: .9rem; line-height: 1.6; max-width: 22rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #9aa3b2; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
  border-top: 1px solid #1c2330;
  font-size: .85rem; color: #6b7384;
}
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

/* ================================================== */
/*  LEGAL PAGES (terms / privacy / refund)            */
/* ================================================== */
.legal .about-hero p { max-width: 46rem; }
.legal__updated {
  text-align: center; color: var(--ink-soft);
  font-size: .9rem; margin: -1.75rem 0 2.5rem;
}
.legal .about-card { text-align: left; }
.legal h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 1.6rem 0 .6rem; }
.legal h3:first-child { margin-top: 0; }
.legal ul { color: var(--ink-soft); line-height: 1.65; margin: 0 0 1rem; padding-left: 1.25rem; }
.legal li { margin-bottom: .5rem; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal__callout {
  border-left: 4px solid var(--accent);
  background: #fff5f5;
  padding: 1rem 1.25rem; border-radius: 8px;
  margin: 0 0 1.25rem;
}
.legal__callout p { margin: 0; color: var(--ink); }

/* Checkout legal microcopy (under Buy buttons) */
.buy-legal {
  font-size: .76rem; line-height: 1.5; color: var(--ink-soft);
  text-align: center; margin: .6rem 0 0;
}
.buy-legal a { color: var(--ink-soft); text-decoration: underline; }
.buy-legal a:hover { color: var(--accent); }
