/* LawnBook site design system.
 *
 * Shared by every page. Blog posts load it through `@import` inside their
 * first <style> block, because ~/projects/blog-automation/generate-blog.py
 * copies that block, the first bare <nav>…</nav> and the first bare
 * <footer>…</footer> from an existing post into each new post. Keep those
 * three tags attribute-free in blog posts, or new posts lose their chrome.
 */

/* ---------- Tokens ---------- */
:root {
  --bg: #0A0D06;
  --bg-elev: #11150B;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #F1F4E8;
  --text-2: #C3CBAE;
  --muted: #8D977A;
  --subtle: #5F6850;

  --brand: #9DB352;
  --brand-2: #C9D38E;
  --brand-soft: rgba(157, 179, 82, 0.12);
  --brand-line: rgba(157, 179, 82, 0.28);
  --accent: #22C55E;
  --accent-hover: #4ADE80;
  --accent-ink: #06210F;
  --warn: #F5B544;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.6);

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Inter, Roboto, 'Helvetica Neue', sans-serif;
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Inter, Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --max: 1120px;
  --max-prose: 720px;
  --nav-h: 64px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 10% -10%, rgba(120, 145, 50, 0.16), transparent 60%),
    radial-gradient(50rem 30rem at 100% 0%, rgba(34, 197, 94, 0.07), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(157, 179, 82, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--text); font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }

/* Legacy decorative blobs: the page background carries the glow now. */
.blob { display: none; }

.container { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header / nav ---------- */
/* Pages use `.container > nav` (blog posts must), so the bar paints a
   full-bleed backdrop around itself while staying inside the container. */
body > .container > nav:first-of-type,
body > nav:first-of-type,
.site-header > nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
body > .container > nav:first-of-type::before,
body > nav:first-of-type::before,
.site-header > nav::before {
  content: '';
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: rgba(10, 13, 6, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
body > nav:first-of-type { padding: 0 max(24px, calc(50vw - var(--max) / 2 + 24px)); }
body > nav:first-of-type::before { inset: 0; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.logo img { width: 28px; height: 28px; border-radius: 7px; }
.logo b { font-weight: inherit; }
.logo span { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link, nav a.nav-link {
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active, .nav-link[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-mobile-only { display: none; }

.nav-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-signin {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  transition: background 0.15s, border-color 0.15s;
}
.nav-signin:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.24); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.2s, opacity 0.2s; }
nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-signin { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--nav-h) - 1px);
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 16px 20px;
    background: rgba(10, 13, 6, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  body > nav:first-of-type .nav-links { left: 0; right: 0; }
  nav.open .nav-links, .nav-links.open { display: flex; }
  .nav-link, nav a.nav-link { font-size: 16px; padding: 12px 14px; border-radius: 10px; }
  .nav-mobile-only { display: block; }
}

/* ---------- Buttons ---------- */
.btn, .btn-primary, .btn-secondary, .btn-outline, .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-primary, .cta-btn {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -10px rgba(34, 197, 94, 0.7);
}
.btn-primary:hover, .cta-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary, .btn-outline { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover, .btn-outline:hover { background: var(--surface-hover); border-color: rgba(255, 255, 255, 0.24); }
.btn-sm { font-size: 14px; padding: 9px 16px; }
.btn-lg { font-size: 16px; padding: 16px 26px; }
.btn:active, .btn-primary:active, .btn-secondary:active, .btn-outline:active { transform: scale(0.98); }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badges img { height: 48px; width: auto; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-2);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow-plain { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.gradient-text {
  background: linear-gradient(100deg, var(--brand-2), var(--brand) 45%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--text-2); }
.muted { color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.035em; margin: 16px 0 14px; }
.section-head p { font-size: 18px; color: var(--muted); }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
:where(a.card) { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--brand-line); background: var(--surface-2); transform: translateY(-2px); }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-2);
  margin-bottom: 16px;
}
.card-icon svg { width: 20px; height: 20px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
}
.chip-brand { color: var(--brand-2); background: var(--brand-soft); border-color: var(--brand-line); }
.chip-warn { color: var(--warn); background: rgba(245, 181, 68, 0.1); border-color: rgba(245, 181, 68, 0.3); }

/* Browser-window frame for web screenshots */
.browser {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: #0E120A;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.browser-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 3px 12px; border-radius: 999px; }
.browser img { width: 100%; height: auto; }

/* ---------- Footer ---------- */
footer {
  position: relative;
  z-index: 1;
  margin-top: 96px;
  padding: 56px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.012);
  bottom: 0;
  z-index: -1;
}
footer .footer-inner { max-width: var(--max); margin: 0 auto; }
body > footer { padding-left: 24px; padding-right: 24px; }
footer .footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
footer .footer-brand p { margin-top: 12px; max-width: 300px; line-height: 1.55; }
footer .footer-brand .store-badges { margin-top: 18px; }
footer .footer-brand .store-badges img { height: 38px; }
footer h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
footer ul { list-style: none; display: grid; gap: 10px; }
footer a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
footer a:hover { color: var(--text); }
footer .footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--subtle);
}
footer .footer-bottom a { color: var(--subtle); }
@media (max-width: 800px) {
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
  footer .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 40px; }
.page-hero h1 { font-size: clamp(36px, 5.5vw, 56px); font-weight: 800; letter-spacing: -0.04em; margin: 18px 0 14px; }
.page-hero p { font-size: 18px; color: var(--muted); max-width: 640px; }

/* ---------- Prose (guides, blog posts, legal) ---------- */
.prose, .article-body { color: var(--text-2); font-size: 17px; line-height: 1.75; }
.prose > * + *, .article-body > * + * { margin-top: 1.1em; }
.prose h2, .article-body h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 750;
  letter-spacing: -0.025em;
  margin-top: 2.2em;
  padding-top: 0.2em;
}
.prose h3, .article-body h3 { font-size: 20px; font-weight: 700; margin-top: 1.8em; letter-spacing: -0.015em; }
.prose h4, .article-body h4 { font-size: 17px; font-weight: 700; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .article-body h2 + *, .article-body h3 + * { margin-top: 0.6em; }
.prose p, .article-body p { margin-bottom: 0; }
.prose a, .article-body a { color: var(--brand-2); text-decoration: underline; text-decoration-color: var(--brand-line); text-underline-offset: 3px; }
.prose a:hover, .article-body a:hover { text-decoration-color: var(--brand-2); }
.prose strong, .article-body strong { color: var(--text); font-weight: 650; }
.prose ul, .prose ol, .article-body ul, .article-body ol { padding-left: 1.3em; }
.prose li + li, .article-body li + li { margin-top: 0.45em; }
.prose li::marker, .article-body li::marker { color: var(--brand); }
.prose code, .article-body code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.prose blockquote, .article-body blockquote { border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; color: var(--text); font-style: italic; }
.prose hr, .article-body hr { border: 0; height: 1px; background: var(--border); margin: 2.4em 0; }
.prose img, .article-body img { border-radius: var(--radius); border: 1px solid var(--border); }
.prose table, .article-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td, .article-body th, .article-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th, .article-body th { color: var(--text); font-weight: 700; background: var(--surface-2); }

/* Callouts */
.callout, .tip, .info-card, .note-box {
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 15.5px;
  color: var(--text-2);
}
.callout strong:first-child, .tip strong:first-child { color: var(--brand-2); }
.callout-warn { border-color: rgba(245, 181, 68, 0.35); background: rgba(245, 181, 68, 0.08); }
.callout-warn strong:first-child { color: var(--warn); }

/* Numbered steps used across the guide */
.steps { display: grid; gap: 10px; counter-reset: step; }
.step-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.step-box + .step-box { margin-top: 10px; }
.step-num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-2);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
}
.step-content { font-size: 15.5px; line-height: 1.6; padding-top: 2px; }

.tab-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-chip { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.tab-chip.active { color: var(--brand-2); border-color: var(--brand-line); background: var(--brand-soft); }

.guide-screenshot { display: flex; justify-content: center; margin: 32px 0; }
.guide-screenshot img { max-width: 300px; width: 100%; border-radius: 28px; border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.guide-screenshot.wide img { max-width: 100%; border-radius: var(--radius-lg); }

/* ---------- Docs layout (guide articles) ---------- */
.docs {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 200px;
  gap: 48px;
  padding: 40px 0 0;
  align-items: start;
}
.docs-nav, .docs-toc { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; scrollbar-width: thin; }
.docs-nav { font-size: 14px; padding-right: 4px; }
.docs-nav .docs-search { width: 100%; margin-bottom: 18px; }
.docs-nav h5 { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); margin: 18px 0 6px; }
.docs-nav h5:first-of-type { margin-top: 0; }
.docs-nav ul { list-style: none; }
.docs-nav a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; line-height: 1.4; }
.docs-nav a:hover { color: var(--text); background: var(--surface-2); }
.docs-nav a[aria-current="page"] { color: var(--brand-2); background: var(--brand-soft); font-weight: 600; }
.docs-toc { font-size: 13.5px; border-left: 1px solid var(--border); padding-left: 16px; }
.docs-toc p { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); margin-bottom: 10px; }
.docs-toc a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; line-height: 1.4; }
.docs-toc a:hover, .docs-toc a.active { color: var(--text); }
.docs-main { min-width: 0; max-width: var(--max-prose); }
.docs-main .breadcrumb { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 18px; }
.docs-main .breadcrumb a { color: var(--muted); text-decoration: none; }
.docs-main .breadcrumb a:hover { color: var(--text); }
.docs-main h1 { font-size: clamp(32px, 4.5vw, 44px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 14px; }
.docs-main .docs-lead { font-size: 19px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.docs-main .docs-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--subtle); padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.docs-pager a { display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; background: var(--surface); transition: border-color 0.15s, background 0.15s; }
.docs-pager a:hover { border-color: var(--brand-line); background: var(--surface-2); }
.docs-pager small { display: block; font-size: 12px; color: var(--subtle); margin-bottom: 4px; }
.docs-pager span { color: var(--text); font-weight: 650; }
.docs-pager .next { text-align: right; grid-column: 2; }
.docs-help { margin-top: 40px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; font-size: 15px; }
.docs-help strong { color: var(--text); }
@media (max-width: 1180px) { .docs { grid-template-columns: 220px minmax(0, 1fr); } .docs-toc { display: none; } }
.docs-nav-toggle {
  display: none;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.docs-nav-toggle::after { content: '+'; float: right; color: var(--muted); }
.docs-nav.open .docs-nav-toggle::after { content: '\2212'; }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .docs-nav { position: static; max-height: none; overflow: visible; }
  .docs-nav-toggle { display: block; }
  .docs-nav-groups { display: none; margin-top: 14px; }
  .docs-nav.open .docs-nav-groups { display: block; }
}

/* Search input */
.search {
  position: relative;
  display: block;
}
.search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.search input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 14px 12px 40px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.search input::placeholder { color: var(--subtle); }
.search input:focus { border-color: var(--brand); background: rgba(255, 255, 255, 0.06); }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-family: var(--font); font-size: 11px; color: var(--subtle); border: 1px solid var(--border-strong); border-radius: 6px; padding: 2px 6px; }
.search-sm input { font-size: 14px; padding: 9px 12px 9px 36px; border-radius: 10px; }
.search-sm svg { left: 12px; width: 14px; height: 14px; }

/* ---------- Blog ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover { color: var(--text); }
article { max-width: var(--max-prose); margin: 0 auto; }
.container > .back-link { display: flex; max-width: var(--max-prose); margin-left: auto; margin-right: auto; }
.article-header { padding: 24px 0 32px; margin-bottom: 36px; border-bottom: 1px solid var(--border); }
.article-header h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.035em; margin: 16px 0 14px; }
.article-tag, .card-tag {
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-2);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  padding: 4px 10px;
  border-radius: 999px;
}
.article-meta, .card-meta { font-size: 14px; color: var(--subtle); }
.article-cta {
  margin: 56px 0 0;
  padding: 36px 32px;
  text-align: center;
  border-radius: var(--radius-xl);
  border: 1px solid var(--brand-line);
  background:
    radial-gradient(30rem 14rem at 50% 0%, rgba(157, 179, 82, 0.18), transparent 70%),
    var(--surface);
}
.article-cta h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.article-cta p { color: var(--muted); margin: 0 auto 22px; max-width: 480px; }
.tip-number { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 8px; font-size: 13px; font-weight: 800; color: var(--brand-2); background: var(--brand-soft); border: 1px solid var(--brand-line); }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.blog-card:hover { border-color: var(--brand-line); background: var(--surface-2); transform: translateY(-2px); }
.blog-card .card-tag { align-self: flex-start; }
.blog-card h2 { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.blog-card .card-excerpt { font-size: 14.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.blog-card .read-more { font-size: 14px; font-weight: 650; color: var(--brand-2); }
.blog-card[hidden] { display: none; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
footer .footer-social { display: flex; flex-wrap: wrap; gap: 16px; }
/* Google's badge PNG carries built-in padding; crop it so it matches the App Store badge height. */
.store-badges a[href*="play.google"] { display: inline-block; overflow: hidden; border-radius: 7px; }
.store-badges a[href*="play.google"] img { height: 56px; margin: -9px -8px; }
footer .store-badges a[href*="play.google"] img { height: 54px; margin: -8px -7px; }
