
/* ================================================================ v2 ==== */
/* Sections added for the product-proof rebuild: coexistence band, capability
   rows with real product frames, category thesis, and design-partner block. */

/* ------------------------------------------------------- product frame - */
/* Real product screenshots, framed so they read as software, not decoration. */

.frame {
  position: relative;
  border: 1px solid var(--snow-color-border-default);
  border-radius: var(--snow-radius-lg);
  background: var(--snow-color-surface-overlay);
  box-shadow: var(--snow-shadow-lg);
  overflow: hidden;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: var(--snow-space-xs);
  padding: var(--snow-space-sm) calc(var(--snow-space-sm) + var(--snow-space-xs));
  border-bottom: 1px solid var(--snow-color-border-default);
  background: var(--snow-color-surface-page);
}

.frame-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--snow-radius-full);
  background: var(--snow-color-border-strong);
}

.frame-path {
  margin-left: var(--snow-space-sm);
  font-family: var(--snow-font-family-mono);
  font-size: var(--snow-type-size-compact-label);
  color: var(--snow-color-text-subtle);
}

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

/* Hero montage: primary frame with a second frame overlapping it. */
.hero-montage {
  position: relative;
  padding-bottom: var(--snow-space-2xl);
}

.hero-montage .frame-main img {
  /* Crop to the interesting part of a tall capture. */
  max-height: 420px;
  object-fit: cover;
  object-position: top left;
}

.hero-montage .frame-inset {
  position: absolute;
  right: calc(-1 * var(--snow-space-md));
  bottom: 0;
  width: 62%;
  border-radius: var(--snow-radius-md);
}

.hero-montage .frame-inset img {
  max-height: 210px;
  object-fit: cover;
  object-position: top left;
}

/* ---------------------------------------------------------- coexistence - */

.coexist {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--snow-space-xl);
  align-items: center;
  padding-top: var(--snow-space-2xl);
  padding-bottom: var(--snow-space-2xl);
  border-top: 1px solid var(--snow-color-border-default);
}

.coexist h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  max-width: 18ch;
}

.coexist p {
  color: var(--snow-color-text-muted);
  line-height: 1.65;
  max-width: 60ch;
}

.coexist p + p {
  margin-top: var(--snow-space-md);
}

/* ---------------------------------------------------------- capability - */

.capability {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--snow-space-2xl);
  align-items: center;
  padding-top: var(--snow-space-2xl);
  padding-bottom: var(--snow-space-2xl);
  border-top: 1px solid var(--snow-color-border-default);
}

/* Alternate the image side so the page does not become a single column of cards. */
.capability:nth-of-type(even) .capability-copy {
  order: 2;
}

.capability-kicker {
  display: block;
  margin-bottom: var(--snow-space-sm);
  font-size: var(--snow-type-size-compact-label);
  font-weight: var(--snow-type-weight-bold);
  letter-spacing: var(--snow-type-letter-spacing-compact-label);
  text-transform: uppercase;
  color: var(--snow-color-action-secondary-text);
}

.capability h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  max-width: 20ch;
}

.capability p {
  margin-top: var(--snow-space-md);
  color: var(--snow-color-text-muted);
  line-height: 1.65;
  max-width: 52ch;
}

.capability .tag-row {
  margin-top: var(--snow-space-lg);
}

/* ------------------------------------------------------------- thesis - */

.thesis {
  padding-top: var(--snow-space-2xl);
  padding-bottom: var(--snow-space-2xl);
  border-top: 1px solid var(--snow-color-border-default);
  text-align: center;
}

.thesis h2 {
  margin: 0 auto;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  max-width: 20ch;
}

.thesis p {
  margin: var(--snow-space-lg) auto 0;
  max-width: 62ch;
  color: var(--snow-color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* ------------------------------------------------------ design partner - */

.partner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--snow-space-xl);
  padding-top: var(--snow-space-2xl);
  padding-bottom: var(--snow-space-2xl);
  border-top: 1px solid var(--snow-color-border-default);
}

.partner h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  max-width: 16ch;
}

.partner p {
  color: var(--snow-color-text-muted);
  line-height: 1.65;
  max-width: 56ch;
}

.partner h2 + p {
  margin-top: var(--snow-space-md);
}

.partner p + p {
  margin-top: var(--snow-space-md);
}

/* Status list: what is live today vs in progress. Honesty as a proof device. */
.status-list {
  display: grid;
  gap: var(--snow-space-sm);
  margin-top: var(--snow-space-lg);
}

.status-list div {
  display: flex;
  align-items: flex-start;
  gap: var(--snow-space-sm);
  font-size: var(--snow-type-size-label);
  line-height: 1.5;
}

.status-pill {
  flex: 0 0 auto;
  margin-top: 1px;
  padding: var(--snow-space-2xs) var(--snow-space-sm);
  border-radius: var(--snow-radius-full);
  font-size: var(--snow-type-size-compact-label);
  font-weight: var(--snow-type-weight-semibold);
  white-space: nowrap;
}

.status-pill.live {
  background: var(--snow-color-status-success-background);
  color: var(--snow-color-status-success-text);
}

.status-pill.building {
  background: var(--snow-color-status-warning-background);
  color: var(--snow-color-status-warning-text);
}

/* ---------------------------------------------------- v2 responsive --- */

@media (max-width: 1100px) {
  .coexist,
  .capability,
  .partner {
    grid-template-columns: 1fr;
    gap: var(--snow-space-lg);
  }

  .capability:nth-of-type(even) .capability-copy {
    order: 0;
  }

  .hero-montage {
    padding-bottom: 0;
  }

  .hero-montage .frame-inset {
    display: none;
  }

  .hero-montage .frame-main img {
    max-height: 340px;
  }
}

/* ------------------------------------------------------------- roadmap - */
/* Deliberately not another bordered card grid — the page already has two.
   A top accent rule per item keeps it scannable and visually distinct. */

.roadmap {
  padding-top: var(--snow-space-2xl);
  padding-bottom: var(--snow-space-2xl);
  border-top: 1px solid var(--snow-color-border-default);
}

.roadmap-intro h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  max-width: 20ch;
}

.roadmap-intro p {
  margin-top: var(--snow-space-md);
  max-width: 54ch;
  color: var(--snow-color-text-muted);
  line-height: 1.65;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--snow-space-xl);
  margin-top: var(--snow-space-2xl);
}

.roadmap-grid article {
  padding-top: var(--snow-space-md);
  border-top: 2px solid var(--snow-color-assistant-primary);
}

.roadmap-grid h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  margin-bottom: var(--snow-space-sm);
}

.roadmap-grid p {
  color: var(--snow-color-text-muted);
  font-size: var(--snow-type-size-label);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
    gap: var(--snow-space-lg);
    margin-top: var(--snow-space-xl);
  }
}

/* --------------------------------------------------------- cost of change - */
/* Row two: one concrete task, costed before and after. Diagnosis alone did not
   earn this slot, so the answer sits beside the problem with real product. */

.cost {
  padding-top: var(--snow-space-2xl);
  padding-bottom: var(--snow-space-2xl);
  border-top: 1px solid var(--snow-color-border-default);
}

.cost-intro h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  max-width: 22ch;
}

.cost-intro p {
  margin-top: var(--snow-space-md);
  max-width: 58ch;
  color: var(--snow-color-text-muted);
  line-height: 1.65;
}

.cost-compare {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--snow-space-2xl);
  align-items: start;
  margin-top: var(--snow-space-2xl);
}

.cost-compare h3 {
  margin-bottom: var(--snow-space-lg);
  font-size: 1.0625rem;
  line-height: 1.4;
}

.cost-label {
  display: inline-block;
  margin-right: var(--snow-space-sm);
  padding: var(--snow-space-2xs) var(--snow-space-sm);
  border-radius: var(--snow-radius-full);
  font-size: var(--snow-type-size-compact-label);
  font-weight: var(--snow-type-weight-bold);
  letter-spacing: var(--snow-type-letter-spacing-compact-label);
  text-transform: uppercase;
  vertical-align: middle;
}

.cost-label.before {
  background: var(--snow-color-status-neutral-background);
  border: 1px solid var(--snow-color-border-default);
  color: var(--snow-color-text-muted);
}

.cost-label.after {
  background: var(--snow-color-assistant-surface);
  color: var(--snow-color-action-secondary-text);
}

/* The "before" column is deliberately quieter than the product beside it. */
.cost-before h3 {
  color: var(--snow-color-text-muted);
}

.cost-steps {
  display: grid;
  gap: var(--snow-space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cost-steps li {
  padding-left: var(--snow-space-lg);
  border-left: 2px solid var(--snow-color-border-default);
}

.cost-step-index {
  display: block;
  margin-bottom: var(--snow-space-xs);
  font-family: var(--snow-font-family-mono);
  font-size: var(--snow-type-size-compact-label);
  font-weight: var(--snow-type-weight-semibold);
  color: var(--snow-color-text-subtle);
}

.cost-steps strong {
  display: block;
  margin-bottom: var(--snow-space-2xs);
  font-size: var(--snow-type-size-label);
  font-weight: var(--snow-type-weight-semibold);
}

.cost-steps li > span:last-child {
  display: block;
  color: var(--snow-color-text-muted);
  font-size: var(--snow-type-size-label);
  line-height: 1.55;
}

.cost-after .tag-row {
  margin-top: var(--snow-space-md);
}

@media (max-width: 900px) {
  .cost-compare {
    grid-template-columns: 1fr;
    gap: var(--snow-space-xl);
    margin-top: var(--snow-space-xl);
  }
}

/* ------------------------------------------------------------ lightbox - */
/* Click a screenshot to see it at full size. Implemented with :target rather
   than JavaScript so the site keeps its `script-src 'none'` CSP. Each trigger
   has its own overlay, so closing returns the reader to the figure they opened
   instead of the top of the page. */

.frame-zoom {
  display: block;
  position: relative;
  cursor: zoom-in;
}

.frame-zoom-hint {
  position: absolute;
  right: var(--snow-space-sm);
  bottom: var(--snow-space-sm);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--snow-radius-sm);
  background: var(--snow-color-action-primary-background);
  color: var(--snow-color-action-primary-text);
  box-shadow: var(--snow-shadow-md);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.frame-zoom:hover .frame-zoom-hint,
.frame-zoom:focus-visible .frame-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Always visible on touch, where there is no hover to reveal it. */
@media (hover: none) {
  .frame-zoom-hint {
    opacity: 1;
    transform: none;
  }
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: clamp(var(--snow-space-md), 4vw, var(--snow-space-2xl));
  background: rgba(20, 32, 43, 0.82);
}

.lightbox:target {
  display: grid;
  place-items: center;
}

/* Full-bleed dismiss layer behind the image; clicking anywhere else closes. */
.lightbox-dismiss {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

.lightbox-figure {
  position: relative;
  max-width: min(1600px, 100%);
  max-height: 100%;
  margin: 0;
  border-radius: var(--snow-radius-md);
  overflow: hidden;
  background: var(--snow-color-surface-overlay);
  box-shadow: var(--snow-shadow-lg);
}

.lightbox-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
}

.lightbox-figure figcaption {
  padding: var(--snow-space-sm) var(--snow-space-md);
  border-top: 1px solid var(--snow-color-border-default);
  font-family: var(--snow-font-family-mono);
  font-size: var(--snow-type-size-compact-label);
  color: var(--snow-color-text-subtle);
}

.lightbox-close {
  position: absolute;
  top: clamp(var(--snow-space-sm), 3vw, var(--snow-space-lg));
  right: clamp(var(--snow-space-sm), 3vw, var(--snow-space-lg));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--snow-radius-full);
  background: var(--snow-color-surface-overlay);
  color: var(--snow-color-text-default);
  box-shadow: var(--snow-shadow-md);
  text-decoration: none;
}

.lightbox-close:hover {
  background: var(--snow-color-table-row-hover);
}

/* On a phone, fitting a 1440px-wide app screenshot to a 390px screen defeats
   the point of enlarging it. Render at a legible width instead and let the
   reader pan, which is the one place scroll-in-a-box is the right answer. */
@media (max-width: 700px) {
  .lightbox-figure {
    max-width: 100%;
    max-height: calc(100dvh - 6rem);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .lightbox-figure img {
    width: 900px;
    max-width: none;
    max-height: none;
  }

  .lightbox-figure figcaption {
    position: sticky;
    left: 0;
    width: 100vw;
    background: var(--snow-color-surface-overlay);
  }
}

/* --------------------------------------------------------- legal pages - */
/* Impressum and privacy policy. Long-form reading, so the measure is tighter
   than the marketing sections and the type is left unjustified. */

.legal {
  max-width: 78ch;
  padding-top: var(--snow-space-2xl);
  padding-bottom: var(--snow-space-3xl);
}

.legal h1 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  max-width: none;
  margin-bottom: var(--snow-space-md);
}

.legal .legal-meta {
  color: var(--snow-color-text-subtle);
  font-size: var(--snow-type-size-label);
}

.legal h2 {
  margin-top: var(--snow-space-2xl);
  margin-bottom: var(--snow-space-md);
  padding-top: var(--snow-space-lg);
  border-top: 1px solid var(--snow-color-border-default);
  font-size: 1.375rem;
  line-height: 1.25;
}

.legal h3 {
  margin-top: var(--snow-space-lg);
  margin-bottom: var(--snow-space-sm);
  font-size: 1.0625rem;
}

.legal p,
.legal li {
  color: var(--snow-color-text-muted);
  line-height: 1.7;
}

.legal p + p,
.legal ul,
.legal ol,
.legal dl {
  margin-top: var(--snow-space-md);
}

.legal ul,
.legal ol {
  padding-left: var(--snow-space-lg);
}

.legal li + li {
  margin-top: var(--snow-space-sm);
}

.legal a:not(.snow-btn-primary):not(.snow-btn-secondary) {
  color: var(--snow-color-action-secondary-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal strong {
  color: var(--snow-color-text-default);
}

.legal dl {
  display: grid;
  grid-template-columns: minmax(max-content, auto) minmax(0, 1fr);
  gap: var(--snow-space-sm) var(--snow-space-lg);
  align-items: baseline;
}

.legal dt {
  font-weight: var(--snow-type-weight-semibold);
  color: var(--snow-color-text-default);
}

.legal dd {
  margin: 0;
  color: var(--snow-color-text-muted);
}

/* Unfilled legal detail. Deliberately loud — this must never reach production. */
.todo {
  display: inline-block;
  padding: 0 var(--snow-space-xs);
  border-radius: var(--snow-radius-sm);
  background: var(--snow-color-status-warning-background);
  color: var(--snow-color-status-warning-text);
  font-family: var(--snow-font-family-mono);
  font-size: 0.8125rem;
  font-weight: var(--snow-type-weight-semibold);
}

.legal-callout {
  margin-top: var(--snow-space-lg);
  padding: var(--snow-space-md) var(--snow-space-lg);
  border: 1px solid var(--snow-color-status-warning-border);
  border-radius: var(--snow-radius-md);
  background: var(--snow-color-status-warning-background);
}

.legal-callout p {
  color: var(--snow-color-status-warning-text);
}

/* ------------------------------------------------------------ skip link - */

.skip-link {
  position: absolute;
  left: var(--snow-space-md);
  top: calc(-1 * var(--snow-space-3xl));
  z-index: 200;
  padding: var(--snow-space-sm) var(--snow-space-md);
  border-radius: var(--snow-radius-sm);
  background: var(--snow-color-action-primary-background);
  color: var(--snow-color-action-primary-text);
  font-size: var(--snow-type-size-label);
  font-weight: var(--snow-type-weight-semibold);
  text-decoration: none;
  transition: top 120ms ease;
}

.skip-link:focus {
  top: var(--snow-space-md);
}

/* ------------------------------------------------------ footer (legal) - */

.footer {
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--snow-space-md);
}

.footer-links a {
  color: var(--snow-color-text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--snow-color-text-default);
  text-decoration: underline;
}

.footer-note {
  flex-basis: 100%;
  padding-top: var(--snow-space-md);
  border-top: 1px solid var(--snow-color-border-default);
  color: var(--snow-color-text-subtle);
  font-size: var(--snow-type-size-compact-label);
}

/* Brand lockup is a link on every page. Declared here rather than inline: the
   deployed CSP sets style-src 'self', so inline style attributes are refused. */
a.brand {
  text-decoration: none;
  color: inherit;
}

/* Definition lists stack on narrow screens; a fixed term column overflows. */
@media (max-width: 700px) {
  .legal dl {
    grid-template-columns: 1fr;
    gap: var(--snow-space-2xs);
  }

  .legal dd + dt {
    margin-top: var(--snow-space-md);
  }
}

/* Result pages for the contact endpoint. */
.legal-cta {
  margin-top: var(--snow-space-xl);
}

/* Cookie names are code tokens, so give them the mono face and a tint that
   separates them from the surrounding prose without shouting. */
.legal dt code {
  padding: 0 var(--snow-space-2xs);
  border-radius: var(--snow-radius-sm);
  background: var(--snow-color-status-neutral-background);
  font-family: var(--snow-font-family-mono);
  font-size: 0.875em;
  font-weight: var(--snow-type-weight-regular);
  color: var(--snow-color-text-technical);
}
