/* PeakDevs product pages: an app's home as bands of text and pictures. Loaded after site.css, by product pages
   only. System fonts, no outside file. */

:root {
  --tint-from: #eaf1fa;
  --tint-to: #f3effb;
  --stage: #ffffff;
  --stage-border: #e1e5ea;
  --stage-shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 14px 36px -10px rgb(16 24 40 / 18%);
  --chip: #e7eef6;
  --chip-text: #1f4e79;
  --tick: #2b8a3e;
  --step: #0f2a44;
  --dia-blocked: #c92a2a;
  --band-gap: 4.5rem;
  --column: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tint-from: #172333;
    --tint-to: #1e1a2d;
    --stage: #ffffff;
    --stage-border: #2f3641;
    --stage-shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 18px 44px -14px rgb(0 0 0 / 70%);
    --chip: #1d2b3a;
    --chip-text: #b8d3f0;
    --tick: #69db7c;
    --step: #3d6c99;
    --dia-blocked: #ff8787;
  }
}

main.product {
  padding: 0;
}

.band-inner {
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 1rem;
}

/* The hero: the promise in one line, then the app at work */

.product-hero {
  padding: 3.5rem 0 var(--band-gap);
  background: linear-gradient(165deg, var(--tint-from), var(--bg) 55%, var(--tint-to));
  border-bottom: 1px solid var(--border);
}

.hero-text {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.product-hero h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0.5rem 0 1.25rem;
}

.hero-text > p:not(.eyebrow) {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--muted);
  margin: 0 auto 1.25rem;
}

.hero-text ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.hero-text li {
  background: var(--chip);
  color: var(--chip-text);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-actions p {
  margin: 0;
}

.hero-actions .note {
  font-size: 0.9375rem;
}

/* Bands: one claim each, with its picture */

.band {
  padding: var(--band-gap) 0;
  border-top: 1px solid var(--border);
}

.band-tint {
  background: linear-gradient(165deg, var(--tint-from), var(--bg) 60%, var(--tint-to));
}

.band h2 {
  font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.band-text p {
  margin: 0 0 1rem;
}

.band-text a {
  font-weight: 600;
}

.band-wide .band-text {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.band-wide .band-text p {
  font-size: 1.125rem;
  color: var(--muted);
}

.band-side .band-inner {
  display: grid;
  gap: 2rem 4rem;
  align-items: center;
}

.band-side .band-inner > * {
  min-width: 0;
}

@media (min-width: 56rem) {
  .band-side .band-inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .band-flip .band-text {
    order: 2;
  }
}

.band-media {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 44rem) {
  .band-wide .band-media {
    grid-template-columns: 1fr 1fr;
  }
}

/* Stages: a picture of the app on its own panel. A light picture stays light on a dark site, as the app draws it. */

.stage {
  margin: 0;
  background: var(--stage);
  border: 1px solid var(--stage-border);
  border-radius: 16px;
  box-shadow: var(--stage-shadow);
  padding: 1rem;
  overflow: hidden;
}

.stage-wide {
  grid-column: 1 / -1;
}

.stage img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.stage-half {
  display: flex;
  flex-direction: column;
}

.stage-half img {
  margin: auto;
  max-height: 22rem;
  width: auto;
}

.stage-dark {
  background: #1d2125;
  border-color: #2c333a;
}

.stage-plain {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.stage-label {
  margin: 0 0 0.75rem;
  color: #4f5965;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage-dark .stage-label {
  color: #a9b2bd;
}

.hero-media .stage {
  padding: 0.5rem;
}

/* Steps: a band's numbered list */

.band-text ol {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.band-wide:has(ol) .band-text {
  max-width: none;
  margin-bottom: 0;
}

.band-text ol li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
}

.band-text ol li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--step);
  color: #ffffff;
  font-weight: 700;
}

.band-text ol strong {
  display: block;
}

/* Facts: a band's plain list, each with a tick */

.band-text ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.band-text ul li {
  position: relative;
  padding-left: 1.75rem;
  margin: 0.4rem 0;
}

.band-text ul li::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.45em;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 2px solid var(--tick);
  border-bottom: 2px solid var(--tick);
  transform: rotate(-45deg);
}

/* Price and help */

.price-card {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--stage-shadow);
  text-align: center;
}

.price-card p {
  font-size: 1.125rem;
}

.band-help .help-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  padding: 0;
  list-style: none;
}

.band-help .help-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.band-help .help-list a {
  font-weight: 600;
}

/* Designed diagrams (inline SVG, classes only) */

.dia {
  display: block;
  width: 100%;
  height: auto;
}

.dia-zone {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 1.5;
}

.dia-box,
.dia-node {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1.5;
}

.dia-node {
  stroke: var(--accent);
}

.dia-app {
  fill: var(--accent-strong);
}

.dia-label {
  fill: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.dia-text,
.dia-node-text {
  fill: var(--text);
  font-size: 14px;
  text-anchor: middle;
}

.dia-app-text {
  fill: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-anchor: middle;
}

.dia-small {
  fill: var(--muted);
  font-size: 12px;
}

.dia-middle {
  text-anchor: middle;
}

.dia-start {
  text-anchor: start;
}

.dia-mono {
  fill: var(--text);
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 12px;
  font-variant-ligatures: none;
}

.dia-line {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}

.dia-head {
  fill: var(--muted);
}

.dia-outside {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.dia-blocked {
  fill: none;
  stroke: var(--dia-blocked);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}

.dia-cross {
  stroke: var(--dia-blocked);
  stroke-width: 3;
  stroke-linecap: round;
}

@media print {
  .band,
  .product-hero {
    background: none;
    padding: 1.5rem 0;
  }

  .stage {
    box-shadow: none;
  }
}
