/* Product pages (/download, /software), retro /brand and 404.
   Type, rhythm, cards and buttons follow the homepage (site.css),
   not the legal-page Inter titles. */

/* Sections own their padding and can go full-bleed, like homepage .sec */
.product-main{padding:0}
.product-main .wrap{max-width:1320px}

.dz-product-hero{
  padding:clamp(48px,7vw,112px) 0 clamp(56px,8vw,120px);
}
.dz-product-hero-copy{max-width:46rem}
.dz-title-break{display:block}

.dz-product-title,
.dz-product-section h2,
.dz-product-cta h2,
.dz-brand-section h2{
  margin:0;
  font-family:'DIZEE Sans','Arial Black',Arial,sans-serif;
  font-weight:800;
  font-kerning:normal;
  letter-spacing:-.02em;
  line-height:.92;
  text-transform:uppercase;
  color:var(--ink);
}

.dz-product-title{
  margin:0 0 28px;
  font-size:clamp(36px,6.2vw,68px);
}

.dz-product-lead{
  margin:0 0 34px;
  max-width:38rem;
  font-size:clamp(18px,1.55vw,23px);
  font-weight:440;
  line-height:1.45;
  letter-spacing:-.02em;
  color:var(--muted);
}

.dz-download-row{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 18px}
.dz-download-btn{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-width:min(100%,280px);
  text-align:left;
}
.dz-download-btn .dz-download-text{display:flex;flex-direction:column;gap:2px;align-items:flex-start}
.dz-download-btn .dz-download-label{font-weight:750;font-size:16px;letter-spacing:-.01em;line-height:1.2}
.dz-download-btn .dz-download-detail{font-size:12px;font-weight:600;letter-spacing:0;line-height:1.3;opacity:.8}
.dz-download-btn svg{width:20px;height:20px;flex:none}

.dz-product-note{margin:0;font-size:14px;line-height:1.45;color:var(--muted)}

.dz-product-section{
  margin:0;
  padding:clamp(64px,7.5vw,112px) 0;
}
.dz-product-section.is-alt{background:#efeada}
.dz-product-section h2,
.dz-product-cta h2,
.dz-brand-section h2{
  margin:0 0 36px;
  font-size:clamp(26px,4.2vw,48px);
}

.dz-product-grid{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.dz-product-grid.is-four{grid-template-columns:repeat(4,1fr)}
.dz-product-grid .card{
  min-height:0;
  border-radius:24px;
  padding:26px 26px 24px;
}
.dz-product-grid .card h3{
  margin:0;
  font-size:clamp(18px,1.6vw,22px);
  font-weight:800;
  letter-spacing:-.045em;
  line-height:1.05;
  text-transform:uppercase;
}
.dz-product-grid .card p{
  margin:10px 0 0;
  font-size:16.5px;
  line-height:1.45;
  letter-spacing:-.015em;
  color:var(--muted);
}

.dz-product-split{
  display:grid;
  grid-template-columns:minmax(0,0.9fr) minmax(0,1.3fr);
  gap:clamp(24px,5vw,56px);
  align-items:start;
}
.dz-product-split .dz-product-intro h2{margin-bottom:0}

.dz-product-specs{margin:0}
.dz-product-specs > div{padding:17px 0;border-top:1.5px solid var(--line)}
.dz-product-specs > div:last-child{border-bottom:1.5px solid var(--line)}
.dz-product-specs dt{
  margin:0 0 4px;
  font-weight:800;
  font-size:18px;
  letter-spacing:-.03em;
  text-transform:uppercase;
  color:var(--ink);
}
.dz-product-specs dd{margin:0;color:var(--muted);font-size:16.5px;line-height:1.45;letter-spacing:-.015em}
.dz-product-specs a{color:var(--accent);text-underline-offset:3px}

.dz-product-steps{margin:0;padding:0;list-style:none;counter-reset:step}
.dz-product-steps li{
  counter-increment:step;
  position:relative;
  padding:17px 0 17px 52px;
  border-top:1.5px solid var(--line);
  color:var(--muted);
  font-size:16.5px;
  line-height:1.45;
  letter-spacing:-.015em;
}
.dz-product-steps li:last-child{border-bottom:1.5px solid var(--line)}
.dz-product-steps li::before{
  content:counter(step,decimal-leading-zero);
  position:absolute;
  left:0;
  top:17px;
  font-size:13px;
  font-weight:850;
  letter-spacing:.12em;
  color:var(--accent);
}
.dz-product-steps strong{color:var(--ink);font-weight:700}

/* Full-bleed orange close, like the homepage .band */
.dz-product-cta{
  background:var(--accent);
  color:#140803;
  padding:clamp(40px,5vw,64px) 0;
  border:0;
  border-radius:0;
}
.dz-product-cta-in{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:24px 32px;
}
.dz-product-cta h2{
  margin:0 0 12px;
  color:#140803;
  font-size:clamp(30px,4.2vw,56px);
}
.dz-product-cta .eb{color:#140803;margin-bottom:16px}
.dz-product-cta .eb::before{background:#140803}
.dz-product-cta p{
  margin:0;
  max-width:36rem;
  color:rgba(20,8,3,.78);
  font-size:clamp(16px,1.3vw,19px);
  line-height:1.5;
  letter-spacing:-.015em;
}
.dz-product-cta .btn{
  background:#140803;
  color:var(--cream);
  border-color:#140803;
}
.dz-product-cta .btn:hover{box-shadow:0 14px 30px -12px rgba(20,8,3,.45)}
.dz-product-cta .dz-text-link{color:#140803}
.dz-product-cta .dz-text-link:hover,
.dz-product-cta .dz-text-link:focus-visible{color:#140803}

.dz-product-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 20px}
.dz-text-link{color:var(--ink);font-weight:650;text-decoration:none;letter-spacing:-.01em}
.dz-text-link:hover,.dz-text-link:focus-visible{text-decoration:underline;text-underline-offset:3px}

/* 404: fill the viewport like a short hero */
.dz-notfound{
  min-height:calc(100svh - var(--navh));
  display:flex;
  align-items:center;
  padding:clamp(48px,7vw,112px) 0;
  box-sizing:border-box;
}
.dz-notfound .dz-product-hero-copy{max-width:36rem}
.dz-notfound .dz-product-lead{margin-bottom:34px}

/* Brand kit */
.dz-brand-intro{margin:0 0 24px;max-width:40rem;font-size:clamp(18px,1.55vw,23px);line-height:1.45;letter-spacing:-.02em;color:var(--muted)}
.dz-brand-section{
  margin:0;
  padding:clamp(48px,6vw,88px) 0;
  border:0;
}
.dz-brand-section.is-alt{background:#efeada}
.dz-brand-section h3{
  margin:0 0 14px;
  font-size:12px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--ink);
}
.dz-brand-section h3 + h3,
.dz-brand-block + .dz-brand-block{margin-top:32px}
.dz-brand-section > p,
.dz-brand-section li{color:var(--muted);font-size:16.5px;line-height:1.5;letter-spacing:-.015em}
.dz-brand-section > p{margin:0 0 16px}
.dz-brand-section ul{margin:0 0 8px;padding-left:1.2em}
.dz-brand-section li{margin:0 0 6px}
.dz-brand-section a{color:var(--accent);text-underline-offset:3px}

.dz-font-grid{
  list-style:none;
  margin:0 0 16px;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
.dz-font-grid .card p{
  margin:0;
  font-size:16.5px;
  line-height:1.45;
  letter-spacing:-.015em;
  color:var(--muted);
}
.dz-font-grid .card strong{
  color:var(--ink);
  font-weight:800;
  letter-spacing:-.03em;
  text-transform:uppercase;
}
.dz-font-grid .card a{color:var(--accent);text-underline-offset:3px}

.dz-usage-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:clamp(24px,4vw,40px);
}

.dz-swatch-grid,.dz-logo-grid{
  list-style:none;
  margin:0 0 8px;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
.dz-swatch-grid{grid-template-columns:repeat(4,1fr)}
.dz-logo-card,.dz-swatch{
  border:1.5px solid var(--edge);
  border-radius:24px;
  overflow:hidden;
  background:var(--card);
  display:flex;
  flex-direction:column;
}
.dz-logo-preview{
  height:160px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
}
.dz-logo-preview img{max-width:85%;max-height:52px;width:auto;height:auto}
.dz-logo-preview.is-cream{background:var(--cream)}
.dz-logo-preview.is-white{background:#fff}
.dz-logo-preview.is-ink{background:var(--ink)}
.dz-logo-meta{padding:18px 22px 20px}
.dz-logo-meta .t{margin:0 0 10px;font-weight:800;letter-spacing:-.03em;text-transform:uppercase;color:var(--ink);font-size:14px}
.dz-logo-meta a{display:inline-block;margin-right:14px;padding:4px 0;color:var(--accent);font-weight:650;text-underline-offset:3px}
.dz-swatch-chip{height:72px;border-bottom:1.5px solid var(--edge)}
.dz-swatch .cb{padding:14px 16px 16px}
.dz-swatch .t{margin:0 0 4px;font-weight:800;letter-spacing:-.03em;text-transform:uppercase;color:var(--ink);font-size:14px}
.dz-swatch .m{margin:0 0 2px;font-family:ui-monospace,Menlo,monospace;color:var(--ink);font-size:13px}
.dz-swatch .s{margin:0;font-size:13px;color:var(--muted);line-height:1.4}
.dz-brand-note{margin-top:20px;font-size:16.5px;line-height:1.45;letter-spacing:-.015em;color:var(--muted)}
.dz-brand-note a{color:var(--accent);text-underline-offset:3px}


.dz-logo-preview.is-mark{padding:28px}
.dz-logo-preview.is-mark img{max-width:88px;max-height:88px}
.dz-logo-preview.is-app-icon{height:240px;padding:36px;background:#efeada}
.dz-logo-preview.is-app-icon img{
  max-width:160px;max-height:160px;width:160px;height:160px;
  border-radius:36px;object-fit:cover;
  box-shadow:0 1px 2px rgba(22,22,22,.16),0 6px 16px rgba(22,22,22,.08);
}
.dz-anim-grid{
  list-style:none;
  margin:0 0 16px;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
.dz-anim-stage{
  border:1.5px solid var(--edge);
  border-radius:24px;
  min-height:280px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:36px 24px;
  overflow:visible;
}
.dz-anim-stage.is-cream{background:var(--cream)}
.dz-anim-stage.is-ink{background:var(--ink)}
.dz-anim-downloads{margin:0 0 8px}
.dz-anim-downloads a{
  display:inline-block;
  margin-right:14px;
  padding:4px 0;
  color:var(--accent);
  font-weight:650;
  text-underline-offset:3px;
}
.dz-logo-grid.is-faces{grid-template-columns:repeat(4,1fr)}

@media (max-width:1100px){
  .dz-product-grid,.dz-product-grid.is-four{grid-template-columns:repeat(2,1fr)}
  .dz-swatch-grid,.dz-logo-grid.is-faces{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:700px){
  .dz-product-title{font-size:clamp(34px,10.6vw,54px)}
  .dz-product-section h2,
  .dz-brand-section h2{font-size:clamp(28px,8vw,40px)}
  .dz-product-cta h2{font-size:clamp(28px,8vw,44px)}
  .dz-product-grid,
  .dz-product-grid.is-four,
  .dz-logo-grid,
  .dz-logo-grid.is-faces,
  .dz-swatch-grid,
  .dz-font-grid,
  .dz-usage-grid,
  .dz-anim-grid{grid-template-columns:1fr}
  .dz-product-split{grid-template-columns:1fr}
  .dz-download-btn{width:100%}
  /* Keep the homepage card radius on small screens (no squared-off mobile cards). */
  .dz-product-grid .card,
  .dz-logo-card,
  .dz-swatch,
  .dz-font-grid .card{border-radius:24px}
}

/* Same Sign-in placement as the homepage (.nav-end lives in pin-scroll.css there). */
header.nav .nav-end{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
}
header.nav .nav-in:has(.nav-end) .nav-signin,
header.nav .nav-end .nav-signin{margin-left:0}
