/* product.css */
/* Page-specific enhancements that reuse your existing palette + glass styles */

.skip-link{
    position: absolute;
    left: -999px;
    top: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-subtle);
    color: var(--color-text-main);
    text-decoration: none;
    z-index: 9999;
  }
  .skip-link:focus{ left: 12px; }
  
  .nav-list a.is-current{
    color: var(--color-text-main);
  }
  .nav-list a.is-current::after{
    transform: scaleX(1);
  }
  
  /* HERO */
  .product-hero{ padding-top: 50px; }
  .product-hero-card{ padding: clamp(1.6rem, 3vw, 2.4rem); }
  
  .product-hero__grid{
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(1rem, 2.4vw, 1.6rem);
    align-items: start;
  }
  
  .product-hero__eyebrow{
    margin: 0.75rem 0 0.35rem;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  
  .product-hero__title{
    margin: 0 0 0.6rem;
    font-size: clamp(2rem, 2.2rem + 0.5vw, 2.75rem);
    letter-spacing: -0.03em;
  }
  
  .product-hero__lead{
    margin: 0 0 1rem;
    color: var(--color-text-soft);
    font-size: var(--text-lg);
    line-height: 1.7;
    max-width: 72ch;
  }
  
  .product-hero__bullets{
    margin: 0 0 1.15rem;
    padding-left: 1.1rem;
    color: var(--color-text-soft);
    line-height: 1.7;
  }
  .product-hero__bullets li{ margin: 0.35rem 0; }
  
  .product-hero__ctas{
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.85rem;
  }
  
  .product-hero__note{
    margin: 1rem 0 0;
    color: var(--color-text-muted);
    line-height: 1.7;
  }
  
  /* TOC */
  .product-toc{
    padding: 1.25rem 1.25rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-subtle);
    position: sticky;
    top: calc(var(--stack-top) - 10px);
    max-height: calc(100vh - var(--stack-top) - 28px);
    overflow: auto;
  }
  
  .product-toc__title{
    margin: 0 0 0.6rem;
    font-size: var(--text-lg);
  }
  
  .product-toc__nav{
    display: grid;
    gap: 8px;
    margin-top: 0.5rem;
  }
  
  .product-toc__nav a{
    text-decoration: none;
    color: var(--color-text-soft);
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.65);
    box-shadow: var(--shadow-subtle);
    transition: transform .15s ease, border-color .15s ease, color .15s ease;
  }
  
  .product-toc__nav a:hover{
    transform: translateY(-1px);
    color: var(--color-text-main);
    border-color: rgba(94, 203, 255, .35);
  }
  
  .product-toc__nav a.is-active{
    color: var(--color-text-main);
    border-color: rgba(162, 117, 255, 0.30);
    background: linear-gradient(135deg, rgba(94, 203, 255, 0.16), rgba(162, 117, 255, 0.12));
  }
  
  .product-toc__chips{
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  /* Section heads */
  .product-head{
    margin-bottom: 1rem;
  }
  .product-h2{
    margin: 0.55rem 0 0.5rem;
    letter-spacing: -0.02em;
  }
  .product-lead{
    margin: 0;
    max-width: 82ch;
    color: var(--color-text-soft);
    line-height: 1.7;
  }
  
  /* Cards */
  .product-card-grid{
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  
  .product-card-grid--dense{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .product-card{
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: var(--radius-lg);
    background: #fdfefe;
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-subtle);
    padding: 14px 14px;
  }
  
  .product-card__icon{
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(94, 203, 255, 0.18), rgba(255, 255, 255, 0.10));
    border: 1px solid rgba(15,23,42,.10);
    flex: 0 0 auto;
    color: var(--color-text-main);
    font-weight: 700;
  }
  
  .product-card h3{
    margin: 0 0 .25rem 0;
    font-size: var(--text-base);
  }
  .product-card p{
    margin: 0 0 .35rem 0;
    color: var(--color-text-soft);
    line-height: 1.6;
    font-size: var(--text-sm);
  }
  
  .product-mini{
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
    color: var(--color-text-soft);
    font-size: var(--text-sm);
    line-height: 1.6;
  }
  .product-mini li{ margin: 0.25rem 0; }
  
  .product-footnote{
    margin-top: 0.7rem;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
  }
  
  /* Comparison table */
  .comparison-wrap{
    padding: 1.25rem;
  }
  .comparison-scroll{
    overflow: auto;
    border-radius: 18px;
    border: 1px solid var(--color-border-subtle);
    background: rgba(255,255,255,.75);
  }
  .comparison-table{
    width: 100%;
    border-collapse: collapse;
    min-width: 880px; /* enables horizontal scroll on smaller tablets */
    font-size: var(--text-sm);
  }
  .comparison-table th,
  .comparison-table td{
    padding: 14px 14px;
    vertical-align: top;
    border-bottom: 1px solid rgba(15,23,42,.08);
  }
  .comparison-table thead th{
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    z-index: 1;
  }
  .comparison-table th[scope="row"]{
    width: 200px;
    color: var(--color-text-main);
  }
  .compare-highlight{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(to bottom right, rgba(94, 203, 255, 0.86), rgba(162, 116, 255, 0.76));
    color: #0f172a;
    font-weight: 700;
  }
  
  .comparison-note{
    margin: 0.85rem 0 0;
    color: var(--color-text-soft);
    line-height: 1.7;
  }
  
  /* Mobile comparison cards */
  .comparison-cards{
    display: none;
    margin-top: 1.1rem;
    gap: 12px;
  }
  .comparison-card{
    border-radius: var(--radius-xl);
    background: #ffffff;
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-subtle);
    padding: 14px 14px;
  }
  .comparison-card h3{
    margin: 0 0 .6rem 0;
  }
  .comparison-card__grid{
    display: grid;
    gap: 10px;
  }
  .comparison-card__grid > div{
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.7);
    padding: 10px 12px;
  }
  .comparison-card__grid span{
    display: inline-block;
    font-size: 12px;
    color: var(--color-text-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .comparison-card__grid p{
    margin: .35rem 0 0;
    color: var(--color-text-soft);
    line-height: 1.6;
  }
  .comparison-card__grid .is-highlight{
    background: linear-gradient(135deg, rgba(94, 203, 255, 0.14), rgba(162, 117, 255, 0.10));
    border-color: rgba(162, 117, 255, 0.25);
  }
  
  /* Timeline */
  .timeline-grid{
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 0;
    display: grid;
    gap: 12px;
  }
  .timeline-step{
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: var(--radius-xl);
    background: #fdfefe;
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-subtle);
    padding: 14px 14px;
  }
  .timeline-step__badge{
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(162, 117, 255, 0.18), rgba(255,255,255,0.10));
    border: 1px solid rgba(15,23,42,.10);
    font-weight: 800;
  }
  .timeline-step h3{
    margin: 0 0 .25rem 0;
    font-size: var(--text-base);
  }
  .timeline-step p{
    margin: 0;
    color: var(--color-text-soft);
    line-height: 1.6;
    font-size: var(--text-sm);
  }
  .timeline-mini{
    margin-top: 0.55rem !important;
    color: var(--color-text-muted) !important;
  }
  
  .cta-panel{
    padding: clamp(1.6rem, 3vw, 2.3rem);
  }
  /* Make product cards a proper boxed layout with icon + content inside */
.product-card{
    display: grid;                 /* overrides existing flex */
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(15,23,42,.14);
    background: rgba(255,255,255,.92);
  }
  
  /* Icon box */
  .product-card__icon{
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15,23,42,.12);
    background: linear-gradient(135deg, rgba(94,203,255,.18), rgba(162,117,255,.12));
  }
  
  /* Force a visible border (stronger than --color-border-subtle) */
.product-card{
    border: 1px solid rgba(15,23,42,.16) !important;
  }
  
  /* Optional: nicer hover so it reads “premium” */
  .product-card:hover{
    border-color: rgba(94,203,255,.45) !important;
  }
  
  .product-card p{
  margin: 0.25rem 0 0.85rem;
  line-height: 1.75;
}

.product-mini{
  margin: 0.55rem 0 0;
  line-height: 1.75;
}

.product-mini li{
  margin: 0.4rem 0;
}

/* ===== Curtain-reveal band (image stays fixed; section reveals it) ===== */
.reveal-band{
  position: relative;
  height: clamp(260px, 44vw, 460px);
  margin-top: -24px;      /* tuck under hero */
  z-index: 0;
}

/* Fixed “poster” aligned to your container width */
.reveal-band__media{
  position: fixed;
  left: 50%;
  top: calc(var(--stack-top) + 12px);
  width: min(1120px, calc(100% - 2.75rem));
  height: clamp(260px, 44vw, 460px);

  transform: translateX(-50%) scale(0.985);
  border-radius: var(--radius-xl);
  /* border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow-subtle); */
  border: none;
box-shadow: none;
  overflow: hidden;
  pointer-events: none;

  /* background:
    radial-gradient(circle at 15% 20%, rgba(94,203,255,.22), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(162,117,255,.18), transparent 48%),
    var(--band-image) center / cover no-repeat; */
    background-image: var(--band-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* ✅ fits entire image */
      

  opacity: 0;
  clip-path: inset(100% 0 0 0 round var(--radius-xl)); /* starts hidden */
  transition: opacity 200ms ease, transform 260ms ease;
}

/* show only while band is in play */
.reveal-band.is-active .reveal-band__media{
  opacity: 1;
}

/* sections should sit above the band */
.section{ position: relative; z-index: 1; }

/* Force icon sizing (overrides earlier rules) */
.product-card .product-card__icon{
  width: 52px !important;
  height: 52px !important;
  border-radius: 18px !important;
  font-size: 20px; /* for emoji icons */
}

  /* Small phones: stack icon above content */
  @media (max-width: 420px){
    .product-card{ grid-template-columns: 1fr; }
  }
  
  /* Responsive */
  @media (max-width: 1020px){
    .product-card-grid--dense{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  
  @media (max-width: 960px){
    .product-hero__grid{ grid-template-columns: 1fr; }
    .product-toc{ position: relative; top: auto; max-height: none; }
    .product-card-grid{ grid-template-columns: 1fr; }
    .product-card-grid--dense{ grid-template-columns: 1fr; }
  }
  
  @media (max-width: 720px){
    /* swap table to cards */
    .comparison-wrap{ display: none; }
    .comparison-cards{ display: grid; }
  }
  