/* ==========================================================================
   Product pieces (agent B, 2026-11-09): shared by Home, Signals AI,
   Software, Contact and Privacy.
   - .brand-hero: the contained dark tile (.brand-panel) with the logo
     animation / poster and the cosmos behind it, inside the tile only.
   - .p-badge: product badge tile (the mark in its dark tile, an orbit in the
     product colour), .chip status chips.
   - .product-card, .how-steps, .shots (Mac + iPhone screenshots), .prose,
     .contact-form.
   Colours: page text uses the grey / steel-blue / terracotta tokens; the
   Signals glow stays inside .brand-panel (plan section 11).
   ========================================================================== */

/* --- Brand hero tile ------------------------------------------------------ */

/* Blue panels are borderless feathered fields (plan section 13): .feather-field
   (css/blue-field.css) dissolves them into the page; no radius, shadow or edge. */
.brand-hero {
  aspect-ratio: 16 / 10;
  isolation: isolate;
}

.brand-hero > canvas.cosmos { z-index: 0; }

/* The clip and its poster are drawn on the same field colour as the tile; a
   soft radial mask lets the cosmos show around them. */
.brand-hero > .brand-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 62% 66% at 50% 50%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 66% at 50% 50%, #000 52%, transparent 100%);
}

.brand-hero > picture.brand-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }

.brand-hero > .brand-caption {
  position: absolute;
  left: 50%;
  bottom: 17%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 2;
  margin: 0;
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fc2dd;
}

/* A wide poster panel (Signals AI hero): the poster is the art, no mask. */
.brand-hero.is-poster { aspect-ratio: 16 / 9; }
.brand-hero.is-poster > .brand-media { -webkit-mask-image: none; mask-image: none; }

/* The brain band (Signals AI, "Private by design"): a full-width blue field the brain floats in; deep at the
   centre, lighter blue toward the rim (owner: never dark navy at the fade). */
.signals-blue.brain-panel,
.brand-panel.brain-panel {
  background:
    radial-gradient(1px 1px at 12% 30%, rgba(234, 246, 255, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 62%, rgba(234, 246, 255, 0.35) 50%, transparent 51%),
    radial-gradient(ellipse 55% 75% at 50% 50%, #04112b 0%, #0A2350 45%, #123B7A 80%, #1f4f92 100%);
}
.brain-panel {
  width: 100%;
  height: clamp(400px, 46vw, 620px);
  margin: var(--space-8) 0 calc(-1 * var(--space-8));
}

.brain-panel > canvas[data-brain-cloud] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.brain-panel > .brand-caption {
  position: absolute;
  left: 50%;
  bottom: 21%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 2;
  margin: 0;
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fc2dd;
}

/* .p-badge (product tile) lives in components.css (hero titles and tool title bars use it too). */

/* Status chips (.chip, .chip-live, .chip-soon, .chip-early) live in components.css (one shape site-wide). */

/* --- Product cards ("What SignalsLab builds") ----------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: var(--stack);
}

.product-card {
  gap: var(--space-3);
  background: var(--surface-raised);
}

.product-card .product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}



.family-note {
  margin-top: var(--space-6);
  color: var(--muted);
  font-size: var(--fs-small);
}


/* --- "How it works" in three steps --------------------------------------- */

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
}

.how-steps > li {
  position: relative;
  padding: var(--space-6) var(--space-6) var(--space-6) calc(var(--space-6) + 2.6rem);
  border: 1px solid var(--rule);
  background: var(--surface-raised);
  counter-increment: how;
}

.how-steps > li::before {
  content: counter(how);
  position: absolute;
  left: var(--space-6);
  top: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  line-height: 1;
  color: var(--accent);
}

.how-steps h3 { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.how-steps p { margin: 0; }

@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr; }
}

/* --- Screenshots: a Mac window and iPhones -------------------------------- */

.shots {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: end;
}

.shot { margin: 0; }

.shot figcaption {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--fs-small);
}

.shot-mac .shot-frame {
  border-radius: 10px;
  overflow: hidden;
  background: var(--mark-tile);
  box-shadow: 0 0 0 1px var(--rule-strong), var(--shadow-lg);
}

.shot-mac .shot-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: #1b2233;
}

.shot-mac .shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b4458; }

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

.shot-phone .shot-frame {
  border-radius: 28px;
  padding: 7px;
  background: #0d0f14;
  box-shadow: 0 0 0 1px var(--rule-strong), var(--shadow-lg);
  overflow: hidden;
}

.shot-phone .shot-frame img { border-radius: 22px; }

.phone-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 900px) {
  .shots { grid-template-columns: 1fr; }
  .shots .shot-phone { max-width: 260px; }
  .phone-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone row scrolls sideways on narrow phones rather than shrinking. */
@media (max-width: 520px) {
  .phone-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-3);
  }
  .phone-row > .shot { scroll-snap-align: start; }
}

/* --- Feature sections (Signals AI) ---------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: center;
}

.feature.is-reverse > :first-child { order: 2; }

.feature .feature-media { max-width: 300px; justify-self: center; width: 100%; }

.feature ul { padding-left: 1.1em; }
.feature li { margin-bottom: var(--space-2); }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.is-reverse > :first-child { order: 0; }
  .feature .feature-media { max-width: 240px; }
}

.platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.platforms > li {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  border: 1px solid var(--rule);
  background: var(--surface-raised);
}

.platforms b { font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-h3); }
.platforms span { color: var(--muted); }

@media (max-width: 900px) {
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Half of a .section-pair: two by two. */
.platforms-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.platforms > li { padding: clamp(var(--space-4), 1vw + 0.5rem, var(--space-6)); }
@media (max-width: 380px) { .platforms { grid-template-columns: 1fr; } }

/* --- Long-form text (privacy, contact) ------------------------------------ */

.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--space-12); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-8); font-size: var(--fs-h3); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--space-2); }
.prose .updated { color: var(--muted); font-size: var(--fs-small); }

.never-list > li::marker { color: var(--highlight); }

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  margin-block: var(--space-6);
}

.store-grid > div {
  padding: var(--space-6);
  border: 1px solid var(--rule);
  background: var(--surface-raised);
}

.store-grid h3 { margin-top: 0; }

@media (max-width: 720px) {
  .store-grid { grid-template-columns: 1fr; }
}

/* --- Contact -------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}


@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form {
  display: grid;
  gap: var(--space-4);
  max-width: 720px;
}

.contact-form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.contact-form label {
  display: grid;
  gap: 4px;
  font-family: var(--font-label);
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
}

.contact-form .input { width: 100%; font: inherit; font-family: var(--font-body); font-size: var(--fs-body); }
.contact-form textarea.input { min-height: 8rem; resize: vertical; }

.contact-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.contact-form .form-note { color: var(--muted); font-size: var(--fs-small); margin: 0; }

@media (max-width: 640px) {
  .contact-form .row { grid-template-columns: 1fr; }
}

.address-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.address-list a { font-size: var(--fs-body); }

/* Chips keep their own width inside flex columns. */
.platforms .chip, .card > .chip { align-self: flex-start; }

/* --- Software page (publishing parts) ------------------------------------- */

.sw-first { padding-top: var(--space-12); }
.sw-title { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-4); }
.sw-title h2 { margin: 0; }
.sw-sub { margin: var(--space-12) 0 var(--space-6); }
.sw-snaps {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: var(--space-6);
  align-items: end;
  margin-top: var(--space-12);
}
.sw-divider { display: none; } /* 2026-11-10: no hard dividers (layout.css, seamless surface) */
.sw-mini-steps { margin: 0 0 var(--space-2); padding-left: 1.3em; }
.sw-mini-steps li { margin-bottom: 4px; }
@media (max-width: 900px) {
  .sw-snaps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-snaps .shot-mac { grid-column: 1 / -1; }
}

.contact-form .input { border-color: var(--rule-strong); }

/* --- Signals blue panels (owner/designer update 2026-11-09) ----------------
   The page stays light grey; feature panels may use the Signals deep blue
   (radial #123B7A -> #010A1B, faint stars, text #EAF6FF / muted #7FA6C8).
   The same in charcoal dark mode. */
.signals-blue,
.brand-hero,
.brain-panel {
  background:
    radial-gradient(1px 1px at 12% 22%, rgba(234, 246, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 14%, rgba(234, 246, 255, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 72%, rgba(159, 230, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 84%, rgba(234, 246, 255, 0.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 58%, rgba(234, 246, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 40%, rgba(234, 246, 255, 0.3) 50%, transparent 51%),
    radial-gradient(ellipse 75% 70% at 50% 42%, #123B7A 0%, #0A2350 45%, #010A1B 100%);
  color: #EAF6FF;
}

/* Product card: a deep-blue visual tile on top, the site-style body below. */
.product-card { padding: 0; gap: 0; }

.product-card .product-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  /* feathered into the card as a band (.feather-field, css/blue-field.css): no edge, line, radius or shadow */
  --ff-y: 34%;
  --ff-x: 4%;
  background:
    radial-gradient(1px 1px at 14% 26%, rgba(234, 246, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 18%, rgba(234, 246, 255, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 78%, rgba(159, 230, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 24% 74%, rgba(234, 246, 255, 0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 54%, rgba(234, 246, 255, 0.5) 50%, transparent 51%),
    radial-gradient(ellipse 70% 80% at 50% 50%, #123B7A 0%, #0A2350 50%, #010A1B 100%);
}

.product-card .product-visual .p-badge {
  width: 112px;
  height: 112px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.product-card .product-visual .p-badge { width: 132px; height: 132px; }
.product-card .product-visual .p-badge img {
  width: 116px;
  height: 116px;
  filter: brightness(1.35) drop-shadow(0 0 10px rgba(95, 211, 255, 0.35));
}
.product-card .product-visual .p-badge svg { opacity: 0.85; filter: drop-shadow(0 0 3px var(--orbit)); }
.product-card .product-visual .p-badge svg ellipse { stroke-width: 0.9; }
.product-card .product-visual .p-badge svg circle { r: 1.6; }

.product-card .product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
}

.product-card .product-body .chip { align-self: flex-start; margin-bottom: var(--space-1); }

:root[data-theme="light"] .product-card, :root:not([data-theme]) .product-card { background: #ffffff; }

/* The Signals AI hero field spans the viewport (a band the page sits in, owner 2026-11-09). */
.brand-hero.is-bleed {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  aspect-ratio: auto;
  height: clamp(380px, 52vw, 820px);
  --ff-x: 10%;
}
.brand-hero.is-bleed > .brand-media > img { object-position: 50% 45%; }
@media (max-width: 760px) {
  .brand-hero.is-bleed { height: max(300px, 80vw); }
  .brand-hero.is-bleed > .brand-media > img { object-fit: contain; }
}


/* The hero band: the intro poster across the full width (2026-11-10; Signals AI and Software). */
.sai-band > .band-media > img { object-position: 50% 46%; }
@media (max-width: 760px) {
  .sai-band.band-hero { min-height: 0; aspect-ratio: 16 / 11; }
}
