:root {
  --paper: #FAF7F2;
  --paper-deep: #F2ECE0;
  --ink: #1A1712;
  --ink-soft: #4A453C;
  --muted: #8A8578;
  --gold: #B8892B;
  --gold-deep: #8E6918;
  --gold-wash: #EFE3C4;
  --accent: #2D4A3E;
  --rule: #E4DDCE;
  --card: #FFFDF8;
  --shadow-soft: 0 1px 2px rgba(26,23,18,0.04), 0 8px 32px rgba(26,23,18,0.06);
  --shadow-lifted: 0 2px 4px rgba(26,23,18,0.06), 0 24px 60px rgba(26,23,18,0.12);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

/* ————————————————————— Typography system ————————————————————— */
.display {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.lede {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 30, "SOFT" 50;
  font-weight: 300;
  font-style: italic;
}

/* ————————————————————— Layout ————————————————————— */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 820px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* ————————————————————— Nav ————————————————————— */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 20px 0;
  background: rgba(250, 247, 242, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, padding .3s ease;
}
.nav.scrolled { border-bottom-color: var(--rule); padding: 14px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; }
.brand-name {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 30, "SOFT" 30;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold-deep); }
.nav-links a.active { color: var(--gold-deep); font-weight: 600; }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px !important;
}
.nav-cta:hover { background: var(--gold-deep); color: var(--paper) !important; }
.nav-cta.active { background: var(--gold-deep); }
@media (max-width: 820px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ————————————————————— Hero ————————————————————— */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 60px; } }

.hero-eyebrow { margin-bottom: 28px; display: inline-flex; align-items: center; gap: 10px; }
.hero-eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--gold);
}

.hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  margin-bottom: 32px;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--gold-deep);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.hero-lede {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.55;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(142,105,24,0.25); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); background: var(--card); }
.btn svg { width: 14px; height: 14px; }

.hero-meta {
  display: flex; align-items: center; gap: 24px;
  color: var(--muted); font-size: 13px;
  flex-wrap: wrap;
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* Hero visual — the mark */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mark-stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
}
.mark-bg-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, var(--gold-wash) 0%, transparent 65%);
  filter: blur(20px);
  opacity: 0.9;
}
.mark-svg {
  position: relative;
  width: 100%;
  height: 100%;
}
.mark-rotator {
  transform-origin: center;
  animation: slowRotate 80s linear infinite;
}
@keyframes slowRotate { to { transform: rotate(360deg); } }

.mark-caption {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ————————————————————— Content page hero (shorter, centered) ————————————————————— */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 20px; display: inline-block; }
.page-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.page-hero h1 .accent {
  font-style: italic;
  color: var(--gold-deep);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.page-hero .page-subtitle {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}
.page-hero .meta-line {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.page-hero .meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.page-hero .meta-line .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); display: inline-block; }

/* ————————————————————— Content prose ————————————————————— */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 0 120px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.prose h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 30, "SOFT" 30;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 34px);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 56px 0 18px;
  scroll-margin-top: 100px;
}
.prose h2 .italic { font-style: italic; color: var(--gold-deep); }
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 30;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin: 36px 0 12px;
  letter-spacing: -0.005em;
  line-height: 1.25;
  scroll-margin-top: 100px;
}
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 20px 24px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--gold-wash); transition: border-color .2s; }
.prose a:hover { border-bottom-color: var(--gold-deep); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-family: 'Fraunces', serif; font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }
.prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--paper-deep);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
}
.prose blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  margin: 24px 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink);
}

/* Legal page two-column layout */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 32px 120px;
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; padding: 20px 20px 80px; }
  .legal-toc { position: static !important; border-left: 0 !important; border-top: 1px solid var(--rule); padding: 20px 0 !important; }
}
.legal-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  border-left: 1px solid var(--rule);
  padding-left: 20px;
}
.legal-toc h6 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 16px;
}
.legal-toc a {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color .2s;
}
.legal-toc a:hover { color: var(--gold-deep); }

.legal-meta {
  background: var(--paper-deep);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  margin-bottom: 40px;
  font-size: 13px;
  color: var(--ink-soft);
}
.legal-meta strong { color: var(--ink); font-weight: 600; }

/* Section base */
section { position: relative; }
.section-header {
  max-width: 780px;
  margin: 0 auto 72px;
  text-align: center;
}
.section-header .eyebrow { margin-bottom: 18px; display: inline-block; }
.section-header h2 {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 20px;
}
.section-header p {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.section-header .italic { font-style: italic; color: var(--gold-deep); }

/* ————————————————————— Tables ————————————————————— */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.data-table th {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table code { background: var(--paper-deep); padding: 2px 6px; border-radius: 3px; font-size: 12px; }

/* ————————————————————— Preview mockup ————————————————————— */
.preview { padding: 60px 0 140px; position: relative; }
.preview-frame { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lifted); overflow: hidden; border: 1px solid var(--rule); max-width: 1100px; margin: 0 auto; }
.preview-chrome { background: var(--paper-deep); padding: 14px 18px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--rule); }
.traffic { display: flex; gap: 8px; }
.traffic span { width: 12px; height: 12px; border-radius: 50%; background: var(--rule); }
.traffic span:nth-child(1) { background: #E88A8A; }
.traffic span:nth-child(2) { background: #E8C474; }
.traffic span:nth-child(3) { background: #9DBF9A; }
.url-bar { flex: 1; background: var(--card); border-radius: 8px; padding: 8px 14px; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule); }
.url-bar svg { width: 12px; height: 12px; color: var(--gold-deep); }
.prayer-badge { display: flex; align-items: center; gap: 8px; background: var(--gold-wash); padding: 6px 12px; border-radius: 100px; font-size: 12px; font-weight: 500; color: var(--gold-deep); }
.prayer-badge .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-deep); box-shadow: 0 0 0 0 var(--gold-deep); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(142,105,24,0.4); }
  70% { box-shadow: 0 0 0 8px rgba(142,105,24,0); }
  100% { box-shadow: 0 0 0 0 rgba(142,105,24,0); }
}
.preview-body { display: grid; grid-template-columns: 220px 1fr; min-height: 480px; }
@media (max-width: 720px) { .preview-body { grid-template-columns: 1fr; } .preview-sidebar { display: none; } }
.preview-sidebar { background: var(--paper); padding: 24px 18px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.sidebar-label { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 0 10px; margin: 16px 0 8px; }
.sidebar-label:first-child { margin-top: 0; }
.sidebar-item { padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; cursor: pointer; transition: background .15s; }
.sidebar-item:hover { background: var(--paper-deep); }
.sidebar-item.active { background: var(--gold-wash); color: var(--ink); }
.sidebar-item .dot-icon { width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; }
.preview-main { padding: 32px; background: radial-gradient(circle at 85% 15%, rgba(184,137,43,0.06) 0%, transparent 50%), var(--card); display: flex; flex-direction: column; gap: 24px; }
.preview-greeting { font-family: 'Fraunces', serif; font-variation-settings: "opsz" 144, "SOFT" 60; font-weight: 300; font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; }
.preview-greeting .italic { font-style: italic; color: var(--gold-deep); }
.preview-meta { display: flex; gap: 24px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.preview-meta strong { color: var(--ink); font-weight: 500; }
.prayer-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; margin-top: 8px; }
.prayer-cell { background: var(--card); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.prayer-cell.current { background: var(--gold-wash); }
.prayer-cell .name { font-size: 11px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.prayer-cell .time { font-family: 'Fraunces', serif; font-weight: 400; font-size: 18px; color: var(--ink); }
.prayer-cell.current .time { color: var(--gold-deep); }
.prayer-cell .delta { font-size: 10px; color: var(--muted); }
.preview-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.tile { background: var(--paper); border: 1px solid var(--rule); padding: 14px; border-radius: 10px; font-size: 12px; color: var(--ink-soft); }
.tile .tile-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tile .tile-value { font-family: 'Fraunces', serif; font-size: 15px; color: var(--ink); font-weight: 400; }

/* ————————————————————— Pillars ————————————————————— */
.pillars { padding: 140px 0; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%); position: relative; }
.pillars::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(184,137,43,0.05) 1px, transparent 1px); background-size: 24px 24px; opacity: 0.6; pointer-events: none; }
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--rule); border: 1px solid var(--rule); position: relative; z-index: 1; }
@media (max-width: 720px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar { background: var(--paper); padding: 48px 40px; display: flex; flex-direction: column; gap: 18px; transition: background .3s; }
.pillar:hover { background: var(--card); }
.pillar-icon { width: 48px; height: 48px; color: var(--gold-deep); }
.pillar h3 { font-family: 'Fraunces', serif; font-variation-settings: "opsz" 30, "SOFT" 40; font-weight: 500; font-size: 26px; letter-spacing: -0.01em; line-height: 1.15; }
.pillar h3 .italic { font-style: italic; color: var(--gold-deep); }
.pillar p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* ————————————————————— Features ————————————————————— */
.features { padding: 140px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 14px; transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity .4s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.feature:hover::before { opacity: 1; }
.feature-icon { width: 36px; height: 36px; color: var(--gold-deep); margin-bottom: 4px; }
.feature h4 { font-family: 'Fraunces', serif; font-variation-settings: "opsz" 30; font-weight: 500; font-size: 21px; letter-spacing: -0.01em; }
.feature p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.feature-tag { display: inline-block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; background: var(--gold-wash); color: var(--gold-deep); border-radius: 3px; font-weight: 500; margin-top: 4px; align-self: flex-start; }
.feature-tag.live { background: #D4E5D5; color: #3C6B44; }

/* Features deep-dive (single-column vertical list for /features page) */
.feature-deep { max-width: 780px; margin: 0 auto; padding: 20px 0 120px; }
.feature-deep .feature-entry { padding: 48px 0; border-bottom: 1px solid var(--rule); }
.feature-deep .feature-entry:first-child { padding-top: 0; }
.feature-deep .feature-entry:last-child { border-bottom: 0; }
.feature-deep .feature-entry h3 { font-family: 'Fraunces', serif; font-variation-settings: "opsz" 30, "SOFT" 40; font-weight: 500; font-size: 28px; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; line-height: 1.2; }
.feature-deep .feature-entry h3 .italic { font-style: italic; color: var(--gold-deep); }
.feature-deep .feature-entry .feature-lede { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; color: var(--gold-deep); font-size: 16px; margin-bottom: 20px; }
.feature-deep .feature-entry p { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.feature-deep .feature-entry ul { margin: 0 0 14px 20px; color: var(--ink-soft); font-size: 15px; }
.feature-deep .feature-entry li { margin-bottom: 6px; }

/* ————————————————————— Values ————————————————————— */
.values { padding: 160px 0; background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.values::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at top left, rgba(184,137,43,0.12) 0%, transparent 50%), radial-gradient(ellipse at bottom right, rgba(184,137,43,0.08) 0%, transparent 50%); pointer-events: none; }
.values-inner { max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.values .eyebrow { color: var(--gold); }
.values h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.2; margin: 22px 0 36px; font-weight: 300; font-style: italic; font-family: 'Fraunces', serif; font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1; letter-spacing: -0.015em; }
.values h2 .highlight { font-style: normal; color: var(--gold); font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; }
.values-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 80px; text-align: left; }
.values-list.four-up { grid-template-columns: repeat(2, 1fr); gap: 56px 48px; max-width: 720px; margin-left: auto; margin-right: auto; }
@media (max-width: 720px) { .values-list, .values-list.four-up { grid-template-columns: 1fr; gap: 40px; } }
.value-item { display: flex; flex-direction: column; gap: 10px; border-left: 1px solid rgba(250,247,242,0.15); padding-left: 24px; }
.value-item .num { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold); font-size: 14px; }
.value-item h5 { font-family: 'Fraunces', serif; font-variation-settings: "opsz" 30; font-weight: 500; font-size: 18px; color: var(--paper); }
.value-item p { font-size: 14px; color: rgba(250,247,242,0.65); line-height: 1.6; }

/* ————————————————————— Download ————————————————————— */
.download-cta { padding: 160px 0 140px; text-align: center; position: relative; }
.download-cta h2 { font-size: clamp(44px, 6vw, 76px); margin-bottom: 28px; max-width: 840px; margin-left: auto; margin-right: auto; }
.download-cta h2 .italic { font-style: italic; color: var(--gold-deep); }
.download-cta p { font-size: 19px; color: var(--ink-soft); max-width: 560px; margin: 0 auto 56px; }
.platform-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.platform-btn { display: inline-flex; align-items: center; gap: 14px; padding: 16px 26px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; color: var(--ink); transition: all .25s cubic-bezier(.2,.8,.2,1); min-width: 200px; text-align: left; }
.platform-btn:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.platform-btn svg { width: 24px; height: 24px; color: var(--ink); flex-shrink: 0; }
.platform-btn .platform-label { display: flex; flex-direction: column; }
.platform-btn .small { font-size: 11px; color: var(--muted); letter-spacing: 0.05em; }
.platform-btn .big { font-size: 15px; font-weight: 500; }
.download-note { font-size: 13px; color: var(--muted); }

/* ————————————————————— Error page (404) ————————————————————— */
.error-page { padding: 200px 0 160px; text-align: center; min-height: 60vh; display: flex; align-items: center; }
.error-page .eyebrow { margin-bottom: 20px; display: inline-block; font-size: 14px; }
.error-page h1 { font-size: clamp(48px, 8vw, 96px); margin-bottom: 24px; }
.error-page h1 .accent { font-style: italic; color: var(--gold-deep); font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1; }
.error-page p { font-size: 19px; color: var(--ink-soft); max-width: 480px; margin: 0 auto 40px; font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; }
.error-page .btn { margin: 0 auto; }

/* ————————————————————— FAQ ————————————————————— */
.faq-list { max-width: 780px; margin: 0 auto; padding: 20px 0 120px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-question { font-family: 'Fraunces', serif; font-variation-settings: "opsz" 30, "SOFT" 30; font-weight: 500; font-size: 20px; color: var(--ink); padding: 22px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; letter-spacing: -0.005em; line-height: 1.3; list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; font-family: 'Inter', sans-serif; font-size: 22px; color: var(--gold-deep); font-weight: 300; flex-shrink: 0; transition: transform .25s; }
details[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { color: var(--ink-soft); font-size: 16px; line-height: 1.7; padding: 0 0 24px; max-width: 680px; }
.faq-answer a { color: var(--gold-deep); }

/* ————————————————————— Contact / categories ————————————————————— */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 780px; margin: 0 auto; padding: 20px 0 80px; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 28px 26px; }
.contact-card h4 { font-family: 'Fraunces', serif; font-variation-settings: "opsz" 30; font-weight: 500; font-size: 19px; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.005em; }
.contact-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.55; }
.contact-card a.email { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; color: var(--gold-deep); text-decoration: none; padding: 8px 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; display: inline-block; transition: background .2s; }
.contact-card a.email:hover { background: var(--gold-wash); }

/* ————————————————————— Brand (color swatches + typography) ————————————————————— */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 20px 0 40px; }
.swatch { border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); background: var(--card); }
.swatch .color { height: 96px; }
.swatch .meta { padding: 12px 14px; font-size: 13px; }
.swatch .meta .name { font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.swatch .meta .hex { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); }

.type-spec { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; margin: 20px 0 40px; padding: 24px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
@media (max-width: 640px) { .type-spec { grid-template-columns: 1fr; gap: 16px; } }
.type-spec .label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.type-spec .sample-display { font-family: 'Fraunces', serif; font-variation-settings: "opsz" 144, "SOFT" 30; font-size: 48px; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.type-spec .sample-body { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

/* Phase timeline (roadmap) */
.phase-list { max-width: 820px; margin: 0 auto; padding: 20px 0 120px; }
.phase { padding: 36px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: start; }
@media (max-width: 720px) { .phase { grid-template-columns: 1fr; gap: 12px; } }
.phase:last-child { border-bottom: 0; }
.phase .phase-tag { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; font-size: 22px; color: var(--gold-deep); letter-spacing: -0.005em; }
.phase .phase-tag .when { display: block; font-style: normal; font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 4px; }
.phase h3 { font-family: 'Fraunces', serif; font-variation-settings: "opsz" 30, "SOFT" 30; font-weight: 500; font-size: 22px; color: var(--ink); margin-bottom: 12px; line-height: 1.25; letter-spacing: -0.005em; }
.phase ul { margin: 0 0 0 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.phase li { margin-bottom: 6px; }

/* Release notes entry */
.release-entry { max-width: 780px; margin: 0 auto 48px; padding: 28px 32px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.release-entry header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); gap: 16px; flex-wrap: wrap; }
.release-entry .version { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; font-size: 24px; color: var(--ink); }
.release-entry .date { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.release-entry p { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

/* Footer */
footer { background: var(--paper-deep); padding: 80px 0 40px; border-top: 1px solid var(--rule); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 48px; margin-bottom: 60px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1.5fr repeat(2, 1fr); gap: 40px; } }
@media (max-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-brand .tag { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.footer-col h6 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 600; }
.footer-col a { display: block; font-size: 14px; color: var(--ink-soft); text-decoration: none; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--gold-deep); }
.footer-bottom { border-top: 1px solid var(--rule); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 16px; }
.footer-bottom .credit { font-family: 'Fraunces', serif; font-style: italic; }
.footer-bottom .credit a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--rule); }
.footer-bottom .credit a:hover { color: var(--gold-deep); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { display: inline-flex; color: var(--ink-soft); transition: color .2s; }
.footer-social a:hover { color: var(--gold-deep); }
.footer-social svg { width: 18px; height: 18px; }

/* ————————————————————— Reveal animations ————————————————————— */
.reveal { opacity: 0; transform: translateY(24px); }

/* Responsive tweaks */
@media (max-width: 640px) {
  .page-hero { padding: 130px 0 60px; }
  .pillars { padding: 80px 0; }
  .features { padding: 80px 0; }
  .values { padding: 100px 0; }
  .download-cta { padding: 100px 0; }
}

/* ————————————————————— Smart Download Component ————————————————————— */
.download-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 40px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 100px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(26,23,18,0.12);
}
.download-primary:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(142,105,24,0.28);
}
.download-primary-label {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.download-primary-size {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.6);
  font-weight: 400;
}

.download-others {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.download-others a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.download-others a:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

.download-advisory {
  margin: 28px auto 0;
  font-size: 12px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.download-version {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.platform-btn .platform-size {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* No-JS fallback */
.no-js [data-download-smart]::before {
  content: "JavaScript required for smart download detection. Visit /download for all platforms.";
  display: block;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
