/*
Theme Name: Filters Venn
Theme URI: https://filters.app/
Author: Sandro Gumz
Author URI: https://filters.app/
Description: Marketing + blog theme for Filters — find photos by colour. Animated three-circle Venn hero, additive light / subtractive dark.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.1
License: Proprietary
Text Domain: filters-venn
*/

/* ══════════════════════════════════════════════════════════════════════════
   1. Tokens
   The two appearances are the same colour diagram run in reverse. Light is
   additive: red/green/blue discs blended with `screen`, so overlaps brighten
   to yellow/cyan/magenta and the core resolves to white. Dark is subtractive:
   the same three positions carry cyan/magenta/yellow blended with `multiply`,
   so overlaps darken to green/blue/red and the core resolves to near-black.
   The six colours swap roles between appearances — that is the brand mark.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #fbfbfd;
  --bg-soft: #f2f2f7;
  --surface: #ffffff;
  --surface-2: #f7f7fb;
  --border: rgba(13, 13, 18, .10);
  --border-strong: rgba(13, 13, 18, .18);
  --ink: #0d0d12;
  --ink-2: #3a3a46;
  --muted: #6e6e7c;
  --accent: #5b3df5;
  --accent-ink: #ffffff;
  --accent-soft: rgba(91, 61, 245, .08);

  /* Venn — additive triad. */
  --disc-a: #ff1f3d;   /* red    */
  --disc-b: #1a5cff;   /* blue   */
  --disc-c: #12e05f;   /* green  */
  --venn-blend: screen;
  --venn-core-ink: #12121a;
  --venn-field: radial-gradient(120% 120% at 30% 12%, #ffffff 0%, #f4f3f9 58%, #ebe9f4 100%);

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(13, 13, 18, .04), 0 12px 40px rgba(13, 13, 18, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08080c;
    --bg-soft: #0f0f16;
    --surface: #13131b;
    --surface-2: #191922;
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .18);
    --ink: #f4f4fa;
    --ink-2: #d0d0dc;
    --muted: #92929f;
    --accent: #a58bff;
    --accent-ink: #0d0d12;
    --accent-soft: rgba(165, 139, 255, .14);

    /* Venn — subtractive triad. Same positions, complementary filters. */
    --disc-a: #2ee8ff;   /* cyan    */
    --disc-b: #ffe23a;   /* yellow  */
    --disc-c: #ff3ad8;   /* magenta */
    --venn-blend: multiply;
    --venn-core-ink: #f4f4fa;
    --venn-field: radial-gradient(120% 120% at 30% 12%, #14141d 0%, #0a0a11 58%, #050508 100%);

    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 48px rgba(0, 0, 0, .45);
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   2. Base
   ══════════════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--bg);
}
@media (min-width: 768px) { body { font-size: 18px; } }

.container { max-width: var(--maxw); padding-inline: 24px; margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }

h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 700; letter-spacing: -.028em; line-height: 1.04; margin: 0 0 20px; }
h2 { font-size: clamp(25px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.018em; line-height: 1.18; margin: 0 0 14px; }
h3 { font-size: clamp(19px, 2.2vw, 21px); font-weight: 650; letter-spacing: -.01em; line-height: 1.3; margin: 0 0 10px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

section { padding-block: 52px; }
@media (min-width: 768px) { section { padding-block: 80px; } }

.dim { color: var(--muted); }
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 14px;
}
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }

.screen-reader-text, .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed; left: 16px; top: 12px; z-index: 50;
  width: auto; height: auto; clip: auto; margin: 0;
  background: var(--surface); color: var(--accent);
  padding: 10px 16px; border-radius: var(--radius-s); border: 1px solid var(--border);
}

.rule {
  height: 3px; border-radius: 999px; border: 0; margin: 0;
  background: linear-gradient(90deg, var(--disc-a), var(--disc-c) 50%, var(--disc-b));
}
.rule-short { width: 108px; }

/* ══════════════════════════════════════════════════════════════════════════
   3. Header / footer
   ══════════════════════════════════════════════════════════════════════════ */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 20px 26px; padding-block: 14px;
}

.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.wordmark:hover { text-decoration: none; }
.wordmark img { display: block; width: 45px; height: 45px; }
.site-header .wordmark { margin-right: auto; }

.site-nav { order: 2; }
.nav-cta { order: 3; }
.site-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.site-nav a { font-size: 15px; color: var(--ink-2); }
.site-nav .current-menu-item > a, .site-nav .current_page_parent > a { color: var(--ink); font-weight: 600; }

/* Below the breakpoint the nav drops to its own full-width row and scrolls
   sideways if it has to — a hamburger would hide five links behind a tap for
   no gain, and the row fits without one at every width down to 320px. */
@media (max-width: 799px) {
  .site-nav {
    order: 4; width: 100%; margin-top: -6px;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { gap: 20px; }
  .site-nav a { font-size: 14px; white-space: nowrap; }
}

.nav-cta {
  font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-soft);
  padding: 7px 14px; border-radius: 999px;
}
.nav-cta:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 16%, transparent); }

.site-footer { border-top: 1px solid var(--border); padding-block: 40px; margin-top: 24px; background: var(--bg-soft); }
.site-footer .container { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .site-footer .container { grid-template-columns: 1fr auto; align-items: center; }
}
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { font-size: 15px; color: var(--ink-2); }
.footer-meta { font-size: 14px; color: var(--muted); margin: 0; }
.footer-brand { display: grid; gap: 10px; }

/* ══════════════════════════════════════════════════════════════════════════
   4. Buttons + the coming-soon badge
   ══════════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 16px; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--border-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* App Store badge — Apple's own official "Download on the App Store" SVG
   artwork (same asset rawtoheic.app/mergehdr.app use), which already bakes in
   its own black rounded-rect background — this is just the link wrapper. */
.badge-appstore {
  display: inline-block; line-height: 0;
  border-radius: 12px; box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.badge-appstore:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.badge-appstore img { display: block; height: 48px; width: auto; }

/* ══════════════════════════════════════════════════════════════════════════
   5. The Venn mark
   Blending is contained by `isolation: isolate`: inside the stage each disc
   blends against the discs beneath it, and against nothing where it stands
   alone — so the page colour behind the stage never washes the triad out.
   That is what lets an additive composite live on a light page.
   ══════════════════════════════════════════════════════════════════════════ */

.venn {
  position: relative; isolation: isolate;
  width: 100%; aspect-ratio: 1 / 1;
}
@property --hx { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --hy { syntax: '<length>'; inherits: true; initial-value: 0px; }

.venn-disc {
  position: absolute; width: 62%; aspect-ratio: 1 / 1;
  border-radius: 50%;
  mix-blend-mode: var(--venn-blend);
  will-change: transform;
  --hx: 0px; --hy: 0px;
  transition: --hx 480ms cubic-bezier(.2,.7,.3,1), --hy 480ms cubic-bezier(.2,.7,.3,1);
}
.venn-a { left: 19%; top: 4%;  background: var(--disc-a); animation: venn-drift-a 19s ease-in-out infinite alternate; }
.venn-b { left: 38%; top: 36%; background: var(--disc-b); animation: venn-drift-b 23s ease-in-out infinite alternate; }
.venn-c { left: 0;   top: 36%; background: var(--disc-c); animation: venn-drift-c 21s ease-in-out infinite alternate; }

/* Pointer response: site.js sets --hx/--hy per disc from the mouse's position
   on screen, folded into the drift keyframes below — the ambient animation
   and the pointer response never fight over `transform`. */

@keyframes venn-drift-a {
  0%   { transform: translate(calc(0%    + var(--hx)), calc(0%    + var(--hy))) scale(1); }
  50%  { transform: translate(calc(1.6%  + var(--hx)), calc(-2.6% + var(--hy))) scale(1.045); }
  100% { transform: translate(calc(-2.2% + var(--hx)), calc(1.4%  + var(--hy))) scale(.975); }
}
@keyframes venn-drift-b {
  0%   { transform: translate(calc(0%    + var(--hx)), calc(0%    + var(--hy))) scale(1); }
  50%  { transform: translate(calc(2.8%  + var(--hx)), calc(1.8%  + var(--hy))) scale(.968); }
  100% { transform: translate(calc(-1.4% + var(--hx)), calc(-2.2% + var(--hy))) scale(1.052); }
}
@keyframes venn-drift-c {
  0%   { transform: translate(calc(0%    + var(--hx)), calc(0%    + var(--hy))) scale(1); }
  50%  { transform: translate(calc(-2.6% + var(--hx)), calc(2.2%  + var(--hy))) scale(1.038); }
  100% { transform: translate(calc(2.0%  + var(--hx)), calc(-1.6% + var(--hy))) scale(.97); }
}

/* Reduced motion holds the composition still rather than removing it. */
@media (prefers-reduced-motion: reduce) {
  .venn-disc { animation-play-state: paused; }
}

/* Small inline mark (header, footer, post placeholders). */
.venn-mark { width: 26px; height: 26px; }
.venn-mark .venn-disc { width: 62%; }

/* ══════════════════════════════════════════════════════════════════════════
   6. Hero
   ══════════════════════════════════════════════════════════════════════════ */

.hero { position: relative; overflow: hidden; padding-block: 28px 48px; }
@media (min-width: 900px) { .hero { padding-block: 48px 56px; } }
.hero .container { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .container { grid-template-columns: 1.02fr .98fr; gap: 56px; } }

.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.hero-copy h1 { max-width: 12ch; }
.hero-copy .lead { font-size: clamp(18px, 2.2vw, 21px); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-meta {
  margin-top: 20px; font-family: var(--mono); font-size: 12.5px;
  letter-spacing: .06em; color: var(--muted);
}

/* The stage: a rounded field carrying the diagram, with the query chips and
   the live match count layered above the blended discs. */
.hero-stage { position: relative; z-index: 1; }
.venn-stage {
  position: relative;
  padding: 8%;
}
.venn-stage .venn { filter: saturate(1.02); }

/* Entry: the triad rises and settles in on load, chips and the count
   trailing just behind it (site.js toggles .is-entering off after paint) —
   same beat as the app's own splash screen. .venn-chip's transition is also
   what smooths the scroll-driven hide further down, so it's declared once
   here and reused for both. */
.venn-stage .venn,
.venn-chip,
.venn-count {
  transition: opacity 700ms cubic-bezier(.22, .8, .32, 1),
              transform 700ms cubic-bezier(.22, .8, .32, 1);
}
.venn-chip { transition-delay: 140ms; }
.venn-count { transition-delay: 240ms; }
.venn-stage.is-entering .venn { opacity: 0; transform: translateY(28px) scale(.9); }
.venn-stage.is-entering .venn-chip { opacity: 0; transform: translateY(14px); }
.venn-stage.is-entering .venn-count { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); }
@media (prefers-reduced-motion: reduce) {
  .venn-stage .venn, .venn-chip, .venn-count { transition: none; }
}

.venn-count {
  position: absolute; left: 50%; top: 57%; transform: translate(-50%, -50%);
  z-index: 3; text-align: center; pointer-events: none;
  color: var(--venn-core-ink);
}
.venn-count strong {
  display: block; font-size: clamp(24px, 4.4vw, 34px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.venn-count span {
  display: block; margin-top: 5px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  opacity: .72;
}

.venn-chip {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  background: color-mix(in srgb, var(--surface) 45%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--border-strong) 55%, transparent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .10), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.venn-chip i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.chip-colour  { left: 3%;  top: 5%; }
.chip-busy    { right: 3%; top: 42%; }
.chip-subject { left: 6%;  bottom: 5%; }
@media (max-width: 520px) { .venn-chip { font-size: 11.5px; padding: 5px 10px; } }

/* ══════════════════════════════════════════════════════════════════════════
   7. Cards, grids, generic blocks
   ══════════════════════════════════════════════════════════════════════════ */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 16px; margin-bottom: 0; }
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
}

.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head .lead { margin-bottom: 0; }

.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split-reverse > :first-child { order: 2; }
@media (max-width: 899px) { .split-reverse > :first-child { order: 0; } }

/* ══════════════════════════════════════════════════════════════════════════
   8. Colour swatches
   ══════════════════════════════════════════════════════════════════════════ */

.swatch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .swatch-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .swatch-grid { grid-template-columns: repeat(7, 1fr); } }

.swatch {
  display: grid; gap: 8px; justify-items: center; text-align: center;
  padding: 12px 6px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.swatch b {
  display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07);
}
.swatch span { font-size: 12px; font-weight: 550; letter-spacing: -.005em; color: var(--ink-2); line-height: 1.25; }

.swatch-strip { display: flex; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; flex-wrap: wrap; }
.swatch-strip li { width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }

/* Dominance meter — a literal reading of "Orange ≥ 60%". */
.meter { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; }
.meter-row { display: grid; grid-template-columns: 88px 1fr 52px; align-items: center; gap: 12px; font-size: 14px; }
.meter-row dt { font-weight: 600; }
.meter-row dd { margin: 0; }
.meter-track { display: block; height: 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); overflow: hidden; }
.meter-fill { display: block; height: 100%; border-radius: 999px; }
.meter-val { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: right; }

/* ══════════════════════════════════════════════════════════════════════════
   9. Feature lists, pills, tables
   ══════════════════════════════════════════════════════════════════════════ */

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 550;
  border: 1px solid var(--border-strong); background: var(--surface);
}
.pill i { border-radius: 50%; flex: none; }
.pill-icon {
  width: 18px; height: 18px; flex: none; border-radius: 0; background: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.pill-icon svg { width: 100%; height: 100%; }

.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: .55em;
  width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Combining-three examples: the query written as a chip formula, echoing
   the app's own colour dots and subject/kind icons rather than a bare table. */
.combo-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 760px) { .combo-grid { grid-template-columns: repeat(2, 1fr); } }
.combo-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.combo-formula { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.combo-op { color: var(--muted); font-weight: 600; }
.combo-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border-strong); background: var(--bg-soft);
}
.combo-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.combo-dot.has-outline { border: 1px solid var(--border-strong); }
.combo-chip .pill-icon { width: 16px; height: 16px; color: var(--accent); }
.combo-result { margin: 16px 0 0; color: var(--ink-2); font-size: 15px; }


/* ══════════════════════════════════════════════════════════════════════════
   10. Screenshots
   ══════════════════════════════════════════════════════════════════════════ */

.shot {
  position: relative; overflow: hidden;
  border-radius: 26px; border: 1px solid var(--border);
  background: var(--venn-field);
  box-shadow: var(--shadow);
  aspect-ratio: 1179 / 2556;
  display: grid; place-items: center;
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Until the PNGs are dropped in, the browser lays the alt text out in place of
   the image. Sizing it down keeps a missing screenshot reading as a labelled
   placeholder inside its frame rather than as a broken page. No padding here —
   it would also inset the real image once loaded, leaving a gap inside the
   frame instead of filling it edge-to-edge. */
.shot img { font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.shot:has(img[src*="screenshot-detail.png"]) { background: linear-gradient(to bottom, color(srgb 0.7685 0.7686 0.7686) 0%, color(srgb 0.7685 0.7686 0.7686) 50%, #ffffff 100%); }
.shot:has(img[src*="screenshot-matches.png"]) { background: linear-gradient(to bottom, color(srgb 0.9402 0.7126 0.7132) 0%, #ffffff 100%); }
.shot-caption { margin: 12px 2px 0; font-size: 14.5px; color: var(--muted); }

.shot-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .shot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .shot-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.shot-figure { margin: 0; }
.shot-figure h3 { font-size: 17px; margin-bottom: 6px; }

.hero-shot { max-width: 300px; }

/* ══════════════════════════════════════════════════════════════════════════
   11. Pricing
   ══════════════════════════════════════════════════════════════════════════ */

.price-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  display: grid; align-content: start; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: 28px;
}
.price-card.is-feature {
  position: relative;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, var(--disc-a), var(--disc-b) 55%, var(--disc-c)) border-box;
  box-shadow: var(--shadow);
}
.price-badge {
  position: absolute; top: -12px; left: 24px;
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 12px; border-radius: 999px; color: #fff;
  background: linear-gradient(120deg, var(--disc-a), var(--disc-b) 55%, var(--disc-c));
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.price-tier { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price-amount { font-size: 34px; font-weight: 700; letter-spacing: -.03em; margin: 4px 0 2px; }
.price-note { font-size: 14.5px; color: var(--muted); margin: 0 0 16px; }
.price-card .ticks { font-size: 15.5px; }

/* ══════════════════════════════════════════════════════════════════════════
   12. FAQ / details accordions
   ══════════════════════════════════════════════════════════════════════════ */

.faq-list { display: grid; gap: 12px; }
.faq-list details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 4px 20px;
}
.faq-list details[open] { border-color: var(--border-strong); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative;
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 4px; top: 24px;
  width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 180ms ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); top: 27px; }
.faq-list details > *:not(summary) { color: var(--ink-2); font-size: 16px; }
.faq-list details > p:last-child { padding-bottom: 18px; }
.faq-list details ul { padding-left: 20px; margin: 0 0 18px; color: var(--ink-2); font-size: 16px; }

/* ══════════════════════════════════════════════════════════════════════════
   13. Blog
   ══════════════════════════════════════════════════════════════════════════ */

.post-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: grid; align-content: start;
  border: 1px solid var(--border); border-radius: var(--radius-l);
  background: var(--surface); overflow: hidden;
}
.post-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--venn-field); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-media.is-placeholder { display: grid; place-items: center; padding: 18px; }
.post-card-media.is-placeholder .venn { width: 34%; }
.post-card-body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.post-title { font-size: 19px; font-weight: 650; letter-spacing: -.015em; line-height: 1.28; }
.post-excerpt { font-size: 15.5px; color: var(--ink-2); margin: 0; }
.post-meta { font-size: 13.5px; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-meta-sep { opacity: .5; }

/* Share row on single posts — plain share-intent links + clipboard copy. */
.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.share-row-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.share-btn {
  position: relative;
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
}
.share-btn.copied {
  border-color: var(--accent);
  color: var(--accent);
}
.share-btn.copied::after {
  content: "Copied!";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .02em;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}

.prose { font-size: 18px; line-height: 1.72; color: var(--ink-2); }
.prose > * + * { margin-top: 20px; }
.prose h2 { color: var(--ink); margin-top: 40px; }
.prose h3 { color: var(--ink); margin-top: 30px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose blockquote {
  margin: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
  color: var(--ink); font-size: 19px;
}

.page-intro { max-width: 760px; margin-bottom: 36px; }
.post-hero { margin: 0 0 28px; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--border); }
.post-hero img { display: block; width: 100%; height: auto; }
.post-hero.is-placeholder { aspect-ratio: 16 / 7; display: grid; place-items: center; background: var(--venn-field); }
.post-hero.is-placeholder .venn { width: 22%; min-width: 120px; }

.pagination { margin-top: 40px; }
.pagination .page-numbers {
  display: inline-block; padding: 8px 14px; margin-right: 6px;
  border: 1px solid var(--border); border-radius: 999px; font-size: 15px;
}
.pagination .page-numbers.current { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* ══════════════════════════════════════════════════════════════════════════
   14. Call-to-action block
   ══════════════════════════════════════════════════════════════════════════ */

.cta-block {
  text-align: center; padding: 44px 26px;
  border: 1px solid var(--border); border-radius: var(--radius-l);
  background: var(--venn-field);
}
.cta-block h2 { max-width: 20ch; margin-inline: auto; }
.cta-block p { color: var(--ink-2); max-width: 56ch; margin-inline: auto; }
.cta-block .badge-appstore { margin-top: 24px; }
.cta-block .cta-meta { margin-top: 18px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--muted); }

/* ══════════════════════════════════════════════════════════════════════════
   15. Utilities
   ══════════════════════════════════════════════════════════════════════════ */

.stack-sm > * + * { margin-top: 10px; }
.mt-l { margin-top: 40px; }
.center { text-align: center; }
.soft-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: 26px;
}
.kbd {
  font-family: var(--mono); font-size: .88em;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 6px;
}
.table-wrap { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; font-size: 16px; }
table.plain th, table.plain td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
table.plain th { font-weight: 650; color: var(--ink); }
table.plain td { color: var(--ink-2); }
