/* SHARED SHELL for every page in landing/.
   Lives here: fonts, tokens, body + paper grain, nav, footer, main.article prose,
               .btn + size variants (btn-md/lg) + .btn-accent,
               .lead, .toc, .table-wrap + tables, .card + .card-meta + .card-verdict,
               .faq-list (<details> accordion), .closing-cta.
   Does NOT live here: anything used by only one page (those go in landing/<slug>.css).
   No inline <style> blocks in HTML — see CLAUDE.md "Landing pages". */

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/caveat-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: "Caveat";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/caveat-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/bricolage-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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/bricolage-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
  --ink: #14130f;
  --ink-soft: #3a3833;
  --ink-mute: #756f63;
  --ink-faint: #b6ad9c;
  --paper: #f6f1e7;
  --paper-warm: #efe6d3;
  --line: #e2d6bb;
  --accent: #1f4ad6;
  --accent-deep: #173a9f;
  --accent-soft: #d6def9;
  --gold: #b88a3a;
  --display: "Bricolage Grotesque", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(31, 74, 214, 0.08), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(184, 138, 58, 0.10), transparent 65%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper grain - applied via pseudo-element so it doesn't intercept clicks */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: multiply;
}

main, nav, footer { position: relative; z-index: 1; }

/* Anchors default to accent blue with underline-on-hover. Any class
   (.btn, .nav-logo, .footer-links a, etc.) overrides via class specificity. */
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; }

/* ── NAV (matches landing) ────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 231, 0.78);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.nav-logo img {
  width: 26px;
  height: 26px;
  display: block;
}
.nav-logo .word {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 18px;
  color: var(--ink);
}
.nav-logo:hover { color: var(--accent); text-decoration: none; }
.nav-logo:hover .word { color: var(--accent); }

/* Nav link row. Hidden on mobile (every page collapses to logo-only). */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
:where(.nav-links) a {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  transition: color 0.2s;
}
:where(.nav-links) a:hover { color: var(--ink); }

/* ── MAIN CONTENT ─────────────────────────── */
main.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px;
}

main.article .eyebrow {
  font-family: var(--hand);
  font-size: 22px;
  color: var(--accent);
  transform: rotate(-1.5deg);
  display: inline-block;
  margin-bottom: 12px;
}

main.article h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.updated {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

main.article .shot {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

main.article h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 44px;
  margin-bottom: 14px;
}

main.article h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 10px;
}

main.article p {
  margin-bottom: 14px;
  color: var(--ink-soft);
}

main.article ul, main.article ol {
  margin: 10px 0 18px 24px;
  color: var(--ink-soft);
}

main.article li {
  margin-bottom: 6px;
}

main.article strong {
  color: var(--ink);
  font-weight: 600;
}

main.article code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink);
}

main.article .callout {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0 28px;
  font-size: 15px;
  color: var(--ink-soft);
}
main.article .callout strong { color: var(--ink); }

main.article address {
  font-style: normal;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: 10px;
  margin: 12px 0 22px;
  color: var(--ink);
}

/* ── CLOSING CTA (shared across guide pages) ────
   Centered stacked layout: heading + supporting copy + accented Chrome CTA + meta.
   Page-level overrides allowed by re-declaring after the article.css link in <head>. */
main.article .closing-cta {
  margin: 56px 0 32px;
  padding: 44px 32px 40px;
  background: var(--pro-bg, #1d1c18);
  background-image: radial-gradient(900px 400px at 50% -20%, rgba(31, 74, 214, 0.30), transparent 60%);
  color: var(--paper);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
main.article .closing-cta h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  margin: 0;
  max-width: 22ch;
}
main.article .closing-cta p {
  color: var(--paper-warm);
  margin: 0;
  max-width: 50ch;
  font-size: 15.5px;
  line-height: 1.6;
}
/* Closing-CTA button spacing — colors/shadow come from .btn-accent. */
main.article .closing-cta .btn { margin-top: 6px; }
main.article .closing-cta .cta-meta {
  font-size: 12px;
  color: var(--line);
  letter-spacing: 0.02em;
  margin: 0;
}

/* ── FOOTER (matches landing) ─────────────── */
footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.footer-brand:hover { text-decoration: none; }
.footer-brand img { width: 22px; height: 22px; display: block; }
.footer-brand .word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); text-decoration: none; }

/* ── BUTTONS / CTAs ──────────────────────────────────────────────────
   Pill-shaped CTA links. Compose with size + (optional) color variant:
     <a class="btn btn-md">Add Flowblock to Chrome</a>
     <a class="btn btn-lg btn-accent">Add Flowblock to Chrome</a>   (on dark bg)

   Buttons always declare both base and :hover color so global anchor
   rules in CLAUDE-time future shells can't bleed in. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:hover {
  background: var(--accent);
  color: var(--paper);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn img, .btn svg { flex-shrink: 0; display: block; }

/* Sizes */
.btn-md { padding: 11px 20px; font-size: 14px; }
.btn-md img { width: 14px; height: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; gap: 10px; }
.btn-lg img { width: 18px; height: 18px; }

/* Color variant — accent-blue pill that flips to white-on-blue on hover.
   Used by the pricing pro CTAs and every closing-cta. */
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 32px -14px rgba(31, 74, 214, 0.7);
}
.btn-accent:hover {
  background: #fff;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(255, 255, 255, 0.45);
}

/* ── PULSING FAB (hero + shortcut CTAs on guide pages) ─────────────── */
.fab-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 240px;
  text-decoration: none;
  cursor: pointer;
}
.fab-demo {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 14px rgba(31, 74, 214, 0.45),
    0 1px 0 rgba(255,255,255,0.18) inset;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.fab-stage:hover .fab-demo,
.fab-stage:focus-visible .fab-demo {
  transform: scale(1.08);
  box-shadow:
    0 10px 26px rgba(31, 74, 214, 0.6),
    0 1px 0 rgba(255,255,255,0.18) inset;
}
.fab-demo svg { width: 36px; height: 36px; display: block; }

.fab-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  background: rgba(31, 74, 214, 0.36);
  pointer-events: none;
  animation: fab-ripple 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
.fab-ripple--delayed { animation-delay: 1.3s; }
@keyframes fab-ripple {
  0%   { transform: scale(0.92); opacity: 0.55; }
  75%  { opacity: 0.06; }
  100% { transform: scale(2.5);  opacity: 0; }
}

.fab-tooltip {
  position: absolute;
  top: calc(50% + 64px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 8px 18px -10px rgba(20, 19, 15, 0.45);
}
.fab-stage:hover .fab-tooltip,
.fab-stage:focus-visible .fab-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 920px) {
  .fab-stage { width: 200px; height: 200px; }
}

/* Compact modifier — fits inside .mini-cta on SEO guide pages.
   Stage is intentionally close to demo size; ripples overflow the
   stage box via absolute positioning and fade to 0 opacity by then. */
.fab-stage--compact { width: 72px; height: 72px; flex-shrink: 0; }
.fab-stage--compact .fab-demo { width: 52px; height: 52px; }
.fab-stage--compact .fab-demo svg { width: 24px; height: 24px; }
.fab-stage--compact .fab-ripple { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
@media (max-width: 920px) {
  .fab-stage--compact { width: 72px; height: 72px; }
}

/* ── MINI-CTA CARD (logo + copy + button strip) ────────────────────── */
main.article .mini-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 36px;
  padding: 16px 20px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
}
main.article .mini-cta .mini-cta-copy {
  flex: 1 1 280px;
  max-width: 480px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
main.article .mini-cta .mini-cta-copy strong { color: var(--ink); }

/* Standalone CTA strip below comparison tables. */
main.article .table-cta-line {
  text-align: center;
  margin: 4px 0 36px;
}

/* ── SHARED CONTENT UTILITIES (used by SEO guide pages) ────────────── */

main.article .lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

/* Table of contents card. Default uses decimal numbering; add class="toc unstyled"
   to drop the list markers (e.g. for a flat link list). */
main.article .toc {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 36px;
  font-size: 14.5px;
}
main.article .toc strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
main.article .toc ol { margin: 0; padding-left: 22px; }
main.article .toc.unstyled ol { padding-left: 0; list-style: none; }
main.article .toc ol li { margin-bottom: 4px; }

/* Comparison / data tables. Wrap any <table> in <div class="table-wrap"> for
   the bordered, paper-toned surface; add class="wide" to break out of the
   780px reading column (capped to viewport on small screens). */
main.article .table-wrap {
  overflow-x: auto;
  margin: 22px 0 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf0;
}
main.article .table-wrap.wide {
  width: min(1100px, calc(100vw - 40px));
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
main.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
main.article table th,
main.article table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
main.article table tr:last-child td { border-bottom: none; }
main.article table th {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.02em;
  background: var(--paper-warm);
}
main.article table td { color: var(--ink-soft); }
main.article table td strong { color: var(--ink); }

/* Card — bordered paper surface used for tool/approach/method blocks.
     <section class="card">
       <h3>Title</h3>
       <div class="card-meta"><span><strong>Where:</strong> in Notion</span>…</div>
       <dl class="card-verdict"><dt>Best for</dt><dd>…</dd></dl>
     </section>
*/
main.article .card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 250, 240, 0.6);
}
main.article .card > * { margin: 0; }
main.article .card > .btn { align-self: center; }
main.article .card h3 { font-size: 22px; }
main.article .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}
main.article .card-meta strong {
  color: var(--ink);
  font-weight: 600;
}
main.article .card-verdict {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 14.5px;
}
main.article .card-verdict dt {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
main.article .card-verdict dd { color: var(--ink-soft); margin-bottom: 0; }

/* FAQ — collapsible <details> accordion. Markup is just:
     <section class="faq-list">
       <details>
         <summary>Question?</summary>
         <p>Answer.</p>
       </details>
       ...
     </section>
   Anchors inside answers inherit from the prose anchor rule — no special case. */
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
}
.faq-list details { border-top: 1px solid var(--line); padding: 24px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  line-height: 1;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > p,
.faq-list details > ol,
.faq-list details > ul {
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--ink-mute);
  max-width: 64ch;
  line-height: 1.65;
}
.faq-list details > p + p { margin-top: 10px; }
.faq-list details > ol,
.faq-list details > ul { padding-left: 22px; }
.faq-list details li { margin-bottom: 6px; }
.faq-list details strong { color: var(--ink); }

.faq-more {
  max-width: 760px;
  margin-top: 22px;
  font-size: 15px;
  color: var(--ink-mute);
}

@media (max-width: 640px) {
  main.article { padding: 40px 22px 72px; }
  .nav-inner { padding: 0 20px; }
  footer { padding: 32px 20px; }
  .nav-links { display: none; }
}
