/* =========================================================================
   Superapps Studio — Design System
   Cream + indigo · Hanken Grotesk · collectible app cards
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg: #F8F5EC;
  --bg-2: #F2EEE2;
  --surface: #FFFFFF;
  --surface-tint: #FCFBF6;

  /* ink */
  --ink: #17201B;
  --ink-2: #667064;
  --ink-3: #97A096;

  /* brand */
  --studio: #5B6CFF;
  --studio-ink: #3B49C9;
  --leaf: #2F7D4E;
  --leaf-ink: #246340;
  --unhidden: #6B5B95;
  --unhidden-ink: #564679;
  --stocked: #CB5D3A;
  --stocked-ink: #A84A2C;

  /* lines */
  --border: rgba(23, 32, 27, 0.10);
  --border-soft: rgba(23, 32, 27, 0.07);
  --shadow-sm: 0 1px 2px rgba(23,32,27,0.05), 0 6px 16px -12px rgba(23,32,27,0.30);
  --shadow-md: 0 1px 2px rgba(23,32,27,0.04), 0 18px 40px -26px rgba(23,32,27,0.42);
  --shadow-lg: 0 30px 60px -30px rgba(23,32,27,0.45);

  /* type */
  --font: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "Hanken Grotesk", ui-monospace, monospace;

  /* layout */
  --container: 1200px;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 30px;

  /* accent applied per-page; defaults to studio */
  --accent: var(--studio);
  --accent-ink: var(--studio-ink);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: color-mix(in srgb, var(--studio) 26%, transparent); }
:focus-visible { outline: 2px solid var(--studio); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 116px 0; position: relative; }
.section-sm { padding: 80px 0; }
@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .container { padding: 0 22px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.lede { color: var(--ink-2); font-size: 19px; line-height: 1.55; max-width: 34em; }
@media (max-width: 760px) { .lede { font-size: 17.5px; } }

.h-display { font-weight: 800; font-size: clamp(40px, 7vw, 72px); }
.h-1 { font-weight: 800; font-size: clamp(34px, 5vw, 54px); }
.h-2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-family: inherit;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background-color: var(--accent); color: #fff; box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn-ghost { background-color: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background-color: var(--surface); border-color: rgba(23,32,27,0.18); transform: translateY(-2px); }
.btn-dark { background-color: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-ink);
  text-decoration: none; font-size: 16px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom-color: var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.wordmark .mark { width: 28px; height: 28px; flex: none; }
.nav .mark { width: 40px; height: 40px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink); font-size: 15.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; opacity: .82; transition: opacity .15s, background .15s;
}
.nav-links a:hover { opacity: 1; background: color-mix(in srgb, var(--ink) 5%, transparent); }
@media (max-width: 480px) { .nav-links { gap: 0; } .nav-links a { font-size: 14px; padding: 8px 10px; } }

/* ---------- Status badge ---------- */
.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 13%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}
.status .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.status[data-state="live"] { --accent: var(--leaf); --accent-ink: var(--leaf-ink); }

/* ---------- Superpower badge ---------- */
.superpower {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--accent-ink);
}
.superpower svg { width: 15px; height: 15px; flex: none; color: var(--accent); }

/* ---------- Collectible App Card ---------- */
.acard {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-md); overflow: hidden; isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.acard .glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(130% 80% at 82% -10%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 58%);
}
.acard-top { display: flex; align-items: center; justify-content: space-between; }
.acard-icon {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: var(--icon-bg, color-mix(in srgb, var(--accent) 15%, #fff));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  display: grid; place-items: center; color: var(--accent-ink); font-weight: 800; font-size: 21px;
}
.acard h3 { font-size: 22px; font-weight: 800; margin: 18px 0 4px; }
.acard .tag { font-size: 15px; color: var(--ink-2); margin: 0 0 2px; }
.acard .desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; margin: 10px 0 0; }
.acard-foot {
  margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between;
}
.acard .superpower { padding-top: 16px; margin-top: 14px; border-top: 1px dashed var(--border); }
.acard.is-link:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ---------- Principle card ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .principles { grid-template-columns: 1fr; } }
.pcard {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .25s ease;
}
.pcard:hover { transform: translateY(-4px); }
.pcard .num {
  font-size: 13px; font-weight: 700; color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.pcard .num .spark { width: 16px; height: 16px; }
.pcard h4 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.pcard p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- Image / screenshot slot ---------- */
.slot {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, var(--surface)) 0 12px, color-mix(in srgb, var(--accent) 12%, var(--surface)) 12px 24px);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  display: grid; place-items: center; min-height: 220px; color: var(--accent-ink);
}
.slot .slot-label {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); text-align: center;
}

/* phone frame holding a slot */
.phone {
  width: 280px; aspect-ratio: 9 / 19; border-radius: 32px; flex: none;
  overflow: hidden; position: relative;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.3), 0 0 0 7px #1a1a1a, 0 0 0 8px rgba(255,255,255,0.1);
}
.phone .screen {
  width: 100%; height: 100%; overflow: hidden; position: relative;
  background: var(--surface);
}
.phone .screen .slot { min-height: 100%; height: 100%; border: none; border-radius: 0; }

/* screen slideshow */
.screen-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.8s ease;
}
.screen-slide:first-child { opacity: 1; }
.screen-slide.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .screen-slide { transition: none; }
}

/* ---------- Footer ---------- */
.footer { background: #161D17; color: #EAEFE9; padding: 72px 0 36px; }
.footer .container { }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-grid > div:first-child { flex: 1; min-width: 200px; }
.footer .wordmark { color: #fff; }
.footer .blurb { color: rgba(234,239,233,0.62); font-size: 15px; margin-top: 16px; max-width: 24em; }
.footer h5 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(234,239,233,0.5); margin-bottom: 16px; }
.footer-grid > div:nth-child(2) { margin-left: auto; margin-right: 24px; }
.footer-grid > div:nth-child(2),
.footer-grid > div:nth-child(3) { text-align: right; }
.footer-grid > div:nth-child(2) ul,
.footer-grid > div:nth-child(3) ul { align-items: flex-end; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul li, .footer ul a, .footer ul span { color: rgba(234,239,233,0.82); font-size: 15px; font-weight: 400; line-height: 1.4; }
.footer ul a { text-decoration: none; transition: color .15s; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(234,239,233,0.12);
  color: rgba(234,239,233,0.55); font-size: 14px;
}
.footer-bottom a { color: rgba(234,239,233,0.78); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 600px) {
  .footer-grid > div:nth-child(2) { margin-left: 0; margin-right: 0; }
  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3) { text-align: left; }
  .footer-grid > div:nth-child(2) ul,
  .footer-grid > div:nth-child(3) ul { align-items: flex-start; }
}

/* ---------- Generic reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* spark icon helper */
.spark { color: var(--accent); }

/* ---------- Legal page layout ---------- */
.legal-hero { padding: 60px 0 40px; border-bottom: 1px solid var(--border-soft); position: relative; overflow: hidden; }
.legal-hero .wash { position: absolute; inset: 0; z-index: 0; background: radial-gradient(70% 120% at 12% -20%, color-mix(in srgb, var(--studio) 12%, transparent), transparent 60%); pointer-events: none; }
.legal-hero .container { position: relative; z-index: 1; }
.legal-hero h1 { font-size: clamp(36px, 5.4vw, 56px); font-weight: 800; margin-top: 18px; }
.legal-hero .meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 18px; color: var(--ink-2); font-size: 14.5px; }
.legal-hero .meta .chip { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 999px; padding: 6px 14px; font-weight: 600; }
.legal-hero .intro { color: var(--ink-2); font-size: 18px; line-height: 1.6; max-width: 44em; margin-top: 22px; }
.legal-hero .disclaimer {
  margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; max-width: 48em;
  background: color-mix(in srgb, var(--studio) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--studio) 22%, transparent);
  border-radius: var(--radius-sm); padding: 16px 18px; font-size: 14.5px; color: var(--ink); line-height: 1.55;
}
.legal-hero .disclaimer svg { width: 18px; height: 18px; flex: none; color: var(--studio-ink); margin-top: 2px; }

.legal-body { padding: 56px 0 100px; }
.legal-grid { display: grid; grid-template-columns: 248px 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .legal-grid { grid-template-columns: 1fr; gap: 8px; } }

.legal-toc { position: sticky; top: 100px; }
.legal-toc .toc-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.legal-toc a {
  display: block; text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 500;
  padding: 7px 12px; border-radius: 9px; border-left: 2px solid transparent; transition: color .15s, background .15s, border-color .15s;
}
.legal-toc a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.legal-toc a.is-active { color: var(--studio-ink); border-left-color: var(--studio); background: color-mix(in srgb, var(--studio) 7%, transparent); font-weight: 600; }
@media (max-width: 900px) {
  .legal-toc { position: static; margin-bottom: 26px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px; }
  .legal-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
}
@media (max-width: 520px) { .legal-toc ol { grid-template-columns: 1fr; } }

.legal-content { max-width: 72ch; }
.legal-content section { scroll-margin-top: 100px; padding: 14px 0 30px; }
.legal-content section + section { border-top: 1px solid var(--border-soft); padding-top: 34px; }
.legal-content h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; display: flex; align-items: baseline; gap: 12px; }
.legal-content h2 .n { font-size: 14px; font-weight: 700; color: var(--studio-ink); font-variant-numeric: tabular-nums; }
.legal-content h3 { font-size: 17px; font-weight: 700; margin-top: 22px; }
.legal-content p { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin-top: 12px; }
.legal-content ul { margin: 12px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.legal-content ul li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.legal-content ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--studio); }
.legal-content ul li strong { color: var(--ink); font-weight: 700; }
.legal-content a { color: var(--studio-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--studio) 35%, transparent); }
.legal-content a:hover { border-bottom-color: var(--studio); }
.legal-content .callout {
  background: var(--surface); border: 1px solid var(--border-soft); border-left: 3px solid var(--studio);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-top: 16px; font-size: 15.5px; color: var(--ink); line-height: 1.6;
}

/* ---------- "At a glance" summary box ---------- */
.glance { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm); margin-bottom: 38px; }
.glance .glance-title { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.glance .glance-title svg { width: 18px; height: 18px; color: var(--studio-ink); }
.glance .glance-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
@media (max-width: 620px) { .glance .glance-grid { grid-template-columns: 1fr; } }
.glance .glance-grid li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink); line-height: 1.5; }
.glance .glance-grid li svg { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; color: var(--leaf-ink); }
.glance .glance-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); font-size: 13.5px; color: var(--ink-2); }

/* ---------- Section heads ---------- */
.sec-head { max-width: 640px; margin-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

/* ---------- Inline form ---------- */
.inline-form { margin-top: 24px; }
.form-row { display: flex; gap: 10px; max-width: 440px; }
.form-row.centered { margin: 0 auto; }
.form-row input[type="email"] {
  flex: 1; min-width: 0; padding: 14px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit;
  font-size: 16px; color: var(--ink); outline: none; transition: border-color .18s;
}
.form-row input[type="email"]:focus { border-color: var(--accent); }
.form-row input[type="email"]::placeholder { color: var(--ink-3); }
.form-row .btn { flex: none; border: none; cursor: pointer; }
@media (max-width: 420px) { .form-row { flex-direction: column; } .form-row .btn { width: 100%; } }
.form-note { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.form-note.centered { text-align: center; }
.form-success {
  display: none; padding: 18px 22px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--leaf) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--leaf) 28%, transparent);
  color: var(--leaf-ink); font-weight: 600; font-size: 15.5px;
}
.form-success.show { display: flex; align-items: center; gap: 10px; }
.form-success svg { width: 20px; height: 20px; flex: none; }

/* ---------- Testimonials / social proof ---------- */
.testimonials { padding: 96px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; } }
.tcard {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.tcard .stars { display: flex; gap: 2px; margin-bottom: 14px; color: #F0B054; }
.tcard .stars svg { width: 16px; height: 16px; }
.tcard blockquote { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.6; font-style: italic; }
.tcard .tauthor { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); display: flex; align-items: center; gap: 10px; }
.tcard .tauthor .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--accent-ink);
}
.tcard .tauthor .tname { font-size: 14px; font-weight: 600; color: var(--ink); }
.tcard .tauthor .trole { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Cross-promotion ---------- */
.xpromo { border-top: 1px solid var(--border-soft); }
.xpromo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 680px) { .xpromo-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.xpromo .acard { padding: 26px; }
.xpromo .acard h3 { font-size: 22px; }

/* ---------- Blog listing ---------- */
.blog-filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px;
}
.bfilter {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border-soft);
  background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s ease; font-family: inherit;
}
.bfilter:hover {
  border-color: var(--ink-3); color: var(--ink);
}
.bfilter.active {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.bcard[data-hidden] {
  display: none;
}
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.bcard {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.bcard:hover { transform: translateY(-5px) scale(1.015); box-shadow: var(--shadow-md); }
.bcard-img {
  width: 100%; height: 180px; overflow: hidden; background: var(--bg-2);
}
.bcard-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.bcard:hover .bcard-img img { transform: scale(1.06); }
.bcard-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.btag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; align-self: flex-start; }
.btag-row .btag { margin-bottom: 0; }
.bcard .btag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent-ink); margin-bottom: 14px; align-self: flex-start;
}
.bcard h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.bcard p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; flex: 1; }
.bcard .bmeta {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-soft);
  font-size: 13px; color: var(--ink-3); font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
}

/* ---------- Blog post ---------- */
/* ---------- Post page ---------- */
.post-hero { position: relative; overflow: hidden; padding-bottom: 24px; }
.post-hero .wash { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(55% 60% at 75% -10%, color-mix(in srgb, var(--studio) 14%, transparent), transparent 60%),
              radial-gradient(40% 50% at 10% 100%, color-mix(in srgb, var(--leaf) 10%, transparent), transparent 55%); }
.post-hero .container { position: relative; z-index: 1; max-width: 720px; }
.post-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  text-decoration: none; margin-bottom: 28px; transition: color .2s ease;
}
.post-back:hover { color: var(--studio-ink); }
.post-hero h1 {
  font-size: clamp(32px, 5vw, 48px); font-weight: 800;
  line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.01em;
}
.post-excerpt {
  font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-bottom: 20px; max-width: 38em;
}
.post-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-3); font-weight: 500;
  margin-bottom: 24px;
}
.post-meta-details {
  display: flex; align-items: center; gap: 8px; margin-left: 24px;
}
.post-meta-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent-ink); margin-right: 4px;
}
.post-meta .meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); opacity: .6; }
.post-author {
  display: flex; align-items: center; gap: 12px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-soft);
}
.post-author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--studio); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.post-author-info { display: flex; flex-direction: column; gap: 2px; }
.post-author-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.post-author-role { font-size: 13px; color: var(--ink-3); }

/* Cover image section */
.post-cover-section { padding: 56px 0 0; }
.post-cover {
  width: 100%; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.post-cover img {
  width: 100%; height: auto; display: block;
  max-height: 420px; object-fit: cover;
}
@media (max-width: 600px) { .post-cover img { max-height: 240px; } }

/* Post body */
.post-body { padding-top: 56px; }
.post-body .container { max-width: 680px; }
.post-content { max-width: 68ch; }
.post-content > p:first-child {
  font-size: 19px; line-height: 1.7; color: var(--ink); font-weight: 400;
}
.post-content p {
  color: var(--ink-2); font-size: 17.5px; line-height: 1.78; margin-top: 0; margin-bottom: 1.5em;
}
.post-content h2 {
  font-size: clamp(22px, 3vw, 28px); font-weight: 800;
  margin-top: 2.4em; margin-bottom: .7em; line-height: 1.2; color: var(--ink);
}
.post-content ul {
  margin: 0 0 1.5em; padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 12px;
}
.post-content ul li {
  position: relative; padding-left: 24px;
  color: var(--ink-2); font-size: 17.5px; line-height: 1.65;
}
.post-content ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--studio);
}
.post-content ul li strong { color: var(--ink); font-weight: 700; }
.post-content a {
  color: var(--studio-ink); font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--studio) 30%, transparent);
  transition: border-color .2s ease;
}
.post-content a:hover { border-bottom-color: var(--studio); }
.post-content blockquote {
  margin: 2em 0; padding: 20px 24px; border-left: 3px solid var(--studio);
  background: color-mix(in srgb, var(--studio) 5%, var(--surface));
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content blockquote p { margin-bottom: 0; font-style: italic; color: var(--ink); }

/* Inline app screenshots */
.post-screenshots {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 2em 0;
}
@media (max-width: 520px) { .post-screenshots { grid-template-columns: 1fr; max-width: 260px; margin-left: auto; margin-right: auto; } }
.post-screenshots figure { margin: 0; }
.post-screenshots img {
  width: 100%; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft);
}
.post-screenshots figcaption {
  margin-top: 8px; font-size: 13px; color: var(--ink-3);
  text-align: center; line-height: 1.4;
}

/* Share bar */
.post-share {
  display: flex; align-items: center; gap: 12px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border-soft);
}
.post-share-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.post-share a, .post-share button {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--border-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); cursor: pointer; transition: all .2s ease;
  text-decoration: none; font-family: inherit; font-size: 14px;
}
.post-share a:hover, .post-share button:hover {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.post-share svg { width: 16px; height: 16px; fill: currentColor; }

/* Post navigation */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--border-soft);
}
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav-item {
  text-decoration: none; color: var(--ink);
  padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border-soft); background: var(--surface);
  transition: all .2s ease; display: flex; flex-direction: column; gap: 6px;
}
.post-nav-item:hover { border-color: var(--ink-3); box-shadow: var(--shadow-sm); }
.post-nav-item.next { text-align: right; }
.post-nav-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.post-nav-title { font-size: 15px; font-weight: 700; line-height: 1.35; }

/* ---------- Press kit ---------- */
.pk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .pk-grid { grid-template-columns: 1fr; } }
.pk-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); text-align: center;
}
.pk-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.pk-card p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 16px; }
.pk-logo-grid { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.pk-logo-item {
  width: 80px; height: 80px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm);
}
.pk-logo-item svg, .pk-logo-item img { width: 100%; height: 100%; }
.pk-color-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.pk-swatch {
  width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--border-soft);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px;
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.8); text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
