/* ============================================================
   diosapp.com — shared design system
   Direction: editorial craft. Warm paper, ink, one copper thread.
   Fluid type via clamp(). Modern color via oklch/color-mix.
   No cards-on-cards, no pure black/white, no generic AI palette.
   ============================================================ */

:root {
  /* surfaces — warm paper, tinted toward copper */
  --paper:        oklch(0.968 0.012 82);
  --paper-2:      oklch(0.951 0.017 78);
  --paper-3:      oklch(0.932 0.022 74);
  --ink:          oklch(0.245 0.022 58);
  --ink-2:        oklch(0.455 0.025 62);
  --ink-3:        oklch(0.605 0.022 66);
  --line:         oklch(0.845 0.02 74);
  --line-strong:  oklch(0.74 0.028 70);

  /* brand — copper */
  --brand:        oklch(0.655 0.125 68);
  --brand-deep:   oklch(0.505 0.11 60);
  --brand-soft:   oklch(0.9 0.045 74);

  /* product accents */
  --fincal:  oklch(0.46 0.105 250);
  --fincal-soft: oklch(0.92 0.035 245);
  --lines:   oklch(0.53 0.125 152);
  --lines-soft:  oklch(0.925 0.045 150);
  --sudoku:  oklch(0.51 0.11 232);
  --sudoku-soft: oklch(0.925 0.04 235);

  /* dark footer band */
  --night:        oklch(0.205 0.02 58);
  --night-ink:    oklch(0.885 0.02 78);
  --night-ink-2:  oklch(0.66 0.025 74);

  /* spacing — 4pt scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-1: 0 1px 2px oklch(0.3 0.02 60 / 0.08);
  --shadow-2: 0 18px 44px -22px oklch(0.3 0.03 60 / 0.28);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --wrap-wide: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid color-mix(in oklch, var(--brand) 65%, transparent); outline-offset: 3px; }

.wrap  { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 32px); }
.wrap-wide { max-width: var(--wrap-wide); margin-inline: auto; padding-inline: clamp(20px, 4vw, 32px); }

::selection { background: color-mix(in oklch, var(--brand) 30%, transparent); }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
}
.display-sub {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-deep);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--brand); }
.kicker.on-night { color: color-mix(in oklch, var(--brand) 80%, white); }
.kicker.on-night::before { background: var(--brand); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-2); line-height: 1.7; max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  font-weight: 650; font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: transform .18s cubic-bezier(.2,.9,.3,1.4), box-shadow .18s, background-color .18s, border-color .18s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 10px 26px -12px oklch(0.25 0.02 58 / 0.5);
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn-primary:active { transform: scale(.97); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); background: color-mix(in oklch, var(--brand-soft) 40%, var(--paper)); transform: translateY(-2px); }
.btn-ghost:active { transform: scale(.97); }
.btn-dark { background: var(--night); color: var(--night-ink); }
.btn-dark:hover { background: oklch(0.26 0.024 60); transform: translateY(-2px); }

/* App Store badge — inline SVG, 44px+ tap target */
.app-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 22px 8px 18px;
  border-radius: var(--radius-md);
  background: oklch(0.22 0.022 58);
  color: oklch(0.94 0.012 80);
  box-shadow: var(--shadow-2);
  transition: transform .2s cubic-bezier(.2,.9,.3,1.3), box-shadow .2s;
}
.app-badge:hover { transform: translateY(-3px); box-shadow: 0 26px 54px -24px oklch(0.2 0.03 60 / 0.55); }
.app-badge:active { transform: scale(.98); }
.app-badge .badge-cap { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; opacity: .78; line-height: 1.2; }
.app-badge .badge-main { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; font-family: var(--font-body); }
.app-badge svg { width: 30px; height: 30px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklch, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in oklch, var(--line) 70%, transparent);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; font-size: 1.06rem; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 7px;
  display: block; object-fit: contain;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px;
  font-size: .95rem; font-weight: 580; color: var(--ink-2);
  border-radius: var(--radius-sm);
  transition: color .16s, background-color .16s;
}
.nav-links a:hover { color: var(--ink); background: color-mix(in oklch, var(--paper-3) 55%, transparent); }
.nav-links a.active { color: var(--brand-deep); }
.nav-cta { display: inline-flex; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-sm); }
  .nav-burger:hover { background: var(--paper-3); }
}
@media (min-width: 901px) { .nav-burger { display: none; } }
.nav-burger svg { width: 22px; height: 22px; }

/* mobile drawer */
.nav-drawer {
  position: fixed; inset: 0; z-index: 70;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2,.8,.3,1);
  padding: 24px; display: flex; flex-direction: column; gap: 6px;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer .drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.nav-drawer a.drawer-link {
  min-height: 52px; display: flex; align-items: center; font-size: 1.25rem; font-weight: 650;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.nav-drawer .drawer-close { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-sm); }
.nav-drawer .drawer-close:hover { background: var(--paper-3); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 65; background: oklch(0.2 0.02 60 / .4); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(52rem 30rem at 88% -6%, oklch(0.9 0.045 74 / .55), transparent 62%),
    radial-gradient(40rem 26rem at -10% 30%, oklch(0.9 0.035 245 / .4), transparent 60%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { margin: 22px 0 20px; }
.hero h1 .accent { font-style: normal; color: var(--brand-deep); }
.hero .lead { margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--ink-3); font-size: .88rem; font-weight: 560; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; }

/* hero artwork — editorial glyph panel */
.hero-art { position: relative; min-height: 380px; }
.art-frame {
  position: relative; width: min(100%, 460px); aspect-ratio: 4 / 5;
  margin-left: auto;
  border-radius: 2px;
  background:
    linear-gradient(160deg, color-mix(in oklch, var(--brand-soft) 70%, var(--paper)) 0%, var(--paper-2) 100%);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
}
.art-frame::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in oklch, var(--line) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--line) 55%, transparent) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .35;
}
.art-glyph {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(7rem, 12vw, 10rem);
  line-height: 1; font-weight: 700;
  color: var(--brand-deep);
  opacity: .9;
}
.art-caption {
  position: absolute; z-index: 2; right: 0; bottom: 26px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-size: .82rem; color: var(--ink-2); font-weight: 560;
  box-shadow: var(--shadow-1);
}

/* real product screenshots */
.hero-shot {
  display: block; width: min(100%, 400px); margin-left: auto;
  border-radius: 4px; border: 1px solid var(--line);
  box-shadow: var(--shadow-2); background: var(--paper);
}
.shot-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.shot-strip figure { margin: 0; }
.shot-strip img {
  width: 100%; height: auto;
  border-radius: 4px; border: 1px solid var(--line);
  box-shadow: var(--shadow-1); background: var(--paper);
}
.shot-strip figcaption { margin-top: 10px; font-size: .82rem; color: var(--ink-3); font-weight: 560; }
@media (max-width: 760px) { .shot-strip { grid-template-columns: 1fr; } }
.pb-shot {
  display: block; width: 100%; height: auto;
  border-radius: 4px; border: 1px solid var(--line);
  box-shadow: var(--shadow-1); background: var(--paper);
  margin-bottom: 18px;
}

/* ---------- section scaffold ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin: 18px 0 14px; }
.section-head p { color: var(--ink-2); max-width: 60ch; }

/* numbered editorial list */
.editorial-list { display: grid; gap: 0; counter-reset: item; }
.editorial-item {
  counter-increment: item;
  display: grid; grid-template-columns: 88px 1fr auto;
  gap: clamp(18px, 3vw, 40px); align-items: start;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
}
.editorial-item:last-child { border-bottom: 1px solid var(--line); }
.editorial-item::before {
  content: "0" counter(item);
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600;
  color: var(--brand);
  line-height: 1.1;
}
.editorial-item h3 { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.editorial-item p { color: var(--ink-2); max-width: 58ch; }
.editorial-item .item-tag {
  justify-self: end;
  font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .editorial-item { grid-template-columns: 1fr; gap: 12px; }
  .editorial-item .item-tag { justify-self: start; }
}

/* product grid — asymmetric editorial blocks, no nested cards */
.product-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 32px); }
.product-block {
  grid-column: span 4;
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  transition: transform .22s cubic-bezier(.2,.9,.3,1.2), box-shadow .22s, border-color .22s;
}
.product-block:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.product-block .pb-accent { width: 46px; height: 6px; border-radius: 3px; margin-bottom: 26px; }
.product-block h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 12px; }
.product-block p { color: var(--ink-2); font-size: .97rem; margin-bottom: 24px; flex: 1; }
.product-block .pb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.product-block .pb-tags span {
  font-size: .78rem; font-weight: 620; padding: 6px 12px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line);
}
.product-block .pb-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 680; color: var(--ink);
}
.product-block .pb-link:hover { color: var(--brand-deep); }
.product-block .pb-link svg { width: 16px; height: 16px; transition: transform .18s; }
.product-block .pb-link:hover svg { transform: translateX(4px); }
.product-block .pb-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.product-block .pb-actions .app-badge { align-self: flex-start; }
@media (max-width: 1000px) {
  .product-block { grid-column: span 6; }
}
@media (max-width: 640px) { .product-block { grid-column: span 12; } }

/* feature checklist */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.feature-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: clamp(16px, 2vw, 22px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.feature-list li b { color: var(--ink); font-weight: 700; display: block; margin-bottom: 3px; }
.feature-list .fi { width: 26px; height: 26px; border-radius: 50%; background: color-mix(in oklch, var(--brand-soft) 60%, var(--paper)); display: grid; place-items: center; flex: none; margin-top: 2px; }
.feature-list .fi svg { width: 14px; height: 14px; color: var(--brand-deep); }
@media (max-width: 720px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; min-height: 56px; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 16px 6px; font-size: 1.04rem; font-weight: 650; color: var(--ink);
  transition: color .16s;
}
.faq-q:hover { color: var(--brand-deep); }
.faq-q svg { width: 18px; height: 18px; flex: none; color: var(--brand); transition: transform .22s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s cubic-bezier(.2,.8,.3,1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { padding: 0 6px 22px; color: var(--ink-2); max-width: 68ch; }

/* ---------- specs / table ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.spec-cell { background: var(--paper); padding: 24px; }
.spec-cell dt { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.spec-cell dd { font-weight: 650; color: var(--ink); }

/* ---------- updates / news ---------- */
.news-list { display: grid; gap: 0; }
.news-row {
  display: grid; grid-template-columns: 150px 1fr;
  gap: clamp(14px, 3vw, 36px);
  padding: clamp(20px, 3vw, 30px) 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.news-row time { font-family: var(--font-display); font-size: 1rem; color: var(--brand-deep); font-weight: 600; }
.news-row h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 4px; }
.news-row p { color: var(--ink-2); font-size: .94rem; }
@media (max-width: 620px) { .news-row { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--night); color: var(--night-ink);
  padding: clamp(56px, 8vw, 104px) 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(44rem 22rem at 92% 0%, oklch(0.55 0.1 68 / .3), transparent 60%);
}
.cta-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: end; }
.cta-inner h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 18px 0 18px; color: var(--night-ink); }
.cta-inner .lead { color: var(--night-ink-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- prose (about/privacy/support) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.015em; margin: clamp(40px, 6vw, 64px) 0 16px; }
.prose h3 { font-size: 1.1rem; font-weight: 720; margin: 30px 0 10px; }
.prose p { color: var(--ink-2); margin-bottom: 14px; }
.prose ul, .prose ol { list-style: none; margin: 0 0 20px; color: var(--ink-2); }
.prose ul li, .prose ol li { padding-left: 26px; position: relative; margin-bottom: 10px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.prose ol { counter-reset: pitem; }
.prose ol li { counter-increment: pitem; }
.prose ol li::before { content: counter(pitem); position: absolute; left: 0; top: 0; font-family: var(--font-display); font-weight: 600; color: var(--brand-deep); }
.prose a:not(.btn) { color: var(--brand-deep); border-bottom: 1px solid color-mix(in oklch, var(--brand) 40%, transparent); transition: border-color .16s; }
.prose a:not(.btn):hover { border-color: var(--brand); }
.prose code { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: .88em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.prose .table-wrap { overflow-x: auto; margin: 20px 0 26px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th { text-align: left; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line-strong); }
.prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.prose td b { color: var(--ink); }
.editorial-item h3 a { color: var(--brand-deep); text-decoration: none; border-bottom: 1px solid color-mix(in oklch, var(--brand) 40%, transparent); transition: border-color .16s; }
.editorial-item h3 a:hover { border-color: var(--brand); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--night-ink-2); }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 64px); padding: clamp(48px, 7vw, 80px) clamp(20px, 4vw, 32px) 40px; }
.footer-brand p { margin-top: 14px; font-size: .92rem; max-width: 34ch; }
.footer-cols h4 { color: var(--night-ink); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 40px; font-size: .95rem; color: var(--night-ink-2); transition: color .15s; }
.footer-cols a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid oklch(1 0 0 / .1); padding: 24px clamp(20px, 4vw, 32px); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .85rem; color: var(--night-ink-2); }
.footer-bottom .made { font-family: var(--font-display); font-style: italic; }
@media (max-width: 820px) {
  .footer-in { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .cta-inner { grid-template-columns: 1fr; }
}

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

/* ============================================================
   Product accents — FoldPress (ink + vermilion), Emma's Revenge (violet + gold)
   ============================================================ */
:root {
  --foldpress:      oklch(0.30 0.035 255);
  --foldpress-soft: oklch(0.93 0.018 250);
  --foldpress-red:  oklch(0.575 0.155 38);
  --manor:          oklch(0.315 0.088 302);
  --manor-soft:     oklch(0.93 0.03 302);
  --manor-gold:     oklch(0.735 0.115 82);
}

/* wide hero screenshot (desktop apps) */
.hero-shot-wide {
  display: block; width: 100%; height: auto;
  border-radius: 6px; border: 1px solid var(--line);
  box-shadow: var(--shadow-2); background: var(--paper);
}
.hero-shot-narrow { width: min(100%, 340px); margin-inline: auto; }

/* alternating media rows — screenshot + copy */
.media-rows { display: grid; gap: clamp(40px, 6vw, 80px); }
.media-row { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.media-row.rev { grid-template-columns: .92fr 1.08fr; }
.media-row.rev .media-fig { order: 2; }
.media-fig { margin: 0; }
.media-fig img {
  width: 100%; height: auto; display: block;
  border-radius: 5px; border: 1px solid var(--line);
  box-shadow: var(--shadow-2); background: var(--paper);
}
.media-fig figcaption { margin-top: 12px; font-size: .82rem; color: var(--ink-3); font-weight: 560; }
.media-copy h3 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-weight: 600; letter-spacing: -.015em; margin: 14px 0 12px;
}
.media-copy p { color: var(--ink-2); margin-bottom: 18px; }
.media-copy ul { display: grid; gap: 9px; }
.media-copy ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .95rem; }
.media-copy ul li svg { width: 15px; height: 15px; flex: none; margin-top: .38em; }
@media (max-width: 860px) {
  .media-row, .media-row.rev { grid-template-columns: 1fr; }
  .media-row.rev .media-fig { order: 0; }
}

/* "coming soon" pill for unreleased products */
.pill-soon {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--line-strong);
  color: var(--ink-2); font-weight: 650; font-size: .95rem;
  background: color-mix(in oklch, var(--paper-2) 60%, var(--paper));
}
.pill-soon svg { width: 16px; height: 16px; color: var(--brand-deep); }
.product-block .pb-badge-soon {
  font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-deep); background: var(--brand-soft);
  border: 1px solid color-mix(in oklch, var(--brand) 35%, transparent);
  border-radius: 999px; padding: 5px 11px; align-self: flex-start;
}

/* app icon lockup used on product pages */
.app-lockup { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.app-lockup img { width: 52px; height: 52px; border-radius: 12px; box-shadow: var(--shadow-1); }
.app-lockup span { font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }

/* wide hero figure under the headline (desktop product pages) */
.hero-figure { margin-top: clamp(32px, 5vw, 56px); }

/* phone screenshot lockup (mobile product pages) */
.hero-phone-wrap { display: flex; align-items: center; justify-content: center; }
.hero-phone {
  display: block; width: min(100%, 320px); height: auto; max-height: 560px;
  object-fit: cover; object-position: top center;
  border-radius: 26px; border: 1px solid var(--line);
  box-shadow: var(--shadow-2); background: var(--paper);
}
@media (max-width: 820px) { .hero-phone { width: min(100%, 260px); } }

/* narrow phone gallery */
.phone-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 20px); }
.phone-strip figure { margin: 0; }
.phone-strip img {
  width: 100%; height: auto; display: block;
  border-radius: 18px; border: 1px solid var(--line);
  box-shadow: var(--shadow-1); background: var(--paper);
}
.phone-strip figcaption { margin-top: 10px; font-size: .82rem; color: var(--ink-3); font-weight: 560; }
@media (max-width: 700px) { .phone-strip { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; } }

/* tall phone screenshots inside alternating rows — keep them from towering */
.media-fig img.shot-tall {
  width: auto; max-width: 100%; max-height: 620px;
  margin-inline: auto; object-fit: contain;
}
@media (max-width: 860px) {
  .media-fig img.shot-tall { max-height: 520px; }
}

/* two-card final row in the product grid */
.product-grid .product-block.pb-half { grid-column: span 6; }
@media (max-width: 640px) { .product-grid .product-block.pb-half { grid-column: span 12; } }
