.page-products{
  --dev-gap: clamp(1.25rem, 2.5vw, 2rem);
  --card-edge: rgba(185,199,217,0.55);
  --term-ink:#c9d8ea;
  --term-dim:#7f93ae;
  --term-bg:#0b1528;
  --device-shadow:0 12px 28px rgba(10,30,60,0.08);
  color:var(--color-ink);
}
.page-products .breadcrumbs{
  padding-top:calc(var(--status-h) + var(--nav-h) + 18px);
}
.page-products .products-hero{
  position:relative;
  overflow:hidden;
}
.page-products .products-hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:6px;
  background:linear-gradient(90deg,var(--color-green) 0 25%,var(--color-red) 25% 45%,var(--color-grid) 45% 100%);
  opacity:.9;
  z-index:3;
}
.page-products .products-hero__grid{
  display:grid;
  gap:clamp(1.5rem,3vw,3rem);
  padding:clamp(2rem,5vw,4.5rem) 0 clamp(3rem,6vw,5rem);
}
.page-products .products-hero__copy{
  max-width:680px;
}
.page-products .products-hero__lede{
  font-size:clamp(1.05rem,1.4vw,1.25rem);
  line-height:1.7;
  margin:1rem 0 1.4rem;
  color:rgba(255,253,249,.88);
}
.page-products .products-hero__tags{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
}
.page-products .terminal{
  border:1px solid rgba(185,199,217,.35);
  border-radius:12px;
  background:var(--term-bg);
  font-family:var(--font-mono);
  font-size:.82rem;
  line-height:1.65;
  box-shadow:0 24px 60px rgba(0,0,0,.3);
  overflow:hidden;
}
.page-products .terminal__bar{
  display:flex;
  align-items:center;
  gap:.4rem;
  padding:.6rem .8rem;
  background:rgba(255,255,255,.04);
  border-bottom:1px solid rgba(185,199,217,.18);
}
.page-products .terminal__dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
}
.page-products .terminal__dot--red{background:var(--color-red);}
.page-products .terminal__dot--yellow{background:var(--color-orange);}
.page-products .terminal__dot--green{background:var(--color-green);}
.page-products .terminal__name{
  margin-left:auto;
  color:var(--term-dim);
  font-size:.72rem;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.page-products .terminal__body{
  padding:1rem 1.1rem;
}
.page-products .terminal__line{
  margin:0 0 .4rem;
  color:var(--term-ink);
  white-space:normal;
}
.page-products .terminal__prompt{
  color:var(--color-green);
  margin-right:.5rem;
  font-weight:700;
}
.page-products .terminal__line--ok{color:#8ae36b;}
.page-products .terminal__line--warn{color:#ffb29a;}

.page-products .forms-section{
  background:var(--color-bg);
  padding-top:clamp(2.5rem,5vw,4.5rem);
}
.page-products .forms-grid{
  display:grid;
  gap:var(--dev-gap);
  margin-top:clamp(1.5rem,3vw,2.5rem);
}
.page-products .form-card{
  position:relative;
  background:var(--color-paper);
  border:1px solid var(--card-edge);
  box-shadow:var(--device-shadow);
  display:flex;
  flex-direction:column;
  transition:box-shadow .25s ease, transform .25s ease;
}
.page-products .form-card:hover,
.page-products .form-card:focus-within{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(10,30,60,.13);
}
.page-products .form-card__no{
  position:absolute;
  top:-.8rem;
  left:1rem;
  z-index:2;
  background:var(--color-red);
  color:#fff;
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.08em;
  padding:.35rem .8rem;
  clip-path:polygon(6px 0,100% 0,calc(100% - 6px) 100%,0 100%);
  text-transform:uppercase;
}
.page-products .form-card--desktop .form-card__no{
  background:var(--color-blue);
}
.page-products .form-card--browser .form-card__no{
  background:var(--color-teal);
}
.page-products .device-frame{
  position:relative;
  overflow:hidden;
  background:var(--color-bg);
  border-bottom:1px solid var(--card-edge);
  margin:0;
}
.page-products .device-frame--phone{
  aspect-ratio:3/4;
}
.page-products .device-frame--desktop{
  aspect-ratio:16/10;
}
.page-products .device-frame--browser{
  aspect-ratio:16/10;
  background:var(--color-bg);
}
.page-products .device-frame__img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
  display:block;
}
.page-products .browser-frame-svg{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.page-products .form-card__body{
  padding:1.2rem 1.1rem 1.4rem;
  display:flex;
  flex-direction:column;
  gap:.7rem;
}
.page-products .form-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.6rem;
}
.page-products .form-card__head h3{
  font-family:var(--font-display);
  font-size:1.5rem;
  line-height:1.1;
  color:var(--color-blue);
  letter-spacing:.02em;
}
.page-products .form-card__desc{
  font-size:.96rem;
  line-height:1.65;
  margin:0;
}
.page-products .form-card__list{
  list-style:none;
  padding:0;
  margin:.4rem 0 0;
  border-top:1px dashed var(--card-edge);
  padding-top:.75rem;
}
.page-products .form-card__list li{
  font-size:.88rem;
  line-height:1.6;
  padding-left:1.2em;
  position:relative;
  margin-bottom:.3rem;
}
.page-products .form-card__list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.55em;
  width:.6em;
  height:.6em;
  background:var(--color-grid);
  transform:skewX(-16deg);
}
.page-products .form-card--mobile .form-card__list li::before{
  background:var(--color-green);
}
.page-products .form-card--desktop .form-card__list li::before{
  background:var(--color-red);
}
.page-products .form-card--browser .form-card__list li::before{
  background:var(--color-teal);
}

.page-products .diff-section{
  position:relative;
  overflow:hidden;
}
.page-products .diff-section::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:4px;
  background:repeating-linear-gradient(90deg,var(--color-red) 0 18px,transparent 18px 36px);
  opacity:.7;
}
.page-products .diff-section .section__title{
  color:var(--color-paper);
}
.page-products .diff-section .section__lede{
  color:rgba(255,253,249,.72);
}
.page-products .diff-section .chapter{
  color:rgba(255,253,249,.6);
}
.page-products .diff-layout{
  display:grid;
  gap:1rem;
  margin-top:clamp(1.5rem,3vw,2.5rem);
}
.page-products .diff-card{
  background:rgba(255,253,249,.06);
  border:1px solid rgba(185,199,217,.22);
  padding:1.2rem 1.1rem;
  backdrop-filter:blur(4px);
}
.page-products .diff-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:.6rem;
  margin-bottom:.7rem;
}
.page-products .diff-card h3{
  font-family:var(--font-display);
  font-size:1.35rem;
  color:var(--color-paper);
  margin:0;
}
.page-products .diff-card p{
  font-size:.92rem;
  line-height:1.65;
  color:rgba(255,253,249,.85);
  margin:0;
}
.page-products .diff-chip{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-family:var(--font-mono);
  font-size:.76rem;
  padding:.35rem .7rem;
  border:1px solid;
  letter-spacing:.02em;
}
.page-products .diff-chip__dot{
  width:8px;
  height:8px;
  border-radius:50%;
  flex:0 0 auto;
}
.page-products .diff-chip--warn{
  color:#ffb29a;
  border-color:rgba(255,90,54,.5);
}
.page-products .diff-chip--warn .diff-chip__dot{
  background:var(--color-red);
  box-shadow:0 0 10px rgba(255,90,54,.7);
}
.page-products .diff-chip--ok{
  color:#8ae36b;
  border-color:rgba(57,255,20,.4);
}
.page-products .diff-chip--ok .diff-chip__dot{
  background:var(--color-green);
  box-shadow:0 0 10px rgba(57,255,20,.5);
}
.page-products .diff-legend{
  grid-column:1/-1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.6rem;
  background:rgba(255,253,249,.04);
  border:1px dashed rgba(185,199,217,.28);
  padding:1rem;
}
.page-products .diff-legend__frame{
  width:100%;
  max-width:380px;
  background:var(--color-paper);
  border:1px solid rgba(185,199,217,.5);
  overflow:hidden;
}
.page-products .diff-legend__img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
}
.page-products .diff-legend__note{
  font-family:var(--font-mono);
  font-size:.78rem;
  color:rgba(255,253,249,.7);
  margin:0;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.page-products .diff-note{
  margin-top:1rem;
  border-left:3px solid var(--color-orange);
  background:rgba(255,107,0,.08);
  color:rgba(255,253,249,.78);
  padding:.8rem 1rem;
  font-size:.85rem;
}

.page-products .fav-section{
  background:var(--color-bg);
}
.page-products .fav-layout{
  display:grid;
  gap:clamp(1.5rem,3vw,2.5rem);
  margin-top:clamp(1.5rem,3vw,2.5rem);
}
.page-products .fav-guide{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.page-products .fav-guide__title{
  font-family:var(--font-display);
  font-size:1.3rem;
  color:var(--color-blue);
  margin:0 0 .4rem;
  padding-top:.5rem;
}
.page-products .fav-guide__text{
  font-size:.96rem;
  line-height:1.7;
  margin:0 0 1.2rem;
}
.page-products .fav-guide__btn{
  align-self:flex-start;
  margin-top:.4rem;
}
.page-products .fav-terminal{
  display:flex;
  flex-direction:column;
  gap:.7rem;
}
.page-products .terminal--small{
  box-shadow:0 10px 30px rgba(10,30,60,.16);
}
.page-products .fav-terminal__note{
  font-family:var(--font-mono);
  font-size:.78rem;
  color:var(--color-teal);
  line-height:1.6;
  margin:0;
  padding-left:.8rem;
  border-left:2px solid var(--color-teal);
}

.page-products .injury-section{
  position:relative;
  overflow:hidden;
}
.page-products .injury-section::before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  width:60%;
  height:4px;
  background:linear-gradient(90deg,transparent,var(--color-green));
}
.page-products .injury-section .section__title{
  color:var(--color-paper);
}
.page-products .injury-section .section__lede{
  color:rgba(255,253,249,.72);
}
.page-products .injury-section .chapter{
  color:rgba(255,253,249,.6);
}
.page-products .injury-layout{
  display:grid;
  gap:clamp(1.5rem,3vw,2.5rem);
  margin-top:clamp(1.5rem,3vw,2.5rem);
}
.page-products .injury-flow{
  display:grid;
  gap:1rem;
}
.page-products .injury-steps{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:.6rem;
}
.page-products .injury-steps li{
  display:flex;
  align-items:center;
  gap:.8rem;
  font-size:.95rem;
  line-height:1.6;
  color:rgba(255,253,249,.9);
  background:rgba(255,253,249,.05);
  border:1px solid rgba(185,199,217,.2);
  padding:.65rem .8rem;
}
.page-products .injury-steps__num{
  flex:0 0 auto;
  width:1.6rem;
  height:1.6rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--color-green);
  color:var(--color-blue);
  font-family:var(--font-mono);
  font-weight:700;
  font-size:.8rem;
  clip-path:polygon(4px 0,100% 0,calc(100% - 4px) 100%,0 100%);
}
.page-products .injury-flow__frame{
  border:1px solid rgba(185,199,217,.28);
  overflow:hidden;
  background:rgba(255,253,249,.05);
}
.page-products .injury-flow__img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
  max-height:320px;
}
.page-products .injury-side{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.4rem;
}
.page-products .injury-side__title{
  font-family:var(--font-display);
  font-size:1.2rem;
  color:var(--color-green);
  margin:1rem 0 .35rem;
  letter-spacing:.02em;
}
.page-products .injury-side__title:first-child{
  margin-top:0;
}
.page-products .injury-side__text{
  font-size:.92rem;
  line-height:1.7;
  color:rgba(255,253,249,.85);
  margin:0;
}

.page-products .version-section{
  background:var(--color-bg);
}
.page-products .changelog{
  margin-top:clamp(1.5rem,3vw,2.5rem);
  border-top:1px solid var(--card-edge);
}
.page-products .changelog-item{
  border-bottom:1px solid var(--card-edge);
  background:var(--color-paper);
  transition:background .2s ease;
}
.page-products .changelog-item:hover{
  background:#fff;
}
.page-products .changelog-summary{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem 1rem;
  padding:1rem .9rem;
  cursor:pointer;
}
.page-products .changelog-summary::-webkit-details-marker{
  display:none;
}
.page-products .changelog-summary::before{
  content:"▸";
  color:var(--color-red);
  font-family:var(--font-mono);
  font-size:.85rem;
  transition:transform .2s ease;
}
.page-products .changelog-item[open] .changelog-summary::before{
  content:"▾";
}
.page-products .changelog-version{
  font-family:var(--font-mono);
  font-size:.8rem;
  color:var(--color-red);
  font-weight:700;
  background:rgba(255,90,54,.08);
  padding:.2rem .5rem;
  letter-spacing:.02em;
}
.page-products .changelog-title{
  font-family:var(--font-display);
  font-size:1.15rem;
  color:var(--color-blue);
  letter-spacing:.02em;
}
.page-products .changelog-state{
  font-family:var(--font-mono);
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--color-teal);
  margin-left:auto;
}
.page-products .changelog-desc{
  padding:0 1rem 1rem 2.2rem;
}
.page-products .changelog-desc p{
  font-size:.93rem;
  line-height:1.7;
  color:var(--color-ink);
  margin:0;
  max-width:62ch;
}
.page-products .version-section__img-frame{
  margin-top:clamp(1.5rem,3vw,2.5rem);
  border:1px solid var(--card-edge);
  background:var(--color-paper);
  overflow:hidden;
}
.page-products .version-section__img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
  max-height:320px;
}

.page-products .products-nav{
  background:var(--color-blue);
  padding-top:clamp(2rem,4vw,3rem);
  padding-bottom:clamp(2rem,4vw,3rem);
}
.page-products .products-nav__title{
  font-family:var(--font-display);
  font-size:clamp(1.8rem,3vw,2.6rem);
  color:var(--color-paper);
  margin:0 0 1.2rem;
}
.page-products .products-nav__links{
  display:flex;
  flex-wrap:wrap;
  gap:.8rem;
}
.page-products .products-nav .btn--ghost{
  border-color:rgba(255,253,249,.45);
  color:var(--color-paper);
}
.page-products .products-nav .btn--ghost:hover,
.page-products .products-nav .btn--ghost:focus-visible{
  border-color:var(--color-green);
  color:var(--color-green);
}
.page-products a:focus-visible,
.page-products button:focus-visible,
.page-products summary:focus-visible{
  outline:2px solid var(--color-orange);
  outline-offset:3px;
}

@media (min-width:720px){
  .page-products .diff-layout{
    grid-template-columns:1fr 1fr;
  }
  .page-products .diff-legend{
    grid-column:1/-1;
    flex-direction:row;
    justify-content:center;
  }
  .page-products .diff-legend__frame{
    max-width:300px;
  }
  .page-products .fav-layout{
    grid-template-columns:1fr 1fr;
    align-items:center;
  }
  .page-products .injury-layout{
    grid-template-columns:1fr 1fr;
    align-items:center;
  }
  .page-products .injury-flow{
    grid-template-columns:1fr;
  }
  .page-products .changelog-summary{
    padding:1rem 1.2rem;
  }
}

@media (min-width:960px){
  .page-products .products-hero__grid{
    grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
    align-items:center;
  }
  .page-products .forms-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .page-products .form-card{
    margin-top:1rem;
  }
  .page-products .diff-layout{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.8fr);
    align-items:stretch;
  }
  .page-products .diff-legend{
    grid-column:auto;
    flex-direction:column;
  }
  .page-products .diff-legend__frame{
    width:100%;
  }
  .page-products .injury-layout{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
  .page-products .injury-flow{
    grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
    align-items:center;
  }
  .page-products .changelog-desc{
    padding-left:11rem;
  }
}
