/* /about and /products — reuses tokens and shared classes from styles.css
   and components.css (--ink, --navy, --line, --line-soft, --paper-2,
   --font-sans, --font-mono, --ease-out, .wrap, .page-hero, .sec-label,
   .btn-primary, .btn-secondary, .stack-ledger, .about-quote, .rv).
   Logical properties throughout so this stays RTL-safe without overrides. */

.about-sec, .product-sec { padding: var(--space-section) 0; border-bottom: 1px solid var(--line-soft); }
.about-sec:last-of-type, .product-sec:last-of-type { border-bottom: 0; }

/* ── About: story + portrait ── */
.about-story-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.about-story p { font-size: 17px; line-height: 1.6; color: #424245; max-width: 62ch; margin-bottom: var(--space-block); }
.about-portrait { margin: 0; }
.about-portrait img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .about-story-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 320px; margin-inline: auto; }
}

/* ── About: education & languages ── */
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.fact-item { padding-block: 20px; padding-inline-end: 20px; border-bottom: 1px solid var(--line); }
.fact-item dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.fact-item dd { margin: 0; font-size: 17px; color: var(--ink); line-height: 1.5; }
@media (max-width: 640px) { .fact-grid { grid-template-columns: 1fr; } }

/* ── Products: section head ── */
.product-head { max-width: 68ch; margin-bottom: var(--space-head); }
.product-title { font-size: clamp(32px, 3.4vw, 38px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 10px 0 16px; }
.product-who { font-size: 15px; color: var(--navy); margin-bottom: 10px; }
.product-problem { font-size: 17px; line-height: 1.6; color: #424245; }

/* Wide screenshot, never stretched: width-limited, height auto. */
.product-shot { border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; background: var(--paper-2); margin: var(--space-block) 0; }
.product-shot img { width: 100%; height: auto; display: block; }

/* Feature list: tight two-column list with a dash marker, not an icon-card grid. */
.feat-list {
  list-style: none; margin: var(--space-block) 0; padding: 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px;
}
.feat-list li {
  padding-block: 16px; padding-inline-start: 20px; border-bottom: 1px solid var(--line-soft);
  position: relative; font-size: 17px; line-height: 1.6; color: var(--ink);
}
.feat-list li::before { content: '–'; position: absolute; inset-inline-start: 0; color: var(--navy); }
.feat-list li .feat-text { display: block; font-weight: 500; }
.feat-list li em { display: block; font-style: normal; font-size: 14px; color: var(--gray-600); margin-top: 4px; }
@media (max-width: 760px) {
  .feat-list { grid-template-columns: 1fr; }
}

/* Shotlab before/after gallery: fixed 3-column grid so 9 tiles fill complete
   rows with no orphan (auto-fill with a variable column count can't guarantee that). */
.shot-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: var(--space-block) 0; }
.shot-item { border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.shot-item img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 900px) {
  .shot-gallery { grid-template-columns: 1fr; }
}

/* ChatIQ conversation crops: phone-width frame, one row of 3 on desktop. */
.phone-gallery { display: flex; gap: 20px; margin: var(--space-block) 0; }
.phone-item {
  flex: 1 1 0; min-width: 0; max-width: 260px; border: 1px solid var(--line-soft); border-radius: 18px;
  overflow: hidden; background: var(--paper-2);
}
.phone-item img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) {
  .phone-gallery { flex-direction: column; align-items: center; }
  .phone-item { flex: none; width: 220px; max-width: 100%; }
}

.product-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: var(--space-block); }
.product-cases { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.product-case { font-size: 14px; font-weight: 500; color: var(--navy); min-height: 44px; display: inline-flex; align-items: center; }
.product-case:focus-visible, .btn-secondary:focus-visible, .btn-primary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.page-contact { padding: var(--space-head) 0 var(--space-section); text-align: center; }

/* ── About: quote + tech stack ledger (restored; deleted from styles.css
   in Phase 2 but still used by about.php). No side-stripe border, per the
   design rules: hairline top rule instead. ── */
.about-quote {
  border: 0; border-top: 1px solid var(--line); padding-top: 24px; margin-top: var(--space-block);
  font-style: normal; font-size: 19px; line-height: 1.55; color: var(--ink); letter-spacing: -0.01em;
}

.stack-ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.sl-row {
  display: grid; grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--line);
}
.sl-num { font-family: var(--font-mono); font-size: 13px; color: var(--navy); }
.sl-what { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.sl-tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-family: var(--font-mono); font-size: 14px; line-height: 1.6; color: var(--ink); }
.sl-tools li:not(:last-child)::after { content: "·"; padding: 0 10px; color: var(--navy); opacity: .5; }
.sl-proof { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; line-height: 1.6; }
.sl-proof span { width: 100%; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: .6; }
.sl-proof a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; padding: 4px 0; transition: color 200ms var(--ease-out), text-decoration-color 200ms var(--ease-out); }
.sl-proof a:hover, .sl-proof a:focus-visible { color: var(--navy); text-decoration-color: var(--navy); }
@media (max-width: 1024px) {
  .sl-row { grid-template-columns: 40px 1fr 1fr; }
  .sl-proof { grid-column: 2 / -1; }
}
@media (max-width: 560px) {
  .sl-row { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .sl-proof { grid-column: auto; }
  .sl-what { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .shot-item, .phone-item, .product-shot { transition: none !important; }
}

/* ── First screen: shorter page headers (distill, 27 Nov 2026) ── */
.page-jumps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.page-jumps a { display: inline-flex; gap: 6px; align-items: baseline; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--gray-600); transition: border-color 200ms var(--ease-out); }
.page-jumps a strong { color: var(--ink); font-weight: 600; }
.page-jumps a:hover { border-color: var(--ink); }
