/* Hallmark · Tally DNA (modern-minimal) · three-font stack: Geist + Geist Mono + Instrument Serif italic
 * Swap brand name by find/replace on "Relay".
 */
:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --ink: oklch(0.18 0.03 258);
  --ink-2: oklch(0.44 0.02 258);
  --ink-3: oklch(0.62 0.02 258);
  --bg: oklch(0.985 0.005 258);
  --bg-2: oklch(0.972 0.006 258);
  --accent: oklch(0.52 0.22 268);
  --action: oklch(0.60 0.16 155);
  --line: oklch(0.92 0.008 258);
  --navy: oklch(0.15 0.03 258);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-sans); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); }
a { color: var(--ink); text-decoration: none; }

/* THE personality: italic serif accent word */
.em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--accent); }

/* mono label utility */
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---------- Nav (floating pill) ---------- */
.nav { position: sticky; top: 16px; z-index: 300; }
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: oklch(0.985 0.005 258 / 0.82); backdrop-filter: blur(12px);
}
.nav-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; color: var(--ink); }
.nav-brand svg { color: var(--accent); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn-action { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14.5px;
  padding: 11px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: oklch(0.24 0.03 258); }
.btn-action { background: var(--action); color: #fff; }
.btn-action:hover { background: oklch(0.54 0.16 155); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; margin-bottom: 24px; }
.live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--action); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .live-badge .dot { animation: none; } }

.hero-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .hero-layout { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 600; letter-spacing: -0.04em; margin-bottom: 20px; max-width: 16ch; }
.hero .sub { font-size: 18px; color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-fineprint { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.hero-fineprint span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

/* ops card (hero visual, Tally invoice-card style) */
.ops-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 24px 60px -30px oklch(0.2 0.03 258 / 0.28); }
.ops-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ops-title { font-family: var(--font-mono); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.ops-sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 3px; letter-spacing: 0.04em; }
.ops-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--action); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.ops-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ops-row:last-of-type { border-bottom: none; }
.ops-row .lbl { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.ops-row .lbl .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--action); }
.ops-row .lbl .dot.warn { background: oklch(0.72 0.16 60); }
.ops-row .lbl .dot.wait { background: var(--accent); }
.ops-row strong { font-family: var(--font-mono); font-weight: 600; font-size: 14px; }
.ops-foot { margin-top: 14px; background: var(--bg-2); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); font-family: var(--font-mono); letter-spacing: 0.02em; }
.ops-foot b { color: var(--ink); font-weight: 600; }

/* marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 56px; }
.marquee-track { display: flex; gap: 48px; white-space: nowrap; padding: 14px 0; animation: marquee 30s linear infinite; width: max-content; }
.marquee-track span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: end; margin-bottom: 48px; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.035em; }
.section-head .desc { color: var(--ink-2); font-size: 16px; }

/* ---------- Chart (the graph) ---------- */
.chart { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 22px; }
.chart h4 { font-size: 14px; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.chart h4 .live { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--action); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .area { fill: url(#area-grad); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.chart .dot { fill: var(--accent); }
.chart-row { display: flex; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.chart-row .stat { flex: 1; min-width: 120px; }
.chart-row .stat .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.chart-row .stat .value { font-family: var(--font-mono); font-weight: 600; font-size: 20px; }
.chart-row .stat .delta { font-family: var(--font-mono); font-size: 11px; color: var(--action); margin-left: 6px; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (max-width: 820px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card { background: #fff; padding: 30px 28px; }
.stat-num { font-family: var(--font-mono); font-weight: 600; font-size: 40px; letter-spacing: -0.02em; color: var(--ink); }
.stat-num small { font-size: 20px; color: var(--accent); }
.stat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 8px 0; }
.stat-note { color: var(--ink-2); font-size: 14px; }

/* ---------- Feature cards ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .features-grid { grid-template-columns: 1fr; } }
.feature { border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; background: #fff; }
.feature .icon { color: var(--accent); margin-bottom: 16px; display: block; }
.feature h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 15px; }

/* ---------- Index (numbered services) ---------- */
.index { border-top: 1px solid var(--ink); }
.index-row { display: grid; grid-template-columns: 56px 1fr 1.3fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.index-row .no { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); font-weight: 500; }
.index-row h3 { font-size: 22px; }
.index-row .desc { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 720px) { .index-row { grid-template-columns: 40px 1fr; } .index-row .desc { grid-column: 2; } }

/* ---------- Steps ---------- */
.steps { border-top: 1px solid var(--ink); }
.step { display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.step .num { font-family: var(--font-mono); font-weight: 600; font-size: 34px; line-height: 1; color: var(--accent); }
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15.5px; max-width: 62ch; }

/* ---------- CTA (dark panel) ---------- */
.cta { padding: 88px 0; }
.cta-panel { background: var(--navy); border-radius: 24px; padding: 72px 48px; text-align: center; }
.cta-panel h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.035em; margin-bottom: 14px; }
.cta-panel h2 .em { color: oklch(0.68 0.16 268); }
.cta-panel p { color: oklch(0.72 0.02 258); font-size: 17px; max-width: 54ch; margin: 0 auto 28px; }
.cta-panel .btn-primary { background: #fff; color: var(--ink); }
.cta-panel .btn-primary:hover { background: oklch(0.9 0.01 258); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 40px; }
.footer-statement { font-family: var(--font-serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.3; max-width: 28ch; margin-bottom: 48px; }
.footer-statement .em { color: var(--ink); }
.footer-row { display: flex; gap: 48px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-col h5 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--ink-2); font-size: 14.5px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--ink); }
.footer-legal { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-3); }
.footer-legal .wordmark { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }

/* ---------- Inner pages ---------- */
.page-hero { padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 5.5vw, 54px); letter-spacing: -0.04em; margin-bottom: 16px; max-width: 20ch; }
.page-hero p { color: var(--ink-2); font-size: 18px; max-width: 56ch; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; background: #fff; }
.card h3 { font-size: 20px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card-icon { flex-shrink: 0; color: var(--accent); }
.card p { color: var(--ink-2); font-size: 15.5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
ul.check { list-style: none; margin-top: 14px; }
ul.check li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--ink-2); font-size: 14.5px; }
ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--action); font-weight: 700; }
.form { max-width: 560px; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form input, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 15px; margin-bottom: 18px; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* Blog */
.blog-grid { display: none; }
.blog-card { display: none; }
.blog-card-accent { display: none; }
.blog-card-body { display: none; }
.blog-card-date { display: none; }
.blog-read-time { display: none; }
.blog-card-excerpt { display: none; }
.blog-card-link { display: none; }

/* Post cards */
.post-card { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; text-decoration: none; color: inherit; transition: box-shadow 0.2s, border-color 0.2s; }
.post-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); border-color: transparent; }
.post-featured { margin-bottom: 24px; }
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .post-grid { grid-template-columns: 1fr; } .post-card { flex-direction: column; } }
.post-number { flex: 0 0 100px; display: flex; align-items: center; justify-content: center; font-family: 'Instrument Serif', serif; font-style: italic; font-size: 3rem; color: var(--accent); background: rgba(99,102,241,0.04); border-right: 1px solid var(--line); }
.post-featured .post-number { flex: 0 0 140px; font-size: 4rem; }
.post-body { padding: 28px 32px; display: flex; flex-direction: column; flex: 1; }
.post-featured .post-body { padding: 36px 40px; }
.post-meta { display: flex; gap: 8px; align-items: center; font-family: 'Geist Mono', monospace; font-size: 0.75rem; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.post-dot { color: var(--line); }
.post-card h2 { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.75rem; font-weight: 400; margin-bottom: 10px; line-height: 1.2; color: var(--black); }
.post-card h3 { font-family: 'Geist', sans-serif; font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; line-height: 1.35; color: var(--black); }
.post-excerpt { font-size: 0.925rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.post-cta { font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.post-card:hover .post-cta { text-decoration: underline; }

/* Full articles */
.blog-articles { max-width: 680px; margin: 0 auto; }
.article-full { padding: 48px 0; border-bottom: 1px solid var(--line); }
.article-full:last-child { border-bottom: none; }
.article-number { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 3rem; color: var(--accent); opacity: 0.25; margin-bottom: 8px; line-height: 1; }
.article-meta { font-family: 'Geist Mono', monospace; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px; }
.article-title { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 2rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 28px; color: var(--black); line-height: 1.15; }
.article-full h3 { font-family: 'Geist', sans-serif; font-size: 1.125rem; font-weight: 700; margin-top: 36px; margin-bottom: 12px; color: var(--black); }
.article-full p { margin-bottom: 16px; }
.back-top { display: inline-block; margin-top: 32px; font-size: 0.85rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.back-top:hover { text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 0.875rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.article-cta-box { background: #f9f9fb; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-top: 40px; text-align: center; }
.article-cta-box p { margin-bottom: 16px; font-size: 0.95rem; }

/* Chat widget */
#chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; font-family: 'Geist', sans-serif; }
.chat-toggle { width: 52px; height: 52px; border-radius: 999px; border: none; background: var(--accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(99,102,241,0.35); transition: transform 0.2s, box-shadow 0.2s; }
.chat-toggle:hover { transform: scale(1.06); box-shadow: 0 6px 28px rgba(99,102,241,0.45); }
.chat-panel { position: fixed; bottom: 90px; right: 24px; width: 380px; max-height: 560px; height: 480px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 48px rgba(0,0,0,0.12); display: flex; flex-direction: column; overflow: hidden; }
@media (max-width: 440px) { .chat-panel { width: calc(100vw - 32px); right: 16px; bottom: 82px; height: 420px; } }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-header-left { display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-name { font-weight: 700; font-size: 0.95rem; color: var(--black); }
.chat-status { font-size: 0.75rem; color: var(--action); }
.chat-close-btn { width: 32px; height: 32px; border-radius: 999px; border: none; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-close-btn:hover { background: var(--line); color: var(--ink); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; }
.chat-msg.user { align-self: flex-end; }
.chat-msg.user .chat-msg-text { background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; }
.chat-msg.bot .chat-msg-text { background: #f4f4f8; color: var(--ink); border-radius: 16px 16px 16px 4px; }
.chat-msg-text { display: inline-block; padding: 10px 15px; font-size: 0.875rem; line-height: 1.5; }
.chat-msg.typing .chat-msg-text { padding: 12px 18px; }
.chat-msg.typing .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin: 0 2px; animation: chat-bounce 1.2s infinite; }
.chat-msg.typing .dot:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.typing .dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
.chat-input-row { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--line); }
.chat-input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-family: 'Geist', sans-serif; font-size: 0.875rem; outline: none; color: var(--ink); }
.chat-input:focus { border-color: var(--accent); }
.chat-send-btn, .chat-voice-btn { width: 36px; height: 36px; border-radius: 999px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-send-btn { background: var(--accent); color: #fff; }
.chat-send-btn:hover { background: var(--accent-hover, #4f46e5); }
.chat-voice-btn { background: transparent; color: var(--muted); }
.chat-voice-btn:hover { background: var(--line); color: var(--ink); }
.chat-voice-btn.listening { background: #fee2e2; color: #dc2626; animation: chat-pulse 1s infinite; }
@keyframes chat-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.4); } 50% { box-shadow: 0 0 0 8px rgba(220,38,38,0); } }

/* Scroll animations */
[data-animate] { opacity: 0; transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
[data-animate].visible { opacity: 1; transform: none; }
[data-animate="fade-up"] { transform: translateY(24px); }
[data-animate="fade-in"] { transform: none; }
[data-animate="fade-right"] { transform: translateX(-20px); }
[data-animate="fade-left"] { transform: translateX(20px); }
[data-animate="scale-in"] { transform: scale(0.96); }
.blog-post { padding: 48px 0; }
.blog-post h2 { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 2rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 28px; color: var(--black); }
.blog-post h3 { font-family: 'Geist', sans-serif; font-size: 1.125rem; font-weight: 600; margin-top: 36px; margin-bottom: 12px; color: var(--black); }
.blog-post p { margin-bottom: 16px; }
.blog-post .container { max-width: 680px; }
.blog-sep { border: none; border-top: 1px solid var(--line); width: 100%; }
.mono-label { font-family: 'Geist Mono', monospace; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.blog-post + .blog-sep { margin: 0; }
.blog-sep + .blog-post { padding-top: 56px; }

/* Utilities */
.italic-serif { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto; }
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card { border: 1px solid var(--line); border-radius: 20px; padding: 36px 32px; background: #fff; display: flex; flex-direction: column; }
.pricing-card.featured { border-color: var(--accent); border-width: 2px; box-shadow: 0 0 0 1px var(--accent), 0 4px 24px rgba(99,102,241,0.08); position: relative; }
.pricing-card.featured::before { content: 'Most popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 14px; border-radius: 999px; letter-spacing: 0.03em; }
.pricing-amount { margin: 8px 0 4px; }
.price { font-family: 'Geist', sans-serif; font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; color: var(--black); }
.price-unit { font-family: 'Geist Mono', monospace; font-size: 0.875rem; color: var(--muted); margin-left: 2px; }
.pricing-for { color: var(--ink-2); font-size: 0.925rem; margin-bottom: 20px; }
.pricing-divider { border: none; border-top: 1px solid var(--line); margin: 0 0 20px; }
.pricing-checks { margin-bottom: 24px; }
.pricing-checks li { margin-bottom: 10px; font-size: 14.5px; }
.pricing-btn { width: 100%; text-align: center; margin-top: auto; }
.pricing-note { text-align: center; margin-top: 28px; font-size: 14px; color: var(--ink-2); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ROI Calculator */
.roi-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 860px; margin: 32px auto 0; }
@media (max-width: 720px) { .roi-calc { grid-template-columns: 1fr; } }
.roi-inputs { display: flex; flex-direction: column; gap: 18px; }
.roi-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--ink); }
.roi-field input { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-family: 'Geist Mono', monospace; font-size: 15px; background: #fff; color: var(--ink); }
.roi-field input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.roi-results { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.roi-row { display: flex; justify-content: space-between; align-items: center; }
.roi-label { font-size: 14px; color: var(--ink-2); }
.roi-value { font-family: 'Geist Mono', monospace; font-size: 14px; font-weight: 600; color: var(--ink); }
.roi-divider { border-top: 1px solid var(--line); margin: 4px 0; }
.roi-total .roi-label, .roi-total .roi-value { font-weight: 700; color: var(--black); font-size: 15px; }
.roi-net .roi-value { color: var(--action); font-size: 16px; }
.roi-assumptions { text-align: center; margin-top: 20px; font-size: 12.5px; color: var(--muted); max-width: 660px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.roi-results-label { font-family: 'Geist Mono', monospace; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.field-hint { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.roi-cta { width: 100%; text-align: center; margin-top: 8px; }

/* Flow Chart */
.flow-chart { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; gap: 0; align-items: start; }
@media (max-width: 860px) { .flow-chart { grid-template-columns: 1fr; gap: 32px; } .flow-arrow { transform: rotate(90deg); } }
.flow-col { padding: 28px 24px; border-radius: 20px; }
.flow-before { background: #f9f9fb; border: 1px solid var(--line); }
.flow-relay { background: #fff; border: 2px solid var(--accent); box-shadow: 0 4px 20px rgba(99,102,241,0.08); position: relative; }
.flow-after { background: #f9f9fb; border: 1px solid var(--line); }
.flow-col h3 { font-family: 'Geist', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; color: var(--black); }
.flow-col .mono-label { margin-bottom: 4px; }
.flow-sub { font-size: 0.85rem; color: var(--ink-2); margin-bottom: 16px; line-height: 1.7; }
.flow-items { display: flex; flex-direction: column; gap: 12px; }
.flow-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--ink); line-height: 1.5; }
.flow-item svg { flex-shrink: 0; margin-top: 1px; color: var(--muted); }
.flow-relay .flow-item svg { color: var(--accent); }
.flow-arrow { display: flex; align-items: center; justify-content: center; padding: 0 4px; margin-top: 48px; }
@media (max-width: 860px) { .flow-arrow { margin-top: 0; } }
