/* ============================================================
   Bedrock — landing page · light "Default" theme
   White surfaces · cool gray neutrals · single blue accent.
   Mirrors the in-app design system (Bedrock Color Styles).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Spectral:ital,opsz,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Default (light) neutrals — white + cool gray */
  --bg-base:    #FFFFFF;   /* behind the graph */
  --bg-canvas:  #FFFFFF;
  --bg-sidebar: #FAFAFA;   /* sand banding */
  --panel:      #FFFFFF;
  --panel-solid:#FFFFFF;
  --card:       #FFFFFF;
  --card-hi:    #F7F8FA;

  --ink:      #18181B;
  --ink-soft: #52525B;
  --ink-mute: #9A9AA4;
  --border:   #ECECEE;
  --border-strong: #D6D6DA;

  /* Accent ramps (brand) — blue primary (mapped onto sage-* slots) */
  --sage-300:#9DC0FA; --sage-400:#5E94F2; --sage-500:#2E6BE6; --sage-600:#1F55C4;
  --coral-400:#E8796B; --coral-500:#E0524A;
  --butter-400:#CC9A2B; --butter-500:#B07D1A;
  --sky-400:#4FA3B8; --sky-500:#2E7D8F;
  --lavender-400:#9B86E0; --lavender-500:#7C5CD6;
  --sand-400:#9A9AA4;

  --primary: var(--sage-500);
  --primary-hi: var(--sage-600);

  /* Context Composer reserved indigo */
  --composer:      #4F46E5;
  --composer-deep: #3F38C2;
  --composer-soft: rgba(79, 70, 229, 0.10);
  --composer-line: rgba(79, 70, 229, 0.30);

  /* Doc-type glyph colours (graph legend) */
  --t-rules:   #E0524A;
  --t-plans:   #CC8B22;
  --t-arch:    #2E7D8F;
  --t-adr:     #7C5CD6;
  --t-prompts: #3F9A5B;
  --t-notes:   #9A9AA4;

  /* Type */
  --font-display:'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-serif:'Spectral', ui-serif, Georgia, serif;
  --font-mono:'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Radii */
  --r-sm:8px; --r-md:12px; --r-lg:16px; --r-xl:20px; --r-full:999px;

  /* Shadows (soft, for light) */
  --shadow-sm: 0 1px 2px rgba(24,24,27,.05), 0 4px 12px rgba(24,24,27,.06);
  --shadow-md: 0 4px 16px rgba(24,24,27,.08), 0 1px 3px rgba(24,24,27,.06);
  --shadow-lg: 0 24px 64px rgba(24,24,27,.14), 0 4px 12px rgba(24,24,27,.08);

  --ease: cubic-bezier(.2,.8,.2,1);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg-base);
}

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- The graph canvas, fixed behind everything ---- */
#graph {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}
/* a soft wash seated under the hero / closing CTA */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 560px at 50% 6%, rgba(46,107,230,.10), transparent 70%),
    radial-gradient(700px 480px at 82% 4%, rgba(124,92,214,.07), transparent 70%);
}

/* everything sits above the graph */
.page { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
::selection { background: rgba(46,107,230,.18); }

/* ============================================================
   Top nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 60px; padding: 0 28px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; height: 23px; width: auto; }
.foot .brand-logo { height: 21px; }
.nav .spring { flex: 1; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 7px 13px; border-radius: 8px; font-size: 14.5px; color: var(--ink-soft);
  transition: color var(--ease) .15s, background var(--ease) .15s;
}
.nav-links a:hover { color: var(--ink); background: rgba(24,24,27,.05); }
.nav-ghost {
  padding: 8px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  border: 1px solid var(--border-strong); color: var(--ink);
  transition: border-color var(--ease) .15s, background var(--ease) .15s;
}
.nav-ghost:hover { border-color: var(--sage-500); background: rgba(46,107,230,.08); }
@media (max-width: 860px){ .nav-links { display:none; } }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  font-family: var(--font-display); cursor: pointer; border: 1px solid transparent;
  transition: transform var(--ease) .12s, background var(--ease) .15s, border-color var(--ease) .15s, box-shadow var(--ease) .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 22px rgba(46,107,230,.26); }
.btn-primary:hover { background: var(--primary-hi); }
.btn-ghost { background: #fff; border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-mute); background: var(--card-hi); }
.btn svg { width: 18px; height: 18px; }

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; position: relative; background: var(--bg-canvas); }
/* keep anchor jumps clear of the sticky nav */
[id] { scroll-margin-top: 80px; }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 16px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.025em;
  font-weight: 700; margin: 0 0 16px;
}
.section .lede { font-size: 18px; color: var(--ink-soft); max-width: 620px; line-height: 1.6; margin: 0; }
.head-center { text-align: center; }
.head-center .lede { margin: 0 auto; }

/* faint sand banding (also fades the hero graph into content) */
.scrim { background: var(--bg-sidebar); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 92px 0 64px; text-align: center; }
.tagpill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px 6px 8px; border-radius: 999px; font-size: 13px; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--border); margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.tagpill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-500); box-shadow: 0 0 10px rgba(46,107,230,.6); }
.tagpill b { color: var(--ink); font-weight: 600; }

.hero h1 {
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(38px, 7vw, 80px); line-height: 1; letter-spacing: -.03em;
  font-weight: 700; margin: 0 auto 22px; max-width: 14ch;
}
.hero h1 .ser { font-family: var(--font-serif); font-weight: 500; font-style: italic; letter-spacing: -.01em; }
.hero .sub { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 600px; margin: 0 auto 34px; }

.downloads { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.dl-os { display:inline-flex; align-items:center; gap:9px; }
.dl-meta { display:flex; align-items:center; justify-content:center; gap:14px; font-size:13px; color: var(--ink-mute); }
.dl-meta a { color: var(--ink-soft); border-bottom: 1px solid var(--border-strong); padding-bottom: 1px; }
.dl-meta a:hover { color: var(--ink); border-color: var(--sage-500); }

/* floating app window mock */
.appshot {
  margin: 64px auto 0; max-width: 1000px;
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: var(--bg-canvas); box-shadow: var(--shadow-lg);
}

/* ============================================================
   App window mock (reused as hero shot) — light
   ============================================================ */
.win-bar { display:flex; align-items:center; gap:8px; height:38px; padding:0 14px; background: var(--bg-sidebar); border-bottom:1px solid var(--border); }
.win-bar .lights { display:flex; gap:7px; }
.win-bar .lights i { width:11px; height:11px; border-radius:50%; display:block; }
.win-bar .lights i:nth-child(1){ background:#E0524A; }
.win-bar .lights i:nth-child(2){ background:#E3B23C; }
.win-bar .lights i:nth-child(3){ background:#3F9A5B; }
.win-bar .title { font-size:12.5px; color: var(--ink-mute); margin-left:8px; font-family: var(--font-mono); }
.win-body { display:grid; grid-template-columns: 210px 1fr 196px; min-height: 420px; }
.win-lib { background: var(--bg-sidebar); border-right:1px solid var(--border); padding:14px 10px; font-size:13px; }
.win-grouphd { font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-mute); margin:14px 8px 6px; font-weight:600; }
.win-grouphd:first-child{ margin-top:2px; }
.libitem { display:flex; align-items:center; gap:9px; padding:6px 8px; border-radius:7px; color: var(--ink-soft); }
.libitem .g { width:7px; height:7px; border-radius:2px; flex:none; }
.libitem.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.win-edit { padding:22px 26px; min-width:0; background: var(--bg-canvas); }
.win-edit .fm { font-family: var(--font-mono); font-size:12px; color: var(--ink-mute); background: var(--bg-sidebar); border:1px solid var(--border); border-radius:8px; padding:9px 12px; margin-bottom:18px; }
.win-edit h4 { font-size:21px; margin:0 0 12px; letter-spacing:-.02em; }
.win-edit p { font-family: var(--font-serif); font-size:14.5px; color: var(--ink-soft); margin:0 0 11px; line-height:1.6; }
.win-edit .wikilink { color: var(--sage-500); border-bottom:1px solid rgba(46,107,230,.4); }
.win-insp { background: var(--bg-sidebar); border-left:1px solid var(--border); padding:14px 14px; font-size:12.5px; }
.win-insp .tab { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-mute); font-weight:600; margin-bottom:10px; }
.mini-graph { height:120px; border:1px solid var(--border); border-radius:10px; background: #fff; margin-bottom:16px; position:relative; overflow:hidden; }
.backlink { display:flex; gap:8px; align-items:center; padding:6px 0; color: var(--ink-soft); border-bottom:1px solid var(--border); }
.backlink:last-child{ border-bottom:none; }
@media (max-width: 760px){ .win-body { grid-template-columns: 1fr; } .win-lib, .win-insp { display:none; } }

/* ============================================================
   Problem comparison
   ============================================================ */
.compare { display:grid; grid-template-columns: 1fr 1fr; gap:18px; margin-top:48px; }
.compare .col { border:1px solid var(--border); border-radius:16px; padding:24px; background: #fff; box-shadow: var(--shadow-sm); }
.compare .col.good { border-color: rgba(46,107,230,.32); background: rgba(46,107,230,.04); }
.compare .col h3 { margin:0 0 18px; font-size:15px; letter-spacing:.02em; display:flex; align-items:center; gap:9px; }
.compare .col h3 .ic { width:22px; height:22px; border-radius:7px; display:grid; place-items:center; }
.compare .col.bad .ic { background: rgba(224,82,74,.14); color: var(--coral-500); }
.compare .col.good .ic { background: rgba(46,107,230,.14); color: var(--sage-500); }
.compare ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:13px; }
.compare li { display:flex; gap:11px; font-size:14.5px; color: var(--ink-soft); line-height:1.45; }
.compare li svg { width:17px; height:17px; flex:none; margin-top:2px; }
.compare .bad li svg { color: var(--coral-500); }
.compare .good li svg { color: var(--sage-500); }
@media (max-width:760px){ .compare { grid-template-columns:1fr; } }

/* ============================================================
   Feature grid
   ============================================================ */
.fgrid { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; margin-top:52px; }
.fcard {
  border:1px solid var(--border); border-radius:16px; padding:26px 24px; background: #fff;
  transition: border-color var(--ease) .18s, transform var(--ease) .18s, box-shadow var(--ease) .18s;
}
.fcard:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.fcard .ic { width:40px; height:40px; border-radius:11px; display:grid; place-items:center; margin-bottom:18px; }
.fcard .ic svg { width:21px; height:21px; }
.fcard h3 { font-size:18px; margin:0 0 9px; letter-spacing:-.01em; }
.fcard p { font-size:14px; color: var(--ink-soft); margin:0; line-height:1.55; }
.fcard.span2 { grid-column: span 2; }
@media (max-width:900px){ .fgrid { grid-template-columns:1fr 1fr; } .fcard.span2{ grid-column: span 2; } }
@media (max-width:620px){ .fgrid { grid-template-columns:1fr; } .fcard.span2{ grid-column:auto; } }

.tint-sage   { background: rgba(46,107,230,.12); color: #2E6BE6; }
.tint-sky    { background: rgba(46,125,143,.12); color: #2E7D8F; }
.tint-butter { background: rgba(204,154,43,.16); color: #B07D1A; }
.tint-coral  { background: rgba(224,82,74,.12); color: #E0524A; }
.tint-indigo { background: rgba(79,70,229,.12); color: #4F46E5; }
.tint-lav    { background: rgba(124,92,214,.12); color: #7C5CD6; }

/* ============================================================
   Deep-dive bands
   ============================================================ */
.band { display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:center; }
.band.flip .band-text { order:2; }
.band-text h2 { font-size: clamp(26px,3.4vw,38px); }
.band-text .lede { margin-bottom: 22px; }
.band-list { list-style:none; margin:18px 0 0; padding:0; display:flex; flex-direction:column; gap:12px; }
.band-list li { display:flex; gap:11px; font-size:14.5px; color: var(--ink-soft); }
.band-list li svg { width:18px; height:18px; color: var(--sage-500); flex:none; margin-top:1px; }
@media (max-width:860px){ .band { grid-template-columns:1fr; gap:36px; } .band.flip .band-text { order:0; } }

.mock { border:1px solid var(--border); border-radius:16px; background: #fff; box-shadow: var(--shadow-md); overflow:hidden; }
.mock-hd { display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid var(--border); font-size:13px; color: var(--ink-soft); }
.mock-hd .tag { margin-left:auto; font-family: var(--font-mono); font-size:11.5px; color: var(--ink-mute); }

/* composer */
.comp-row { display:flex; align-items:center; gap:12px; padding:11px 16px; border-bottom:1px solid var(--border); font-size:13.5px; }
.comp-row:last-child { border-bottom:none; }
.comp-row .chk { width:17px; height:17px; border-radius:5px; border:1.5px solid var(--composer); display:grid; place-items:center; flex:none; }
.comp-row.on .chk { background: var(--composer-deep); border-color: var(--composer-deep); }
.comp-row.off { color: var(--ink-mute); }
.comp-row.off .chk { border-color: var(--border-strong); }
.comp-row .g { width:7px; height:7px; border-radius:2px; flex:none; }
.comp-row .path { font-family: var(--font-mono); font-size:12px; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.comp-row .tok { font-family: var(--font-mono); font-size:11.5px; color: var(--ink-mute); }
.comp-meter { padding:16px; background: var(--composer-soft); border-top:1px solid var(--composer-line); }
.comp-meter .lab { display:flex; justify-content:space-between; font-size:12.5px; margin-bottom:9px; }
.comp-meter .lab b { font-family: var(--font-mono); color: var(--composer); }
.comp-bar { height:8px; border-radius:999px; background: rgba(24,24,27,.07); overflow:hidden; }
.comp-bar i { display:block; height:100%; width:31%; border-radius:999px; background: linear-gradient(90deg, var(--composer-deep), var(--composer)); }

/* version history timeline */
.tl { padding:8px 6px 8px 20px; }
.tl-row { position:relative; padding:11px 12px 11px 22px; }
.tl-row::before { content:""; position:absolute; left:4px; top:0; bottom:0; width:1.5px; background: var(--border); }
.tl-row::after { content:""; position:absolute; left:0; top:17px; width:9px; height:9px; border-radius:50%; background: var(--ink-mute); border:2px solid #fff; }
.tl-row.git::after { background: var(--sage-500); }
.tl-row.now::after { background: var(--butter-500); box-shadow:0 0 0 3px rgba(176,125,26,.18); }
.tl-row .t { font-size:13.5px; color: var(--ink); }
.tl-row .m { font-size:11.5px; color: var(--ink-mute); font-family: var(--font-mono); }
.diff { font-family: var(--font-mono); font-size:12px; padding:14px 16px; border-top:1px solid var(--border); line-height:1.7; }
.diff .add { color: #3F9A5B; }
.diff .del { color: var(--coral-500); text-decoration: line-through; opacity:.8; }

/* prompt board kanban */
.kanban { display:grid; grid-template-columns: repeat(4,1fr); gap:10px; padding:14px; background: var(--bg-sidebar); }
.kcol .kh { font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-mute); font-weight:600; margin:0 2px 9px; display:flex; justify-content:space-between; }
.kcard { background: #fff; border:1px solid var(--border); border-radius:9px; padding:10px 11px; margin-bottom:8px; font-size:12px; box-shadow: var(--shadow-sm); }
.kcard .kt { font-weight:600; font-size:12.5px; margin-bottom:7px; color:var(--ink); }
.kcard .kmeta { display:flex; align-items:center; gap:6px; color: var(--ink-mute); font-family: var(--font-mono); font-size:10.5px; }
.kcard .ktarget { margin-left:auto; padding:2px 7px; border-radius:999px; background: rgba(46,107,230,.12); color: var(--sage-500); font-size:9.5px; letter-spacing:.03em; }
@media (max-width:760px){ .kanban { grid-template-columns:1fr 1fr; } }

/* ============================================================
   Privacy band
   ============================================================ */
.privacy { text-align:center; }
.privacy .lede { margin-left:auto; margin-right:auto; }
.privacy .pgrid { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; margin-top:48px; }
.pcard { border:1px solid var(--border); border-radius:16px; padding:26px 20px; background: #fff; text-align:left; box-shadow: var(--shadow-sm); }
.pcard .ic { width:38px; height:38px; border-radius:10px; display:grid; place-items:center; margin-bottom:16px; background: rgba(46,107,230,.10); }
.pcard .ic svg { width:20px; height:20px; color: var(--sage-500); }
.pcard h3 { font-size:15.5px; margin:0 0 7px; }
.pcard p { font-size:13px; color: var(--ink-soft); margin:0; line-height:1.5; }
@media (max-width:900px){ .privacy .pgrid { grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .privacy .pgrid { grid-template-columns:1fr; } }

/* ============================================================
   Themes showcase
   ============================================================ */
.themes { display:grid; grid-template-columns: repeat(3,1fr); gap:14px; margin-top:48px; }
.swatch { border:1px solid var(--border); border-radius:14px; overflow:hidden; box-shadow: var(--shadow-sm); }
.swatch .prev { height:96px; display:grid; grid-template-columns: 34% 1fr; }
.swatch .prev .sb { border-right:1px solid rgba(24,24,27,.06); }
.swatch .prev .cv { position:relative; }
.swatch .prev .cv::after { content:""; position:absolute; left:14px; right:30%; top:22px; height:7px; border-radius:4px; background: currentColor; opacity:.5; box-shadow: 0 16px 0 -1px currentColor, 0 32px 0 -2px currentColor; }
.swatch .meta { display:flex; align-items:center; justify-content:space-between; padding:11px 14px; font-size:13px; background: #fff; }
.swatch .meta .mode { font-size:10.5px; color: var(--ink-mute); text-transform:uppercase; letter-spacing:.06em; }
@media (max-width:900px){ .themes { grid-template-columns:1fr 1fr; } }

/* ============================================================
   Models
   ============================================================ */
.models { display:grid; grid-template-columns: repeat(3,1fr); gap:16px; margin-top:48px; }
.mcard { border:1px solid var(--border); border-radius:16px; padding:24px; background: #fff; box-shadow: var(--shadow-sm); }
.mcard .top { display:flex; align-items:center; gap:11px; margin-bottom:14px; }
.mcard .badge { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; font-weight:700; font-size:15px; }
.mcard h3 { font-size:16px; margin:0; }
.mcard .who { font-size:12px; color: var(--ink-mute); }
.mcard p { font-size:13.5px; color: var(--ink-soft); margin:0 0 12px; line-height:1.55; }
.mtag { display:inline-flex; gap:6px; flex-wrap:wrap; }
.mtag span { font-size:11px; font-family: var(--font-mono); color: var(--ink-soft); background: var(--bg-sidebar); border:1px solid var(--border); padding:3px 8px; border-radius:999px; }
.local { color: var(--sage-500); }
@media (max-width:820px){ .models { grid-template-columns:1fr; } }

/* ============================================================
   Email subscription band
   ============================================================ */
.subscribe { padding: 84px 0; background: var(--bg-canvas); position: relative; }
.sub-card {
  border:1px solid var(--border); border-radius:20px; padding:48px 44px;
  background: #fff; box-shadow: var(--shadow-md);
  display:grid; grid-template-columns: 1.1fr 1fr; gap:40px; align-items:center;
  position:relative; overflow:hidden;
}
.sub-card::before {
  content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px;
  background: radial-gradient(circle, rgba(46,107,230,.12), transparent 70%); pointer-events:none;
}
.sub-card h2 { font-size: clamp(24px,3vw,34px); letter-spacing:-.02em; margin:0 0 12px; line-height:1.08; }
.sub-card .lede { font-size:16px; margin:0; }
.sub-card .note { font-size:12.5px; color:var(--ink-mute); margin-top:14px; }
@media (max-width:780px){ .sub-card { grid-template-columns:1fr; gap:24px; padding:34px 24px; } }

/* form bits — shared by subscribe + contact */
.field { display:flex; flex-direction:column; gap:7px; margin-bottom:16px; }
.field label { font-size:12.5px; font-weight:600; color:var(--ink-soft); letter-spacing:.01em; }
.input {
  width:100%; padding:13px 15px; border-radius:11px; font-family:var(--font-display); font-size:15px;
  background: var(--bg-sidebar); border:1px solid var(--border-strong); color:var(--ink);
  transition: border-color var(--ease) .15s, background var(--ease) .15s, box-shadow var(--ease) .15s;
}
.input::placeholder { color: var(--ink-mute); }
.input:focus { outline:none; border-color: var(--sage-500); background: #fff; box-shadow: 0 0 0 3px rgba(46,107,230,.16); }
textarea.input { resize:vertical; min-height:130px; line-height:1.55; }
.input.bad { border-color: var(--coral-500); box-shadow: 0 0 0 3px rgba(224,82,74,.16); }
.err { font-size:12px; color: var(--coral-500); min-height:0; }

/* inline subscribe row */
.sub-form { display:flex; flex-direction:column; gap:10px; }
.sub-row { display:flex; gap:10px; }
.sub-row .input { flex:1; }
.sub-row .btn { flex:none; white-space:nowrap; }
@media (max-width:480px){ .sub-row { flex-direction:column; } }
.form-ok {
  display:none; align-items:center; gap:10px; padding:14px 16px; border-radius:12px;
  background: rgba(63,154,91,.1); border:1px solid rgba(63,154,91,.32); color: #2F7D49; font-size:14px;
}
.form-ok.show { display:flex; }
.form-ok svg { width:18px; height:18px; flex:none; }

/* ============================================================
   Contact page
   ============================================================ */
.subhero { text-align:center; padding:84px 0 8px; }
.subhero h1 { font-size: clamp(36px,6vw,64px); letter-spacing:-.03em; line-height:1; margin:0 auto 18px; font-weight:700; }
.subhero h1 .ser { font-family:var(--font-serif); font-style:italic; font-weight:500; }
.subhero .sub { font-size:18px; color:var(--ink-soft); max-width:560px; margin:0 auto; }

.contact-grid { display:grid; grid-template-columns: 1.15fr .85fr; gap:28px; align-items:start; margin-top:56px; }
@media (max-width:880px){ .contact-grid { grid-template-columns:1fr; } }

.contact-form-card { border:1px solid var(--border); border-radius:20px; padding:32px; background: #fff; box-shadow: var(--shadow-md); }
.contact-form-card h2 { font-size:22px; margin:0 0 6px; }
.contact-form-card .lede { font-size:14.5px; margin:0 0 24px; }
.frow { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:520px){ .frow { grid-template-columns:1fr; } }

.contact-side { display:flex; flex-direction:column; gap:14px; }
.cmethod { border:1px solid var(--border); border-radius:16px; padding:20px 22px; background: #fff; box-shadow: var(--shadow-sm); transition: border-color var(--ease) .18s, box-shadow var(--ease) .18s; }
.cmethod:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.cmethod .top { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.cmethod .ic { width:38px; height:38px; border-radius:11px; display:grid; place-items:center; flex:none; }
.cmethod .ic svg { width:20px; height:20px; }
.cmethod h3 { font-size:15.5px; margin:0; }
.cmethod p { font-size:13px; color:var(--ink-soft); margin:0; line-height:1.5; }
.cmethod a.link { color: var(--sage-500); font-size:13.5px; font-weight:600; display:inline-flex; align-items:center; gap:5px; margin-top:6px; }
.cmethod a.link:hover { color: var(--sage-600); }

/* footer CTA + footer */
.cta { text-align:center; padding:120px 0 96px; position:relative; }
.cta h2 { font-size: clamp(34px,5vw,58px); letter-spacing:-.03em; line-height:1.02; margin:0 0 18px; font-weight:700; }
.cta h2 .ser { font-family:var(--font-serif); font-style:italic; font-weight:500; }
.cta .sub { font-size:18px; color:var(--ink-soft); margin:0 0 34px; }

.foot { border-top:1px solid var(--border); padding:40px 0; background: var(--bg-canvas); }
.foot .row { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.foot .row .spring { flex:1; }
.foot a { color: var(--ink-mute); font-size:14px; }
.foot a:hover { color: var(--ink); }
.foot .copy { font-size:13px; color: var(--ink-mute); }

.fgrid.four { grid-template-columns: repeat(4,1fr); }
@media (max-width:1000px){ .fgrid.four { grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .fgrid.four { grid-template-columns:1fr; } }

/* ============================================================
   Light app-window mocks (Plan / Publish features)
   ============================================================ */
.aw-win{
  --aw-paper:#fff; --aw-sand50:#FAFAFA; --aw-sand100:#F3F3F5; --aw-sand200:#E8E8EB;
  --aw-border:#ECECEE; --aw-border2:#D9D9DE; --aw-ink:#18181B; --aw-soft:#52525B; --aw-mute:#9A9AA4;
  --aw-blue:#2E6BE6; --aw-blue50:#EAF1FE; --aw-violet:#4F46E5;
  --aw-red:#E0524A; --aw-amber:#CC8B22; --aw-teal:#2E7D8F; --aw-green:#3F9A5B; --aw-adr:#7C5CD6;
  border:1px solid var(--border); border-radius:16px; overflow:hidden;
  background:var(--aw-paper); box-shadow: var(--shadow-lg);
  font-family:'Space Grotesk', var(--font-display); color:var(--aw-ink); line-height:1.5;
}
.aw-bar{ display:flex; align-items:center; gap:7px; height:34px; padding:0 14px; background:var(--aw-sand100); border-bottom:1px solid var(--aw-border); }
.aw-bar i{ width:11px; height:11px; border-radius:50%; display:block; }
.aw-bar i:nth-child(1){ background:#E0524A; } .aw-bar i:nth-child(2){ background:#E3B23C; } .aw-bar i:nth-child(3){ background:#3F9A5B; }
.aw-bar .ttl{ font-family:var(--font-mono); font-size:12px; color:var(--aw-mute); margin-left:8px; }
.aw-top{ display:flex; align-items:center; gap:10px; padding:10px 16px; border-bottom:1px solid var(--aw-border); font-size:13px; color:var(--aw-soft); }
.aw-crumb{ display:inline-flex; align-items:center; gap:7px; }
.aw-crumb svg{ width:14px; height:14px; color:var(--aw-mute); }
.aw-sep{ color:var(--aw-mute); }
.aw-dot{ width:9px; height:9px; border-radius:3px; background:var(--aw-blue); flex:none; }
.aw-compose{ margin-left:auto; display:inline-flex; align-items:center; gap:7px; background:var(--aw-violet); color:#fff; font-size:12px; font-weight:600; padding:6px 11px; border-radius:8px; white-space:nowrap; }
.aw-compose svg{ width:13px; height:13px; }
.aw-pad{ padding:18px 18px 20px; }
.aw-h{ font-size:22px; font-weight:700; letter-spacing:-.02em; margin:0 0 4px; color:var(--aw-ink); }
.aw-sub{ font-size:12px; color:var(--aw-mute); margin:0 0 15px; font-family:var(--font-mono); }
.aw-rel{ display:flex; align-items:center; gap:14px; border:1px solid var(--aw-border); border-radius:12px; padding:13px 15px; margin-bottom:15px; background:var(--aw-sand50); }
.aw-ring{ position:relative; width:50px; height:50px; border-radius:50%; flex:none; background: conic-gradient(var(--aw-blue) 0 64%, var(--aw-sand200) 64% 100%); }
.aw-ring::before{ content:""; position:absolute; inset:6px; border-radius:50%; background:var(--aw-paper); }
.aw-ring span{ position:relative; z-index:1; display:grid; place-items:center; width:100%; height:100%; font-size:12px; font-weight:700; color:var(--aw-ink); font-variant-numeric:tabular-nums; }
.aw-rt b{ font-size:14px; font-weight:700; }
.aw-rt .rm{ font-size:11px; color:var(--aw-mute); font-family:var(--font-mono); margin-top:2px; }
.aw-openrel{ margin-left:auto; font-size:12px; font-weight:600; color:var(--aw-soft); border:1px solid var(--aw-border2); border-radius:8px; padding:6px 11px; white-space:nowrap; }
.aw-cols{ display:grid; grid-template-columns:1.25fr 1fr; gap:14px; }
.aw-bkt{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--aw-soft); display:flex; align-items:center; gap:8px; margin:2px 2px 8px; }
.aw-bkt.mt{ margin-top:13px; }
.aw-bkt .pip{ width:7px; height:7px; border-radius:50%; }
.aw-bkt .n{ background:var(--aw-sand200); color:var(--aw-soft); border-radius:999px; font-size:10px; padding:1px 7px; font-family:var(--font-mono); }
.aw-row{ display:flex; align-items:center; gap:10px; padding:9px 10px; border:1px solid var(--aw-border); border-radius:9px; margin-bottom:7px; font-size:13px; }
.aw-ck{ width:16px; height:16px; border-radius:5px; border:1.5px solid var(--aw-border2); flex:none; }
.aw-ck.done{ background:var(--aw-blue); border-color:var(--aw-blue); }
.aw-row .tt{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--aw-ink); }
.aw-row.done .tt{ color:var(--aw-mute); text-decoration:line-through; }
.aw-due{ font-size:11px; color:var(--aw-mute); font-family:var(--font-mono); white-space:nowrap; }
.aw-due.over{ color:var(--aw-red); }
.aw-rpill{ font-size:10px; font-family:var(--font-mono); color:var(--aw-soft); background:var(--aw-sand100); border:1px solid var(--aw-border); border-radius:6px; padding:1px 6px; }
.aw-pri{ width:8px; height:8px; border-radius:50%; flex:none; }
.aw-notes{ border:1px solid var(--aw-border); border-radius:12px; padding:13px 14px; }
.aw-notes .nh{ display:flex; justify-content:space-between; align-items:center; font-size:12.5px; font-weight:700; margin-bottom:8px; }
.aw-note{ display:flex; gap:10px; padding:9px 0; border-bottom:1px solid var(--aw-border); }
.aw-note:last-child{ border-bottom:none; padding-bottom:0; }
.aw-note .ni{ width:26px; height:26px; border-radius:8px; display:grid; place-items:center; flex:none; }
.aw-note .ni svg{ width:14px; height:14px; }
.aw-note .nt{ font-size:12.5px; line-height:1.35; color:var(--aw-ink); }
.aw-note .nm{ font-size:11px; color:var(--aw-mute); font-family:var(--font-mono); }
.aw-secthd{ display:flex; align-items:center; justify-content:space-between; margin-bottom:13px; }
.aw-secthd b{ font-size:14px; font-weight:700; }
.aw-syncall{ font-size:12px; font-weight:600; color:#fff; background:var(--aw-blue); border-radius:8px; padding:6px 12px; white-space:nowrap; }
.aw-prow{ display:flex; align-items:center; gap:11px; padding:11px 12px; border:1px solid var(--aw-border); border-radius:10px; margin-bottom:8px; }
.aw-prow > div{ flex:1; min-width:0; }
.aw-prow .pn{ font-weight:600; font-size:13.5px; color:var(--aw-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.aw-prow .pp{ font-family:var(--font-mono); font-size:11px; color:var(--aw-mute); }
.aw-state{ margin-left:auto; font-size:11px; font-weight:600; border-radius:999px; padding:3px 10px; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.aw-state .sd{ width:6px; height:6px; border-radius:50%; }
.aw-state.active{ background:rgba(63,154,91,.12); color:var(--aw-green); } .aw-state.active .sd{ background:var(--aw-green); }
.aw-state.out{ background:rgba(204,139,34,.14); color:var(--aw-amber); } .aw-state.out .sd{ background:var(--aw-amber); }
.aw-state.draft{ background:var(--aw-sand100); color:var(--aw-mute); } .aw-state.draft .sd{ background:var(--aw-mute); }
.aw-sublabel{ font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--aw-mute); font-family:var(--font-mono); margin:18px 2px 11px; }
.aw-frow{ display:flex; align-items:center; gap:11px; padding:10px 12px; border:1px solid var(--aw-border); border-radius:10px; margin-bottom:8px; font-size:13px; }
.aw-frow svg{ width:15px; height:15px; color:var(--aw-mute); flex:none; }
.aw-frow .fn{ color:var(--aw-ink); font-family:var(--font-mono); font-size:12px; }
.aw-role{ margin-left:auto; font-size:10px; font-weight:700; letter-spacing:.03em; border-radius:6px; padding:2px 8px; }
.aw-role.proj{ background:var(--aw-blue50); color:var(--aw-blue); }
.aw-role.docs{ background:rgba(46,125,143,.12); color:var(--aw-teal); }
.aw-role.store{ background:var(--aw-sand100); color:var(--aw-soft); }
@media (max-width:860px){ .aw-cols{ grid-template-columns:1fr; } }

/* ============================================================
   Pricing
   ============================================================ */
.pricing { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:48px auto 0; max-width:880px; }
@media (max-width:760px){ .pricing { grid-template-columns:1fr; } }
.ptier { position:relative; border:1px solid var(--border); border-radius:20px; padding:32px 28px; background:#fff; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; text-align:left; }
.ptier.feat { border-color: rgba(46,107,230,.4); box-shadow: var(--shadow-md); }
.pt-badge { position:absolute; top:-11px; left:28px; background:var(--primary); color:#fff; font-size:11px; font-weight:600; letter-spacing:.04em; padding:4px 11px; border-radius:999px; }
.pt-hd h3 { font-size:19px; margin:0 0 4px; letter-spacing:-.01em; }
.pt-hd p { font-size:13.5px; color:var(--ink-mute); margin:0 0 18px; }
.pt-price { display:flex; align-items:baseline; gap:9px; margin-bottom:10px; }
.pt-price .amt { font-size:42px; font-weight:700; letter-spacing:-.03em; line-height:1; }
.pt-price .per { font-size:13.5px; color:var(--ink-mute); }
.pt-note { font-size:12px; font-weight:600; color:var(--sage-600); background:rgba(46,107,230,.08); border-radius:999px; padding:4px 11px; align-self:flex-start; margin-bottom:22px; }
.pt-list { list-style:none; margin:0 0 24px; padding:0; display:flex; flex-direction:column; gap:11px; }
.pt-list li { display:flex; gap:10px; font-size:13.5px; color:var(--ink-soft); line-height:1.45; }
.pt-list li svg { width:17px; height:17px; color:var(--sage-500); flex:none; margin-top:1px; }
.pt-cta { justify-content:center; margin-top:auto; }
.pt-foot { font-size:12px; color:var(--ink-mute); margin:13px 0 0; text-align:center; }
.pt-foot a { color:var(--sage-600); border-bottom:1px solid var(--border-strong); }
.pt-reassure { text-align:center; font-size:14px; color:var(--ink-soft); margin:30px auto 0; max-width:620px; }
.pt-reassure a { color:var(--sage-600); font-weight:600; }

/* reveal on scroll */
.reveal { opacity:0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal { opacity:1 !important; transform:none !important; transition:none; }
  html { scroll-behavior:auto; }
}
