/*
 * Blog styles for /blog/. Tokens, nav, logo, buttons and footer are copied from the
 * inline CSS in /services/zapier-migration/index.html so blog pages look the same.
 * If you change those there, change them here too.
 */
:root {
  --bg:#050507; --fg:#f5f5f7; --muted:#8b8b96; --line:rgba(255,255,255,.08); --line2:rgba(255,255,255,.16);
  --card:rgba(255,255,255,.025); --a1:#7c5cff; --a2:#22d3ee; --a3:#ff5ca8; --err:#ff8fa3; --ok:#3ddc97;
}
* { box-sizing:border-box; margin:0; padding:0; }
[hidden] { display:none !important; }
html { scroll-behavior:smooth; }
body { background:var(--bg); color:var(--fg); font-family:'Geist',system-ui,sans-serif; line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
a { color:inherit; text-decoration:none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline:2px solid var(--a2); outline-offset:3px; border-radius:6px; }
.mono { font-family:'Geist Mono',monospace; }
.wrap { max-width:1180px; margin:0 auto; padding:0 24px; }
.link { color:var(--a2); text-decoration:underline; text-underline-offset:3px; }

/* nav (same as the Zapier page) */
nav { position:fixed; inset:0 0 auto; z-index:50; transition:background .3s, border-color .3s; border-bottom:1px solid transparent; }
nav.scrolled { background:rgba(5,5,7,.7); backdrop-filter:blur(16px) saturate(1.4); border-color:var(--line); }
nav .wrap { height:68px; display:flex; align-items:center; justify-content:space-between; }
.logo { display:flex; align-items:center; gap:10px; font-weight:600; font-size:18px; letter-spacing:-.02em; }
.mark { width:26px; height:26px; border-radius:7px; background:conic-gradient(from 200deg, var(--a1), var(--a2), var(--a3), var(--a1)); position:relative; }
.mark::after { content:'Z'; position:absolute; inset:2px; border-radius:5px; background:var(--bg); display:grid; place-items:center; font-size:13px; font-weight:700; }
nav ul { display:flex; gap:32px; list-style:none; font-size:14px; color:var(--muted); }
nav ul a:hover, nav ul a[aria-current] { color:var(--fg); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; font:inherit; font-size:14px; font-weight:500; padding:10px 18px; border-radius:10px; transition:all .2s; cursor:pointer; border:0; }
.btn-light { background:var(--fg); color:var(--bg); }
.btn-light:hover { background:#fff; box-shadow:0 0 0 4px rgba(255,255,255,.12); }
.btn-ghost { border:1px solid var(--line2); color:var(--fg); background:rgba(255,255,255,.03); }
.btn-ghost:hover { border-color:rgba(255,255,255,.3); }
.btn-lg { padding:14px 24px; font-size:15px; }

/* page header (a quieter version of the Zapier hero) */
.hero { position:relative; padding:140px 0 56px; overflow:hidden; }
.aurora { position:absolute; inset:-30% -10% auto; height:700px; pointer-events:none; filter:blur(90px); opacity:.22; }
.aurora span { position:absolute; border-radius:50%; mix-blend-mode:screen; }
.aurora span:nth-child(1) { width:520px; height:340px; left:8%; top:10%; background:var(--a1); }
.aurora span:nth-child(2) { width:440px; height:300px; right:6%; top:16%; background:var(--a2); opacity:.7; }
.hero .wrap { position:relative; }
.eyebrow { font-size:13px; color:var(--a2); margin-bottom:18px; letter-spacing:.02em; }
.eyebrow a:hover { color:var(--fg); }
h1 { font-size:clamp(34px,5.2vw,64px); line-height:1.05; letter-spacing:-.045em; font-weight:600; max-width:900px; }
.hero .sub { color:var(--muted); font-size:clamp(17px,2vw,19px); max-width:680px; margin-top:22px; }
.meta { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:26px; font-size:13px; color:var(--muted); }

/* blog index */
.posts { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; padding-bottom:40px; }
.post-card { display:flex; flex-direction:column; gap:12px; padding:30px; border:1px solid var(--line); border-radius:20px; background:var(--card); transition:border-color .2s; }
.post-card:hover { border-color:var(--line2); }
.post-card .date { font-size:12.5px; color:var(--muted); }
.post-card h2 { font-size:clamp(22px,2.4vw,27px); line-height:1.2; letter-spacing:-.03em; font-weight:600; }
.post-card p { color:var(--muted); font-size:15px; }
.post-card .read { margin-top:auto; font-size:14px; color:var(--a2); }
.empty { padding:40px 0 80px; color:var(--muted); font-size:17px; }

/* article */
.article { max-width:720px; font-size:18px; line-height:1.7; color:#d9d9df; padding-bottom:24px; }
.article > * + * { margin-top:1.1em; }
.article h2 { font-size:clamp(26px,3.2vw,34px); line-height:1.15; letter-spacing:-.035em; font-weight:600; color:var(--fg); margin-top:2.2em; }
.article h3 { font-size:21px; line-height:1.3; letter-spacing:-.02em; font-weight:600; color:var(--fg); margin-top:1.8em; }
.article h2 + *, .article h3 + * { margin-top:.6em; }
.article strong { color:var(--fg); font-weight:600; }
.article a { color:var(--a2); text-decoration:underline; text-underline-offset:3px; }
.article ul, .article ol { padding-left:1.3em; }
.article li + li { margin-top:.45em; }
.article li::marker { color:var(--muted); }
.article blockquote { border-left:2px solid var(--a2); padding:4px 0 4px 18px; color:var(--muted); }
.article hr { border:0; border-top:1px solid var(--line); margin:2.4em 0; }
.article code { font-family:'Geist Mono',monospace; font-size:.85em; background:rgba(255,255,255,.06); border-radius:6px; padding:2px 6px; }
.article pre { background:rgba(255,255,255,.04); border:1px solid var(--line); border-radius:12px; padding:16px 18px; overflow-x:auto; }
.article pre code { background:none; padding:0; }
.article .table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:14px; }
.article table { width:100%; border-collapse:collapse; font-size:15px; line-height:1.5; }
.article th, .article td { text-align:left; padding:12px 16px; border-bottom:1px solid var(--line); vertical-align:top; }
.article th { color:var(--fg); font-weight:600; background:rgba(255,255,255,.03); }
.article tr:last-child td { border-bottom:0; }
.article sup { font-size:.7em; line-height:0; }
.article sup a { text-decoration:none; font-family:'Geist Mono',monospace; padding:0 1px; }

/* sources */
.sources { max-width:720px; margin-top:56px; padding-top:28px; border-top:1px solid var(--line); }
.sources h2 { font-size:20px; font-weight:600; letter-spacing:-.02em; margin-bottom:14px; }
.sources ol { padding-left:1.6em; display:grid; gap:10px; font-size:14.5px; color:var(--muted); }
.sources li::marker { font-family:'Geist Mono',monospace; font-size:13px; }
.sources a { color:var(--fg); text-decoration:underline; text-decoration-color:var(--line2); text-underline-offset:3px; word-break:break-word; }
.sources a:hover { text-decoration-color:var(--a2); }
.sources li:target { color:var(--fg); }

/* call to action */
.cta-box { max-width:720px; margin-top:56px; padding:36px; border:1px solid transparent; border-radius:20px; background:linear-gradient(var(--bg),var(--bg)) padding-box, linear-gradient(140deg,var(--a1),var(--a2)) border-box; }
.cta-box h2 { font-size:clamp(24px,3vw,30px); line-height:1.15; letter-spacing:-.03em; font-weight:600; }
.cta-box p { color:var(--muted); margin:12px 0 22px; font-size:16px; }

footer { padding:40px 0; margin-top:96px; border-top:1px solid var(--line); font-size:13px; color:var(--muted); }
footer .wrap { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
footer nav { position:static; display:flex; gap:20px; }
footer nav a:hover { color:var(--fg); }

@media (max-width:900px) {
  nav ul { display:none; }
  .hero { padding:108px 0 40px; }
  .posts { grid-template-columns:1fr; }
}
@media (max-width:560px) {
  .article { font-size:17px; }
  .post-card, .cta-box { padding:24px 20px; }
  footer nav { flex-wrap:wrap; }
}

/* service, case-study and hub pages (added for /services/ and /work/) */
nav.crumbs { position:static; inset:auto; z-index:auto; border:0; }
.crumbs { font-size:13px; color:var(--muted); margin-bottom:18px; }
.crumbs a:hover { color:var(--fg); }
.crumbs span { margin:0 8px; color:var(--line2); }
.hero .ctas { display:flex; gap:12px; flex-wrap:wrap; margin-top:32px; }
.block { padding-top:80px; }
.block > h2 { font-size:clamp(28px,3.6vw,42px); line-height:1.08; letter-spacing:-.04em; font-weight:600; max-width:780px; }
.block > .lede { color:var(--muted); max-width:660px; margin-top:14px; font-size:17px; }
.grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:36px; }
.grid.two { grid-template-columns:repeat(2,1fr); }
.tile { padding:26px; border:1px solid var(--line); border-radius:18px; background:var(--card); }
.tile h3 { font-size:18px; font-weight:600; letter-spacing:-.015em; margin-bottom:6px; line-height:1.3; }
.tile p { color:var(--muted); font-size:15px; }
a.tile { display:flex; flex-direction:column; gap:4px; transition:border-color .2s; }
a.tile:hover { border-color:var(--line2); }
a.tile .go { margin-top:auto; padding-top:12px; font-size:13px; color:var(--a2); }
.steps4 { counter-reset:s; grid-template-columns:repeat(4,1fr); }
.steps4 .tile::before { counter-increment:s; content:'0' counter(s); display:block; font-family:'Geist Mono',monospace; font-size:12px; color:var(--a2); margin-bottom:20px; }
.chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; list-style:none; }
.chips li { font-size:13px; padding:6px 12px; border-radius:999px; background:rgba(255,255,255,.05); border:1px solid var(--line); }
.prose { max-width:720px; margin-top:18px; color:#d9d9df; font-size:17px; line-height:1.7; }
.prose > * + * { margin-top:1em; }
.prose a { color:var(--a2); text-decoration:underline; text-underline-offset:3px; }
.prose ul { padding-left:1.3em; } .prose li + li { margin-top:.4em; }
.faq { max-width:780px; margin-top:28px; border-top:1px solid var(--line); }
.faq details { border-bottom:1px solid var(--line); padding:18px 0; }
.faq summary { cursor:pointer; font-weight:600; font-size:17px; list-style:none; display:flex; justify-content:space-between; gap:16px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:'+'; color:var(--muted); font-weight:400; }
.faq details[open] summary::after { content:'−'; }
.faq details p { color:var(--muted); margin-top:10px; font-size:16px; max-width:700px; }
.related { margin-top:72px; }
.related > h2 { font-size:20px; font-weight:600; letter-spacing:-.02em; }
.related .grid { margin-top:18px; }
.big404 { font-size:clamp(90px,18vw,200px); line-height:.9; letter-spacing:-.06em; font-weight:600; background:linear-gradient(100deg,#c9c2ff 0%,var(--a1) 35%,var(--a2) 75%); -webkit-background-clip:text; background-clip:text; color:transparent; }
@media (max-width:900px) { .grid, .steps4 { grid-template-columns:1fr 1fr; } .block { padding-top:64px; } }
@media (max-width:560px) { .grid, .grid.two, .steps4 { grid-template-columns:1fr; } }
