/* Self-hosted fonts (SIL Open Font License): Geist (variable) and Instrument Serif, latin subset. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/geist-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Thren website. Warm white, orange stack palette. */
:root {
  --bg: #fffbf6;
  --surface: #ffffff;
  --tint: #fbf3ea;
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #78716c;
  --line: #ede3d7;
  --line-2: #e2d5c5;
  --accent: #ea580c;
  --accent-ink: #c2410c;
  --peach: #fed7aa;
  --orange: #fb923c;
  --night: #1c1917;
  --night-2: #292524;
  --grad: linear-gradient(120deg, #f59e0b, #ea580c 55%, #e11d48);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 8px 24px -12px rgba(28, 25, 23, 0.12);
  --shadow-lg: 0 2px 4px rgba(28, 25, 23, 0.04), 0 24px 48px -20px rgba(120, 53, 15, 0.22);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --wrap: 1160px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 1.08rem; line-height: 1.35; letter-spacing: -0.01em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center .actions, .actions.center { justify-content: center; }
.muted { color: var(--ink-3); font-size: 0.94rem; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-ink); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.center .eyebrow::before { display: none; }
.eyebrow-light { color: var(--orange); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.24rem); line-height: 1.6; color: var(--ink-2); margin-top: 22px; max-width: 40em; }
.center .lede { margin-left: auto; margin-right: auto; }
.body-lg { font-size: 1.08rem; color: var(--ink-2); line-height: 1.7; }
.body-lg + .body-lg { margin-top: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: #fff; font: 500 0.98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 18px -8px rgba(28, 25, 23, 0.45);
}
.btn:hover { color: #fff; background: #000; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 10px 24px -10px rgba(234, 88, 12, 0.55); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.92rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-3); box-shadow: none; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); box-shadow: none; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); box-shadow: none; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link-quiet { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.link-quiet:hover { color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 246, 0.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.22rem; letter-spacing: -0.03em; }
.logo:hover { color: var(--ink); }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.main-nav a:hover { color: var(--ink); background: rgba(28, 25, 23, 0.04); }
.main-nav a[aria-current="page"] { color: var(--ink); background: rgba(234, 88, 12, 0.08); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; padding: 0; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, top 0.2s; }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.mobile-nav { display: grid; gap: 2px; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 14px; }

/* Hero */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, rgba(251, 146, 60, 0.18), rgba(254, 215, 170, 0.12) 50%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero-copy h1 { max-width: 12ch; }

.thread-stage { position: relative; aspect-ratio: 1.12 / 1; max-width: 600px; width: 100%; margin-left: auto; }
.thread {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  clip-path: inset(0 100% 0 0); animation: wipe 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.9s forwards;
}
.thread path { fill: none; stroke: url(#tg); stroke-width: 0.38; stroke-linecap: round; }
.thread path.main { stroke-width: 0.55; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.src-card {
  position: absolute; left: 0; top: var(--y); width: 42%; height: 20%;
  display: grid; align-content: center; gap: 2px; padding: 10px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 0.82rem; line-height: 1.35;
  opacity: 0; transform: translateY(8px); animation: pop 0.5s ease var(--d) forwards;
}
.src-card strong { font-weight: 600; color: var(--ink); font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-kind { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.src-line { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-n {
  position: absolute; top: 50%; right: -11px; margin-top: -11px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 600;
  box-shadow: 0 0 0 3px var(--bg);
}
.answer-card {
  position: absolute; left: 58%; right: 0; top: 50%; translate: 0 -50%;
  padding: 20px 20px 18px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px); animation: pop 0.6s ease 2s forwards;
}
.answer-card::before {
  content: ""; position: absolute; left: -6px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: #e11d48; box-shadow: 0 0 0 3px var(--surface);
}
.answer-card .q { font-weight: 600; font-size: 0.98rem; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.answer-card .a { color: var(--ink-2); font-size: 0.93rem; line-height: 1.6; }
.answer-card sup {
  display: inline; padding: 1px 5px; margin-left: 2px; border-radius: 999px; vertical-align: 1px;
  background: rgba(234, 88, 12, 0.12); color: var(--accent-ink); font-size: 0.66rem; font-weight: 600; line-height: 1;
}
.cites { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.cites span { font-size: 0.72rem; color: var(--ink-2); border: 1px solid var(--line); background: var(--tint); padding: 2px 8px; border-radius: 999px; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* Tools strip */
.tools { padding: 28px 0 8px; }
.tools p { text-align: center; color: var(--ink-3); font-size: 0.9rem; }
.tool-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.tool-list li { color: var(--ink-2); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; opacity: 0.75; }

/* Sections */
.section { padding: 104px 0; }
.section-tight { padding: 56px 0 96px; }
.section-tint { background: var(--tint); }
.section-night { background: var(--night); color: #e7e5e4; }
.section-night h2 { color: #fff; }
.section-night .body-lg { color: #d6d3d1; }
.section-night a:not(.btn) { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split-media { align-items: center; }
.more { margin-top: 32px; font-weight: 500; }
.more a { text-decoration: none; }

.problem-list { display: grid; gap: 28px; }
.problem-list > div { padding-left: 20px; border-left: 2px solid var(--line-2); }
.problem-list p { color: var(--ink-2); margin-top: 6px; }

.card-grid { display: grid; gap: 20px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow);
}
.card p { color: var(--ink-2); margin-top: 10px; font-size: 0.96rem; }
.icon { width: 40px; height: 40px; padding: 9px; margin-bottom: 22px; border-radius: 12px; background: rgba(234, 88, 12, 0.1); fill: none; stroke: var(--accent-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(234, 88, 12, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23c2410c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* Files visual */
.file-stack { position: relative; height: 380px; }
.file {
  position: absolute; width: 62%; padding: 18px 20px 22px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; gap: 10px; align-content: start;
}
.file strong { font-weight: 600; font-size: 0.98rem; }
.file i { display: block; height: 8px; border-radius: 4px; background: var(--tint); }
.file i.short { width: 60%; }
.file-tag { justify-self: start; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 6px; color: #fff; }
.f-doc { left: 0; top: 0; transform: rotate(-3deg); }
.f-doc .file-tag { background: #2563eb; }
.f-deck { right: 0; top: 70px; transform: rotate(2.5deg); z-index: 2; }
.f-deck .file-tag { background: var(--accent); }
.f-sheet { left: 12%; bottom: 0; z-index: 3; }
.f-sheet .file-tag { background: #15803d; }
.slide-bars { display: flex; align-items: flex-end; gap: 10px; height: 92px; padding: 10px 14px 0; border-radius: 10px; background: var(--tint); }
.slide-bars b { flex: 1; border-radius: 6px 6px 0 0; background: var(--grad); opacity: 0.9; }
.grid-lines {
  height: 80px; border-radius: 8px; border: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 20px, 25% 100%;
}

/* Every AI */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips span { font-size: 0.86rem; color: #f5f5f4; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); }

/* Slash picker visual */
.slash { margin-top: 28px; max-width: 420px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.slash-input { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.98rem; display: flex; align-items: center; }
.slash-input span { color: var(--accent); font-weight: 600; margin-right: 2px; }
.caret { display: inline-block; width: 1.5px; height: 18px; background: var(--ink); margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.slash ul { list-style: none; margin: 0; padding: 6px; }
.slash li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 0.92rem; }
.slash li span { color: var(--ink-3); font-size: 0.84rem; }
.slash li.on { background: rgba(234, 88, 12, 0.08); }
.slash li strong { font-weight: 500; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.trust-grid > div { padding: 26px 24px 0 0; }
.trust-grid > div + div { padding-left: 24px; border-left: 1px solid var(--line-2); }
.trust-grid p { color: var(--ink-2); margin-top: 8px; font-size: 0.96rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 600; font-size: 1.06rem; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 1.8px solid var(--ink-2); border-bottom: 1.8px solid var(--ink-2); transform: rotate(45deg); transition: transform 0.2s, margin 0.2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item p { color: var(--ink-2); padding: 0 40px 24px 0; max-width: 46em; }

/* CTA band */
.cta-band { padding: 0 0 104px; }
.section-tint + .cta-band { padding-top: 104px; }
.cta-inner {
  position: relative; overflow: hidden; text-align: center;
  background: var(--night); color: #e7e5e4; border-radius: 28px; padding: 80px 32px;
}
.cta-inner::before {
  content: ""; position: absolute; left: 50%; top: -60%; width: 90%; height: 120%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(234, 88, 12, 0.35), transparent 70%); pointer-events: none;
}
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: #d6d3d1; max-width: 34em; margin: 16px auto 0; font-size: 1.08rem; }
.cta-inner .actions { justify-content: center; }

/* Page hero */
.page-hero { padding: 96px 0 40px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }

/* Product */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.steps p { color: var(--ink-2); margin-top: 8px; font-size: 0.95rem; }
.step-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 600; font-size: 0.92rem; margin-bottom: 18px; }
.feature-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-bottom: 40px; }
.feature-nav a { font-size: 0.88rem; color: var(--ink-2); text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
.feature-nav a:hover { color: var(--ink); border-color: var(--ink-3); }
.feature { scroll-margin-top: 70px; }

/* Security */
.def-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin: 0; }
.def-grid dt { font-weight: 600; }
.def-grid dd { margin: 6px 0 0; color: var(--ink-2); font-size: 0.96rem; }

/* About */
.prose-lg p { font-size: 1.2rem; line-height: 1.75; color: var(--ink-2); }
.prose-lg p + p { margin-top: 22px; }
.prose-lg p:first-child { color: var(--ink); }

/* Contact */
.contact { padding-top: 80px; }
.contact-grid { align-items: start; }
.contact h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
.contact .muted { margin-top: 28px; }
.form { display: grid; gap: 18px; padding: 32px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 500; font-size: 0.94rem; }
.opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; min-height: 46px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15); background: #fff; }
.field.invalid input { border-color: #dc2626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 0.92rem; color: var(--ink-2); min-height: 1.4em; }
.form-note.ok { color: #15803d; }
.form-note.err { color: #b91c1c; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.post-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.post-card p { color: var(--ink-2); font-size: 0.94rem; flex: 1; }
.post-tag { align-self: flex-start; font-size: 0.74rem; font-weight: 600; color: var(--accent-ink); background: rgba(234, 88, 12, 0.08); padding: 4px 10px; border-radius: 999px; }
.post-meta { color: var(--ink-3); font-size: 0.86rem; }
.post-head { padding-top: 72px; padding-bottom: 32px; }
.post-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-top: 18px; }
.post-head .post-meta { margin-top: 18px; }
.back { font-size: 0.92rem; text-decoration: none; color: var(--ink-3); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.post-tags span { font-size: 0.76rem; color: var(--ink-2); border: 1px solid var(--line-2); padding: 3px 10px; border-radius: 999px; }
.post .prose { padding-bottom: 96px; }

.prose { font-size: 1.08rem; line-height: 1.75; color: #3b3633; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.65rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.22rem; margin-top: 1.8em; }
.prose h4 { font-size: 1.04rem; margin: 0 0 4px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose section > * + * { margin-top: 1.1em; }
.prose .callout { background: #fff4ea; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; padding: 22px 24px; margin: 2em 0; }
.prose .callout h3 { margin: 0 0 8px; }
.prose .callout p { margin: 0; color: var(--ink-2); }
.prose .callout-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.prose .panel-dark { background: var(--night); color: #e7e5e4; border-radius: 16px; padding: 28px; margin: 2.2em 0; }
.prose .panel-dark h3, .prose .panel-dark h4, .prose .panel-dark strong { color: #fff; margin-top: 0; }
.prose .panel-dark p, .prose .panel-dark li { color: #d6d3d1; }
.prose .panel-dark > * + * { margin-top: 0.8em; }
.prose .step { display: flex; gap: 16px; align-items: flex-start; margin: 1.4em 0; }
.prose .step.boxed { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.prose .step > div:not(.step-num) > * + * { margin-top: 0.5em; }
.prose .step-num { flex: 0 0 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 600; font-size: 0.92rem; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.prose .rule-item { border-bottom: 1px solid var(--line); padding-bottom: 1.2em; margin-top: 1.2em; }
.prose .rule-item h3 { margin-top: 0; }
.prose .rule-item > * + * { margin-top: 0.5em; }
.prose .table-wrap { overflow-x: auto; margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); background: var(--tint); }
.prose a { font-weight: 500; }

/* Legal */
.legal-hero { padding-bottom: 8px; }
.legal-hero .muted { margin-top: 16px; }
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow: auto; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-toc a { display: block; padding: 5px 0; color: var(--ink-3); font-size: 0.88rem; text-decoration: none; }
.legal-toc a:hover { color: var(--ink); }
.prose.legal { font-size: 1rem; max-width: 720px; }
.prose.legal h3 { font-size: 1.18rem; margin-top: 0.4em; }
.prose.legal .anchor { display: block; height: 1px; margin-top: 2.2em; }
.prose.legal .anchor:first-child { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 14px; color: var(--ink-2); max-width: 24em; font-size: 0.95rem; }
.site-footer h2 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.site-footer .footer-grid > div:not(.footer-brand) { display: grid; align-content: start; gap: 10px; }
.site-footer .footer-grid a:not(.logo) { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; overflow-wrap: anywhere; }
.site-footer .footer-grid a:not(.logo):hover { color: var(--ink); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.86rem; }

/* Reveal on scroll (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 1024px) {
  .card-grid.four, .steps { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy h1 { max-width: 14ch; }
  .thread-stage { margin: 0 auto; }
}
@media (max-width: 860px) {
  .main-nav, .header-cta { display: none; }
  .menu-btn { display: block; }
  .split, .legal-grid { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: var(--surface); }
  .card-grid.three { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 76px 0; }
  .cta-band { padding-bottom: 76px; }
  .section-tint + .cta-band { padding-top: 76px; }
}
/* Phone */
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero { padding: 40px 0 32px; }
  .card-grid.four, .steps, .post-grid, .def-grid, .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div, .trust-grid > div + div { padding: 20px 0 0; border-left: 0; }
  .thread-stage { aspect-ratio: auto; height: auto; display: grid; gap: 10px; }
  .thread, .answer-card::before { display: none; }
  .src-card { position: relative; left: auto; top: auto; width: 100%; height: auto; }
  .src-n { right: 12px; }
  .answer-card { position: relative; left: auto; top: auto; translate: none; margin-top: 6px; }
  .file-stack { height: 340px; }
  .file { width: 78%; }
  .cta-inner { padding: 56px 20px; border-radius: 22px; }
  .form { padding: 22px; }
  .footer-base { flex-direction: column; }
  .page-hero { padding: 64px 0 24px; }
}
h2 + .body-lg, h2 + .ticks { margin-top: 20px; }
.hero-grid > *, .split > *, .header-row > *, .legal-grid > * { min-width: 0; }
@media (max-width: 600px) {
  .src-card strong, .src-line { white-space: normal; }
}
@media (max-width: 600px) {
  .answer-card { animation-delay: 1.3s; }
  .file-stack { height: auto; display: grid; gap: 12px; }
  .file { position: relative; inset: auto; width: 100%; transform: none; padding: 14px 16px; }
  .file i, .slide-bars, .grid-lines { display: none; }
  .file { grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
}
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head-row h2 { max-width: 18em; }
.what-is { padding-top: 64px; padding-bottom: 24px; }
.what-is h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.definition { margin-top: 16px; font-size: 1.12rem; line-height: 1.7; color: var(--ink-2); }

/* Integrations, AI tools, glossary */
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.post-card h2 { font-size: 1.2rem; margin: 0; }
.eyebrow a { color: inherit; }
.page-hero + .section .center.body-lg, .section .body-lg.center { margin-top: 28px; }
.gloss { margin: 0; }
.gloss > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.gloss dt { font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.gloss dd { margin: 8px 0 0; color: var(--ink-2); line-height: 1.7; }
.gloss dd + dd { margin-top: 6px; font-size: 0.94rem; }
.md-link { font-size: 0.86rem; color: var(--ink-2); }
@media (max-width: 860px) { .card-grid.two { grid-template-columns: 1fr; } }
.steps.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps.three { grid-template-columns: 1fr; } }
.tool-list a { color: inherit; text-decoration: none; } .tool-list a:hover { color: var(--accent-ink); }

/* Video: poster + play button, native controls once playing */
.video { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.video video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--tint); }
.video-play { display: none; }
.js .video-play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; width: 100%; padding: 0 0 4.5%; border: 0; background: transparent; cursor: pointer; }
.video-btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px 0 20px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 1rem/1 var(--sans); box-shadow: 0 14px 34px -12px rgba(120, 53, 15, 0.55); transition: transform 0.2s ease, background 0.2s ease; }
.video-btn::before { content: ""; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.video-len { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.28); color: #d6d3d1; font-weight: 500; font-variant-numeric: tabular-nums; }
.video-play:hover .video-btn, .video-play:focus-visible .video-btn { transform: translateY(-1px); background: var(--accent); }
.video-play:hover .video-len, .video-play:focus-visible .video-len { color: #fff; }
.video.playing .video-play { display: none; }
.film { padding-top: 40px; }
.film-head { margin-left: auto; margin-right: auto; margin-bottom: 32px; }
.film-frame { max-width: 980px; margin: 0 auto; }

/* Tour page */
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.tour-note { margin-top: 14px; }
.tour-chapters { position: sticky; top: 96px; }
.tour-chapters h2 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.chapters a { display: flex; gap: 14px; align-items: baseline; padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.95rem; border-radius: 0; transition: background 0.15s ease; }
.chapters a:hover { background: rgba(234, 88, 12, 0.06); color: var(--ink); }
.chapters a.on { background: rgba(234, 88, 12, 0.1); }
.chapters a.on .ch-title { font-weight: 600; }
.ch-time { min-width: 2.6em; color: var(--accent-ink); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.88rem; }
.transcript { border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); }
.transcript summary { cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1.06rem; }
.transcript-body { padding: 0 24px 24px; }
.transcript-body h3 { margin-top: 22px; font-size: 1rem; }
.transcript-body h3 a { margin-right: 6px; font-variant-numeric: tabular-nums; text-decoration: none; }
.transcript-body p { margin-top: 6px; color: var(--ink-2); line-height: 1.7; }
.tour-more { margin-top: 28px; }
@media (max-width: 1024px) {
  .tour-grid { grid-template-columns: 1fr; gap: 28px; }
  .tour-chapters { position: static; }
}
@media (max-width: 600px) {
  .js .video-play { padding-bottom: 3%; }
  .video-btn { height: 36px; padding: 0 14px 0 12px; font-size: 0.86rem; gap: 7px; }
  .video-btn::before { border-width: 6px 0 6px 10px; }
}
.product-demo { padding: 8px 0 8px; }
.product-demo .more { margin-top: 18px; }
.product-demo .film-frame { max-width: 860px; }

/* Home: clusters list visual */
.cluster-stack { display: grid; gap: 12px; max-width: 480px; justify-self: end; width: 100%; }
.cluster-row { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cluster-row strong { display: block; font-weight: 600; }
.cluster-row div span { display: block; color: var(--ink-3); font-size: 0.86rem; margin-top: 2px; }
.cluster-row em { grid-column: 2; font-style: normal; font-size: 0.82rem; color: var(--ink-2); }
.cl-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--c); margin-top: 5px; }
.cluster-row.locked { border-style: dashed; border-color: var(--line-2); }
@media (max-width: 860px) { .cluster-stack { justify-self: stretch; max-width: none; } }
.ticks + .body-lg, .chips + .body-lg { margin-top: 22px; }

/* Clusters page: product screens on a warm panel, numbered pins tied to a legend */
.tour-block { margin-top: 72px; }
.tour-block:first-of-type { margin-top: 0; }
.tour-head { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: end; margin-bottom: 28px; }
.tour-head .body-lg { margin: 0; }
.shot-title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; margin-top: 4px; }
.showcase { margin: 0; padding: clamp(14px, 3.2vw, 40px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: radial-gradient(110% 80% at 88% 0%, rgba(251, 146, 60, 0.26), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(254, 215, 170, 0.55), transparent 70%), var(--tint); }
.showcase-img { position: relative; }
.showcase-img img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(28, 25, 23, 0.08); box-shadow: var(--shadow-lg); background: #fff; }
.pin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--grad); color: #fff; font-size: 0.86rem; font-weight: 600; flex: none; }
.showcase-img .pin { position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 8px; font-size: 0.78rem; box-shadow: 0 0 0 3px #fff, 0 6px 14px -4px rgba(234, 88, 12, 0.55); }
.tour-fig { margin: 0; }
.legend { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px 28px; }
.legend li { display: flex; gap: 12px; align-items: flex-start; }
.legend strong { display: block; font-weight: 600; font-size: 0.98rem; }
.legend p { color: var(--ink-2); font-size: 0.93rem; margin-top: 4px; }
.shot-note { margin-top: 36px; font-size: 0.86rem; }
@media (max-width: 860px) {
  .tour-head { grid-template-columns: 1fr; gap: 12px; }
  .showcase-img .pin { width: 18px; height: 18px; border-radius: 6px; font-size: 0.66rem; box-shadow: 0 0 0 2px #fff; }
}

/* Developers page: code samples and reference tables */
.dev-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.code { margin: 0; padding: 18px 20px; border-radius: var(--radius); background: var(--night); color: #f5f5f4; font: 0.86rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; box-shadow: var(--shadow-lg); position: relative; }
.code::before { content: attr(data-lang); position: absolute; top: 8px; right: 12px; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.code code { white-space: pre; }
.code + .code { margin-top: 12px; background: var(--night-2); box-shadow: none; }
.dev-table { margin-top: 56px; }
.dev-table h3 { font-size: 1.25rem; margin-bottom: 16px; }
.dev-table table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dev-table th, .dev-table td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; font-size: 0.95rem; }
.dev-table th { border-top: 0; background: var(--tint); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.dev-table td:first-child { width: 30%; }
.dev-table td code, .ticks code { font: 0.88rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--accent-ink); background: rgba(234, 88, 12, 0.08); padding: 2px 6px; border-radius: 6px; }
.dev-steps { display: grid; gap: 40px; }
.dev-step { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 40px; align-items: start; }
.dev-step h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 1.15rem; }
.dev-step p { color: var(--ink-2); }
.section > .wrap > .dev-table:first-child { margin-top: 0; }
@media (max-width: 1024px) { .dev-step { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 860px) { .dev-grid { grid-template-columns: 1fr; gap: 28px; } .dev-table td:first-child { width: auto; } .dev-table th, .dev-table td { padding: 12px; } }

/* Blog comparison tables: highlight the last column, keep columns readable on phones */
.prose .table-wrap.compare table { min-width: 620px; }
.prose .table-wrap.compare th:last-child, .prose .table-wrap.compare td:last-child { background: #fff4ea; color: var(--ink); }
.prose .table-wrap.compare th:last-child { color: var(--accent-ink); }
.showcase-zoom { display: block; cursor: zoom-in; }
.showcase-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.showcase.is-narrow .showcase-img { max-width: 720px; margin: 0 auto; }

/* Clusters page: a still answer card for the worked example */
.answer-card.static { position: relative; left: auto; right: auto; top: auto; translate: none; opacity: 1; transform: none; animation: none; max-width: 520px; justify-self: end; }
.answer-card.static::before { display: none; }
.ex-head { margin-top: 72px; }
.ex-head h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

/* Footer: Product Hunt review badge */
.ph-badge { display: inline-block; margin-top: 18px; line-height: 0; }
.ph-badge img { width: 250px; height: 54px; max-width: 100%; }
