:root {
  --bg-main: #f8f4ea;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-soft: #fff7ef;
  --ink: #152238;
  --ink-muted: #4b5a73;
  --accent: #ff5a2a;
  --accent-deep: #e64616;
  --accent-alt: #00a89a;
  --border: rgba(21, 34, 56, 0.12);
  --shadow: 0 20px 50px rgba(17, 32, 52, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1120px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Sora", "Segoe UI", sans-serif;
  background: linear-gradient(155deg, #fff6e6 0%, #ecf8ff 48%, #f5ffef 100%);
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.page-bg {
  position: fixed;
  z-index: -1;
  filter: blur(70px);
  opacity: 0.34;
  pointer-events: none;
}

.page-bg-top {
  width: 420px;
  height: 420px;
  left: -90px;
  top: -120px;
  background: #ff8c5d;
}

.page-bg-bottom {
  width: 420px;
  height: 420px;
  right: -100px;
  bottom: -120px;
  background: #35d4ca;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.nav-row {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 10px 0 5px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.brand-name {
  font-family: "VT323", monospace;
  font-size: clamp(2rem, 4.8vw, 2.6rem);
  line-height: 1;
  letter-spacing: 1px;
  color: #0f2239;
}

.promo-tag {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: #11263f;
  color: #fff;
  white-space: nowrap;
}

main {
  display: block;
  padding: 2.1rem 0 3.5rem;
}

.hero-stack {
  display: grid;
  gap: 1.1rem;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.promo-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.badge-alert {
  background: rgba(255, 90, 42, 0.12);
  color: var(--accent-deep);
  border: 1px solid rgba(255, 90, 42, 0.26);
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.countdown-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #082033;
  background: linear-gradient(90deg, rgba(255,90,42,0.12), rgba(0,168,154,0.06));
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(15,39,65,0.06);
}

.countdown-time {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: 8px;
  padding: 0.42rem 0.7rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.7rem, 6vw, 2.8rem);
  line-height: 1.1;
}

.hero-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.6rem;
  width: 100%;
}

.hero-title { margin: 0; }

.rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.9rem;
}

.rating-score {
  font-weight: 800;
  color: var(--accent-deep);
  font-size: 1.05rem;
}

.rating-stars {
  color: #f5b301;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.rating-reviews {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* subtitle + compact rating */
.subtitle-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: space-between;
}

.offer-copy-subtitle { margin: 0; color: var(--ink-muted); }

/* rating compact: horizontal by default (one line) */
.rating-compact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex: 0 0 auto;
  align-self: start;
  margin-top: 0.15rem;
}

.rating-compact .rating-value { font-weight: 800; color: var(--accent-deep); font-size: 0.95rem; }
.rating-compact .rating-stars { color: #f5b301; font-size: 0.85rem; letter-spacing: 0.6px; }
.rating-compact .rating-reviews { font-size: 0.78rem; color: var(--ink-muted); }

/* hero-specific override removed — rating is placed with subtitle only */

/* compact review list (desktop: inline, mobile: stacked) */
.review-mini-list { display: flex; gap: 5px; }

.review-mini { margin-top: 1rem; }

.review-mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-mini-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f7faf9;
  border: 1px solid rgba(0, 168, 154, 0.14);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}

.review-mini-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-mini-avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.review-mini-quote {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink, #1c2b2a);
}

.review-mini-who {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.review-mini-who .role { color: var(--ink-muted); }

.review-more {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-deep);
}

@media (max-width: 640px) {
  .subtitle-row { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .rating-compact {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    white-space: nowrap;
  }
  .rating-compact .rating-value,
  .rating-compact .rating-stars,
  .rating-compact .rating-reviews { font-size: 0.72rem; }
  .hero-head { grid-template-columns: 1fr; align-items: flex-start; gap:0.25rem }
  .hero-title { font-size: clamp(1.4rem, 6vw, 2rem); }
}

/* ensure review-mini is directly under subtitle on mobile */
@media (max-width: 640px) {
  .offer-copy {
    display: block;
  }

  .review-mini {
    order: 2;
    margin-top: 0.6rem;
  }

  .review-mini-list { grid-template-columns: 1fr; gap: 0.6rem; }
}

@media (max-width: 640px) {
  .hero-head {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .rating {
    align-self: flex-start;
    text-align: left;
  }
}

.hero-subtitle {
  margin: 0.8rem 0 0;
  color: var(--ink-muted);
  max-width: 70ch;
}

.chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.2rem;
  width: 100%;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(0, 168, 154, 0.28);
  background: rgba(0, 168, 154, 0.1);
  color: #136b65;
  padding: 0.48rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  width: 100%;
  max-width: none;
  display: inline-flex;
  justify-content: center;
}

/* Mobile: stack chips one under another and make them full width */
@media (max-width: 640px) {
  .chips {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 0.9rem;
  }

  .chips .chip {
    width: 100%;
    max-width: none;
    display: inline-flex;
    justify-content: center;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

.product-card {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.3rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
}

.gallery-slider {
  position: relative;
}

.gallery-viewport {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #f9f9f9;
  box-shadow: 0 8px 24px rgba(17, 32, 52, 0.08);
  touch-action: pan-y;
}

.gallery-track {
  display: flex;
  transition: transform 0.28s ease;
  will-change: transform;
}

.gallery-frame {
  flex: 0 0 100%;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: calc(50% - 20px);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(12, 27, 45, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f2741;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(17, 32, 52, 0.16);
}

.gallery-nav:hover {
  background: #fff;
}

.gallery-nav-prev {
  left: 0.5rem;
}

.gallery-nav-next {
  right: 0.5rem;
}

.gallery-dots {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 39, 65, 0.25);
  cursor: pointer;
}

.gallery-dot.is-active {
  background: var(--accent);
}

.gallery-slider.is-single .gallery-nav,
.gallery-slider.is-single .gallery-dots {
  display: none;
}

.drag-hint {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.offer-copy h2,
.offer-copy h3 {
  margin: 0;
}

.offer-copy h2 {
  font-size: clamp(1.3rem, 4.4vw, 2.1rem);
}

.offer-copy p {
  margin: 0.72rem 0 0;
  color: var(--ink-muted);
}

.price-panel {
  margin-top: 1rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.price-old {
  text-decoration: line-through;
  color: #8c98ab;
  font-weight: 700;
}

.price-new {
  font-size: clamp(1.55rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--accent-deep);
}

.price-zero {
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 168, 154, 0.12);
  color: #14635f;
}

.cta-row {
  margin-top: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border: 0;
  border-radius: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  min-height: 52px;
  padding: 0.85rem 1.2rem;
  color: #fff;
  background: linear-gradient(132deg, var(--accent), #ff7b28);
  box-shadow: 0 14px 28px rgba(255, 90, 42, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(132deg, var(--accent-deep), #f86f1b);
}

.btn-outline {
  min-height: 52px;
  padding: 0.85rem 1.2rem;
  color: #0f2741;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 39, 65, 0.25);
}

.mini-note {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.accordion {
  margin-top: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(244, 250, 255, 0.75);
}

.accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.9rem 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #10263e;
}

/* animated plus/minus icon for accordion */
.accordion-trigger .icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  position: relative;
  margin-left: 0.6rem;
}
.accordion-trigger .icon::before,
.accordion-trigger .icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
  border-radius: 2px;
}
.accordion-trigger .icon::before {
  /* horizontal bar */
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%) scaleX(1);
}
.accordion-trigger .icon::after {
  /* vertical bar */
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%) scaleY(1);
}
.accordion-trigger[aria-expanded="true"] .icon::after {
  /* hide vertical bar to form minus */
  transform: translate(-50%, -50%) scaleY(0.02);
  opacity: 0;
}
.accordion-trigger[aria-expanded="true"] .icon::before {
  transform: translate(-50%, -50%) scaleX(1.0);
}

.accordion-content {
  padding: 0 1rem 1rem;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.accordion-content ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.trust-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.75rem;
}

.trust-item {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.85rem 0.9rem;
}

.trust-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

/* Redesigned privacy + social-proof area */
.trust-grid.two-column {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.privacy-card {
  flex: 1 1 60%;
  background: linear-gradient(180deg, rgba(234,248,246,0.98), rgba(255,255,255,0.92));
  border: 1px solid rgba(0,168,154,0.12);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.privacy-inner{display:flex;gap:0.9rem;align-items:center}
.privacy-icon{flex:0 0 54px;display:flex;align-items:center;justify-content:center}
.privacy-title{display:block;font-weight:800;color:#0f2239;margin-bottom:0.15rem}
.privacy-text{margin:0;color:var(--ink-muted);font-size:0.96rem}
.privacy-text a{color:var(--accent);font-weight:700;text-decoration:none}

.social-proof{flex:0 0 180px;display:flex;align-items:center;justify-content:center}
.proof-inner{text-align:center;background:#fff;border-radius:14px;padding:0.6rem 0.8rem;border:1px solid rgba(15,39,65,0.06);box-shadow:0 8px 30px rgba(17,32,52,0.06)}
.proof-badge{font-size:1.8rem;font-weight:900;color:var(--accent-deep)}
.proof-text{font-size:0.9rem;color:var(--ink-muted);margin-top:0.25rem}

@media (max-width: 640px){
  .trust-grid.two-column{flex-direction:column;align-items:stretch}
  .social-proof{flex:none;width:100%}
  .proof-inner{display:flex;align-items:center;justify-content:space-between;padding:0.6rem}
  .proof-text{margin-top:0;margin-left:0.6rem;text-align:left}
}

.review-section {
  margin-top: 1.55rem;
}

.review-section h3 {
  margin: 0 0 0.85rem;
}

.review-grid {
  display: grid;
  gap: 0.75rem;
}

.review-card {
  border-radius: 15px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.85rem;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  object-fit: cover;
}

.review-name {
  margin: 0;
  font-weight: 700;
}

.review-role {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.83rem;
}

.review-card blockquote {
  margin: 0.72rem 0 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(12, 20, 36, 0.58);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 1rem;
  z-index: 50;
}

.modal[hidden] {
  display: none;
}

.modal.modal-visible {
  opacity: 1;
}

.modal-card {
  display: grid;
  gap: 1.2rem;
  background: #fff;
  border: 1px solid rgba(21, 34, 56, 0.15);
/* Two-column layout for product card: slider left, info column right */
@media (min-width: 880px) {
  .product-card {
    grid-template-columns: 1fr 380px;
    align-items: start;
  }
}

  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.modal-head h3 {
  margin: 0;
}

.modal-close {
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
  background: rgba(20, 36, 57, 0.08);
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.form-field {
  display: grid;
  gap: 0.3rem;
}

.form-field label {
  font-weight: 700;
  font-size: 0.86rem;
}

.form-field input {
  min-height: 48px;
  border: 1px solid rgba(12, 25, 42, 0.25);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-size: 0.94rem;
}

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.flash-error {
  margin: 0 0 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(210, 39, 39, 0.3);
  border-radius: 12px;
  background: rgba(210, 39, 39, 0.08);
  color: #8a1313;
  font-weight: 600;
}

.message-shell {
  width: min(760px, calc(100% - 2rem));
  margin: 2rem auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.message-shell h1 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.message-shell p {
  margin: 0.65rem 0;
  color: var(--ink-muted);
}

.reader-main {
  padding-top: 1.4rem;
}

.reader-loader {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(248, 244, 234, 0.95);
  display: grid;
  place-items: center;
  text-align: center;
}

.reader-loader.is-hidden {
  opacity: 0;
  transition: opacity 0.32s ease;
}

.loader-ring {
  width: 64px;
  height: 64px;
  border: 6px solid rgba(255, 90, 42, 0.2);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 0.8rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.reader-shell {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--border);
  background: rgba(243, 249, 255, 0.85);
}

.reader-toolbar button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(14, 35, 57, 0.25);
  border-radius: 12px;
  background: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.reader-progress {
  width: 100%;
  height: 6px;
  background: rgba(16, 36, 57, 0.14);
}

.reader-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  transition: width 0.18s ease;
}

.reader-track {
  overflow-x: auto;
  display: flex;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: #fff;
}

.reader-track::-webkit-scrollbar {
  display: none;
}

.reader-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 58vh;
  display: grid;
  place-items: center;
  background: #f8f8f8;
}

.reader-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.reader-note {
  margin-top: 0.9rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.completion-offer {
  margin-top: 1.3rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.completion-offer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.completion-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.offer-tile {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.95rem;
  background: #fff;
}

.offer-tile h3 {
  margin: 0;
}

.offer-tile p {
  margin: 0.45rem 0 0.65rem;
  color: var(--ink-muted);
}

.offer-main {
  display: grid;
  gap: 1rem;
}

.info-card,
.checkout-card,
.policy-card,
.cancel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.plan-grid {
  display: grid;
  gap: 0.8rem;
}

.plan-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-card.is-selected {
  border-color: rgba(255, 90, 42, 0.5);
  box-shadow: 0 10px 25px rgba(255, 90, 42, 0.15);
}

.plan-card-bestseller {
  border: 2px solid #00a89a;
  box-shadow: 0 10px 25px rgba(0, 168, 154, 0.18);
}

.plan-card-bestseller.is-selected {
  border-color: #00a89a;
  box-shadow: 0 10px 25px rgba(0, 168, 154, 0.28);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: #00a89a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 168, 154, 0.35);
}

.plan-image {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 0.7rem;
  background: #f7faf9;
}

.plan-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.plan-price {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.summary-box {
  margin: 0.95rem 0;
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(0, 168, 154, 0.08);
  border: 1px solid rgba(0, 168, 154, 0.25);
}

.summary-box p {
  margin: 0.2rem 0;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(17, 38, 63, 0.1);
  background: rgba(255, 255, 255, 0.84);
}

.footer-grid {
  padding: 1.35rem 0 1.5rem;
  display: grid;
  gap: 0.95rem;
}

.footer-title {
  margin: 0;
  font-family: "VT323", monospace;
  font-size: 1.7rem;
  letter-spacing: 0.4px;
}

.footer-copy,
.footer-contact {
  margin: 0.4rem 0 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-links a {
  color: #0f2741;
  font-weight: 700;
  text-decoration: none;
}

.policy-card h1,
.policy-card h2 {
  margin-top: 0;
}

.policy-card p,
.policy-card li {
  color: var(--ink-muted);
}

.drag-scroll.is-dragging {
  cursor: grabbing;
}

/* Mobile header fixes: allow wrapping and prevent nav overflow */
@media (max-width: 620px) {
  .nav-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-height: 56px;
    justify-content: center; /* center items horizontally on small screens */
  }

  /* center promo topline and chips on narrow screens */
  .promo-topline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .promo-topline .badge-alert,
  .promo-topline .countdown-box {
    margin: 0;
  }

  /* make badge and countdown full-width on small screens */
  .promo-topline > .badge-alert,
  .promo-topline > .countdown-box {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: center;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  .countdown-box {
    justify-content: center;
  }

  .chips {
    justify-content: center;
  }

  /* increase top spacing of product card by 20px */
  .product-card {
    margin-top: calc(1.3rem + 20px);
  }

  /* chips stacked one per line, full width on small screens */
  .chips {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .chip {
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
    white-space: nowrap;
    width: 100%;
    justify-content: center;
  }

  /* make CTA buttons full-width stacked on mobile */
  .cta-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  .brand {
    flex: 0 0 auto;
    min-width: 0; /* allow brand to shrink beneath long promo tag */
    order: 1;
    display: inline-flex;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  /* Reduce and clamp brand name on small screens, truncate if necessary */
  .brand-name {
    font-size: clamp(1rem, 6vw, 1.5rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
    max-width: calc(100% - 120px);
  }

  .promo-tag {
    flex: 0 0 auto;
    font-size: 0.72rem;
    padding: 0.45rem 0.7rem;
    order: 2;
    /* keep promo on its own line above or below brand depending on markup */
  }
  /* allow promo tag to wrap to its own line to avoid pushing content */
  .promo-tag {
    flex-basis: 100%;
    display: inline-block;
    text-align: center;
    white-space: normal;
    max-width: 100%;
    margin-top: 2px;
  }
  /* override header height variable for small screens */
  :root { --header-height: 56px; }
}

/* push content down so fixed header doesn't cover it */
body {
  padding-top: calc(var(--header-height) + 20px);
}

@media (min-width: 860px) {
  .hero-card {
    padding: 1.6rem;
  }

  .product-card {
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
    padding: 1.2rem;
  }

  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .completion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-main {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    align-items: start;
  }
}
