/* ============================================================
   4-INSTANCE  shared styles
   Light theme. One accent (acid lime) for fills + decorative
   marks; deep olive-lime ink (--accent-ink) for accent TEXT.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg:        #f6f6f3;   /* warm off-white, not pure #fff */
  --bg-2:      #ffffff;   /* elevated surface */
  --bg-3:      #eeeee9;
  --line:      rgba(20,20,25,.12);
  --line-2:    rgba(20,20,25,.07);
  --text:      #16161a;   /* warm near-black, not pure #000 */
  --muted:     #56565e;   /* AA on --bg */
  --faint:     #8c8c93;
  --accent:    #c8f250;   /* lime: FILLS + decorative marks only */
  --accent-dim:#aad23c;
  --accent-ink:#4c6406;   /* deep olive-lime: accent TEXT (AA on light) */
  --on-accent: #16161a;

  --r:   14px;            /* media / blocks */
  --r-sm: 8px;
  --pill: 999px;

  --maxw: 1240px;
  --ease: cubic-bezier(.16,1,.3,1);
  --section-py: clamp(5rem, 11vw, 10rem);
}

/* ---------- RESET / BASE ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: var(--pill);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #d6fb6b; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-1px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.link-arrow:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
.link-arrow .arr { transition: transform .25s var(--ease); }
.link-arrow:hover .arr { transform: translateX(3px); }

/* ---------- HEADER / NAV ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: .12rem; font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; }
.brand .dot { color: var(--accent-ink); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) {
  font-size: .95rem; color: var(--muted);
  transition: color .2s var(--ease); position: relative;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 1.4rem; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: .4rem; }
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- HERO (home) ---------- */
.hero { position: relative; min-height: calc(100dvh - 68px); display: flex; align-items: center; padding-block: clamp(2rem, 6vh, 4rem); overflow: hidden; }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; width: 100%;
  grid-template-columns: 1.15fr .85fr;
}
.hero-eyebrow { margin-bottom: 1.6rem; display: inline-flex; align-items: center; gap: .6rem; }
.hero-eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 700;
  max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero .sub {
  margin-top: 1.6rem; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 46ch; line-height: 1.55;
}
.hero-actions { margin-top: 2.4rem; display: flex; gap: .9rem; flex-wrap: wrap; }

/* hero typographic art */
.hero-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-art .glow {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 62%);
  filter: blur(22px); z-index: 0;
}
.hero-art .dots {
  position: absolute; inset: 0; z-index: 0; border-radius: var(--r);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 35%, transparent 72%);
          mask-image: radial-gradient(circle at 50% 50%, #000 35%, transparent 72%);
}
.hero-numeral {
  position: relative; z-index: 1;
  font-weight: 700; letter-spacing: -.06em;
  font-size: clamp(11rem, 26vw, 22rem); line-height: .8;
  color: var(--text);
}
.hero-numeral .i { color: var(--accent-ink); }
.hero-index {
  position: absolute; bottom: 4%; left: 0; right: 0; z-index: 1;
  display: flex; justify-content: center; gap: 1.4rem;
  font-size: .74rem; color: var(--faint); letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- SECTION SHELL ---------- */
section { padding-block: var(--section-py); position: relative; }
.sec-head { max-width: 60ch; }
.sec-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -.03em; line-height: 1.05; font-weight: 700;
}
.sec-head p { margin-top: 1.2rem; color: var(--muted); font-size: 1.1rem; max-width: 52ch; }

/* ---------- INTRO MANIFESTO ---------- */
.manifesto { border-top: 1px solid var(--line); }
.manifesto .big {
  font-size: clamp(1.7rem, 4.4vw, 3.1rem); line-height: 1.18; letter-spacing: -.02em;
  font-weight: 500; max-width: 22ch;
}
.manifesto .big b { color: var(--text); font-weight: 700; }
.manifesto .big .ghost { color: var(--faint); }
.manifesto .support { margin-top: 2.4rem; color: var(--muted); max-width: 50ch; font-size: 1.08rem; line-height: 1.6; }

/* ---------- VENTURES (zigzag) ---------- */
.ventures { border-top: 1px solid var(--line); }
.venture {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--line-2);
}
.venture:last-of-type { border-bottom: 0; }
.venture .v-media { order: 1; }
.venture .v-copy  { order: 2; }
.venture.flip .v-media { order: 2; }
.venture.flip .v-copy  { order: 1; }

.v-copy .v-kicker { color: var(--accent-ink); font-family: "JetBrains Mono", monospace; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }
.v-copy h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.025em; margin-top: 1rem; line-height: 1.05; }
.v-copy .v-body { margin-top: 1.1rem; color: var(--muted); font-size: 1.08rem; line-height: 1.6; max-width: 46ch; }
.v-stats { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.8rem 2.6rem; }
.v-stats .stat .num { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; }
.v-stats .stat .lab { font-size: .82rem; color: var(--faint); margin-top: .2rem; }
.v-copy .v-link { margin-top: 2.2rem; display: inline-flex; }

.v-photo {
  position: relative; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--bg-2);
}
.v-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.venture:hover .v-photo img { transform: scale(1.04); }

/* phone mockup */
.phone-stage { display: grid; place-items: center; aspect-ratio: 4/3; }
.phone {
  width: clamp(180px, 60%, 248px); aspect-ratio: 9/19.2;
  border-radius: 34px; padding: 9px;
  background: linear-gradient(150deg, #232329, #0e0e11);
  border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(20,20,25,.18);
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden;
  background: var(--bg-3);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 38%; height: 18px; background: #0a0a0c; border-radius: var(--pill); z-index: 2; }

/* ---------- PRODUCT GRID ---------- */
.products { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.products-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.products-head h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.02em; }
.products-head p { color: var(--muted); max-width: 40ch; }
.product-grid { margin-top: 2.4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
/* a lone card, e.g. a support tool shown on its parent's page */
.product-grid.single { grid-template-columns: minmax(0, 420px); }
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.product-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.pc-thumb {
  aspect-ratio: 16/10; display: grid; place-items: center; position: relative;
  border-bottom: 1px solid var(--line-2); overflow: hidden;
}
.pc-thumb .mono-mark {
  font-weight: 700; font-size: clamp(3rem, 6vw, 4.4rem); letter-spacing: -.04em;
  color: color-mix(in srgb, var(--accent-ink) 60%, transparent); position: relative; z-index: 1;
}
.pc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .pc-thumb img { transform: scale(1.04); }
/* contained image: whole thing shown on a panel, scaled to fill, not cropped */
.pc-thumb.contain { background: var(--bg-3); }
.pc-thumb.contain img {
  position: relative; inset: auto;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: clamp(.4rem, 2%, .9rem);
}
.product-card:hover .pc-thumb.contain img { transform: scale(1.03); }
/* distinct neutral patterns (one accent only) */
.pc-thumb.t1 { background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%), var(--bg-3); }
.pc-thumb.t1::after { content:""; position:absolute; inset:0; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px; opacity:.6; }
.pc-thumb.t2 { background: linear-gradient(120deg, var(--bg-3), #e6e6e0); }
.pc-thumb.t2::after { content:""; position:absolute; inset:0; background-image: repeating-linear-gradient(45deg, var(--line-2) 0 1px, transparent 1px 14px); }
.pc-thumb.t3 { background: conic-gradient(from 210deg at 70% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 40%), var(--bg-3); }
.pc-thumb.t3::after { content:""; position:absolute; inset:0; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 28px 28px; opacity:.7; }
.pc-thumb.t4 { background: linear-gradient(200deg, var(--bg-3), #e7e7e1); }
.pc-thumb.t4::after { content:""; position:absolute; inset:0; background-image: linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 16px 16px; opacity:.7; }
.pc-thumb.t5 { background: radial-gradient(circle at 72% 78%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%), var(--bg-3); }
.pc-thumb.t5::after { content:""; position:absolute; inset:0; background-image: repeating-linear-gradient(-45deg, var(--line-2) 0 1px, transparent 1px 15px); }
.pc-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.pc-tag { font-family: "JetBrains Mono", monospace; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.pc-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; margin-top: .7rem; }
.pc-domain { font-family: "JetBrains Mono", monospace; font-size: .8rem; color: var(--accent-ink); margin-top: .35rem; }
.pc-price { font-family: "JetBrains Mono", monospace; font-size: .82rem; font-weight: 500; color: var(--text); margin-top: .5rem; }
.pc-desc { color: var(--muted); font-size: .96rem; line-height: 1.55; margin-top: .9rem; }
.pc-foot { margin-top: auto; padding-top: 1.4rem; }
.pc-foot .link-arrow { font-size: .9rem; }

/* app icon sitting on a tinted panel, rather than a cover photo */
.pc-thumb img.pc-icon {
  position: relative; inset: auto; z-index: 1;
  width: 42%; max-width: 148px; height: auto;
  object-fit: contain; border-radius: 22%;
  box-shadow: 0 14px 32px rgba(20,20,25,.2);
}
.product-card:hover .pc-thumb img.pc-icon { transform: translateY(-3px) scale(1.03); }
.detail-glyph.has-icon img {
  position: relative; z-index: 1;
  width: 46%; max-width: 250px; height: auto;
  border-radius: 22%; box-shadow: 0 22px 48px rgba(20,20,25,.22);
}

/* "Developed for X" provenance token */
.pc-for, .ph-for {
  align-self: flex-start;
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .45rem;
  font-family: "JetBrains Mono", monospace; font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.4;
  color: var(--muted); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--pill);
  padding: .4rem .8rem;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.pc-for { margin-top: 1.1rem; }
.ph-for { margin-top: 1.4rem; font-size: .7rem; }
.pc-for .tok-label, .ph-for .tok-label { color: var(--faint); }
a.pc-for:hover, a.ph-for:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
a.pc-for:hover .tok-label, a.ph-for:hover .tok-label { color: var(--accent-ink); }

.ventures-more {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2.2rem; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.ventures-more p { color: var(--muted); max-width: 46ch; }

/* ---------- THE MODEL ---------- */
.model { border-top: 1px solid var(--line); }
.model-grid { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.model-step { padding: 2rem clamp(1.4rem, 3vw, 2.4rem); border-left: 1px solid var(--line); }
.model-step:first-child { border-left: 0; padding-left: 0; }
.model-step .verb { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.model-step .verb::before { content: ""; display: block; width: 26px; height: 3px; background: var(--accent-ink); margin-bottom: 1.2rem; border-radius: 2px; }
.model-step p { margin-top: .9rem; color: var(--muted); line-height: 1.6; }

/* ---------- CONTACT ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem,5vw,4rem); align-items: end; }
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.035em; line-height: 1; font-weight: 700; }
.contact h2 em { font-style: normal; color: var(--accent-ink); }
.contact .c-right p { color: var(--muted); font-size: 1.08rem; line-height: 1.6; margin-bottom: 1.8rem; }
.contact .email {
  display: inline-block; margin-top: 1.6rem; font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 500;
  color: var(--text); border-bottom: 1px solid var(--line); padding-bottom: 4px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.contact .email:hover { color: var(--accent-ink); border-color: var(--accent-ink); }

/* ============================================================
   DETAIL / SUB PAGES
   ============================================================ */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 6rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; font-family: "JetBrains Mono", monospace; font-size: .76rem; letter-spacing: .06em; color: var(--faint); margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.crumbs a { color: var(--muted); transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs .sep { color: var(--faint); }
.crumbs .here { color: var(--text); }

.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ph-copy .kicker { display: inline-block; }
.ph-copy h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.035em; line-height: 1.02; font-weight: 700; margin-top: 1.1rem; max-width: 14ch; }
.ph-copy .lede { margin-top: 1.5rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.6; max-width: 52ch; }
.ph-actions { margin-top: 2.4rem; display: flex; gap: .9rem; flex-wrap: wrap; }

.status-tag {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem;
  font-family: "JetBrains Mono", monospace; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: var(--pill); padding: .35rem .8rem;
}
.status-tag .dotmark { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-dim); }

/* price block (app detail hero) */
.price-block {
  margin-top: 1.6rem; display: inline-flex; flex-direction: column; align-items: flex-start; gap: .45rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); padding: 1.1rem 1.3rem;
}
.price-block .price { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.price-block .price-note { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.price-block .btn { margin-top: .5rem; }
.appstore-soon {
  margin-top: .3rem; font-family: "JetBrains Mono", monospace; font-size: .66rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}

/* monogram media panel for products without a photo */
.detail-glyph {
  position: relative; aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: grid; place-items: center; background: var(--bg-3);
}
.detail-glyph .mono-mark { font-weight: 700; font-size: clamp(4.5rem, 13vw, 8rem); letter-spacing: -.05em; color: color-mix(in srgb, var(--accent-ink) 55%, transparent); position: relative; z-index: 1; }
.detail-glyph.g1 { background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%), var(--bg-3); }
.detail-glyph.g1::after { content:""; position:absolute; inset:0; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 24px 24px; opacity:.55; }
.detail-glyph.g2 { background: linear-gradient(120deg, var(--bg-3), #e6e6e0); }
.detail-glyph.g2::after { content:""; position:absolute; inset:0; background-image: repeating-linear-gradient(45deg, var(--line-2) 0 1px, transparent 1px 18px); }
.detail-glyph.g3 { background: conic-gradient(from 210deg at 70% 30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 40%), var(--bg-3); }
.detail-glyph.g3::after { content:""; position:absolute; inset:0; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 32px 32px; opacity:.7; }

/* highlights reuse .model on detail pages */
.detail-section { border-top: 1px solid var(--line); }

/* ---------- USER GUIDE (detail pages) ---------- */
.guide { margin-top: clamp(2.2rem, 4.5vw, 3.4rem); }
.guide-step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  padding: 1.7rem 0; border-top: 1px solid var(--line-2);
}
.guide-step:first-child { border-top: 0; padding-top: 0; }
.guide-step .n {
  font-family: "JetBrains Mono", monospace; font-size: .8rem;
  letter-spacing: .1em; color: var(--accent-ink); padding-top: .3rem;
}
.guide-step h3 { font-size: 1.15rem; letter-spacing: -.015em; }
.guide-step p { margin-top: .6rem; color: var(--muted); line-height: 1.62; max-width: 64ch; }
.guide-step .opt {
  font-family: "JetBrains Mono", monospace; font-size: .6rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  border: 1px solid var(--line); border-radius: var(--pill);
  padding: .2rem .55rem; margin-left: .6rem; vertical-align: 2px;
}

/* ---------- SCREENSHOTS (detail pages) ---------- */
.shot {
  margin: 0; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--bg-2);
  box-shadow: 0 20px 44px rgba(20,20,25,.1);
}
.shot img { width: 100%; height: auto; display: block; }

/* zoomable screenshot: click to open full size */
img.zoomable { cursor: zoom-in; }
img.zoomable:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.shot.has-zoom { position: relative; }
.shot.has-zoom::after {
  content: ""; position: absolute; top: .7rem; right: .7rem;
  width: 32px; height: 32px; border-radius: 8px; pointer-events: none;
  background: rgba(20,20,25,.55) center/16px 16px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23ffffff'%20stroke-width='2'%20stroke-linecap='round'%3E%3Ccircle%20cx='11'%20cy='11'%20r='7'/%3E%3Cline%20x1='16.5'%20y1='16.5'%20x2='21'%20y2='21'/%3E%3C/svg%3E");
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .2s var(--ease);
}
.shot.has-zoom:hover::after,
.shot.has-zoom:focus-within::after { opacity: 1; }

.shot figcaption {
  padding: .9rem 1.2rem; border-top: 1px solid var(--line-2);
  font-family: "JetBrains Mono", monospace; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}

/* ---------- LIGHTBOX (full-size screenshot) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; gap: 1rem;
  grid-template-rows: 1fr auto;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 10, 12, .86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), visibility .28s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox .lb-figure { margin: 0; align-self: center; justify-self: center; display: grid; gap: .9rem; max-width: 100%; }
.lightbox img {
  max-width: 100%; max-height: 80vh; width: auto; height: auto; justify-self: center;
  border-radius: var(--r); cursor: zoom-out;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  transform: scale(.97); transition: transform .28s var(--ease);
}
.lightbox.open img { transform: none; }
.lightbox figcaption {
  text-align: center; color: rgba(255, 255, 255, .72);
  font-family: "JetBrains Mono", monospace; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.lightbox .lb-close {
  position: absolute; top: clamp(.8rem, 2vw, 1.4rem); right: clamp(.8rem, 2vw, 1.4rem);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%;
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  transition: background .2s var(--ease);
}
.lightbox .lb-close:hover { background: rgba(255, 255, 255, .24); }
.lightbox .lb-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* settings: screenshot beside an explained control list */
.settings-grid {
  margin-top: clamp(2.2rem, 4.5vw, 3.4rem);
  display: grid; grid-template-columns: minmax(0, .82fr) 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.settings-grid .shot { position: sticky; top: 92px; max-width: 360px; }
.setting { padding: 1.4rem 0; border-top: 1px solid var(--line-2); }
.setting:first-child { border-top: 0; padding-top: 0; }
.setting h3 { font-size: 1.1rem; letter-spacing: -.015em; display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.setting .default {
  font-family: "JetBrains Mono", monospace; font-size: .58rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  border: 1px solid var(--line); border-radius: var(--pill); padding: .18rem .5rem;
}
.setting p { margin-top: .55rem; color: var(--muted); line-height: 1.6; max-width: 54ch; }

/* status dots in an outcome table */
.stat-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .55rem; vertical-align: 1px; }
.stat-dot.ok   { background: #2fae54; }
.stat-dot.warn { background: #d98322; }
.stat-dot.bad  { background: #cf3c34; }

/* keyboard shortcuts */
.kbd-head { margin-top: clamp(2.5rem, 5vw, 3.5rem); font-size: 1.15rem; letter-spacing: -.015em; }
.kbd-table { margin-top: 2.4rem; width: 100%; max-width: 620px; border-collapse: collapse; }
.kbd-table td { padding: .72rem 0; border-bottom: 1px solid var(--line-2); color: var(--muted); font-size: .95rem; }
.kbd-table tr:last-child td { border-bottom: 0; }
.kbd-table td:first-child { width: 36%; white-space: nowrap; }
kbd {
  font-family: "JetBrains Mono", monospace; font-size: .78rem; color: var(--text);
  background: var(--bg-3); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: var(--r-sm); padding: .2rem .48rem;
}

/* fine print (policy contact / last-updated line) */
.fineprint { margin-top: clamp(2.4rem, 5vw, 3.4rem); color: var(--faint); font-size: .9rem; line-height: 1.6; max-width: 60ch; }
.fineprint a { color: var(--accent-ink); border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color .2s var(--ease); }
.fineprint a:hover { border-color: var(--accent-ink); }

/* explore-more pills */
.related { border-top: 1px solid var(--line); }
.pill-row { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.15rem;
  border: 1px solid var(--line); border-radius: var(--pill); font-size: .92rem; color: var(--muted);
  background: var(--bg-2); transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.pill:hover { color: var(--text); border-color: var(--accent-ink); transform: translateY(-1px); }
.pill .pcat { font-family: "JetBrains Mono", monospace; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding-block: 3.5rem; }
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.foot .f-brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.foot .f-brand .dot { color: var(--accent-ink); }
.foot .f-tag { color: var(--faint); margin-top: .6rem; font-size: .9rem; max-width: 30ch; }
.foot nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.foot nav a { color: var(--muted); font-size: .92rem; transition: color .2s var(--ease); }
.foot nav a:hover { color: var(--text); }
.foot-bottom { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--faint); font-size: .82rem; }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* hero load-in */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero .h-anim { opacity: 0; animation: rise .9s var(--ease) forwards; }
.hero .h-anim.d1 { animation-delay: .05s; }
.hero .h-anim.d2 { animation-delay: .18s; }
.hero .h-anim.d3 { animation-delay: .3s; }
.hero .h-anim.d4 { animation-delay: .42s; }
.hero-art { opacity: 0; animation: fade 1.2s var(--ease) .25s forwards; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero { min-height: auto; padding-block: clamp(3rem, 12vh, 6rem); }
  .hero h1 { max-width: 18ch; }
  .venture, .venture.flip { grid-template-columns: 1fr; }
  .venture .v-media, .venture .v-copy,
  .venture.flip .v-media, .venture.flip .v-copy { order: 0; }
  .model-grid { grid-template-columns: 1fr; }
  .model-step { border-left: 0; border-top: 1px solid var(--line); padding: 1.8rem 0; }
  .model-step:first-child { border-top: 0; padding-top: 0; }
  .contact-inner { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-grid .shot { position: static; max-width: 320px; margin-inline: auto; }
}
@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 1.6rem clamp(1.25rem, 5vw, 3rem) 2rem;
  }
  .nav-links.open .nav-cta { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-links.open .btn { width: 100%; justify-content: center; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero .h-anim, .hero-art { opacity: 1; animation: none; }
}
