/* Sell By Chat: marketing site and blog.
   Color carries meaning: brass = your words and drafts, crimson = actions you take,
   sage = booked. Schibsted Grotesk sets the site; Newsreader sets long-form reading. */
:root {
  color-scheme: dark;
  --ground: #151413;
  --surface: #1d1c1a;
  --surface-2: #252320;
  --rule: #33302b;
  --rule-hi: #4a463f;
  --text: #eee9e0;
  --text-2: #aca69b;
  --text-3: #8b8579;
  --brass: #d9b44a;
  --brass-soft: #2b2416;
  --brass-line: #5b4b23;
  --crimson: #c8173f;
  --crimson-hi: #de2350;
  --sage: #8fc4a0;
  --sage-soft: #16241b;
  --sans: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --max: 1160px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  font-size-adjust: from-font;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--brass); color: #1a1408; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
h2 { font-size: clamp(36px, 5.2vw, 60px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
p { text-wrap: pretty; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--brass); color: #1a1408; padding: 8px 12px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 54ch; }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }
.kicker { font-size: 15px; font-weight: 600; color: var(--brass); letter-spacing: -0.005em; }

section { padding-block: clamp(80px, 11vw, 144px); scroll-margin-top: 64px; }
.head { display: grid; gap: 18px; max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }

/* Buttons: crimson is reserved for the one action on screen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 16px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-hi); }
.btn-quiet { color: var(--text); border-color: var(--rule-hi); background: transparent; }
.btn-quiet:hover { border-color: var(--text-3); background: var(--surface); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 9px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  view-transition-name: site-nav;
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface); }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-copy { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(54px, 6.6vw, 94px); line-height: 0.9; letter-spacing: -0.05em; }
.hero h1 span { display: block; color: var(--text-2); }
.promises { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; font-size: 15px; color: var(--text-2); }
.promises li { display: inline-flex; align-items: center; gap: 8px; }
.promises svg { width: 16px; height: 16px; color: var(--sage); }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } }

/* The demo: a LinkedIn thread with the panel's read and composer */
.demo { padding: 0; border: 1px solid var(--rule-hi); border-radius: 18px; background: var(--surface); overflow: hidden; box-shadow: 0 40px 80px -48px #000; }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--text-3); }
.demo-bar img { width: 18px; height: 18px; border-radius: 5px; margin-left: auto; }
.demo-who { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #3a2229; color: #f2b8c6; font-weight: 700; font-size: 13px; flex: none; }
.demo-who b { display: block; font-size: 15px; line-height: 1.2; }
.demo-who small { font-size: 13px; color: var(--text-3); }
.thread { display: flex; flex-direction: column; gap: 8px; padding: 4px 18px 18px; min-height: 168px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.msg.them { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; }
.msg.me { align-self: flex-end; background: var(--brass-soft); border: 1px solid var(--brass-line); border-bottom-right-radius: 5px; }
.msg.sent { animation: land .35s cubic-bezier(.2,.8,.2,1); }
@keyframes land { from { opacity: 0; translate: 0 12px; } }
.read { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 18px; border-block: 1px solid var(--rule); background: var(--ground); font-size: 14px; color: var(--text-2); }
.read b { color: var(--text); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; background: var(--brass-soft); color: var(--brass); border: 1px solid var(--brass-line); }
.chip.booked { background: var(--sage-soft); color: var(--sage); border-color: #2c4434; }
.styles { display: flex; gap: 6px; padding: 14px 18px 0; margin: 0; border: 0; }
.styles legend { float: left; margin-right: 6px; font-size: 13px; color: var(--text-3); align-self: center; padding: 8px 0; }
.styles label { position: relative; }
.styles input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.styles span { display: block; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--rule-hi); font-size: 14px; font-weight: 600; color: var(--text-2); }
.styles input:checked + span { color: var(--brass); border-color: var(--brass-line); background: var(--brass-soft); }
.styles input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin: 12px 18px 0; padding: 14px; border: 1px solid var(--rule-hi); border-radius: 12px; background: var(--ground); }
.composer output { display: block; min-height: 3em; font-size: 15px; line-height: 1.5; }
.composer output.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -3px; background: var(--brass); }
.composer small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.send { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--crimson); color: #fff; font: 600 15px var(--sans); cursor: pointer; }
.send:hover { background: var(--crimson-hi); }
.send:disabled { background: var(--surface-2); color: var(--text-3); cursor: default; }
.demo-foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 18px 16px; font-size: 13.5px; color: var(--text-3); min-height: 52px; }
.demo-foot button { background: none; border: 0; padding: 4px 0; color: var(--text-2); font: 500 13.5px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.invite { display: flex; align-items: center; gap: 12px; margin: 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--sage-soft); border: 1px solid #2c4434; font-size: 14px; animation: land .35s .15s cubic-bezier(.2,.8,.2,1) backwards; }
.invite svg { width: 20px; height: 20px; color: var(--sage); flex: none; }
.invite small { display: block; color: var(--text-2); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .msg.sent, .invite { animation: none; } }

/* Stage track: a real sequence, so it is numbered */
.track { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, .9fr); border-top: 1px solid var(--rule); counter-reset: stage; }
.track li { counter-increment: stage; position: relative; display: grid; gap: 10px; align-content: start; padding: 26px 22px 6px 0; }
.track li::before { content: counter(stage); font-size: 13px; font-weight: 700; color: var(--text-3); }
.track li::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--rule-hi); }
.track h3 { font-size: 20px; }
.track p { font-size: 15px; color: var(--text-2); }
.track .signal { color: var(--text); font-weight: 500; }
.track .now::after { background: var(--brass); box-shadow: 0 0 0 4px var(--brass-soft); }
.track .now h3 { color: var(--brass); }
.track .won::after { background: var(--sage); }
.track .won h3 { color: var(--sage); }
.track .aside { padding-left: 22px; border-left: 1px dashed var(--rule-hi); }
.track .aside::before { content: "Any time"; }
.track .aside::after { display: none; }
@media (max-width: 980px) {
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; gap: 0 24px; }
  .track li { border-top: 1px solid var(--rule); }
  .track .aside { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) { .track { grid-template-columns: 1fr; } }

/* Feature rows with real screenshots */
.rows { display: grid; gap: clamp(72px, 10vw, 120px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.row.flip .row-copy { order: 2; }
.row-copy { display: grid; gap: 20px; max-width: 480px; }
.row-copy h3 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.04em; line-height: 1; }
.row-copy ul { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.row-copy li { padding: 13px 0 13px 22px; border-bottom: 1px solid var(--rule); color: var(--text-2); font-size: 16px; position: relative; }
.row-copy li::before { content: ""; position: absolute; left: 0; top: 22px; width: 8px; height: 2px; background: var(--brass); }
.row-copy li b { color: var(--text); font-weight: 600; }
.shot { height: 520px; overflow: hidden; border-radius: 18px; background: var(--surface); border: 1px solid var(--rule); display: grid; justify-items: center; padding-top: 40px;
  mask-image: linear-gradient(#000 78%, transparent); }
.shot img { width: min(320px, 82%); border-radius: 14px; border: 1px solid var(--rule-hi); }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } .row.flip .row-copy { order: 0; } .shot { height: 440px; } }

/* Principle band */
.principle { border-block: 1px solid var(--rule); background: var(--surface); }
.principle .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.principle h2 { font-size: clamp(44px, 6.4vw, 84px); line-height: .92; letter-spacing: -0.05em; }
.principle h2 .send-word { display: inline-block; padding: 0 .18em .06em; border-radius: .2em; background: var(--crimson); color: #fff; }
.reasons { list-style: none; padding: 0; display: grid; gap: 28px; }
.reasons h3 { font-size: 19px; margin-bottom: 6px; }
.reasons p { color: var(--text-2); }
@media (max-width: 860px) { .principle .wrap { grid-template-columns: 1fr; } }

/* Comparison */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--rule-hi); }
table { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 16px; }
th, td { text-align: left; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: 15px; font-weight: 700; padding-top: 18px; }
thead th.us { color: var(--brass); }
tbody th { font-weight: 500; color: var(--text-2); width: 24%; }
td.us { color: var(--text); }
td:not(.us) { color: var(--text-2); }
.yes { color: var(--sage); font-weight: 600; }
.nope { color: var(--text-3); font-weight: 600; }
.note { margin-top: 18px; font-size: 14px; color: var(--text-3); max-width: 78ch; }

/* Pricing: two plain columns, the live plan carries the weight */
.plans { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border-top: 1px solid var(--rule-hi); }
.plan { padding: 32px 40px 8px 0; display: grid; gap: 16px; align-content: start; }
.plan + .plan { padding-left: 40px; border-left: 1px solid var(--rule); }
.plan h3 { font-size: 18px; }
.price { font-size: clamp(64px, 8vw, 96px); font-weight: 800; letter-spacing: -0.06em; line-height: .9; }
.price small { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.plan.soon .price { color: var(--text-3); font-size: clamp(40px, 5vw, 56px); }
.plan ul { list-style: none; padding: 0; display: grid; gap: 8px; color: var(--text-2); }
.plan li::before { content: "+ "; color: var(--brass); font-weight: 700; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan + .plan { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

/* Blog lists */
.posts { list-style: none; padding: 0; border-top: 1px solid var(--rule-hi); }
.post-row a { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.post-row .cat { font-size: 14px; font-weight: 600; color: var(--brass); }
.post-row h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.03em; transition: color .15s; }
.post-row p { grid-column: 2; font: 400 18px/1.5 var(--serif); color: var(--text-2); max-width: 62ch; }
.post-row .meta { font-size: 14px; color: var(--text-3); white-space: nowrap; }
.post-row a:hover h3 { color: var(--brass); }
@media (max-width: 760px) {
  .post-row a { grid-template-columns: 1fr; }
  .post-row p { grid-column: auto; }
}
.featured { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: end; padding-block: 8px 48px; text-decoration: none; }
.featured h2 { font-size: clamp(40px, 6vw, 76px); line-height: .94; letter-spacing: -0.045em; margin-top: 14px; transition: color .15s; }
.featured:hover h2 { color: var(--brass); }
.featured p { font: 400 20px/1.55 var(--serif); color: var(--text-2); }
.featured .meta { display: flex; gap: 16px; margin-top: 16px; font-size: 14px; color: var(--text-3); }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--rule-hi); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); rotate: 45deg; translate: 0 -3px; transition: rotate .2s; }
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq details p { color: var(--text-2); padding: 0 40px 24px 0; max-width: 64ch; }

/* Install */
.install .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.install h2 { font-size: clamp(44px, 6vw, 76px); letter-spacing: -0.05em; line-height: .92; }
.steps { list-style: none; padding: 0; counter-reset: s; border-top: 1px solid var(--rule-hi); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s); grid-row: span 2; font-size: 28px; font-weight: 800; letter-spacing: -0.04em; color: var(--brass); line-height: 1; }
.steps b { font-weight: 600; font-size: 18px; }
.steps span { color: var(--text-2); font-size: 16px; }
.steps code { font-size: 14px; padding: 1px 6px; border-radius: 5px; background: var(--surface-2); color: var(--text); user-select: all; }
@media (max-width: 860px) { .install .wrap { grid-template-columns: 1fr; } }

/* Footer */
footer { border-top: 1px solid var(--rule); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--text-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer .brand { font-size: 16px; }
footer .brand img { width: 24px; height: 24px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
footer nav a { color: var(--text-2); text-decoration: none; }
footer nav a:hover { color: var(--text); }

/* Article pages */
.article-head { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); }
.article-head .wrap, .article-body { max-width: 760px; }
.back { display: inline-block; margin-bottom: 32px; font-size: 15px; color: var(--text-2); text-decoration: none; }
.back:hover { color: var(--text); }
.article-head h1 { font-size: clamp(42px, 6.4vw, 72px); line-height: .96; letter-spacing: -0.045em; margin: 14px 0 24px; }
.article-head .lead { font-family: var(--serif); font-size: clamp(20px, 2vw, 23px); line-height: 1.5; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--text-3); }
.prose { display: grid; gap: 24px; padding-bottom: 56px; font: 400 20px/1.72 var(--serif); font-size-adjust: from-font; color: #ddd7cc; }
.prose h2 { font-family: var(--sans); font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.035em; line-height: 1.1; color: var(--text); margin-top: 20px; }
.prose ul { padding-left: 22px; display: grid; gap: 10px; }
.prose li::marker { color: var(--brass); }
.prose b, .prose strong { color: var(--text); font-weight: 600; }
.prose .aside-note { font: 400 15px/1.5 var(--sans); color: var(--text-3); }
.dm { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); font-family: var(--sans); }
.dm figcaption { font-size: 13px; color: var(--text-3); }
.dm .msg { font-size: 16px; justify-self: start; }
.dm .msg.me { justify-self: end; }
.cta-strip { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-top: 16px; padding: 24px 0; border-block: 1px solid var(--rule-hi); font-family: var(--sans); }
.cta-strip p { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; color: var(--text); }
.more-posts { border-top: 1px solid var(--rule); padding-block: clamp(56px, 8vw, 96px); }
.more-posts h2 { font-size: 28px; margin-bottom: 24px; }

/* Interaction layer: motion that explains, never decorates for its own sake.
   Scroll effects are progressive: without support or with reduced motion, everything is simply visible. */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* Buttons and controls feel pressed */
.btn { transition: background-color .15s, border-color .15s, color .15s, box-shadow .25s, scale .12s var(--ease-out); }
.btn:active { scale: .97; }
.btn-primary:hover { box-shadow: 0 10px 24px -12px var(--crimson-hi); }
.btn svg { transition: rotate .3s var(--ease-spring); }
.btn:hover svg { rotate: 90deg; }
.send { transition: background-color .15s, scale .12s var(--ease-out); }
.send:active:not(:disabled) { scale: .95; }
.styles span { transition: color .15s, border-color .15s, background-color .15s; }
.styles label:hover input:not(:checked):not(:disabled) + span { border-color: var(--text-3); color: var(--text); }
.nav-links a { transition: color .15s, background-color .15s; }
.nav-links a:hover { background: var(--surface); }
.nav-links a[aria-current="location"] { color: var(--text); background: var(--surface); }

/* Mobile menu: a native popover, light-dismissable */
.menu-btn { display: none; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid var(--rule-hi); border-radius: 9px; background: transparent; color: var(--text); cursor: pointer; transition: background-color .15s, scale .12s var(--ease-out); }
.menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn:hover { background: var(--surface); }
.menu-btn:active { scale: .94; }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav .btn { margin-left: auto; }
  .nav .wrap { gap: 10px; }
  .nav .brand, .nav .btn { white-space: nowrap; }
}
@media (max-width: 400px) {
  .nav .btn-sm { padding: 0 12px; font-size: 14px; }
  .nav .brand { font-size: 17px; gap: 8px; }
}
.menu {
  inset: 72px var(--gutter) auto auto;
  width: min(300px, calc(100vw - 2 * var(--gutter)));
  margin: 0;
  padding: 8px;
  border: 1px solid var(--rule-hi);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 48px -20px #000;
  opacity: 0;
  translate: 0 -8px;
  transition: opacity .2s var(--ease-out), translate .2s var(--ease-out), display .2s, overlay .2s;
  transition-behavior: allow-discrete;
}
.menu:popover-open {
  display: grid;
  opacity: 1;
  translate: 0 0;
  @starting-style { opacity: 0; translate: 0 -8px; }
}
.menu::backdrop { background: #0000; transition: background-color .2s, display .2s, overlay .2s; transition-behavior: allow-discrete; }
.menu:popover-open::backdrop { background: #0006; @starting-style { background: #0000; } }
.menu a { padding: 12px 14px; border-radius: 9px; color: var(--text-2); text-decoration: none; font-size: 17px; font-weight: 500; }
.menu a:hover, .menu a[aria-current] { color: var(--text); background: var(--surface-2); }

/* Demo: typing indicator and responsive chip */
.msg.dots { display: inline-flex; gap: 4px; padding: 14px 16px; animation: land .3s var(--ease-out); }
.msg.dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1.1s ease-in-out infinite; }
.msg.dots span:nth-child(2) { animation-delay: .15s; }
.msg.dots span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; translate: 0 0; } 40% { opacity: 1; translate: 0 -3px; } }
.chip { transition: background-color .3s, color .3s, border-color .3s; }

/* Comparison table: keep the feature column in view while scrolling sideways */
tbody th, thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--ground); }
tbody tr { transition: background-color .15s; }
tbody tr:hover td, tbody tr:hover th { background-color: color-mix(in srgb, var(--surface) 70%, var(--ground)); }

/* Lists that invite a click */
.post-row h3 { transition: color .15s, translate .25s var(--ease-out); }
.post-row a:hover h3 { translate: 6px 0; }
.steps code { cursor: copy; position: relative; transition: background-color .15s; }
.steps code:hover { background: var(--rule-hi); }
.steps code[data-copied]::after { content: "Copied"; position: absolute; left: 50%; bottom: calc(100% + 6px); translate: -50% 0; padding: 3px 8px; border-radius: 6px; background: var(--sage-soft); color: var(--sage); font: 600 12px/1.4 var(--sans); white-space: nowrap; animation: land .25s var(--ease-out); }

/* Reading progress on articles */
.progress { display: none; }

@media (prefers-reduced-motion: reduce) {
  .menu, .menu:popover-open { translate: none; @starting-style { translate: none; } }
  .btn:hover svg, .post-row a:hover h3 { rotate: none; translate: none; }
  .btn:active, .send:active, .menu-btn:active { scale: none; }
  .msg.dots span { animation: none; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero arrives in sequence; the demo settles in last */
  .hero-copy > *, .demo { animation: land .7s var(--ease-out) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .demo { animation-delay: .3s; }

  /* Smooth FAQ open and close where intrinsic sizes can animate */
  @supports (interpolate-size: allow-keywords) and selector(::details-content) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease-out), content-visibility .35s; transition-behavior: allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }
  .faq summary::after { transition: rotate .3s var(--ease-spring), translate .3s var(--ease-spring); }

  @supports (animation-timeline: scroll()) and (animation-range: 0% 100%) {
    /* Nav gains depth once the page scrolls */
    .nav { animation: nav-lift linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    @keyframes nav-lift { to { border-bottom-color: var(--rule-hi); box-shadow: 0 12px 32px -22px #000; } }

    .progress { display: block; position: fixed; inset: 0 0 auto; z-index: 31; height: 2px; background: var(--brass); transform-origin: 0 50%; animation: read linear both; animation-timeline: scroll(root); }
    @keyframes read { from { scale: 0 1; } }
  }

  @supports (animation-timeline: view()) and (animation-range: entry) {
    /* Content rises into place as it enters the viewport */
    .head, .track li, .row-copy, .reasons li, .principle h2, .table-wrap, .plan, .post-row, .faq, .steps li, .featured {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    @keyframes reveal { from { opacity: 0; translate: 0 28px; } }
    .track li:nth-child(2) { animation-range: entry 10% entry 80%; }
    .track li:nth-child(3) { animation-range: entry 20% entry 90%; }
    .track li:nth-child(4) { animation-range: entry 30% entry 100%; }
    .track li:nth-child(5) { animation-range: entry 40% cover 30%; }
    .track li:nth-child(6) { animation-range: entry 50% cover 35%; }

    /* Screenshots drift inside their frames for a sense of depth */
    .shot { view-timeline: --shot; }
    .shot img { animation: drift linear both; animation-timeline: --shot; animation-range: cover; }
    @keyframes drift { from { translate: 0 36px; } to { translate: 0 -56px; } }

    /* The "Send" stamp settles as the principle band arrives */
    .principle h2 .send-word { animation: stamp linear both; animation-timeline: view(); animation-range: entry 40% cover 40%; }
    @keyframes stamp { from { scale: 1.25; rotate: -6deg; opacity: 0; } }
  }
}

/* Blog: covers, cards, contents and sharing.
   Token layers: brand colors above → semantic tones per post category → component tokens on each card. */
:root {
  --tone-playbook: var(--brass);
  --tone-product: #ef7d95;        /* crimson lifted to 4.5:1 for small text on the dark ground */
  --tone-comparison: var(--sage);
  --card-radius: 18px;
  --card-bg: var(--surface);
  --card-line: var(--rule);
  --card-line-hover: var(--rule-hi);
  --cover-ratio: 1200 / 630;
}
[data-tone="playbook"] { --tone: var(--tone-playbook); }
[data-tone="product"] { --tone: var(--tone-product); }
[data-tone="comparison"] { --tone: var(--tone-comparison); }

.cover { display: block; aspect-ratio: var(--cover-ratio); overflow: hidden; border-radius: var(--card-radius); border: 1px solid var(--card-line); background: var(--surface); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.tone-tag { font-size: 14px; font-weight: 650; color: var(--tone, var(--brass)); }

/* Blog index */
.blog-head .rss { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 15px; color: var(--text-2); text-decoration: none; }
.blog-head .rss:hover { color: var(--text); }
.blog-head .rss svg { width: 16px; height: 16px; color: var(--brass); }
.featured-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-bottom: clamp(48px, 7vw, 80px); text-decoration: none; }
.featured-card h2 { font-size: clamp(36px, 5vw, 64px); line-height: .96; letter-spacing: -0.045em; margin: 12px 0 18px; transition: color .15s; }
.featured-card p { font: 400 20px/1.55 var(--serif); color: var(--text-2); }
.featured-card .cover { transition: border-color .2s, translate .3s var(--ease-out); }
.featured-card:hover h2 { color: var(--tone); }
.featured-card:hover .cover { border-color: var(--card-line-hover); translate: 0 -4px; }
@media (max-width: 860px) { .featured-card { grid-template-columns: 1fr; } }

.card-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 3vw, 32px); }
.post-card a { display: grid; gap: 14px; height: 100%; padding-bottom: 24px; border-bottom: 1px solid var(--card-line); text-decoration: none; }
.post-card h3 { font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -0.03em; transition: color .15s; }
.post-card p { font: 400 17px/1.55 var(--serif); color: var(--text-2); }
.post-card .meta { display: flex; gap: 14px; font-size: 14px; color: var(--text-3); margin-top: auto; }
.post-card .cover { transition: border-color .2s, translate .3s var(--ease-out); }
.post-card a:hover h3 { color: var(--tone); }
.post-card a:hover .cover { border-color: var(--card-line-hover); translate: 0 -4px; }

/* Article */
.byline .share { display: flex; gap: 8px; margin-left: auto; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--rule-hi); border-radius: 8px; background: transparent; color: var(--text-2); font: 500 14px var(--sans); text-decoration: none; cursor: pointer; transition: color .15s, border-color .15s, background-color .15s, scale .12s var(--ease-out); }
.share-btn:hover { color: var(--text); border-color: var(--text-3); background: var(--surface); }
.share-btn:active { scale: .96; }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }
.share-status { flex-basis: 100%; min-height: 1.4em; font-size: 13px; color: var(--sage); text-align: right; }
@media (max-width: 560px) { .byline .share { margin-left: 0; } .share-status { text-align: left; } }

.article-cover { max-width: 1000px; margin-bottom: clamp(40px, 6vw, 64px); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr); column-gap: 48px; max-width: none; }
.article-layout > .prose { grid-column: 2; grid-row: 1; }
.toc { grid-column: 3; grid-row: 1; align-self: start; position: sticky; top: 96px; display: grid; gap: 2px; max-width: 220px; padding-left: 16px; border-left: 1px solid var(--rule); font-size: 14px; scroll-target-group: auto; }
.toc b { margin-bottom: 8px; font-size: 13px; font-weight: 650; color: var(--text-3); }
.toc a { position: relative; padding: 6px 0; color: var(--text-3); text-decoration: none; line-height: 1.35; transition: color .15s; }
.toc a:hover { color: var(--text); }
.toc a:is(:target-current, .target-current) { color: var(--text); font-weight: 600; }
.toc a:is(:target-current, .target-current)::before { content: ""; position: absolute; left: -17px; top: 6px; bottom: 6px; width: 2px; background: var(--brass); }
@media (max-width: 1180px) {
  .article-layout { grid-template-columns: minmax(0, 760px); justify-content: center; }
  .article-layout > .prose, .toc { grid-column: 1; grid-row: auto; }
  .toc { position: static; max-width: none; margin-bottom: 36px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
  .toc a:is(:target-current, .target-current)::before { display: none; }
}
.prose section { display: grid; gap: 24px; padding-block: 0; scroll-margin-top: 88px; }
.featured-card .meta { display: flex; gap: 16px; margin-top: 18px; font-size: 14px; color: var(--text-3); }

.more-posts .card-grid { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .featured-card:hover .cover, .post-card a:hover .cover { translate: none; }
  .share-btn:active { scale: none; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Covers morph between the blog index and the article (names are set per post in the markup) */
  ::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease-out); }
  @supports (animation-timeline: view()) and (animation-range: entry) {
    .post-card, .featured-card { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
