/* Product, plan, comparison, and content-page components */
.product-card[hidden],
.accordion-panel[hidden] {
  display: none;
}

.product-actions .details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--button-soft-bg);
  font-weight: 850;
}

.product-actions .details-btn:hover,
.product-actions .details-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #dff2f2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent-dark);
}

.product-hero {
  padding-top: 22px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 20px;
  align-items: stretch;
}

.product-hero-copy,
.product-hero-panel,
.plan-card,
.related-card,
.info-hero-card,
.info-card,
.comparison-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.product-hero-copy {
  min-height: 330px;
  display: grid;
  align-content: center;
  padding: 36px;
  border-radius: var(--radius-xl);
}

.product-hero-copy h1,
.info-hero-card h1 {
  margin: 14px 0 0;
  color: #1f4a54;
  font-size: clamp(2.45rem, 3.8vw, 3.9rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.product-hero-lede,
.info-hero-card > p {
  max-width: 690px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.product-hero-actions,
.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.product-hero-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  padding: 20px;
  border-radius: var(--radius-xl);
}

.product-screenshot {
  width: 100%;
  aspect-ratio: 760 / 460;
  object-fit: contain;
  max-height: 300px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-soft);
}

.product-panel-label {
  margin-top: 22px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.product-hero-panel > strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: clamp(2.55rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.product-hero-panel > small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 750;
}

.hero-mini-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-mini-features span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: .8rem;
  font-weight: 850;
}

.plans-section {
  background: var(--surface-soft);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.plans-grid.single-plan {
  max-width: 500px;
  grid-template-columns: 1fr;
  margin-inline: auto;
}

.plans-grid.two-plan {
  max-width: 1020px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-inline: auto;
}

.plan-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.plan-card.popular {
  border-color: var(--button-soft-border);
}

.plan-badge,
.comparison-choice {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--button-bg);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.plan-card h3 {
  margin: 16px 0 0;
  font-size: 1.35rem;
  letter-spacing: -.03em;
}

.plan-description {
  min-height: 52px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.plan-price {
  display: grid;
  gap: 5px;
  margin-top: 20px;
}

.plan-price strong {
  color: #1f4a54;
  font-size: clamp(2.35rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.plan-price span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 750;
}

.plan-feature-list {
  display: grid;
  gap: 11px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.plan-feature-list li {
  position: relative;
  padding-left: 25px;
  color: var(--ink-soft);
  font-weight: 700;
  line-height: 1.5;
}

.plan-feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 950;
}

.plan-card .primary-btn {
  margin-top: auto;
}

.comparison-section {
  background: var(--page);
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.comparison-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
  padding: 17px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.45;
  text-align: left;
  vertical-align: middle;
}

.comparison-table tr > :last-child {
  border-right: 0;
}

.comparison-table tfoot tr:last-child > * {
  border-bottom: 0;
}

.comparison-table thead th {
  color: var(--ink);
  background: var(--surface-soft);
}

.comparison-table thead th strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.comparison-table tbody th,
.comparison-table tfoot th {
  color: var(--ink);
  background: #f8fbfb;
  font-weight: 850;
}

.comparison-table .is-featured {
  background: #e8f5f3;
}

.comparison-table a,
.comparison-card > a,
.text-link {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.comparison-cards {
  display: none;
}

.comparison-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}

.detail-section {
  padding: 70px 0;
}

.detail-faq-grid {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 40px;
  align-items: start;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: border-color .16s ease;
}

.related-card:hover,
.related-card:focus-visible {
  border-color: var(--accent);
}

.related-card img {
  width: 74px;
  height: 74px;
  margin-bottom: 8px;
  object-fit: contain;
}

.related-card span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.related-card strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.related-card small {
  color: var(--accent-dark);
  font-weight: 800;
}

.product-not-found {
  max-width: 700px;
  margin-inline: auto;
}

.info-hero {
  padding-bottom: 34px;
}

.info-hero-card {
  padding: clamp(32px, 6vw, 64px);
  border-radius: var(--radius-xl);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.info-card {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.info-card h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.45rem;
  letter-spacing: -.03em;
}

.info-card p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.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;
}

@media (max-width: 960px) {
  .product-hero-grid,
  .detail-faq-grid {
    grid-template-columns: 1fr;
  }

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

  .product-hero-copy {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .product-hero {
    padding-top: 18px;
  }

  .product-hero-copy,
  .product-hero-panel,
  .plan-card,
  .info-card {
    padding: 23px;
  }

  .product-hero-copy h1,
  .info-hero-card h1 {
    font-size: clamp(2.05rem, 9.8vw, 2.85rem);
  }

  .product-screenshot {
    max-height: 210px;
    padding: 8px;
  }

  .hero-mini-features {
    margin-top: 14px;
  }

  .product-hero-actions,
  .info-actions {
    display: grid;
  }

  .product-hero-actions a,
  .info-actions a {
    width: 100%;
  }

  .plans-grid,
  .plans-grid.two-plan,
  .related-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table-wrap {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table {
    min-width: 680px;
  }

  .comparison-cards {
    display: none;
  }


  .detail-section {
    padding: 54px 0;
  }
}

/* Homepage FAQ - uses existing accordion design */
.faq-section .accordion {
  max-width: 900px;
  margin: 0 auto;
}
/* Hero heading */
.hero h1 {
  max-width: 720px;
  color: #1f4a54;
  font-size: clamp(2.65rem, 3.4vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 690px;
}

.hero.section-pad {
  padding-top: 18px;
}

@media (max-width: 760px) {
  .hero.section-pad {
    padding-top: 12px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 7.4vw, 2.45rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
  }

  .hero-lede {
    font-size: 0.95rem;
    line-height: 1.65;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: clamp(1.72rem, 7.8vw, 2.18rem);
    line-height: 1.14;
  }
}

/* Plan badges */
.plan-badge-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.plan-badge-row .plan-badge {
  align-self: auto;
}

.save-badge {
  margin-left: auto;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid var(--button-soft-border);
}

/* Product Overview and Before You Order */
.lm-product-insight-section {
  position: relative;
}

.lm-product-insight-section.section-pad.compact {
  padding: 58px 0;
}

.lm-before-order {
  background: var(--surface-soft);
}

.lm-product-insight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lm-product-insight-card {
  min-width: 0;
  min-height: 178px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: var(--surface-soft);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.lm-before-order .lm-product-insight-card {
  background: var(--page);
}

.lm-product-insight-card:hover {
  transform: translateY(-2px);
  border-color: var(--button-soft-border);
  background: var(--accent-soft);
}

.lm-product-insight-icon {
  width: 56px;
  height: 56px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--button-soft-border);
  border-radius: 17px;
  color: var(--accent);
  background: var(--surface);
}

.lm-product-insight-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lm-product-insight-card h3 {
  margin: 3px 0 8px;
  color: #1f4a54;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.lm-product-insight-card p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.58;
}

@media (max-width: 1080px) {
  .lm-product-insight-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lm-product-insight-card {
    min-height: 156px;
  }
}

@media (max-width: 760px) {
  .lm-product-insight-section.section-pad.compact {
    padding: 48px 0;
  }

  .lm-product-insight-strip {
    grid-template-columns: 1fr;
    padding: 9px;
    border-radius: 22px;
  }

  .lm-product-insight-card {
    min-height: auto;
    padding: 18px;
  }
}

@media (max-width: 430px) {
  .lm-product-insight-card {
    gap: 12px;
    padding: 16px;
  }

  .lm-product-insight-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .lm-product-insight-icon svg {
    width: 25px;
    height: 25px;
  }
}
