/* ------------------------------------------------------------------
 * Sticky Brain Kanban — marketing site
 * The four palettes are lifted directly from the app's themes.css so the
 * site wears the same colors the board does. [data-theme] on <html>.
 * ------------------------------------------------------------------ */

:root {
  --font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --font-display: var(--font-ui);
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 520ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  --sparkle-opacity: 0;
  --note-tilt: 1;
}

/* ---------------------------- LIGHT ---------------------------- */
:root, [data-theme='light'] {
  color-scheme: light;
  --bg: #eeebe4;
  --bg-grad: radial-gradient(1200px 700px at 15% -10%, #f6f3ec 0%, #ece9e1 55%, #e3dfd6 100%);
  --panel: #fffefb;
  --panel-2: #f7f5f0;
  --panel-border: #e2ded4;
  --ink: #23211d;
  --ink-soft: #5d584f;
  --ink-faint: #6b6559;
  --line: #e4e0d6;
  --accent: #b8562f;
  --accent-soft: #f2d9cd;
  --accent-ink: #ffffff;
  --shadow-note: 0 1px 2px rgba(60, 50, 35, 0.1), 0 8px 18px -8px rgba(60, 50, 35, 0.22);
  --shadow-note-lift: 0 2px 4px rgba(60, 50, 35, 0.12), 0 22px 40px -14px rgba(60, 50, 35, 0.32);
  --shadow-panel: 0 24px 60px -20px rgba(50, 42, 30, 0.3);
  --note-butter: #fdf0b8; --note-butter-edge: #f0dd8f;
  --note-rose: #fbd9d5;   --note-rose-edge: #f0bbb4;
  --note-mint: #d5eedd;   --note-mint-edge: #b4dcc2;
  --note-sky: #d6e6f7;    --note-sky-edge: #b3cfec;
  --note-lilac: #e4dcf3;  --note-lilac-edge: #c9bce4;
  --note-sand: #f0e4d2;   --note-sand-edge: #ddcbaf;
  --note-ink: #2a251d;
  --grain-opacity: 0.5;
}

/* ---------------------------- DARK ----------------------------- */
[data-theme='dark'] {
  color-scheme: dark;
  --bg: #131417;
  --bg-grad: radial-gradient(1100px 640px at 20% -10%, #22242a 0%, #16171b 55%, #0f1013 100%);
  --panel: #1c1e23;
  --panel-2: #23262c;
  --panel-border: #32363e;
  --ink: #e8e6e1;
  --ink-soft: #a7a49d;
  --ink-faint: #97948d;
  --line: #2c2f36;
  --accent: #e0864f;
  --accent-soft: #3a2a21;
  --accent-ink: #17130f;
  --shadow-note: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 22px -10px rgba(0, 0, 0, 0.7);
  --shadow-note-lift: 0 2px 6px rgba(0, 0, 0, 0.55), 0 26px 46px -16px rgba(0, 0, 0, 0.8);
  --shadow-panel: 0 26px 64px -22px rgba(0, 0, 0, 0.85);
  --note-butter: #55471f; --note-butter-edge: #75632c;
  --note-rose: #4c3130;   --note-rose-edge: #6a4340;
  --note-mint: #26413a;   --note-mint-edge: #345a4f;
  --note-sky: #27394f;    --note-sky-edge: #365070;
  --note-lilac: #332c56;  --note-lilac-edge: #4d446e;
  --note-sand: #3b3229;   --note-sand-edge: #524638;
  --note-ink: #ece9e2;
  --grain-opacity: 0.28;
}

/* --------------------------- NATURAL --------------------------- */
[data-theme='natural'] {
  color-scheme: light;
  --font-display: 'Iowan Old Style', 'Palatino', Georgia, serif;
  --bg: #ebe7dc;
  --bg-grad: radial-gradient(1000px 620px at 80% -12%, #f6f2e4 0%, #e9e4d6 50%, #ded8c7 100%);
  --panel: #f8f5ea;
  --panel-2: #efebdd;
  --panel-border: #d6cfba;
  --ink: #2f3128;
  --ink-soft: #616654;
  --ink-faint: #6a6656;
  --line: #ddd6c2;
  --accent: #6b7a4b;
  --accent-soft: #dfe4cd;
  --accent-ink: #f8f9f2;
  --shadow-note: 0 1px 2px rgba(70, 66, 45, 0.12), 0 9px 20px -9px rgba(70, 66, 45, 0.26);
  --shadow-note-lift: 0 3px 6px rgba(70, 66, 45, 0.16), 0 24px 44px -15px rgba(70, 66, 45, 0.34);
  --shadow-panel: 0 26px 60px -22px rgba(60, 58, 40, 0.35);
  --note-butter: #eeddab; --note-butter-edge: #dcc785;
  --note-rose: #e6c4b4;   --note-rose-edge: #d3a892;
  --note-mint: #cadcc0;   --note-mint-edge: #adc4a0;
  --note-sky: #c5d4d5;    --note-sky-edge: #a5babc;
  --note-lilac: #d7cdd6;  --note-lilac-edge: #bcaebc;
  --note-sand: #e3d5bd;   --note-sand-edge: #cbb896;
  --note-ink: #25281d;
  --grain-opacity: 0.85;
}

/* --------------------------- MAGICAL --------------------------- */
[data-theme='magical'] {
  color-scheme: dark;
  --font-display: 'Iowan Old Style', 'Palatino', 'Baskerville', Georgia, serif;
  --bg: #0f1220;
  --bg-grad:
    radial-gradient(680px 420px at 78% 8%, rgba(214, 168, 74, 0.16) 0%, transparent 70%),
    radial-gradient(900px 560px at 12% 92%, rgba(86, 44, 96, 0.22) 0%, transparent 72%),
    linear-gradient(168deg, #151a2e 0%, #0f1220 48%, #0a0c16 100%);
  --panel: #1a1d31;
  --panel-2: #21253c;
  --panel-border: #3a3358;
  --ink: #ecdfc2;
  --ink-soft: #b6a883;
  --ink-faint: #a89b76;
  --line: #333050;
  --accent: #d6a84a;
  --accent-soft: #3a2f1c;
  --accent-ink: #17131f;
  --shadow-note:
    0 1px 2px rgba(0, 0, 0, 0.55), 0 10px 26px -10px rgba(0, 0, 0, 0.75),
    0 0 22px -6px rgba(214, 168, 74, 0.18);
  --shadow-note-lift:
    0 3px 8px rgba(0, 0, 0, 0.6), 0 28px 52px -16px rgba(0, 0, 0, 0.85),
    0 0 34px -6px rgba(214, 168, 74, 0.34);
  --shadow-panel: 0 30px 70px -24px rgba(0, 0, 0, 0.9);
  --note-butter: #e8d9ac; --note-butter-edge: #c8b077;
  --note-rose: #e0bfb0;   --note-rose-edge: #bd9280;
  --note-mint: #bfd2bd;   --note-mint-edge: #94ab93;
  --note-sky: #bccadb;    --note-sky-edge: #90a2b8;
  --note-lilac: #cdc0d9;  --note-lilac-edge: #a394b3;
  --note-sand: #ddcaa6;   --note-sand-edge: #b8a074;
  --note-ink: #2b2418;
  --grain-opacity: 1;
  --sparkle-opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 1ms; --dur: 1ms; --dur-slow: 1ms; --sparkle-opacity: 0; --note-tilt: 0; }
}

/* ------------------------------ Base ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  transition: background-color var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  /* paper grain */
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: calc(var(--grain-opacity) * 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
[data-theme='dark'] body::before, [data-theme='magical'] body::before { mix-blend-mode: screen; opacity: calc(var(--grain-opacity) * 0.06); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 650; }
p { margin: 0; }
code, kbd { font-family: var(--font-mono); font-size: 0.88em; background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 0.12em 0.4em; border-radius: 6px; }
kbd { border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-bottom-width: 2px; background: var(--panel); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; z-index: 1; }
.wrap--narrow { width: min(820px, 100% - 2 * var(--gutter)); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.small { font-size: 14.5px; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15.5px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--primary:hover { box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn--ghost { background: color-mix(in srgb, var(--panel) 65%, transparent); border-color: var(--panel-border); color: var(--ink); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: var(--panel); }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; }

/* ------------------------------ Nav ------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; transform: rotate(-4deg); filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a { padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color var(--dur), background var(--dur); }
.nav__links a:hover, .nav__links a[aria-current='page'] { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav .btn { padding: 9px 16px; font-size: 14.5px; }
.nav__burger { display: none; background: none; border: 1px solid var(--panel-border); border-radius: 10px; width: 40px; height: 40px; color: var(--ink); cursor: pointer; }
@media (max-width: 820px) {
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 18px; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-panel); }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 14px; font-size: 17px; }
  .nav__burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav__cta .btn { display: none; }
}

/* Theme switcher — four dots, one per palette */
.themes { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.theme-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; position: relative; transition: transform var(--dur) var(--ease), border-color var(--dur); }
.theme-dot:hover { transform: scale(1.12); }
.theme-dot[aria-pressed='true'] { border-color: var(--ink); }
.theme-dot--light { background: linear-gradient(135deg, #f6f3ec 50%, #b8562f 50%); }
.theme-dot--dark { background: linear-gradient(135deg, #1c1e23 50%, #e0864f 50%); }
.theme-dot--natural { background: linear-gradient(135deg, #f8f5ea 50%, #6b7a4b 50%); }
.theme-dot--magical { background: linear-gradient(135deg, #151a2e 50%, #d6a84a 50%); }

/* ------------------------------ Hero ------------------------------ */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(32px, 5vw, 64px); position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 80px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__fine { margin-top: 18px; font-size: 13.5px; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero__fine span::before { content: '✓'; margin-right: 6px; color: var(--accent); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

/* Stack of sticky notes beside the headline */
.notes-stack { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1.04; margin-inline: auto; justify-self: center; }
.sticky {
  position: absolute; width: 45%; aspect-ratio: 1 / 1.02; padding: 18px 18px 20px;
  background: var(--note-bg); color: var(--note-ink); border-radius: 3px 3px 3px 12px;
  box-shadow: var(--shadow-note);
  transform: rotate(calc(var(--r, 0) * 1deg * var(--note-tilt)));
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), background var(--dur-slow) var(--ease);
  font-size: 14px; line-height: 1.4;
}
.sticky::before { /* pin strip / header tint */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 34px;
  background: color-mix(in srgb, var(--note-edge) 55%, transparent); border-radius: 3px 3px 0 0;
}
.sticky::after { /* curled corner */
  content: ''; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px;
  background: linear-gradient(135deg, transparent 50%, var(--note-edge) 50%);
  border-radius: 0 0 3px 0;
  filter: brightness(0.96);
}
.sticky__title { position: relative; display: block; font-family: var(--font-display); font-weight: 650; font-size: 15.5px; margin-top: -2px; margin-bottom: 22px; letter-spacing: -0.01em; }
.sticky__body { color: color-mix(in srgb, var(--note-ink) 86%, transparent); }
.sticky__body li { margin: 3px 0 0 0; list-style: none; display: flex; gap: 8px; align-items: baseline; }
.sticky__body li::before { content: ''; width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; flex: none; transform: translateY(1px); opacity: .8; }
.sticky__body li.done::before { background: currentColor; }
.sticky__body li.done { text-decoration: line-through; opacity: .6; }
.sticky__badges { position: absolute; left: 18px; bottom: 16px; display: flex; gap: 6px; }
.sticky__badges span { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--note-ink) 22%, transparent); color: color-mix(in srgb, var(--note-ink) 72%, transparent); }
.sticky:hover { box-shadow: var(--shadow-note-lift); transform: rotate(0deg) translateY(-4px); z-index: 5; }
.sticky--butter { --note-bg: var(--note-butter); --note-edge: var(--note-butter-edge); }
.sticky--rose   { --note-bg: var(--note-rose);   --note-edge: var(--note-rose-edge); }
.sticky--mint   { --note-bg: var(--note-mint);   --note-edge: var(--note-mint-edge); }
.sticky--sky    { --note-bg: var(--note-sky);    --note-edge: var(--note-sky-edge); }
.sticky--lilac  { --note-bg: var(--note-lilac);  --note-edge: var(--note-lilac-edge); }
.sticky--sand   { --note-bg: var(--note-sand);   --note-edge: var(--note-sand-edge); }

/* wax seal / pin, visible in magical only */
.sticky .pin { position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8564a, #7b1f17 70%); box-shadow: 0 2px 4px rgba(0,0,0,.45); opacity: 0; transition: opacity var(--dur-slow); }
[data-theme='magical'] .sticky .pin { opacity: 1; }

/* sparkles (magical + animated only) */
.sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: var(--sparkle-opacity); transition: opacity var(--dur-slow); }
.sparkles i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #f1d48a; box-shadow: 0 0 10px 2px rgba(241, 212, 138, .55);
  animation: drift 9s ease-in-out infinite; opacity: 0; }
@keyframes drift { 0% { transform: translateY(20px) scale(.4); opacity: 0; } 20% { opacity: .9; } 80% { opacity: .6; } 100% { transform: translateY(-140px) scale(1); opacity: 0; } }

/* ------------------------------ Screenshot frame ------------------------------ */
.shot { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--panel); border: 1px solid var(--panel-border); box-shadow: var(--shadow-panel); }
.shot__bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.shot__bar i { width: 11px; height: 11px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.shot__bar i:nth-child(1) { background: #ee6a5f; } .shot__bar i:nth-child(2) { background: #f5bf4f; } .shot__bar i:nth-child(3) { background: #62c554; }
.shot img { width: 100%; aspect-ratio: 2880 / 1880; object-fit: cover; }
.shot--hero { margin-top: clamp(36px, 6vw, 72px); transform: perspective(1600px) rotateX(4deg); transform-origin: top; }
@media (max-width: 900px) { .shot--hero { transform: none; } }

/* ------------------------------ Sections ------------------------------ */
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head h2 { font-size: clamp(32px, 4.4vw, 54px); }
.section__head .lead { margin-top: 16px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }
.section__head--center .eyebrow::before { display: none; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* trust strip */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { padding: 26px 26px 28px; border-radius: var(--r); background: color-mix(in srgb, var(--panel) 70%, transparent); border: 1px solid var(--panel-border); backdrop-filter: blur(8px); }
.pillar h3 { font-size: 21px; margin-bottom: 8px; }
.pillar p { color: var(--ink-soft); font-size: 15.5px; }
.pillar .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.pillar .ico svg { width: 22px; height: 22px; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split h2 { font-size: clamp(30px, 3.8vw, 46px); }
.split .lead { margin-top: 16px; font-size: 18px; }
.split ul.checks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.split ul.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: 16px; }
.split ul.checks li::before { content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 2px; }
.split ul.checks li strong { color: var(--ink); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* Enrich steps */
.steps { counter-reset: step; display: grid; gap: 18px; margin-top: 28px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.step::before { counter-increment: step; content: counter(step); width: 44px; height: 44px; border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-border); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--accent); box-shadow: var(--shadow-note); }
.step h4 { font-size: 18px; margin-bottom: 4px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* The Enrich button replica */
.enrich-demo { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; background: var(--note-ink); color: var(--note-butter); font-weight: 600; box-shadow: var(--shadow-note-lift); }
[data-theme='dark'] .enrich-demo, [data-theme='magical'] .enrich-demo { background: #2a2418; color: #e8d9ac; }
.enrich-demo svg { width: 18px; height: 18px; }

/* Theme gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery__item { text-align: left; border: 1px solid var(--panel-border); background: var(--panel); border-radius: var(--r); overflow: hidden; padding: 0; cursor: pointer; color: inherit; font: inherit; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur); }
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-panel); }
.gallery__item[aria-pressed='true'] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gallery__item img { aspect-ratio: 16 / 10.4; object-fit: cover; object-position: left top; width: 100%; }
.gallery__meta { padding: 14px 16px 16px; }
.gallery__meta strong { display: block; font-family: var(--font-display); font-size: 17px; }
.gallery__meta span { color: var(--ink-soft); font-size: 14px; }
.gallery__sw { display: inline-flex; gap: 4px; float: right; margin-top: 4px; }
.gallery__sw i { width: 10px; height: 10px; border-radius: 50%; display: block; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

.feels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.feel { padding: 22px 24px; border-radius: var(--r); border: 1px dashed var(--panel-border); }
.feel strong { font-family: var(--font-display); font-size: 18px; display: block; margin-bottom: 6px; }
.feel p { color: var(--ink-soft); font-size: 15px; }
.feel--space { border-radius: 6px; border-style: solid; }
.feel--organic { border-radius: 28px; border-style: solid; border-color: transparent; background: color-mix(in srgb, var(--panel) 70%, transparent); }
.feel--academia { transform: rotate(-0.6deg); background: var(--note-butter); color: var(--note-ink); border-color: var(--note-butter-edge); border-style: solid; }
.feel--academia p { color: color-mix(in srgb, var(--note-ink) 80%, transparent); }
@media (max-width: 820px) { .feels { grid-template-columns: 1fr; } }

/* privacy / guarantees */
.guarantees { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.guarantee { padding: 24px; border-radius: var(--r); background: color-mix(in srgb, var(--panel) 70%, transparent); border: 1px solid var(--panel-border); }
.guarantee h3 { font-size: 19px; margin-bottom: 8px; }
.guarantee p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 720px) { .guarantees { grid-template-columns: 1fr; } }

/* keyboard */
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.key { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--panel-border); font-size: 15px; color: var(--ink-soft); }
.key kbd { font-size: 13px; padding: 3px 8px; color: var(--ink); }

/* big CTA */
.cta { border-radius: var(--r-xl); padding: clamp(44px, 7vw, 96px) clamp(24px, 6vw, 80px); text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--panel)) 0%, var(--panel) 60%); border: 1px solid var(--panel-border); box-shadow: var(--shadow-panel); }
.cta h2 { font-size: clamp(32px, 4.6vw, 56px); }
.cta .lead { margin: 16px auto 0; }
.cta .hero__cta { justify-content: center; }
.cta .mini-notes { position: absolute; inset: 0; pointer-events: none; }
.cta .mini-notes i { position: absolute; width: 64px; height: 64px; border-radius: 3px; opacity: .9; box-shadow: var(--shadow-note); }

/* download / install */
.codeblock { white-space: pre; margin-top: 18px; background: color-mix(in srgb, var(--ink) 90%, transparent); color: var(--bg); border-radius: 12px; padding: 16px 18px; font-family: var(--font-mono); font-size: 14px; overflow-x: auto; line-height: 1.7; }
[data-theme='dark'] .codeblock, [data-theme='magical'] .codeblock { background: var(--panel-2); color: var(--ink); border: 1px solid var(--panel-border); }
.codeblock .c { opacity: .55; }
.codeblock .p { color: var(--accent); }

/* generic tables */
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin-top: 20px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; color: var(--ink-faint); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.table td:first-child { font-weight: 600; white-space: nowrap; }
.table td { color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }

/* prose for about/product subpages */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -0.03em; }
.page-hero .lead { margin-top: 20px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 56px 0 14px; }
.prose h3 { font-size: 21px; margin: 32px 0 8px; }
.prose p { margin: 0 0 16px; color: var(--ink-soft); font-size: 17px; }
.prose p strong { color: var(--ink); }
.prose ul { margin: 0 0 18px; padding-left: 22px; color: var(--ink-soft); }
.prose li { margin: 6px 0; }
.prose li strong { color: var(--ink); }
.prose blockquote { margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--panel) 70%, transparent); border-radius: 0 12px 12px 0; font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.prose .shot { margin: 28px 0 36px; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toc a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--panel-border); background: color-mix(in srgb, var(--panel) 70%, transparent); font-size: 14px; color: var(--ink-soft); }
.toc a:hover { color: var(--ink); background: var(--panel); }

.principles { display: grid; gap: 14px; margin-top: 8px; }
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 24px; border-radius: var(--r); background: color-mix(in srgb, var(--panel) 70%, transparent); border: 1px solid var(--panel-border); }
.principle .n { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1; }
.principle h3 { font-size: 20px; margin: 0 0 6px; }
.principle p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.card-person { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; padding: 28px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--panel-border); box-shadow: var(--shadow-note); margin-top: 24px; }
.card-person .avatar { width: 120px; height: 120px; border-radius: 28px; background: linear-gradient(145deg, var(--note-butter), var(--note-rose)); display: grid; place-items: center; font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--note-ink); }
.card-person h3 { font-size: 24px; margin: 0 0 4px; }
.card-person p { margin: 0 0 10px; color: var(--ink-soft); }
.card-person .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-person .links a { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--panel-border); color: var(--ink); }
@media (max-width: 600px) { .card-person { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--panel-border); border-radius: 14px; background: color-mix(in srgb, var(--panel) 70%, transparent); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--accent); font-weight: 400; transition: transform var(--dur); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; margin: 0; color: var(--ink-soft); }

/* ------------------------------ Footer ------------------------------ */
.footer { padding: 48px 0 40px; border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.footer__links a { color: var(--ink-soft); }
.footer__links a:hover { color: var(--ink); }
.footer p { color: var(--ink-faint); font-size: 14px; margin-top: 14px; }
.footer .brand { font-size: 17px; }

/* ------------------------------ Reveal on scroll ------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
