:root {
  --accent: #1fa594;
  --accent-d: #137a6e;
  --accent-soft: #e6f6f3;
  --warm: #f4845f;
  --warm-soft: #fff1ea;
  --sun: #f6b93b;
  --ink: #1d2b36;
  --muted: #5d6b78;
  --line: #e8ecef;
  --cream: #fffaf3;
  --navy: #173d52;
  --card: #ffffff;
  --shadow: 0 10px 28px rgba(23, 61, 82, 0.10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 90% -10%, #e6f6f3 0%, transparent 55%),
    radial-gradient(900px 400px at -10% 20%, #fff1ea 0%, transparent 50%),
    var(--cream);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-d); }
h1, h2, h3 {
  font-family: "Poppins", "DM Sans", sans-serif;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* Tester banner */
.banner {
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: 0.92rem;
  padding: 0.7rem 1.25rem;
  letter-spacing: 0.01em;
}
.banner strong { font-weight: 700; }

/* Header */
header {
  background: rgba(255, 250, 243, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--navy);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.wm-dots {
  width: 0.95em; height: 0.95em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0.42em 0 0 var(--warm);
  margin-right: 0.45em;
  flex: none;
}
nav { display: flex; gap: 1.15rem; flex-wrap: wrap; }
nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
nav a:hover { color: var(--navy); }

/* Hero */
.hero { padding: 3rem 0 2.25rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-d);
  margin: 0 0 0.65rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.hero h1::after {
  content: "";
  display: block;
  width: 52px;
  height: 5px;
  border-radius: 5px;
  background: var(--warm);
  margin-top: 0.75rem;
}
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.5rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-warm { background: var(--warm); color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn-block { width: 100%; }

.media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0e2430;
}
.media video {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
.media video.vid-v { display: none; }

.mascot-row {
  display: flex;
  justify-content: flex-start;
  gap: 0.35rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.mascot-row img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(23,61,82,0.12);
}

/* Sections */
section { padding: 1.25rem 0 3rem; }
.section-head { max-width: 40rem; margin-bottom: 1.75rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
.section-head h2::after {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
  margin-top: 0.4rem;
}
.section-head p { color: var(--muted); margin: 0.7rem 0 0; }

/* Kit grid */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(23, 61, 82, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-cover {
  position: relative;
  aspect-ratio: 3 / 3.7;
  overflow: hidden;
  background: #d9e3e8;
}
.card-cover img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.card-cover .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(23, 61, 82, 0.86);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}
.card-mascot {
  position: absolute;
  right: 10px;
  bottom: -28px;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.18));
}
.card-body {
  padding: 2rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 0.4rem; }
.card .desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  flex: 1;
}
.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  margin-bottom: 0.9rem;
}
.price {
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #c45c4a;
}
.free {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--accent-d);
  font-size: 0.95rem;
}

/* Bundle */
.bundle {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: none;
}
.bundle .thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 1.4rem;
  align-content: center;
  background: linear-gradient(160deg, #1b4a5e 0%, #173d52 100%);
}
.bundle .thumbs img {
  width: 100%;
  aspect-ratio: 3 / 3.7;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.bundle .thumbs img:last-child { grid-column: 4; }
.bundle-body { padding: 1.75rem 1.6rem; display: flex; flex-direction: column; }
.bundle .eyebrow { color: var(--sun); }
.bundle h3 { color: #fff; font-size: 1.55rem; }
.bundle .desc { color: rgba(255,255,255,0.82); }
.bundle .price { color: rgba(255,255,255,0.65); text-decoration-color: var(--warm); }
.bundle .free { color: #9eebc8; }

/* Course teaser */
.course {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.75rem 1.6rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  box-shadow: 0 6px 18px rgba(23, 61, 82, 0.06);
}
.course-mark {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: var(--warm-soft);
  display: flex; align-items: center; justify-content: center;
}
.course-mark img { width: 64px; height: 64px; object-fit: contain; }
.course h2 { font-size: 1.45rem; margin: 0 0 0.3rem; }
.course h2::after { display: none; }
.course p { margin: 0; color: var(--muted); }
.soon {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-d);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
footer .feedback {
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
footer .disclaimer { max-width: 46rem; }
footer .fine { font-size: 0.85rem; margin-top: 0.75rem; }

/* Viewport breakpoints are at the end of this file so they override component rules. */

/* How to use your kit */
.how-kit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(23, 61, 82, 0.06);
  padding: 1.35rem 1.5rem 1.25rem;
  margin: 0 0 1.75rem;
}
.how-kit .eyebrow { margin-bottom: 0.35rem; }
.how-kit h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1rem;
}
.how-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem 1.1rem;
}
.how-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}
.how-n {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-steps strong { color: var(--navy); display: block; font-size: 0.98rem; line-height: 1.35; }
.how-steps span { color: var(--muted); font-size: 0.9rem; }
.how-rest {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

/* Coming-soon kit cards (visible, not downloadable) */
.card.coming .card-cover img.cover { filter: saturate(0.88); }
.card.coming .badge { background: rgba(23, 61, 82, 0.72); }
.soon-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  padding: 0.75rem 1.2rem;
  font-size: 0.78rem;
  background: var(--accent-soft);
  color: var(--accent-d);
  box-sizing: border-box;
}
.soon-light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  margin-top: 0.2rem;
  align-self: flex-start;
}
.how-rest a {
  color: var(--accent-d);
  font-weight: 700;
}

/* v7: core kit + add-ons layout, approved prices */
.price { text-decoration: none; color: var(--navy); }
.price.was {
  color: var(--muted);
  font-size: 1rem;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #c45c4a;
}
.price.now { font-size: 1.3rem; }
.launch { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.tester-free { margin: -0.35rem 0 0.9rem; }
.bundle .price { color: #fff; }
.bundle .price.now { font-size: 1.5rem; }
.bundle .launch { color: rgba(255,255,255,0.75); }
.needs {
  margin: 0 0 0.35rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-d);
}
.kit-grid.core { grid-template-columns: 1fr; margin-bottom: 2rem; }
.card.featured {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}
.card.featured .card-cover { aspect-ratio: auto; height: 100%; min-height: 360px; }
.card.featured .card-mascot { bottom: 14px; right: 14px; width: 84px; height: 84px; }
.card.featured .card-body { padding: 1.75rem 1.75rem 1.6rem; justify-content: center; }
.card.featured h3 { font-size: 1.5rem; }
.card.featured .desc { flex: 0 0 auto; font-size: 1rem; }
.card.featured .btn-block { align-self: flex-start; min-width: 240px; }
.addons-head { margin: 0 0 1rem; }
.addons-head h3 { font-size: 1.3rem; margin: 0 0 0.25rem; }
.addons-head p { color: var(--muted); margin: 0; }
.kit-grid.addons { grid-template-columns: repeat(4, 1fr); }
.bundle .thumbs { grid-template-columns: repeat(3, 1fr); }
.bundle .thumbs img:last-child { grid-column: auto; }
.how-addon { margin-top: 0.6rem; }

/* ---- Responsive layouts (must follow component rules) ---- */

/* Tablets: two kit columns; stack the hero and library band */
@media (max-width: 900px) {
  .hero-grid,
  .bundle { grid-template-columns: 1fr; }
  .kit-grid { grid-template-columns: repeat(2, 1fr); }
  .bundle .thumbs {
    grid-template-columns: repeat(7, 1fr);
    padding-bottom: 0.25rem;
  }
  .bundle .thumbs img:last-child { grid-column: auto; }
}

/* Phones: one kit column, stacked how-to, 44px taps, no sideways scroll */
@media (max-width: 640px) {
  body { font-size: 16px; }

  .wrap { padding: 0 1rem; }

  .banner {
    font-size: 1rem;
    line-height: 1.45;
    padding: 0.75rem 1rem;
  }

  .brand-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.75rem;
    padding: 0.45rem 0 0.35rem;
  }
  .wordmark {
    min-height: 44px;
    font-size: 1.0625rem;
  }
  nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.15rem;
  }
  nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 0.7rem;
    font-size: 1rem;
  }

  .hero { padding: 1.5rem 0 1.75rem; }
  .hero h1 { font-size: 2.05rem; }
  .lede {
    font-size: 1.0625rem;
    margin-bottom: 1.25rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .btn {
    min-height: 44px;
    font-size: 1rem;
    padding: 0.75rem 1.15rem;
  }
  .cta-row .btn { width: 100%; }

  .mascot-row { gap: 0.3rem; margin-top: 1.15rem; }
  .mascot-row img { width: 44px; height: 44px; }

  /* Prefer the vertical cut on narrow portrait screens */
  .media video.vid-h { display: none; }
  .media video.vid-v { display: block; }
  .media,
  .card,
  .bundle,
  .how-kit,
  .course { max-width: 100%; }

  section { padding: 1rem 0 2.25rem; }
  .section-head { margin-bottom: 1.25rem; }
  .section-head h2 { font-size: 1.7rem; }
  .section-head p { font-size: 1rem; }

  .how-kit { padding: 1.15rem 1rem 1.15rem; }
  .how-kit h3 { font-size: 1.3rem; }
  .how-steps {
    grid-template-columns: 1fr;
    margin-bottom: 0.85rem;
  }
  .how-steps li { padding: 0.95rem 1rem; }
  .how-n { width: 32px; height: 32px; }
  .how-steps strong,
  .how-steps span,
  .how-rest { font-size: 1rem; }

  .kit-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .card h3 { font-size: 1.2rem; }
  .card .desc { font-size: 1rem; }
  .card-body { padding: 2rem 1.15rem 1.2rem; }

  /* Big full-width kit buy buttons */
  .card .btn-block {
    width: 100%;
    min-height: 52px;
    font-size: 1.125rem;
    padding: 0.95rem 1.2rem;
  }
  .soon-block {
    min-height: 44px;
    font-size: 0.8125rem;
  }

  .bundle .thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 1rem;
  }
  .bundle-body { padding: 1.35rem 1.15rem 1.4rem; }
  .bundle h3 { font-size: 1.4rem; }
  .bundle .desc { font-size: 1rem; }

  .course { grid-template-columns: 1fr; padding: 1.35rem 1.15rem; }
  .course h2 { font-size: 1.3rem; }
  .course p { font-size: 1rem; }

  footer { font-size: 1rem; padding: 1.5rem 0 2rem; }
  footer .fine { font-size: 0.95rem; }
}

/* v7 responsive: core card + add-on grid */
@media (max-width: 1100px) {
  .kit-grid.addons { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .bundle .thumbs { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 640px) {
  .card.featured { display: flex; flex-direction: column; }
  .card.featured .card-cover { aspect-ratio: 3 / 3.7; height: auto; min-height: 0; }
  .card.featured .card-mascot { bottom: -28px; right: 10px; width: 72px; height: 72px; }
  .card.featured .card-body { padding: 2rem 1.15rem 1.2rem; }
  .card.featured h3 { font-size: 1.3rem; }
  .card.featured .btn-block { align-self: stretch; min-width: 0; }
  .kit-grid.addons { grid-template-columns: 1fr; }
  .bundle .thumbs { grid-template-columns: repeat(5, 1fr); gap: 5px; }
}

/* v9: Get Grok Bot link in How to use */
.getbot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin: 0.85rem 0 0.2rem; }
.getbot-note { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 640px) {
  .getbot-row { flex-direction: column; align-items: stretch; }
  .getbot-btn { width: 100%; }
  .getbot-note { text-align: center; }
}

/* Buy-button preview: license notes and bundle CTA */
.license-line {
  margin: 0.7rem 0 0;
  color: var(--ink);
  font-size: 0.98rem;
}
.license-note {
  margin: -0.35rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.license-note-light {
  color: rgba(255,255,255,0.8);
}
.bundle .btn-block {
  margin-top: 0.15rem;
  align-self: flex-start;
  width: auto;
  min-width: 240px;
}
@media (max-width: 640px) {
  .bundle .btn-block {
    align-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    font-size: 1.125rem;
  }
}

/* Template-link delivery (Nov 13): big steps, FAQ, a11y helpers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.requires-line { margin: 1rem 0 0; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.7rem 0.9rem; max-width: 36rem; }
.big-steps { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.big-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(23, 61, 82, 0.06); padding: 1.3rem 1.2rem; display: flex; flex-direction: column; gap: 0.7rem; }
.big-n { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; }
.big-steps h3 { font-size: 1.3rem; margin: 0 0 0.3rem; }
.big-steps p { margin: 0; font-size: 1.05rem; color: var(--ink); }
.after-steps { background: var(--accent-soft); border-radius: var(--radius); padding: 1.2rem 1.4rem; font-size: 1.05rem; }
.after-steps p { margin: 0 0 0.7rem; }
.after-steps p:last-child { margin-bottom: 0; }
.inline-btn { font-weight: 700; }
.faq { display: grid; gap: 0.75rem; max-width: 50rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 1.2rem; }
.faq summary { cursor: pointer; font-family: "Poppins", sans-serif; font-weight: 600; color: var(--navy); font-size: 1.1rem; padding: 1rem 0; list-style-position: outside; min-height: 44px; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 0.7rem; }
.faq details p { margin: 0 0 0.8rem; font-size: 1.02rem; }
@media (max-width: 900px) { .big-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .big-steps { grid-template-columns: 1fr; }
  .big-steps li { flex-direction: row; align-items: flex-start; }
  .big-n { flex: none; width: 44px; height: 44px; font-size: 1.3rem; }
  .faq summary { font-size: 1.05rem; }
}

/* Subtle checkout line under buy areas */
.checkout-note { margin: 0.55rem 0 0; font-size: 0.82rem; color: var(--muted); }
.checkout-note-light { color: rgba(255,255,255,0.72); }
.checkout-note-center { text-align: center; margin: -0.4rem 0 1.6rem; }
