/* SoftPears — v1 styles.
   Tokens locked from docs/design/giga-style-reference.md (Giga via Mobbin, measured).
   Edit copy in index.html; edit colors/type/spacing here in :root only. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Color — measured from Giga sections */
  --paper: #f8f8f8;
  --paper-warm: #f7f5ee;
  --surface: #ffffff;
  --ink: #1f201f;
  --muted: #6b6d6c;        /* measured #7d7f7e, darkened for WCAG AA on --paper */
  --line: #e6e5e2;
  --dark: #0e0d12;
  --dark-ink: #f4f4f6;
  --dark-muted: #9a9aa2;
  --accent: #e96d26;       /* burnt orange — dots, tags; text only on dark bg */
  --accent-soft: rgba(233, 109, 38, 0.10);
  --scrim: rgba(14, 13, 18, 0.38);

  /* Type — all system fonts */
  --font-display: ui-serif, Georgia, "Times New Roman", serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-label: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.2rem;
  --text-xl: 1.5rem;
  --text-2xl: 2.9rem;
  --text-hero: 4.2rem;
  --label-size: 0.72rem;
  --label-tracking: 0.12em;
  --leading-tight: 1.12;
  --leading-body: 1.6;
  --measure: 68ch;

  /* Space / shape */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 1rem; --space-4: 1.5rem;
  --space-5: 2rem; --space-6: 3rem; --space-7: 4.5rem; --space-8: 7rem;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --radius-card: 14px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: var(--leading-tight);
}

h3 { font-size: var(--text-xl); font-weight: 600; }

p { margin: 0; text-wrap: pretty; }

button { font: inherit; }

.container {
  width: min(100% - 2 * clamp(16px, 5vw, 48px), 1120px);
  margin-inline: auto;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--dark-ink);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

[dir="rtl"] .skip-link {
  right: 0;
  left: auto;
  top: -100px;
}

[dir="rtl"] .skip-link:focus {
  right: 0;
  left: auto;
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(20, 18, 16, 0.10), 0 3px 10px rgba(20, 18, 16, 0.07);
  transition:
    background-color 0.3s ease-out,
    color 0.3s ease-out,
    border-color 0.3s ease-out,
    backdrop-filter 0.3s ease-out,
    box-shadow 0.3s ease-out;
}

.btn:active { box-shadow: 0 1px 2px rgba(20, 18, 16, 0.12); }

/* Giga pattern: on hover the pill turns to dark glass —
   translucent fill + 20px backdrop blur + faint border (giga.ai: hover:bg-primary-foreground/60 hover:backdrop-blur-[20px] hover:border-border) */
.btn-light {
  background: var(--dark-ink);
  color: var(--ink);
}
.btn-light:hover {
  background: rgba(14, 13, 18, 0.6);
  color: var(--dark-ink);
  border-color: rgba(244, 244, 246, 0.25);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.btn-compact { padding: 8px 18px; font-size: var(--text-sm); }

.link-light {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dark-ink);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.link-light:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: 16px clamp(16px, 4vw, 40px);
}

.wordmark {
  font-weight: 700;
  font-size: var(--text-lg);
  text-decoration: none;
}

a.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-header .wordmark { color: var(--dark-ink); }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(4px, 1.5vw, 16px);
  margin-inline: auto;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--dark-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  opacity: 0.85;
  transition: background-color 0.3s ease-out, opacity 0.3s ease-out, backdrop-filter 0.3s ease-out;
}
/* Giga "Sign in" pattern: glass capsule fades in around the link
   (giga.ai underlay: bg-white/10 + backdrop-blur-[20px], 300ms ease-out) */
.site-header nav a:hover {
  opacity: 1;
  background: rgba(244, 244, 246, 0.10);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.site-header--solid {
  position: static;
  background: var(--dark);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(244, 244, 246, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(244, 244, 246, 0.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 9px;
  border-radius: var(--radius-pill);
  color: var(--dark-ink);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.language-switcher a[aria-current="page"] {
  background: var(--dark-ink);
  color: var(--ink);
}

.language-switcher a:not([aria-current="page"]):hover {
  background: rgba(244, 244, 246, 0.12);
}

/* Narrow screens: header becomes a dark bar above the hero photo */
@media (max-width: 720px) {
  .site-header {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-2) var(--space-3);
    padding: 12px 16px 10px;
    background: var(--dark);
  }
  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    flex-wrap: nowrap;
  }
  .site-header nav a {
    flex: 1;
    justify-content: center;
    padding-inline: 8px;
  }
  .site-header > .btn { display: none; }
  /* dark capsule is invisible on the dark bar — use a light one */
  .site-header nav a:hover { background: rgba(244, 244, 246, 0.12); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark); /* photo loading fallback */
  color: var(--dark-ink);
}

.hero-photo,
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo img { object-fit: cover; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * clamp(16px, 5vw, 48px), 880px);
  margin-inline: auto;
  padding-block: clamp(8rem, 18vh, 11rem) var(--space-5);
  text-align: center;
}

@media (max-width: 720px) {
  .hero-inner { padding-block: 4rem 3.5rem; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: var(--leading-tight);
  max-width: 26ch;
  margin-inline: auto;
}

.hero-lead {
  max-width: 56ch;
  margin: var(--space-4) auto 0;
  font-size: var(--text-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-5);
}

.cred-strip {
  /* wider than .hero-inner (880px) so the strip can fit on one line on desktop */
  position: relative;
  z-index: 1;
  width: min(100% - 2 * clamp(16px, 5vw, 48px), 1120px);
  margin: var(--space-4) auto 0;
  padding-bottom: clamp(3rem, 8vh, 5rem);
  text-align: center;
  font-size: var(--text-sm);
}

/* ---------- Sections ---------- */
section { padding-block: var(--space-8); }

.hero { padding-block: 0; }

/* ---------- Products ---------- */
.products-hero {
  padding-block: clamp(5rem, 12vw, 9rem);
  background: var(--paper);
}

.products-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: clamp(var(--space-5), 7vw, var(--space-8));
}

.products-hero h1 {
  max-width: 15ch;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.products-hero-copy {
  max-width: 42ch;
  padding-bottom: 0.45rem;
  color: var(--muted);
  font-size: var(--text-lg);
}

.products-kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.products-kicker::before,
.product-status::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.product-slot {
  display: grid;
  grid-template-columns: minmax(90px, 0.25fr) minmax(0, 1.2fr) minmax(220px, 0.55fr);
  gap: clamp(var(--space-4), 5vw, var(--space-7));
  align-items: start;
  padding-block: clamp(var(--space-6), 8vw, var(--space-8));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-number {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.9;
}

.product-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.product-slot h2 {
  max-width: 18ch;
}

.product-slot-copy > p:last-child {
  max-width: 56ch;
  margin-top: var(--space-3);
  color: var(--muted);
}

.product-slot-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.product-slot-meta li {
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-sm);
}

.product-page-promise {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(var(--space-5), 8vw, var(--space-8));
}

.product-page-promise h2 {
  max-width: 12ch;
}

.product-page-includes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.product-page-includes div {
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.product-page-includes h3 {
  font-size: var(--text-lg);
}

.product-page-includes p {
  margin-top: var(--space-2);
  color: var(--muted);
}

.products-support h2 {
  max-width: 18ch;
}

.products-support .section-intro {
  margin-inline: 0;
}

.products-support a:not(.btn) {
  color: var(--dark-ink);
}

.product-detail-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.product-slot-media img {
  display: block;
  width: min(100%, 240px);
  height: auto;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.product-slot-media .product-slot-meta {
  margin-top: var(--space-4);
}

/* ---------- Product detail ---------- */
.product-detail-hero {
  padding-block: clamp(5rem, 12vw, 8rem);
}

.product-detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: clamp(var(--space-5), 8vw, var(--space-8));
}

.product-detail-hero .product-status {
  color: var(--dark-muted);
}

.product-detail-hero h1,
.product-legal-hero h1 {
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.35rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.product-detail-hero-copy {
  max-width: 44ch;
  color: var(--dark-muted);
  font-size: var(--text-lg);
}

.product-detail-hero-copy p + p {
  margin-top: var(--space-5);
}

.product-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-3) clamp(var(--space-5), 7vw, var(--space-8));
  align-items: end;
}

.product-section-head .products-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.product-section-head h2 {
  max-width: 14ch;
}

.product-section-head > p:last-child {
  max-width: 52ch;
  color: var(--muted);
  font-size: var(--text-lg);
}

.product-screenshot-sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(var(--space-4), 4vw, var(--space-6));
  margin-top: var(--space-7);
}

.product-screenshot-sequence figure {
  position: relative;
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.product-screenshot-sequence img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.product-screenshot-sequence figcaption {
  margin-top: var(--space-4);
  color: var(--muted);
}

.product-screenshot-sequence figcaption strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--ink);
  font-size: var(--text-lg);
}

.product-feature-layout,
.product-details-layout,
.product-support-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(var(--space-5), 8vw, var(--space-8));
}

.product-feature-intro h2,
.product-details-layout h2,
.product-support h2 {
  max-width: 14ch;
}

.product-feature-intro > p:last-child {
  max-width: 44ch;
  margin-top: var(--space-4);
  color: var(--muted);
}

.product-feature-list article {
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}

.product-feature-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.product-feature-list h3 {
  font-size: var(--text-lg);
}

.product-feature-list article p:last-child {
  max-width: 58ch;
  margin-top: var(--space-2);
  color: var(--muted);
}

.product-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.product-facts div {
  display: grid;
  grid-template-columns: minmax(130px, 0.4fr) minmax(0, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.product-facts dt {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.product-facts dd {
  margin: 0;
}

.product-support p {
  max-width: 52ch;
  margin-top: var(--space-4);
  color: var(--dark-muted);
}

.product-legal-links {
  border-top: 1px solid rgba(244, 244, 246, 0.18);
}

.product-legal-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
  padding-block: var(--space-3);
  border-bottom: 1px solid rgba(244, 244, 246, 0.18);
  color: var(--dark-ink);
  font-weight: 700;
  text-decoration: none;
}

.product-legal-links a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ---------- Product legal pages ---------- */
.product-language-menu {
  position: relative;
  color: var(--dark-ink);
}

.product-language-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(244, 244, 246, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(244, 244, 246, 0.08);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 700;
  list-style: none;
}

.product-language-menu summary::-webkit-details-marker {
  display: none;
}

.product-language-menu summary::after {
  content: "+";
  margin-inline-start: var(--space-2);
}

.product-language-menu[open] summary::after {
  content: "−";
}

.product-language-menu-links {
  position: absolute;
  inset-block-start: calc(100% + var(--space-2));
  inset-inline-end: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 2px;
  width: min(340px, calc(100vw - 32px));
  padding: var(--space-2);
  border: 1px solid rgba(244, 244, 246, 0.18);
  border-radius: var(--radius-card);
  background: var(--dark);
  box-shadow: 0 14px 30px rgba(14, 13, 18, 0.28);
}

.product-language-menu-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--dark-ink);
  font-size: var(--text-sm);
  text-decoration: none;
}

.product-language-menu-links a:hover,
.product-language-menu-links a[aria-current="page"] {
  background: rgba(244, 244, 246, 0.12);
}

.product-legal-hero {
  padding-block: clamp(4rem, 10vw, 7rem);
}

.product-legal-hero h1 {
  margin-top: var(--space-3);
}

.product-legal-hero > .container > p:last-child {
  margin-top: var(--space-4);
  color: var(--dark-muted);
  font-size: var(--text-lg);
}

.product-legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
  gap: clamp(var(--space-5), 7vw, var(--space-8));
  align-items: start;
}

.product-legal-aside {
  position: sticky;
  top: var(--space-4);
  display: grid;
  border-top: 1px solid var(--line);
}

.product-legal-aside p {
  padding-block: var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
}

.product-legal-aside a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-block: var(--space-2);
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.product-legal-aside a[aria-current="page"],
.product-legal-aside a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.product-legal-body {
  width: min(100%, 76ch);
  padding: clamp(var(--space-4), 5vw, var(--space-7));
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.product-legal-body h2 {
  margin-top: var(--space-7);
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  scroll-margin-top: var(--space-4);
}

.product-legal-body h2:first-of-type {
  margin-top: var(--space-5);
}

.product-legal-body p,
.product-legal-body ul {
  margin: var(--space-3) 0 0;
}

.product-legal-body ul {
  padding-inline-start: 1.25rem;
}

.product-legal-body li + li {
  margin-top: var(--space-2);
}

.product-legal-body a {
  color: var(--ink);
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

[dir="rtl"] .product-legal-body,
[dir="rtl"] .product-legal-aside,
[dir="rtl"] .product-legal-hero {
  text-align: start;
}

.section-warm { background: var(--paper-warm); }

.section-compact { padding-block: var(--space-7); }

.section-dark {
  background: var(--dark);
  color: var(--dark-ink);
}

.section-head {
  max-width: var(--measure);
  margin: 0 auto var(--space-6);
  text-align: center;
}

.section-head-left {
  max-width: 36rem;
  margin: 0;
  text-align: left;
}

.section-head h2 { margin-top: var(--space-2); }

.section-intro {
  margin-top: var(--space-3);
  font-size: var(--text-lg);
  color: var(--muted);
}

.section-dark .section-intro { color: var(--dark-muted); }

.eyebrow {
  font-family: var(--font-label);
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "● ";
  color: var(--accent);
  font-size: 0.6em;
  vertical-align: 0.2em;
}
.section-dark .eyebrow { color: var(--dark-muted); }

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: end;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.split-head h2 { max-width: 20ch; }

.split-head > p {
  max-width: 52ch;
  color: var(--muted);
  font-size: var(--text-lg);
}

.split-head-compact { margin-bottom: var(--space-5); }

/* ---------- Starting pathways ---------- */
.pathway-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.pathways { border-top: 1px solid var(--line); }

.pathway {
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(240px, 1fr);
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.pathway h3 { font-size: var(--text-lg); }
.pathway p { color: var(--muted); }

.pathway a {
  grid-column: 2;
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  font-weight: 650;
  text-underline-offset: 4px;
}

.pathway a:hover { text-decoration-thickness: 2px; }

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.service-card {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.service-scope {
  min-height: 2.8em;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.service-card h3 { margin-top: var(--space-4); }
.service-card > p:last-child { margin-top: var(--space-3); color: var(--muted); }

/* ---------- Process steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  min-width: 0;
  padding: var(--space-4) var(--space-3) 0;
}

.step:first-child { padding-left: 0; }
.step + .step { border-left: 1px solid var(--line); }

.num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.step h3 { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-lg); }
.step p { color: var(--muted); }

/* ---------- Work index ---------- */
.work-index { border-top: 1px solid var(--line); }

.work-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: var(--space-5);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--line);
}

.work-row p { color: var(--muted); font-size: var(--text-lg); }

/* ---------- Proof ---------- */
.proof-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.proof-lead { position: sticky; top: var(--space-5); }
.proof-lead h2 { max-width: 18ch; }
.proof-lead p { margin-top: var(--space-4); color: var(--muted); font-size: var(--text-lg); }

.proof-list { margin: 0; }

.proof-list > div {
  padding-block: var(--space-4) var(--space-5);
  border-top: 1px solid var(--line);
}
.proof-list > div:last-child { border-bottom: 1px solid var(--line); }
.proof-list dt { font-size: var(--text-xl); font-weight: 650; }
.proof-list dd { margin: var(--space-2) 0 0; color: var(--muted); }

/* ---------- Technology outcomes ---------- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.capabilities article {
  padding-top: var(--space-4);
  border-top: 1px solid var(--ink);
}

.capabilities h3 { font-size: var(--text-lg); }
.capabilities article > p { margin-top: var(--space-2); color: var(--muted); }
.capabilities .tech-detail { margin-top: var(--space-4); font-size: var(--text-sm); }

/* ---------- Principle band ---------- */
.principle-band {
  padding-block: var(--space-7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle-label { color: var(--muted); font-weight: 650; }

.principle-statement {
  max-width: 24ch;
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.nowrap { white-space: nowrap; }

/* ---------- Contact ---------- */
.contact-inner { text-align: left; }

.contact-inner h2 {
  max-width: 18ch;
  margin-top: var(--space-2);
}

.contact-inner .section-intro { max-width: 58ch; }

.contact-email { margin-top: var(--space-5); font-size: var(--text-xl); }

.contact-email a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dark-ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.contact-email a:hover { color: #ffffff; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.copy-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(244, 244, 246, 0.35);
  border-radius: var(--radius-pill);
  background: transparent;
  box-shadow: none;
  color: var(--dark-ink);
  cursor: pointer;
  font-weight: 650;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.copy-email:hover { background: rgba(244, 244, 246, 0.1); border-color: rgba(244, 244, 246, 0.6); }
.copy-email:active { background: rgba(244, 244, 246, 0.16); }

.copy-status {
  min-height: 1.6em;
  margin-top: var(--space-2);
  color: var(--dark-muted);
  font-size: var(--text-sm);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(244, 244, 246, 0.18);
}

.contact-details h3 { font-size: var(--text-lg); }
.contact-details p { max-width: 46ch; margin-top: var(--space-2); color: var(--dark-muted); }

@media (max-width: 900px) {
  .products-hero-inner,
  .product-page-promise,
  .product-detail-hero-inner,
  .product-feature-layout,
  .product-details-layout,
  .product-support-layout,
  .product-legal-layout {
    grid-template-columns: 1fr;
  }

  .products-hero-copy { padding-bottom: 0; }

  .product-slot {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .product-slot-meta { grid-column: 2; }

  .product-legal-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-legal-aside p {
    grid-column: 1 / -1;
  }

  .pathway-layout,
  .proof-layout { grid-template-columns: 1fr; gap: var(--space-6); }

  .proof-lead { position: static; }

  .steps {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .step,
  .step:first-child {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: var(--space-3);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--line);
  }

  .step + .step { border-left: 0; }
  .step h3 { margin: 4px 0 var(--space-1); }
}

@media (max-width: 720px) {
  :root {
    --text-lg: 1.1rem;
    --text-xl: 1.3rem;
    --text-2xl: 2.15rem;
    --text-hero: 2.3rem;
  }

  section { padding-block: var(--space-7); }

  .hero-inner { padding-block: 2.75rem 1.5rem; }

  .hero-lead {
    margin-top: var(--space-3);
    font-size: var(--text-base);
    line-height: 1.5;
  }

  .hero-actions {
    gap: var(--space-2) var(--space-3);
    margin-top: var(--space-4);
  }

  .cred-strip {
    margin-top: var(--space-3);
    padding-bottom: var(--space-5);
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .split-head,
  .service-grid,
  .capabilities,
  .contact-details,
  .product-page-includes,
  .product-section-head,
  .product-screenshot-sequence {
    grid-template-columns: 1fr;
  }

  .products-hero h1 { font-size: clamp(2.5rem, 12vw, 3.6rem); }

  .product-legal-hero h1 {
    font-size: clamp(2.05rem, 9vw, 2.6rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .product-slot {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .product-slot-meta { grid-column: 1; }

  .product-slot-media img {
    width: min(100%, 320px);
  }

  .product-screenshot-sequence {
    gap: var(--space-6);
  }

  .product-screenshot-sequence img {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .product-facts div {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .product-language-menu {
    justify-self: end;
  }

  .product-language-menu summary {
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-language-menu-links {
    grid-template-columns: 1fr;
    max-height: min(68vh, 620px);
    overflow-y: auto;
  }

  .product-detail-page .site-header nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-page .site-header nav a {
    min-width: 0;
  }

  .product-legal-body {
    padding-inline: var(--space-4);
  }

  .product-legal-aside {
    grid-template-columns: 1fr;
  }

  .split-head { align-items: start; gap: var(--space-3); margin-bottom: var(--space-5); }

  .pathway { grid-template-columns: 1fr; gap: var(--space-2); }
  .pathway a { grid-column: 1; }

  .service-scope { min-height: 0; }

  .work-row { grid-template-columns: 1fr; gap: var(--space-2); }

  .principle-band { padding-block: var(--space-6); }

  .contact-details { gap: var(--space-4); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--dark-muted);
  border-top: 1px solid rgba(244, 244, 246, 0.12);
  padding-block: var(--space-6);
  font-size: var(--text-sm);
}

.site-footer .wordmark { color: var(--dark-ink); }

.site-footer .footer-line { margin-top: var(--space-2); }

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dark-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer a:hover { color: #ffffff; }

.site-footer p + p { margin-top: var(--space-1); }

.footer-languages {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-languages a {
  min-width: 44px;
  justify-content: center;
}

.copyright { margin-top: var(--space-4); }
