/* ============================================================
   tera — editorial stylesheet
   Cool mist-stone background, serif display headings,
   deep indigo accent. Restrained, contemporary, print-inspired.
   ============================================================ */

:root {
  /* Mist-stone palette: cool off-white with a hint of blue-grey */
  --bg: #ECEEF2;
  --bg-2: #E2E5EC;
  --bg-3: #D6DAE2;
  --rule: #C9CDD6;
  --rule-soft: #DDE0E7;
  --ink: #10131A;
  --ink-2: #212733;
  --ink-3: #4B5162;
  --ink-4: #7F8598;
  --ink-5: #B3B8C6;

  /* Accent: deep indigo + plum highlight */
  --accent: #3B4DCC;
  --accent-ink: #2433A3;
  --accent-soft: #D7DCF4;
  --accent-deep: #1B2480;

  /* Journal theme: muted teal */
  --journal-accent: #2F7A74;
  --journal-accent-ink: #1E5E59;
  --journal-accent-soft: #D0E1DF;

  /* Shape */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-smooth: cubic-bezier(0.32, 0.72, 0, 1);

  /* Layout */
  --max-w: 1280px;
  --max-w-reading: 720px;
  --pad-x: 48px;
}

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

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  font-family: 'Styrene A', 'Figtree', 'Inter', ui-sans-serif, -apple-system,
               BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  letter-spacing: -0.003em;
  text-rendering: optimizeLegibility;
}

/* Serif display: anthropic uses a custom serif; we use Source Serif as stand-in */
h1, h2, h3, h4, .display, .serif {
  font-family: 'Source Serif 4', 'Tiempos', 'Iowan Old Style', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.04;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--bg); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(236, 238, 242, 0.85);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease-out);
}
.site-header.scrolled { border-bottom-color: var(--rule); }

.site-header .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: opacity 0.2s var(--ease-out);
}
.site-header .brand:hover { opacity: 0.72; }
.site-header .brand img { width: 30px; height: 30px; border-radius: 6px; }

.site-header .breadcrumb {
  color: var(--ink-4);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Styrene A', 'Figtree', 'Inter', sans-serif;
}
.site-header .breadcrumb .sep { color: var(--ink-5); }
.site-header .breadcrumb span:last-child { color: var(--ink-3); }

.site-header .spacer { flex: 1; }

.site-header nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: var(--ink-3);
  font-family: 'Styrene A', 'Figtree', 'Inter', sans-serif;
}
.site-header nav a {
  transition: color 0.18s var(--ease-out);
  padding: 4px 0;
  position: relative;
}
.site-header nav a:hover { color: var(--ink); }

.lang-toggle {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 0;
  font-family: 'Styrene A', 'Figtree', 'Inter', sans-serif;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--bg);
}

/* ── Main ──────────────────────────────────────────────── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px var(--pad-x) 120px;
}
main.reading {
  max-width: var(--max-w-reading);
  padding: 64px var(--pad-x) 120px;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  padding: 48px 0 104px;
}
.hero.has-visual {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 80px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .hero.has-visual { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { justify-content: flex-start; }
}

.hero-copy { max-width: 640px; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: 'Styrene A', 'Figtree', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 40px;
  text-transform: none;
}
.hero .eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 12px;
  display: inline-block;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 400;
}

.hero .lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* ── Hero bullet points ─────────────────────────────── */
.hero-points {
  list-style: none;
  margin: 0 0 44px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
}
.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.hero-points .tick {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  position: relative;
  margin-top: 3px;
}
.hero-points .tick::after {
  content: '';
  position: absolute;
  left: 6px; top: 8px;
  width: 4px; height: 8px;
  border: solid var(--accent-deep);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

/* ── Works-with line ─────────────────────────────────── */
.works-with {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-3);
  max-width: 560px;
  letter-spacing: -0.005em;
}

/* ── Hero visual (simple illustration tile rather than phone) ─ */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}
@media (max-width: 980px) {
  .hero-visual { justify-content: flex-start; }
}
.hero-visual .art-tile {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19;
  border-radius: 32px;
  background: #000;
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(16, 19, 26, 0.05),
    0 22px 48px rgba(16, 19, 26, 0.18),
    0 44px 96px rgba(16, 19, 26, 0.12);
}
@media (max-width: 980px) {
  .hero-visual .art-tile { max-width: 280px; }
}
.hero-visual .art-tile img,
.hero-visual .art-tile .art-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 0;
  background: #000;
}
.hero-visual .tile-label {
  position: absolute;
  bottom: 20px; left: 24px;
  font-family: 'Styrene A', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  font-family: 'Styrene A', 'Figtree', 'Inter', sans-serif;
  letter-spacing: -0.005em;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.btn-accent {
  background: var(--accent);
  color: var(--bg);
}
.btn-accent:hover { background: var(--accent-ink); }

.btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.btn .arrow { transition: transform 0.2s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Download block ───────────────────────────────────── */
.hero-download {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.download-stack { display: flex; flex-direction: column; gap: 10px; }
.download-meta {
  font-family: 'Styrene A', sans-serif;
  font-size: 12px;
  color: var(--ink-3);
}
.hero-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  transition: all 0.2s var(--ease-out);
}
.hero-qr:hover { border-color: var(--ink-3); background: var(--bg-3); }
.hero-qr img { width: 64px; height: 64px; border-radius: 6px; }
.hero-qr .qr-text strong {
  display: block;
  font-family: 'Styrene A', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
}
.hero-qr .qr-text span {
  font-family: 'Styrene A', sans-serif;
  font-size: 12px;
  color: var(--ink-3);
}

/* ── Section primitives ───────────────────────────────── */
.section {
  padding: 120px 0;
  position: relative;
}
.section + .section::before,
.section + .showcase::before,
.showcase + .section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--rule);
}

.section-header {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  margin-bottom: 80px;
  align-items: baseline;
}
@media (max-width: 768px) {
  .section-header { grid-template-columns: 1fr; gap: 16px; margin-bottom: 56px; }
}

.section-eyebrow {
  font-family: 'Styrene A', 'Figtree', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding-top: 10px;
}

.section-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  max-width: 780px;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  color: var(--accent-deep);
}

/* ── Features (editorial rows) ────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.features .feature {
  padding: 48px 48px 48px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.features .feature:nth-child(odd) {
  border-right: 1px solid var(--rule);
}
.features .feature:nth-child(even) {
  padding-left: 48px;
  padding-right: 0;
}

.feature .num {
  display: block;
  font-family: 'Styrene A', sans-serif;
  font-size: 12px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: 0.06em;
}

.feature h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.012em;
  margin-bottom: 12px;
  line-height: 1.2;
  color: var(--ink);
}
.feature p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 480px;
}
@media (max-width: 768px) {
  .features { grid-template-columns: 1fr; }
  .features .feature {
    padding: 40px 0 !important;
    border-right: none !important;
  }
}

/* ── Showcase ─────────────────────────────────────────── */
.showcase {
  padding: 120px 0;
  position: relative;
  text-align: center;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0 calc(var(--pad-x) * -1);
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.showcase-caption {
  font-family: 'Styrene A', sans-serif;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-bottom: 56px;
  text-transform: uppercase;
  font-weight: 500;
}
.showcase-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
.showcase-images .mock {
  aspect-ratio: 9 / 19;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--rule);
  box-shadow:
    0 2px 4px rgba(20, 20, 19, 0.04),
    0 20px 48px rgba(20, 20, 19, 0.10);
}
.showcase-images .mock img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
@media (max-width: 768px) {
  .showcase-images { grid-template-columns: 1fr; max-width: 320px; }
}

/* ── Definition list / privacy block ─────────────────── */
.deflist {
  border-top: 1px solid var(--rule);
}
.deflist .item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}
.deflist .item h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.deflist .item p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 640px;
}
@media (max-width: 768px) {
  .deflist .item { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
}

.note {
  margin-top: 32px;
  padding: 22px 26px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Styrene A', sans-serif;
  font-size: 15px;
  color: var(--accent-deep);
  font-weight: 500;
  padding: 0 0 2px;
  border-bottom: 1px solid var(--accent);
  transition: gap 0.25s var(--ease-out);
}
.arrow-link:hover { gap: 14px; }
.arrow-link .arrow { transition: transform 0.2s var(--ease-out); }

/* ── CTA band ─────────────────────────────────────────── */
.cta-band {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
}
.cta-band-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .cta-band-inner { grid-template-columns: 1fr; gap: 16px; }
}
.cta-band h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 400;
  letter-spacing: -0.012em;
  margin-bottom: 16px;
  line-height: 1.1;
  color: var(--ink);
}
.cta-band h2 em { font-style: italic; color: var(--accent-deep); }
.cta-band p {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.55;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Reading ─────────────────────────────────────────── */
.reading h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin-bottom: 24px;
}
.reading h1 em { font-style: italic; color: var(--accent-deep); }
.reading h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  margin: 72px 0 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.reading h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  margin: 40px 0 10px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.reading p {
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.reading .dateline {
  font-family: 'Styrene A', sans-serif;
  font-size: 13px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  font-weight: 500;
}
.reading .lede {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 24px;
  line-height: 1.42;
  color: var(--ink-2);
  margin-bottom: 56px;
  letter-spacing: -0.01em;
  font-weight: 400;
  max-width: 680px;
}
.reading figure { margin: 48px -40px; text-align: center; }
.reading figure img {
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  box-shadow: 0 16px 40px rgba(20, 20, 19, 0.08);
}
.reading figcaption {
  font-family: 'Styrene A', sans-serif;
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 14px;
  letter-spacing: -0.005em;
  font-style: italic;
}
@media (max-width: 820px) {
  .reading figure { margin: 40px 0; }
}
.reading .screenshot-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 48px -20px;
}
.reading .screenshot-row figure {
  flex: 1 1 280px;
  margin: 0;
  max-width: 320px;
}
.reading .screenshot-row figure img {
  aspect-ratio: 9/19;
  object-fit: cover;
  object-position: top center;
  border-radius: 24px;
}

.reading a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
  transition: all 0.15s var(--ease-out);
}
.reading a:hover { background: var(--accent-soft); border-color: var(--accent-deep); }

.reading blockquote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 24px;
  line-height: 1.42;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.reading .callout {
  padding: 20px 26px;
  border-left: 2px solid var(--accent);
  background: var(--bg-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  margin: 28px 0;
  color: var(--ink-2);
  line-height: 1.6;
  font-family: 'Styrene A', sans-serif;
}

.reading ol, .reading ul { margin: 18px 0 28px 28px; }
.reading li { font-size: 17px; color: var(--ink-2); margin-bottom: 10px; line-height: 1.6; }

.reading .api-links { list-style: none; margin: 20px 0 0 0; padding: 0; }
.reading .api-links li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
  gap: 16px;
}
.reading .api-links li:first-child { border-top: 1px solid var(--rule); }
.reading .api-links .provider {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  font-size: 17px;
}
.reading .api-links a {
  font-family: 'Styrene A', sans-serif;
  font-size: 13px;
  color: var(--ink-3);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  transition: color 0.15s var(--ease-out);
}
.reading .api-links a:hover {
  color: var(--accent-deep);
  background: transparent;
}

.reading .aside-note {
  margin-top: 88px;
  padding: 36px 40px;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
}
.reading .aside-note h3 {
  font-family: 'Styrene A', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin: 0 0 20px;
}
.reading .aside-note p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.reading .aside-note p:last-child { margin-bottom: 0; }

/* ── Steps ────────────────────────────────────────────── */
.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  margin: 28px 0 40px;
  border-top: 1px solid var(--rule);
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 32px;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.step h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.step p {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.6;
}

/* ── FAQ ─────────────────────────────────────────────── */
.faq-group { margin-bottom: 80px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group-title {
  font-family: 'Styrene A', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 28px;
  font-weight: 500;
}

.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  cursor: pointer;
  user-select: none;
}
.faq-q h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
}
.faq-chevron {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s var(--ease-out);
  color: var(--ink-3);
}
.faq-item:hover .faq-chevron { border-color: var(--ink); color: var(--ink); }
.faq-item.open .faq-chevron {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.faq-chevron svg { width: 14px; height: 14px; }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}
.faq-item.open .faq-a { max-height: 1800px; }
.faq-a-inner {
  padding: 0 0 32px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 720px;
}
.faq-a-inner p { color: inherit; }

.api-list { list-style: none; margin-top: 20px; padding: 0; }
.api-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  gap: 16px;
}
.api-list li:first-child { border-top: none; }
.api-list .provider {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  font-size: 17px;
}
.api-list a {
  font-family: 'Styrene A', sans-serif;
  font-size: 13px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s var(--ease-out);
}
.api-list a:hover { color: var(--accent-deep); }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 80px var(--pad-x) 48px;
  background: var(--bg);
  margin-top: 48px;
}
.site-footer .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 56px;
  align-items: start;
}
.site-footer .brand-col { display: flex; flex-direction: column; gap: 18px; }
.site-footer .brand-col .brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400; font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.site-footer .brand-col .brand img { width: 30px; height: 30px; border-radius: 6px; }
.site-footer .tagline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 360px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-style: italic;
}
.site-footer .footer-tagline-sm {
  font-family: 'Styrene A', sans-serif;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 8px;
}

.footer-col h4 {
  font-family: 'Styrene A', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col li a {
  font-family: 'Styrene A', sans-serif;
  font-size: 15px;
  color: var(--ink-2);
  transition: color 0.15s var(--ease-out);
}
.footer-col li a:hover { color: var(--accent-deep); }

.site-footer .footer-qr {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.site-footer .footer-qr img {
  width: 92px; height: 92px;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 4px;
  border: 1px solid var(--rule);
}
.site-footer .footer-qr span {
  font-family: 'Styrene A', sans-serif;
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
}

.site-footer .meta {
  max-width: var(--max-w);
  margin: 64px auto 0;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'Styrene A', sans-serif;
  font-size: 13px;
  color: var(--ink-3);
}
.site-footer .meta nav { display: flex; gap: 24px; }
.site-footer .meta nav a {
  color: var(--ink-3);
  transition: color 0.15s var(--ease-out);
}
.site-footer .meta nav a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-qr { grid-column: 1 / -1; align-items: flex-start; }
  .site-footer .footer-qr span { text-align: left; }
}
@media (max-width: 600px) {
  .site-footer .inner { grid-template-columns: 1fr; gap: 32px; }
  .site-header nav { display: none; }
  :root { --pad-x: 24px; }
  main, main.reading { padding-top: 48px; padding-bottom: 80px; }
  .hero { padding-top: 24px; padding-bottom: 72px; }
  .section, .cta-band, .showcase { padding: 72px 0; }
  .showcase { margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
}

/* ── Journal theme (olive) ──────────────────────────────── */
body.theme-journal {
  --accent: var(--journal-accent);
  --accent-ink: var(--journal-accent-ink);
  --accent-soft: var(--journal-accent-soft);
  --accent-deep: var(--journal-accent-ink);
}

.mono {
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.fade-up { animation: fadeUp 0.7s var(--ease-smooth) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
