/* Inner pages (src/layouts/Page.astro): the same company as the homepage, set for reading.
   Tokens come from base.css; motion numbers from transitions.dev (cubic-bezier(0.22,1,0.36,1)). */
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--btn); color: var(--accent-ink); font-weight: 600; text-decoration: none; transition: top .2s var(--ease-out); }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- The top of the page */
.phero { padding-block: clamp(24px, 4vw, 56px) clamp(36px, 5vw, 72px); }
.phero.has-demo { padding-bottom: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 clamp(18px, 2.4vw, 30px); padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; margin-right: 4px; }
.crumbs a { text-decoration: none; transition: color .18s ease; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.phero-grid { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.phero.has-demo .phero-grid { grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr); }
.phero.has-glance .phero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
.phero h1 { max-width: 17ch; font-size: clamp(40px, 5.1vw, 76px); font-weight: 800; line-height: .98; letter-spacing: -0.04em; }
.phero.kind-legal h1, .phero.kind-company h1 { max-width: 20ch; font-size: clamp(38px, 4.4vw, 64px); }
.phero .lead { margin-top: 22px; max-width: 46ch; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; }
.phero .cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.phero .price { margin-top: 16px; font-size: 16px; color: var(--muted); }
.stamp { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.stamp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }

/* A comparison's summary beside the heading: Talkativ's column is the lit one */
.glance { padding: 8px; }
.glance table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15.5px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.glance th, .glance td { padding: 12px 14px; text-align: left; vertical-align: top; }
.glance thead th { font-size: 14px; font-weight: 700; color: var(--muted); }
.glance thead th:nth-child(2) { color: var(--accent); }
.glance tbody th { font-weight: 600; color: var(--muted); width: 30%; }
.glance tbody tr + tr > * { border-top: 1px solid var(--line); }
.glance td:nth-child(2) { background: var(--accent-soft); font-weight: 600; }
.glance tbody tr:first-child td:nth-child(2) { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.glance tbody tr:last-child td:nth-child(2) { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.glance-note { padding: 10px 14px 8px; font-size: 14px; color: var(--muted); }

/* ---- The body: the words on the left at reading width, a quiet column on the right */
.pbody { padding-block: clamp(8px, 2vw, 24px) clamp(56px, 7vw, 104px); }
.pbody-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); }
.side-in { display: grid; gap: 22px; }
.toc p { margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 1px solid var(--line); font-size: 15px; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color .18s ease, border-color .18s ease; }
.toc a:hover, .toc a.here { color: var(--ink); border-left-color: var(--ink); }
.side-card { display: grid; gap: 14px; padding: 22px; border-radius: 22px; background: var(--surface); box-shadow: 0 1px 2px rgba(20,24,36,.04), 0 12px 32px -18px rgba(20,24,36,.18); }
.side-name { display: flex; align-items: center; gap: 12px; }
.side-name img { border-radius: 10px; }
.side-name span { display: grid; font-size: 14px; color: var(--muted); line-height: 1.3; }
.side-name b { font-size: 17px; color: var(--ink); }
.side-line { font-size: 15.5px; line-height: 1.45; }
.side-card .btn { width: 100%; }
.side-price { font-size: 14px; color: var(--muted); text-align: center; }
@media (max-width: 1060px) { .pbody-grid { grid-template-columns: minmax(0, 1fr); } .side { display: none; } }

/* ---- Words set for reading */
.prose { max-width: 70ch; font-size: 18px; line-height: 1.68; }
.prose > * + * { margin-top: 1em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.1em; font-size: clamp(28px, 2.5vw, 38px); font-weight: 750; line-height: 1.1; letter-spacing: -0.03em; scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.7em; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; scroll-margin-top: 96px; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); transition: text-decoration-color .18s ease; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { font-weight: 650; }
.prose ul, .prose ol { padding: 0; list-style: none; display: grid; gap: .45em; }
.prose li { position: relative; padding-left: 1.6em; }
.prose ul > li::before { content: ""; position: absolute; left: .35em; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: .1em; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .78em; font-weight: 750; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.prose li > ul, .prose li > ol { margin-top: .45em; }
.prose blockquote { margin-inline: 0; padding: 22px 26px; border-radius: 20px; background: var(--surface); font-size: 1.12em; line-height: 1.5; font-weight: 500; }
.prose blockquote p + p { margin-top: .7em; }
.prose hr { margin-block: 2.4em; border: 0; height: 1px; background: var(--line); }
.prose code { font: 500 .88em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; padding: .12em .4em; border-radius: 6px; background: var(--field); }
.prose pre { overflow-x: auto; padding: 18px 20px; border-radius: 16px; background: var(--field); }
.prose pre code { padding: 0; background: none; }
.prose img { border-radius: 16px; }
/* Tables: comparisons read across; on a phone they scroll sideways inside themselves */
.prose .tbl-scroll { overflow-x: auto; border-radius: 18px; background: var(--surface); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 13px 16px; text-align: left; vertical-align: top; }
.prose thead th { font-size: 14.5px; font-weight: 700; color: var(--muted); background: var(--field); white-space: nowrap; }
.prose tbody tr + tr > * { border-top: 1px solid var(--line); }
.prose tbody td:first-child { font-weight: 600; }
@media (max-width: 700px) { .prose table { min-width: 560px; } }
.prose.kind-legal { font-size: 17px; }
.prose.kind-legal h2 { font-size: clamp(24px, 2vw, 30px); }

/* ---- Questions, grouped on the questions page */
.qa-groups { display: grid; gap: 36px; }
.qa-group-h { margin-bottom: 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; scroll-margin-top: 96px; }
.pfaq.grouped .faq-grid { grid-template-columns: minmax(0, 3.4fr) minmax(0, 8.6fr); }

/* ---- Keep reading */
.related h2 { font-size: clamp(28px, 2.6vw, 38px); }
.rel { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rel a { height: 100%; display: grid; align-content: start; gap: 8px; padding: 22px 24px; border-radius: 20px; background: var(--surface); text-decoration: none; transition: transform .2s var(--ease-out), box-shadow .2s ease; }
.rel a:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(20,24,36,.35); }
.rel b { font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; }
.rel span { font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.related .lane, .related + .final { margin-top: 0; }
.related { padding-bottom: clamp(56px, 7vw, 104px); }

/* ---- Hubs (/use-cases, /compare) */
.hub-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hub-list a { height: 100%; display: grid; gap: 8px; padding: 26px 28px; border-radius: 22px; background: var(--surface); text-decoration: none; transition: transform .2s var(--ease-out), box-shadow .2s ease; }
.hub-list a:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(20,24,36,.35); }
.hub-list b { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.hub-list span { font-size: 16px; line-height: 1.5; color: var(--muted); }
.hub-group + .hub-group { margin-top: clamp(40px, 5vw, 64px); }
.hub-group h2 { margin-bottom: 20px; font-size: clamp(26px, 2.4vw, 34px); }

@media (max-width: 900px) {
  .phero.has-demo .phero-grid, .phero.has-glance .phero-grid { grid-template-columns: minmax(0, 1fr); }
  .rel, .hub-list { grid-template-columns: minmax(0, 1fr); }
  .pfaq.grouped .faq-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .prose { font-size: 17px; }
  .prose th, .prose td { padding: 11px 12px; }
}
/* a long heading (a question, a comparison) steps down a size so it stays two or three lines */
.phero h1.long { max-width: 22ch; font-size: clamp(36px, 4.1vw, 60px); line-height: 1.02; }
.phero .price .link { margin-left: 6px; white-space: nowrap; }
.phero.has-demo .phero-copy { padding-block: clamp(8px, 2vw, 32px); }

/* ---- The cookie question: a small card, bottom left; "no" is as easy as "yes" */
.consent { position: fixed; z-index: 60; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(392px, calc(100vw - 32px));
  display: grid; gap: 10px; padding: 18px 20px; border-radius: 20px; background: var(--surface); color: var(--ink);
  box-shadow: 0 2px 6px rgba(20,24,36,.06), 0 24px 48px -20px rgba(20,24,36,.35);
  opacity: 0; transform: translateY(12px); filter: blur(2px); transition: opacity .25s cubic-bezier(.22,1,.36,1), transform .25s cubic-bezier(.22,1,.36,1), filter .25s cubic-bezier(.22,1,.36,1); }
.consent.in { opacity: 1; transform: none; filter: none; }
.consent.leaving { opacity: 0; transform: translateY(8px); transition-duration: .15s; }
.consent-q { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.consent-t { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.consent-t a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.consent-b { display: flex; gap: 10px; margin-top: 4px; }
.consent-b .btn { flex: 1; }
.r4 .consent .consent-no { background: var(--step); color: var(--ink); }
.r4 .consent .consent-no:hover { background: color-mix(in srgb, var(--step) 85%, var(--ink)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .consent { box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px rgba(0,0,0,.7); } }
:root[data-theme="dark"] .consent { box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px rgba(0,0,0,.7); }

/* ---- "Email me the download link" (download page, phones) */
.sendlink { margin-top: 18px; display: grid; gap: 10px; }
.sendlink label { font-size: 15px; font-weight: 600; }
.sl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sl-row input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); font: 400 17px var(--font); }
.sl-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sl-row .btn { flex: 0 0 auto; }
.sl-row .btn:disabled { opacity: .6; cursor: progress; }
.sl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sl-note { font-size: 14.5px; color: var(--muted); }
.sl-msg:empty { display: none; }
.sl-msg { font-size: 15.5px; font-weight: 600; }
.sl-msg.ok { color: var(--green); } .sl-msg.err { color: var(--red); }
.sl-share { justify-self: start; padding: 0; border: 0; background: none; font: 600 15px var(--font); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.dl-pick { margin-top: 28px; display: grid; gap: 14px; }
.dl-pick .cta { margin-top: 0; }
.dl-phone { font-size: 17px; }
.r4 .dl-pick .btn.soon { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (max-width: 560px) {
  .consent { gap: 8px; padding: 14px 16px; border-radius: 18px; }
  .consent-q { font-size: 16px; } .consent-t { font-size: 13.5px; }
}

/* ---- Top bar: Product menu (minimal bar, founder 05-11) */
.nav-links { align-items: center; }
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; transition: color .18s ease; }
.nav-drop-btn:hover, .nav-drop-btn[aria-expanded="true"] { color: var(--ink); }
.nav-drop-btn svg { width: 15px; height: 15px; transition: transform .25s cubic-bezier(.22,1,.36,1); }
.nav-drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-drop-menu { position: absolute; top: calc(100% + 10px); left: -16px; z-index: 30; width: 300px; display: grid; gap: 2px; padding: 8px; border-radius: 18px; background: var(--surface);
  box-shadow: 0 2px 6px rgba(20,24,36,.06), 0 22px 44px -18px rgba(20,24,36,.35); transform-origin: 24px 0; animation: dropIn .22s cubic-bezier(.22,1,.36,1); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.nav-drop-menu a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 12px; text-decoration: none; transition: background-color .15s ease; }
.nav-drop-menu a:hover, .nav-drop-menu a:focus-visible { background: var(--step); }
.nav-drop-menu b { font-size: 15.5px; font-weight: 650; color: var(--ink); }
.nav-drop-menu span { font-size: 13.5px; color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-drop-menu { box-shadow: 0 0 0 1px var(--line), 0 22px 44px -18px rgba(0,0,0,.7); } }
:root[data-theme="dark"] .nav-drop-menu { box-shadow: 0 0 0 1px var(--line), 0 22px 44px -18px rgba(0,0,0,.7); }
/* Phone menu: Product as a small heading over its links */
.sheet-links .sheet-h { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.sheet-links a.sub { padding: 9px 0 9px 14px; font-size: 18px; font-weight: 500; }

/* ---- Light/dark switch: a moon while the page is light (click for dark), a sun while it is dark (click for light) */
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.theme-btn svg { animation: iconIn .3s cubic-bezier(.22,1,.36,1); }
@keyframes iconIn { from { opacity: 0; transform: rotate(-40deg) scale(.7); } }
@media (prefers-reduced-motion: reduce) { .theme-btn svg { animation: none; } }
.foot-legal { margin-top: 10px; padding-bottom: 28px; font-size: 13px; color: var(--muted); }

/* How to use (06-11-2026): a tutorial animation inside the article, the mic dot's colours, and a Smart Edits before and after */
.prose .tut { margin: 1.6em 0; }
.prose .tut .kit { border-radius: 18px; background: var(--surface); }
.prose figcaption { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.prose .dot-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.prose .dot-legend li { padding: 12px 14px; display: flex; align-items: center; gap: 10px; border-radius: 14px; background: var(--surface); font-size: 16px; line-height: 1.3; }
.prose .dot-legend li::before { display: none; }
.prose .dot-legend i { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.9), 0 0 0 1px var(--line); }
.prose .dot-legend b { display: block; }
.d-idle { background: #2B2B2E; } .d-red { background: #DC2626; } .d-blue { background: #2C5BE0; } .d-green { background: #22C55E; }
.prose .se-pair { margin: 1.6em 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.prose .se-pair figcaption { grid-column: 1 / -1; margin-top: 0; }
.se-card { padding: 18px 20px; border-radius: 18px; background: var(--surface); font-size: 16px; line-height: 1.55; }
.se-card p + p { margin-top: .6em; }
.se-card:not(.se-out) p:not(.se-label) { color: var(--muted); }
.se-out { box-shadow: inset 0 0 0 1.5px var(--genius-soft); }
.se-label { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.se-out .se-label { color: var(--genius); }
@media (max-width: 720px) { .prose .dot-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prose .se-pair { grid-template-columns: minmax(0, 1fr); } }
