/* Onest (SIL OFL 1.1, assets/fonts/OFL.txt), self-hosted so no visitor data goes to Google */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/onest-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/onest-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; }

:root {
  --ht-coral: #FF6B3D;
  --ht-action: #CC3F1A;
  --ht-action-hover: #A93213;
  --ht-ink: #111827;
  --ht-ink-2: #344054;
  --ht-muted: #566174;
  --ht-mist: #F3F4F6;
  --ht-line: #D2D8E0;
  --ht-white: #FFFFFF;
  --ht-tint: #FFF1EB;
  --ht-tint-strong: #FFD9CB;
  --ht-ok: #127A4B;

  --ht-paper: #EDEFF3;
  --ht-paper-2: #E0E4EA;
  --bg: var(--ht-paper);
  --bg-alt: var(--ht-paper-2);
  --fg: var(--ht-ink);
  --fg-2: var(--ht-ink-2);
  --fg-muted: var(--ht-muted);
  --line: var(--ht-line);
  --surface: var(--ht-white);
  --tint: var(--ht-tint);

  --font: 'Onest', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 var(--s4); }
h1, h2, h3, h4 { margin: 0; color: var(--fg); text-wrap: balance; }
p, li, dd, dt, figcaption, summary, td, th { text-wrap: pretty; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 650; line-height: 1.12; letter-spacing: -0.028em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
h4 { font-size: 1rem; font-weight: 600; }
kbd {
  font: 500 0.8em/1 var(--font);
  padding: 3px 6px 4px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  white-space: nowrap;
}
code, .url { font-family: var(--mono); font-size: 0.86em; }
:focus-visible { outline: 3px solid var(--ht-action); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ht-tint-strong); color: var(--fg); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 62ch; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.5; color: var(--fg-2); max-width: 62ch; }
.muted { color: var(--fg-muted); }
.small { font-size: 0.9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s5); height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand svg { width: 30px; height: 30px; flex: none; }
.wordmark { font-weight: 700; font-size: 1.45rem; letter-spacing: -0.025em; line-height: 1; white-space: nowrap; }
.wordmark .q { color: var(--ht-coral); }
.site-nav { display: flex; align-items: center; gap: var(--s5); margin-left: auto; font-size: 0.95rem; font-weight: 500; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--fg-2); }
.site-nav a:not(.btn):hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) { .site-nav .hide-sm { display: none; } .site-header .btn { padding: 9px 14px; } }
html:not(.signed-in) .when-signed-in, .signed-in .when-signed-out { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1.2 var(--font);
  padding: 13px 20px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ht-action); color: #fff; }
.btn-primary:hover { background: var(--ht-action-hover); }
.btn-quiet { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--fg); }
.btn-lg { padding: 16px 24px; font-size: 1.06rem; }
.btn-sm { padding: 9px 14px; font-size: 0.92rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.cta-note { font-size: 0.9rem; color: var(--fg-muted); }

/* Section rhythm */
.section { padding: var(--s9) 0; }
.section-tight { padding: var(--s8) 0; }
.section-alt { background: var(--bg-alt); }
.section-ink { --bg: #111827; --fg: #F9FAFB; --fg-2: #D0D5DD; --fg-muted: #98A2B3; --line: #2B3445; --surface: #1A2233; background: var(--bg); color: var(--fg); }
.section-head { margin-bottom: var(--s7); max-width: 52rem; }
.section-head p { margin-top: var(--s4); color: var(--fg-2); font-size: 1.1rem; }

/* Selection brackets: the brand mark's four corners, used to mean "this is the thing being talked about" */
.picked { position: relative; }
.picked::after {
  content: '';
  position: absolute;
  inset: -10px -12px;
  border: 14px solid transparent;
  border-image: url('corners.svg') 16 / 14px stretch;
  pointer-events: none;
}
.picked-tint { background: var(--ht-tint); box-shadow: 0 0 0 6px var(--ht-tint); border-radius: 2px; }

/* Pin */
.pin {
  --pin: var(--ht-coral);
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50% 50% 50% 0;
  background: var(--pin);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(17, 24, 39, .22);
  display: grid; place-items: center;
  z-index: 3;
}
.pin { user-select: none; -webkit-user-select: none; }
.pin > span { transform: rotate(45deg); color: #fff; font: 700 12.5px/1 var(--font); }
.pin.resolved { --pin: #98A2B3; }
.pin.inline { position: relative; display: inline-grid; vertical-align: -6px; margin: 0 2px; }

/* Comment card (mirrors the product's thread UI) */
.comment {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 1px 0 rgba(17,24,39,.04), 0 12px 32px -12px rgba(17,24,39,.22);
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  width: 280px;
  max-width: 100%;
}
.comment .who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.88rem; margin-bottom: 4px; }
.comment .who time { font-weight: 400; color: var(--fg-muted); }
.comment p { margin: 0; }
.comment .reply { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.comment .meta { margin-top: 8px; font-size: 0.78rem; color: var(--fg-muted); }
.avatar { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 10px/1 var(--font); color: #fff; background: #475467; flex: none; }
.avatar.a2 { background: #0E7C66; }
.avatar.a3 { background: #6941C6; }
.avatar.a4 { background: #B54708; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 500; padding: 2px 8px; border-radius: 99px; background: var(--ht-tint); color: var(--ht-action); }
.status.done { background: #E7F6EE; color: var(--ht-ok); }
.via { font-weight: 400; color: var(--fg-muted); font-size: 0.8rem; }

/* Browser frame */
.browser {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -30px rgba(17,24,39,.35), 0 2px 6px rgba(17,24,39,.06);
  overflow: hidden;
  color: var(--ht-ink);
}
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--ht-line); background: #F7F8FA; }
.browser-dots { display: flex; gap: 6px; flex: none; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: #D0D5DD; }
.address { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--ht-line); border-radius: 7px; padding: 5px 10px; font: 500 0.8rem/1.2 var(--mono); color: #344054; }
.address span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address svg { width: 13px; height: 13px; flex: none; color: #667085; }
.env-tag { flex: none; font: 600 0.72rem/1 var(--font); padding: 4px 7px; border-radius: 5px; background: #FEF0C7; color: #93370D; }
.ext-icon { width: 22px; height: 22px; flex: none; border-radius: 6px; background: var(--ht-coral); display: grid; place-items: center; }
.ext-icon svg { width: 13px; height: 13px; }

/* Ticks and lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%; background: var(--ht-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23CC3F1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.crosses li::before { background: var(--ht-mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6 6l6 6M12 6l-6 6' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* Two-column split used across pages */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: center; }
.hero .split { align-items: start; }
.hero .demo { margin-top: var(--s3); }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.even { grid-template-columns: 1fr 1fr; }
.split.top { align-items: start; }
.price-split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.price-split .section-head { margin-bottom: 0; }
@media (max-width: 960px) { .price-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) { .split, .split.flip, .split.even { grid-template-columns: minmax(0, 1fr); gap: var(--s7); } }

/* Hero */
.hero { padding: var(--s8) 0 var(--s9); overflow: hidden; }
.hero h1 { margin-bottom: var(--s5); }
.hero .lede { margin-bottom: var(--s6); }
.hero-proof { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: 0.92rem; color: var(--fg-muted); }
.hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--ht-ok); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.96rem; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 0.9rem; font-weight: 600; color: var(--fg-2); background: var(--bg-alt); }
.compare tbody th { font-weight: 500; width: 36%; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .us { background: color-mix(in srgb, var(--ht-tint) 55%, transparent); }
.compare .yes { color: var(--ht-ok); font-weight: 600; }
.compare .no { color: var(--fg-muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--fg-muted); border-bottom: 2px solid var(--fg-muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 22px; color: var(--fg-2); max-width: 64ch; }

/* Founder note: a card, portrait beside a larger quote */
.note { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s7); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s7); box-shadow: 0 24px 48px -32px rgba(17,24,39,.35); }
.note-face { width: 200px; height: 200px; border-radius: 12px; background: var(--ht-mist); display: grid; place-items: center; font-weight: 700; color: var(--fg-2); font-size: 2.4rem; }
.note blockquote { margin: 0; font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; color: var(--fg); max-width: 40ch; }
.note blockquote p { margin-bottom: var(--s4); text-wrap: pretty; }
.note cite { font-style: normal; font-weight: 600; display: block; margin-top: var(--s5); font-size: 1rem; line-height: 1.4; letter-spacing: 0; }
.note cite span { display: block; font-weight: 400; color: var(--fg-muted); font-size: 0.95rem; }
@media (max-width: 760px) { .note { grid-template-columns: minmax(0, 1fr); gap: var(--s5); padding: var(--s6); } .note-face { width: 120px; height: 120px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s5); align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); background: var(--surface); display: flex; flex-direction: column; }
.plan.lead { border: 2px solid var(--fg); }
.plan h3 { font-size: 1.15rem; }
.plan .price { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: var(--s4) 0 var(--s2); }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--fg-muted); letter-spacing: 0; }
.plan .ticks { margin: var(--s5) 0 var(--s6); font-size: 0.96rem; }
.plan .btn { margin-top: auto; }

/* Closing CTA */
.closing { text-align: left; }
.closing h2 { margin-bottom: var(--s5); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--s7) 0; font-size: 0.92rem; color: var(--fg-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s4); margin-left: auto; }
.site-footer a { color: var(--fg-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Interactive demo (assets/site.js) */
.demo { position: relative; }
.demo-page { position: relative; font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif; color: #1E2A27; background: #FBFAF7; cursor: crosshair; user-select: none; }
.demo-page [data-pickable] { position: relative; }
.demo-page [data-pickable]:hover { outline: 2px dashed rgba(204, 63, 26, .55); outline-offset: 4px; border-radius: 2px; }
.demo-page .is-picked::after { content: ''; position: absolute; inset: -8px -10px; border: 12px solid transparent; border-image: url('corners.svg') 16 / 12px stretch; pointer-events: none; }
.demo-page .is-picked { outline: none !important; }
.dp-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-bottom: 1px solid #ECE8DF; font-size: 13px; }
.dp-logo { font-weight: 700; font-size: 16px; letter-spacing: .01em; color: #1F4D45; }
.dp-links { display: flex; gap: 16px; color: #4A5A55; font-family: system-ui, sans-serif; }
.dp-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; padding: 28px 22px 26px; align-items: center; }
.dp-hero .dp-title { font: 400 30px/1.12 Georgia, serif; color: #1E2A27; margin: 0 0 10px; letter-spacing: -.01em; }
.dp-hero p { font: 400 13.5px/1.5 system-ui, sans-serif; color: #4A5A55; margin-bottom: 14px; }
.dp-btn { display: inline-block; font: 600 13px/1 system-ui, sans-serif; background: #1F4D45; color: #fff; padding: 10px 14px; border-radius: 4px; }
.dp-img { aspect-ratio: 4 / 3.4; border-radius: 6px; background:
  radial-gradient(circle at 70% 30%, #F2D7B6 0 14%, transparent 15%),
  linear-gradient(180deg, transparent 58%, #C9B79C 58% 61%, transparent 61%),
  linear-gradient(160deg, #D9E6E0 0%, #B9CFC6 60%, #A4BFB4 100%); }
.dp-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #ECE8DF; border-top: 1px solid #ECE8DF; font-family: system-ui, sans-serif; }
.dp-prices div { background: #FBFAF7; padding: 14px 22px 18px; font-size: 12.5px; color: #4A5A55; }
.dp-prices b { display: block; font: 400 21px/1.2 Georgia, serif; color: #1E2A27; margin-top: 2px; }
.demo-layer { position: absolute; inset: 0; pointer-events: none; }
.demo-layer .pin { pointer-events: auto; cursor: pointer; border: 0; padding: 0; }
.demo-pop { position: absolute; z-index: 6; pointer-events: auto; width: 260px; }
.demo-pop textarea { width: 100%; min-height: 64px; resize: vertical; font: 400 0.92rem/1.4 var(--font); color: var(--ht-ink); border: 1.5px solid var(--ht-action); border-radius: 7px; padding: 8px 10px; outline: none; }
.demo-pop .row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.demo-pop .row .meta { margin: 0 auto 0 0; }
.demo-pop .btn { padding: 7px 12px; font-size: 0.85rem; }
.demo-pop .target { font-size: 0.78rem; color: var(--ht-muted); margin-bottom: 6px; }
.demo-hint { display: flex; align-items: center; gap: 8px; margin-top: var(--s3); font-size: 0.88rem; color: var(--fg-muted); }
.demo-hint .pin.inline { width: 20px; height: 20px; }
.demo-hint .pin.inline > span { font-size: 10px; }
@media (max-width: 560px) {
  .dp-hero { grid-template-columns: 1fr; }
  .dp-img { display: none; }
  .dp-links { display: none; }
  .dp-prices div { padding: 12px 12px 14px; }
  .demo-pop { width: min(260px, calc(100% - 16px)); }
}

/* Dark scheme: tokens only */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1420; --bg-alt: #161D2B; --fg: #F3F4F6; --fg-2: #CBD2DC; --fg-muted: #98A2B3; --line: #273041; --surface: #161D2B; --tint: #3A1F16;
    --ht-tint: #3A1F16; --ht-tint-strong: #6B2C17; color-scheme: dark;
  }
  :root:not([data-theme="light"]) .status { color: #FF9B78; }
  :root:not([data-theme="light"]) .status.done { background: #12301F; color: #6CD39D; }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1420; --bg-alt: #161D2B; --fg: #F3F4F6; --fg-2: #CBD2DC; --fg-muted: #98A2B3; --line: #273041; --surface: #161D2B; --tint: #3A1F16;
  --ht-tint: #3A1F16; --ht-tint-strong: #6B2C17;
}

h2 + .lede, h2 + p { margin-top: var(--s4); }

/* Before / after */
.mail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 0.95rem; color: var(--fg-2); box-shadow: 0 10px 30px -18px rgba(17,24,39,.3); overflow: hidden; }
.mail-subject { padding: 16px 20px 10px; font-size: 1.15rem; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.mail-from { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 4px 20px 14px; border-bottom: 1px solid var(--line); }
.mail-from .avatar { width: 36px; height: 36px; font-size: 13px; }
.mail-who b { color: var(--fg); font-weight: 600; }
.mail-addr { color: var(--fg-muted); font-size: 0.85rem; }
.mail-to { color: var(--fg-muted); font-size: 0.85rem; margin-top: 2px; }
.mail-time { color: var(--fg-muted); font-size: 0.82rem; white-space: nowrap; }
.mail-body { padding: 16px 20px 4px; }
.mail-body p { margin-bottom: 12px; }
.mail-attach { display: inline-flex; align-items: center; gap: 10px; margin: 0 20px 18px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 0.85rem; color: var(--fg-2); }
.mail-attach b { color: var(--fg); font-weight: 600; }
.mail-file { font: 700 0.65rem/1 var(--font); color: #fff; background: #B54708; border-radius: 4px; padding: 6px 5px; }
.threads { display: grid; gap: var(--s4); justify-items: start; }
.threads .comment { width: 100%; max-width: 440px; }
.threads .comment:nth-child(2) { margin-left: clamp(0px, 4vw, 40px); }

/* Environments list */
.envs { display: grid; gap: 10px; }
.env { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.env .url { font-weight: 600; color: var(--fg); }
.env > span:last-child { color: var(--fg-muted); font-size: 0.93rem; }

/* What each comment carries */
.anatomy { margin: var(--s6) 0 0; display: grid; gap: var(--s5); }
.anatomy div { padding-left: var(--s5); border-left: 2px solid var(--line); }
.anatomy dt { font-weight: 600; margin-bottom: 4px; }
.anatomy dd { margin: 0; color: var(--fg-2); }
.shot { margin: 0; position: relative; padding-bottom: var(--s7); }
.shot-img { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); box-shadow: 0 30px 60px -30px rgba(17,24,39,.3); }
.mini { background: #FBFAF7; border-radius: 6px; padding: 18px 20px 22px; border: 1px solid #ECE8DF; }
.mini > div, .mini i { background: #E2DDD2; border-radius: 3px; }
.mini-bar { height: 8px; width: 30%; margin-bottom: 26px; background: #1F4D45 !important; opacity: .7; }
.mini-h { height: 18px; width: 72%; margin-bottom: 12px; background: #CFC8BA !important; }
.mini-p { height: 8px; width: 84%; margin-bottom: 8px; }
.mini-p.short { width: 58%; margin-bottom: 20px; }
.mini-btn { height: 30px; width: 120px; background: #1F4D45 !important; border-radius: 4px !important; margin-bottom: 28px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: none !important; }
.mini-grid i { height: 46px; display: block; }
.shot .comment { position: absolute; right: -8px; bottom: 0; width: min(320px, 90%); }
@media (max-width: 960px) { .shot .comment { right: 8px; } }

/* Steps (a real sequence) */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.steps li { counter-increment: step; position: relative; padding-top: var(--s7); border-top: 2px solid var(--fg); }
.steps .pin.inline { position: absolute; top: 14px; left: 2px; width: 26px; height: 26px; margin: 0; }
.steps h3 { margin-bottom: var(--s2); }
.steps p { color: var(--fg-2); margin: 0; }
.steps-foot { margin-top: var(--s6); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Integrations band */
.integ h3 { margin-bottom: var(--s3); }
.integ > p { color: var(--fg-2); }
.issue { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin: var(--s5) 0 var(--s4); font-size: 0.92rem; }
.issue-id { font-family: var(--mono); font-size: 0.82rem; color: var(--fg-muted); }
.issue-title { font-weight: 500; flex: 1; min-width: 12rem; }
.term { margin: var(--s5) 0 var(--s3); padding: var(--s4) var(--s5); background: #0B1019; border: 1px solid var(--line); border-radius: var(--r-md); color: #E5E7EB; font: 0.8rem/1.7 var(--mono); overflow-x: auto; white-space: pre; }
.term .t-dim { color: #8A94A6; }
.section-ink .status.done { background: #12301F; color: #6CD39D; }
.plans-foot { margin-top: var(--s5); }
.plans { max-width: 760px; }

/* Review aid: open any page with ?tbc to outline claims that need confirming before ads run */
html.show-tbc [data-tbc] { outline: 2px dashed #C11574; outline-offset: 4px; position: relative; }
html.show-tbc .tbc-tag { position: absolute; z-index: 30; top: -6px; left: 0; transform: translateY(-100%); background: #C11574; color: #fff; font: 600 11px/1.3 var(--font); padding: 3px 6px; border-radius: 4px; max-width: 280px; width: max-content; text-align: left; letter-spacing: 0; text-transform: none; pointer-events: none; }
.tbc-tag { display: none; }
html.show-tbc .tbc-tag { display: block; }
@media (max-width: 560px) { .env-tag { display: none; } h1 { font-size: 2.2rem; } }

/* Routes list (homepage) */
.routes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.routes li { border-bottom: 1px solid var(--line); }
.routes a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--s5); padding: var(--s5) 0; text-decoration: none; color: inherit; }
.routes h3 { grid-column: 1; }
.routes p { grid-column: 1; margin: 0; color: var(--fg-2); max-width: 52ch; }
.routes .route-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; color: var(--ht-action); font-size: 0.95rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.routes a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .routes a { grid-template-columns: 1fr; } .routes .route-link { grid-column: 1; grid-row: auto; margin-top: 6px; } }
.section-ink .routes .route-link { color: #FF9B78; }
.plans.plans-3 { max-width: none; }
.plan-flag { display: inline-block; margin-left: 6px; font-size: 0.75rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--fg); color: var(--bg); vertical-align: 2px; letter-spacing: 0; }
.also { padding-top: var(--s7); background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.section-tight:has(.also) { padding-bottom: 0; }
.also h3 { margin-bottom: var(--s2); }
.also p { color: var(--fg-2); max-width: 52ch; margin: 0; }

.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Closing: CTA beside a resolved thread */
.closing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--s7); align-items: center; }
.closing-copy h2 { margin-bottom: var(--s5); }
.closing-thread { margin: 0; display: grid; gap: var(--s5); justify-items: start; }
.ct-target { position: relative; margin: 14px 0 0 14px; }
.ct-btn { display: inline-block; font: 600 0.95rem/1 system-ui, sans-serif; background: #1F4D45; color: #fff; padding: 12px 16px; border-radius: 4px; }
.ct-target .pin { top: -22px; right: -26px; }
.closing-thread .comment { width: 100%; max-width: 340px; }
.closing-thread .status { margin-left: auto; }
@media (max-width: 860px) { .closing-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s7); } }

.site-footer .legal { flex-basis: 100%; font-size: 0.82rem; line-height: 1.5; color: var(--fg-muted); margin: 0; max-width: 90ch; }
.site-footer .legal p { margin: 0 0 4px; }
.site-footer .legal a { color: inherit; text-decoration: underline; }

/* Ad-measurement consent */
.ad-consent { position: fixed; z-index: 60; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 400px; max-width: calc(100vw - 32px); background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 16px 40px -16px rgba(17,24,39,.35); padding: 14px 16px; font-size: 0.9rem; }
.ad-consent p { margin: 0 0 12px; color: var(--fg-2); text-wrap: pretty; }
.ad-consent p a { color: inherit; }
.consent-choose { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.consent-choose label { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.86rem; color: var(--fg-2); text-wrap: pretty; cursor: pointer; }
.consent-choose input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ht-action); }
.consent-choose b { display: block; color: var(--fg); font-weight: 600; }
.consent-link { margin-right: auto; background: none; border: 0; padding: 4px 0; font: 500 0.9rem/1 var(--font); color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
@media (max-width: 480px) { .ad-consent { right: 16px; width: auto; max-width: none; } }

.note-face { position: relative; overflow: hidden; }
.note-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-consent [hidden], .ad-consent[hidden] { display: none !important; }

/* Dark mode: dim the light mock browser so it doesn't glare */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .browser { filter: brightness(0.82) contrast(1.02); border-color: var(--line); }
  :root:not([data-theme="light"]) .shot-img .mini { filter: brightness(0.82); }
}
:root[data-theme="dark"] .browser { filter: brightness(0.82) contrast(1.02); }
