/* =========
   Base Theme
   ========= */
:root {
  --bg: #f7f8fa;
  --bg-soft: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e2e4e8;

  --primary: #ff5a27;
  --primary-deep: #e2314b;
  --primary-soft: #ffe1d5;

  --accent: #2563eb;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-subtle: 0 6px 18px rgba(15, 23, 42, 0.08);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #fff7ed 0, #f7f8fa 40%, #eef2ff 100%);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* =========
   Layout
   ========= */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========
   Header / Nav
   ========= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 248, 250, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 228, 232, 0.75);
}

/* Home-only secondary nav for in-page anchors. Sticks directly below the
   primary header on index.html. Hidden on small screens since mobile
   users scroll the page naturally. */
.home-subnav {
  position: sticky;
  /* Measured at runtime by the inline script on index.html; falls back
     to a reasonable estimate if JS hasn't set it yet. */
  top: var(--site-header-height, 4.25rem);
  z-index: 39;  /* one below the primary header */
  background: rgba(247, 248, 250, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 228, 232, 0.6);
}
.home-subnav-inner {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center; /* center the link group horizontally */
  flex-wrap: wrap;
  padding: 0.55rem 0.25rem;
  font-size: 0.85rem;
}
.home-subnav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.home-subnav a:hover,
.home-subnav a:focus-visible {
  color: var(--text);
}
@media (max-width: 768px) {
  /* Horizontal scroll strip on mobile so all anchors stay on one row
     without wrapping. Links are reachable via swipe. The top offset is
     handled by --site-header-height (measured at runtime), no override
     needed here. */
  .home-subnav-inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  .home-subnav-inner::-webkit-scrollbar { display: none; }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.25rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Wrap logo + name in a link so clicking the logo always goes home. */
.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.nav-logo-link:hover,
.nav-logo-link:focus-visible {
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  box-shadow: var(--shadow-subtle);
  background: linear-gradient(135deg, var(--primary-deep), #ffa51a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 650;
  font-size: 1rem;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  padding-bottom: 0.1rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-deep), #ffa51a);
  transition: width 0.18s ease-out;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =========
   Hamburger / Mobile Nav
   ========= */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-hamburger.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-menu {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s ease;
}

.nav-mobile-menu.is-open {
  max-height: 600px;
  border-top: 1px solid rgba(226, 228, 232, 0.75);
}

.nav-mobile-menu a {
  padding: 0.8rem 0.25rem;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid rgba(226, 228, 232, 0.4);
}

.nav-mobile-menu a:last-child {
  border-bottom: none;
  padding-bottom: 1.1rem;
}

.nav-mobile-menu a:hover {
  color: var(--accent);
}

.nav-mobile-cta {
  display: inline-flex !important;
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.48rem 1.1rem !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600;
  font-size: 0.88rem !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary-deep), #c0392b);
  text-decoration: none;
  border-bottom: none !important;
}

.nav-pill {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
  display: none;
}

.nav-pill span {
  font-weight: 600;
  color: var(--primary-deep);
}

.btn-primary-sm {
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-deep), #ffa51a);
  box-shadow: 0 12px 28px rgba(248, 113, 113, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(248, 113, 113, 0.4);
}

.btn-primary-sm:active {
  transform: translateY(0);
  box-shadow: var(--shadow-subtle);
}

/* Header button labels (swap on small screens) */
.btn-label-full { display: inline; }
.btn-label-short { display: none; }

.button {
  background: linear-gradient(45deg, #ff5a27, #ff9f00);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  opacity: 0.9;
}

/* =========
   Hero
   ========= */

.hero {
  padding: 3.25rem 0 2.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.75rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  background: rgba(255, 237, 213, 0.9);
  border: 1px solid rgba(251, 146, 60, 0.35);
  color: #9a3412;
  margin-bottom: 0.9rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-deep), #ffa51a);
}

.hero-title {
  font-size: clamp(2.1rem, 3vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-deep), #ffa51a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.3rem;
}

.btn-primary {
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.6rem;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-deep), #ffa51a);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-subtle);
}

.btn-ghost {
  border-radius: var(--radius-pill);
  padding: 0.72rem 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-ghost:hover {
  border-color: var(--primary-deep);
  color: var(--primary-deep);
  background: #ffffff;
}

.hero-footnote {
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  padding: 1.35rem 1.35rem 1.1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  position: relative;
  overflow: hidden;
}

.hero-card-tag {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero-card-main {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #f9fafb;
  color: #4b5563;
}

.pill.accent {
  border-color: rgba(248, 113, 113, 0.2);
  background: #fff7ed;
  color: #b91c1c;
}

.hero-metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-metric {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(251, 146, 60, 0.15), transparent 60%),
              radial-gradient(circle at 100% 0, rgba(248, 113, 113, 0.16), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* =========
   Hero Video
   ========= */

.hero-video .demo-video-wrap {
  border-radius: 22px;
}

.hero-video .demo-video-wrap {
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-video-caption {
  padding: 0.5rem 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  max-width: 222px;
  margin: 0 auto;
}

/* =========
   Demo Video (shared)
   ========= */

.demo-video-wrap {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  aspect-ratio: 390 / 844;
  max-height: 480px;
  margin: 0 auto;
  background: #000;
}

.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========
   Demo Showcase — alternating rows
   ========= */

.demo-showcase {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.demo-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.demo-row--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}

.demo-row--reverse .demo-row-video {
  order: 2;
}

.demo-row--reverse .demo-row-text {
  order: 1;
}

.demo-row-text .feature-label {
  margin-bottom: 0.3rem;
}

.demo-row-text .feature-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.demo-row-text .feature-body {
  margin-bottom: 0;
}

/* =========
   Sections
   ========= */

section {
  padding: 2.5rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 650;
  margin-bottom: 0.3rem;
}

.section-subtitle {
  font-size: 0.95rem;
  max-width: 30rem;
  margin: 0 auto;
  color: var(--muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-subtle);
}

.feature-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b21a8;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.feature-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.feature-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.feature-meta {
  font-size: 0.78rem;
  color: #9ca3af;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  padding: 0.35rem 0.8rem;
  background: rgba(239, 246, 255, 0.9);
  border-radius: 999px;
  color: #1d4ed8;
  border: 1px solid rgba(191, 219, 254, 0.9);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========
   Footer
   ========= */

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(226, 228, 232, 0.8);
  background: rgba(248, 250, 252, 0.98);
}

.footer-inner {
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-affiliate {
  width: 100%;
  font-size: 0.75rem;
  color: var(--muted);
  order: 1;
}

.footer-affiliate a {
  color: var(--accent);
  text-decoration: underline;
}

.footer-affiliate a:hover {
  color: var(--text);
}

/* =========
   LastList page specifics
   ========= */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: flex-start;
}

.card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-subtle);
  padding: 1.2rem 1.3rem;
}

.card-header {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.card-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.list-clean {
  padding-left: 1.1rem;
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.list-clean li {
  margin-bottom: 0.25rem;
}

/* =========
   Content Steps (How it works)
   ========= */

.content-steps {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.content-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-subtle);
  padding: 1.25rem 1.5rem;
}

.content-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-deep), #ffa51a);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.content-step-body .feature-title {
  margin-bottom: 0.4rem;
}

.content-step-body .feature-body {
  margin-bottom: 0;
}

/* =========
   FAQ
   ========= */

.faq-list {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.faq-question {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: "\2212";
}

.faq-answer {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
}

/* =========
   Responsive
   ========= */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-row,
  .demo-row--reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-row--reverse .demo-row-video {
    order: 0;
  }

  .demo-row--reverse .demo-row-text {
    order: 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-cta-btn {
    display: none;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  /* Header tighten for small screens */
  .nav { padding: 0.65rem 0.1rem; gap: 0.75rem; }
  .nav-left { gap: 0.55rem; }
  .logo-tagline { display: none; }
  .logo-name { font-size: 0.95rem; }
  .btn-primary-sm { padding: 0.42rem 0.85rem; font-size: 0.84rem; }
  .lastlist-nav-icon { width: 34px; height: 34px; border-radius: 10px; }

  .shell {
    padding: 0 1rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    padding: 1.1rem 1rem 1rem;
  }
}
@media (max-width: 420px) {
  /* Extra-tight phones: shorten CTA label */
  .btn-label-full { display: none; }
  .btn-label-short { display: inline; }
}

/* =========
   LastList page theming
   ========= */

/* Slightly different background feel for LastList */
body.lastlist-body {
  background: radial-gradient(circle at top left, #ecfdf5 0, #f7f8fa 45%, #e0f2fe 100%);
}

/* Make the LastList logo block feel more app-like */
.logo-mark--lastlist {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
}

/* Subtle tweak to the hero card on LastList */
.page--lastlist .hero-card {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 18px 45px rgba(15, 118, 110, 0.15);
}

/* LastList icon in the hero header */
.lastlist-hero-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
}

/* Make the LastList hero pills lean more green/blue */
.page--lastlist .pill.accent {
  border-color: rgba(34, 197, 94, 0.35);
  background: #ecfdf5;
  color: #166534;
}
/* Nav icon for LastList page */
.lastlist-nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
  flex-shrink: 0;
}
.braatz-nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  box-shadow: var(--shadow-subtle);
  flex-shrink: 0;
}

/* =========
   Partners page — Retailer grid
   ========= */

.retailer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.retailer-list {
  padding-left: 0;
  list-style: none;
}

.retailer-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.retailer-list li:last-child {
  border-bottom: none;
}

.retailer-detail {
  width: 100%;
  font-size: 0.8rem;
  color: #9ca3af;
}

.retailer-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.retailer-badge--live {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.retailer-badge--discovery {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.retailer-badge--handoff {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

/* =========
   Partners page — Forms
   ========= */

.form-card {
  max-width: 42rem;
  margin: 0 auto;
}

.partner-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--text);
}

.input {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input::placeholder {
  color: #c0c5cc;
}

.textarea {
  resize: vertical;
  min-height: 3rem;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.15rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.form-footnote {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .retailer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ─── Blog Preview (homepage) ─── */
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.blog-preview-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.blog-preview-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: var(--accent, #6366f1);
}

.blog-preview-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #6366f1);
}

.blog-preview-title {
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--text, #111);
  margin: 0;
}

.blog-preview-excerpt {
  font-size: 0.85rem;
  color: var(--muted, #6b7280);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.blog-preview-link {
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--accent, #6366f1);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .blog-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Blog Listing Page ─── */
.blog-listing {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0 1rem 3rem;
}

.blog-listing-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.blog-listing-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: var(--accent, #6366f1);
}

.blog-listing-card .blog-preview-label {
  margin-bottom: 0.1rem;
}

.blog-listing-card h2 {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0;
  color: var(--text, #111);
  line-height: 1.3;
}

.blog-listing-card p {
  font-size: 0.88rem;
  color: var(--muted, #6b7280);
  margin: 0;
  line-height: 1.5;
}

.blog-listing-card .read-more {
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--accent, #6366f1);
  margin-top: 0.25rem;
}

/* ─── Picks Page Layout (Idea Lists primary + Limited Offers rail) ─── */
.picks-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}
.picks-layout--no-rail {
  grid-template-columns: 1fr;
}
.picks-layout__primary {
  min-width: 0;
}
.picks-layout__primary .blog-listing {
  max-width: none;
  padding: 0;
}
.picks-layout__rail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.picks-rail__heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
  margin: 0.4rem 0 0.25rem;
}
.picks-offers {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.offer-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.offer-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: #f59e0b;
}
.offer-card__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b45309;
}
.offer-card__discount {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text, #111);
}
.offer-card__brand {
  font-size: 0.82rem;
  color: var(--muted, #6b7280);
}
.offer-card__desc {
  font-size: 0.85rem;
  color: var(--muted, #6b7280);
  margin: 0;
  line-height: 1.5;
}
.offer-card__expires {
  font-size: 0.78rem;
  color: #b45309;
  font-style: italic;
}
.offer-card .read-more {
  font-size: 0.82rem;
  font-weight: 550;
  color: #b45309;
  margin-top: 0.25rem;
}
@media (max-width: 768px) {
  .picks-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── Blog Post Body ─── */
.blog-post {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.blog-post h1 {
  font-size: 1.7rem;
  font-weight: 750;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.blog-post .blog-post-meta {
  font-size: 0.82rem;
  color: var(--muted, #6b7280);
  margin-bottom: 2rem;
}

.blog-post h2 {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 2rem 0 0.5rem;
}

.blog-post p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text, #111);
  margin-bottom: 1rem;
}

.blog-post ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.blog-post ul li {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text, #111);
  margin-bottom: 0.25rem;
}

.blog-post-cta {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: #f0f1ff;
  border-radius: 12px;
  border: 1px solid rgba(99,102,241,0.2);
  text-align: center;
}

.blog-post-cta p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* ─── FAQ Section (how-it-works) ─── */
.faq-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border, #e5e5e5);
}

.faq-items-prose {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item-prose h3 {
  font-size: 1rem;
  font-weight: 650;
  margin: 0 0 0.35rem;
  color: var(--text, #111);
}

.faq-item-prose p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted, #6b7280);
  margin: 0;
}

/* ─── Compare Grid (replaces table) ─── */
.compare-check { color: #16a34a; font-weight: 700; font-size: 1rem; }
.compare-x     { color: #dc2626; font-weight: 700; font-size: 1rem; }
.compare-partial { color: #d97706; font-size: 0.82rem; }

.capp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  align-items: start;
}

@media (max-width: 700px) {
  .capp-grid { grid-template-columns: 1fr; }
}

.capp-card {
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 12px;
  overflow: hidden;
}

.capp-featured {
  border-color: var(--accent, #6366f1);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}

.capp-header {
  padding: 0.85rem 1rem;
  background: #f3f4f6;
  border-bottom: 1px solid var(--border, #e5e5e5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.capp-featured .capp-header {
  background: rgba(99,102,241,0.08);
}

.capp-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text, #111);
}

.capp-featured .capp-name {
  color: var(--accent, #6366f1);
}

.capp-badge {
  font-size: 0.68rem;
  font-weight: 650;
  background: var(--accent, #6366f1);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  white-space: nowrap;
}

.capp-features {
  list-style: none;
  padding: 0.75rem 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.capp-features li {
  font-size: 0.83rem;
  line-height: 1.4;
  color: var(--text, #111);
}

.capp-no { color: var(--muted, #6b7280) !important; }
.capp-partial { color: #d97706 !important; }

/* Legacy cgrid removed — replaced by capp-grid above */
.cgrid {
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 10px;
  overflow: hidden;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}

.cgrid-head,
.cgrid-row {
  display: grid;
  grid-template-columns: 26% repeat(4, 1fr);
}

.cgrid-head {
  background: #f3f4f6;
  border-bottom: 2px solid var(--border, #e5e5e5);
}

.cgrid-head > div {
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted, #6b7280);
}

.cgrid-head .cgrid-featured {
  background: rgba(99,102,241,0.1);
  color: var(--accent, #6366f1);
}

.cgrid-row {
  border-bottom: 1px solid var(--border, #e5e5e5);
}

.cgrid-row:last-child { border-bottom: none; }

.cgrid-row:nth-child(even) { background: #fafafa; }

.cgrid-feature,
.cgrid-val {
  padding: 0.6rem 0.85rem;
  line-height: 1.4;
}

.cgrid-feature {
  font-weight: 500;
  color: var(--text, #111);
  font-size: 0.85rem;
}

.cgrid-val { color: var(--text, #111); }

.cgrid-val.cgrid-featured {
  background: rgba(99,102,241,0.04);
}

/* ─── Compare Grid: mobile layout ─── */
@media (max-width: 600px) {
  .cgrid {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .cgrid-head { display: none; }

  .cgrid-row {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border, #e5e5e5);
  }

  .cgrid-row:nth-child(even) { background: transparent; }

  .cgrid-feature {
    padding: 0 0 0.6rem;
    font-weight: 650;
    font-size: 0.9rem;
    color: var(--text, #111);
  }

  .cgrid-val {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.85rem;
    border-top: 1px solid #f0f0f0;
  }

  .cgrid-val.cgrid-featured {
    background: none;
  }

  .cgrid-val::before {
    content: attr(data-app);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted, #6b7280);
    flex: 0 0 38%;
  }

  .cgrid-val.cgrid-featured::before {
    color: var(--accent, #6366f1);
  }
}