/* ==========================================================================
   CarboTracker — design system (light + dark)
   "What Gets Monitored Gets Managed."
   ========================================================================== */

/* ----- Theme tokens ------------------------------------------------------- */
:root,
[data-theme="dark"] {
  --bg: #0e1a1e;
  --bg-2: #0a1418;
  --glow: rgba(47, 143, 91, 0.16);
  --surface: #14242a;
  --surface-2: #182e35;
  --elevated: #1c343c;
  --border: rgba(125, 155, 143, 0.16);
  --border-strong: rgba(125, 155, 143, 0.28);
  --text: #e9f1ee;
  --muted: #9bafa8;
  --faint: #71847d;
  --brand: #43a56f;
  --brand-accent: #74cf9b;
  --cta: #17643f;
  --cta-hover: #1c7549;
  --cta-text: #ffffff;
  --ring: rgba(67, 165, 111, 0.35);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.35);
  --card-grad: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

[data-theme="light"] {
  --bg: #eef4f0;
  --bg-2: #ffffff;
  --glow: rgba(47, 143, 91, 0.10);
  --surface: #ffffff;
  --surface-2: #f3f8f5;
  --elevated: #ffffff;
  --border: rgba(20, 50, 35, 0.10);
  --border-strong: rgba(20, 50, 35, 0.16);
  --text: #12241c;
  --muted: #4f635a;
  --faint: #7a8b83;
  --brand: #2b8a58;
  --brand-accent: #2b8a58;
  --cta: #17643f;
  --cta-hover: #1c7549;
  --cta-text: #ffffff;
  --ring: rgba(43, 138, 88, 0.28);
  --shadow: 0 24px 60px rgba(20, 50, 35, 0.12);
  --shadow-sm: 0 10px 30px rgba(20, 50, 35, 0.08);
  --card-grad: linear-gradient(180deg, #ffffff 0%, #fbfefc 100%);
}

/* ----- Base --------------------------------------------------------------- */
:root {
  --max: 1140px;
  --radius: 20px;
  --radius-lg: 28px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 82% -8%, var(--glow), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 32%);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.serif { font-family: var(--serif); }

code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

/* ----- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--brand); }
.btn-primary {
  background: var(--cta); border-color: var(--cta); color: var(--cta-text);
  box-shadow: 0 12px 26px var(--ring);
}
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; }

/* ----- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav {
  min-height: 74px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 64px; height: 64px; object-fit: contain;
}
.site-footer .brand-logo {
  width: 48px; height: 48px;
}
.brand-word { font-family: var(--serif); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; }
.brand-word .w1 { color: var(--text); }
.brand-word .w2 { color: var(--brand-accent); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: color .2s ease, background .2s ease; }
.nav-links > a:hover { color: var(--text); background: var(--surface-2); }
.nav-links > a[aria-current="page"] { color: var(--text); background: var(--surface-2); font-weight: 700; }
.nav-links > a.btn { color: var(--cta-text); }
.nav-links > a.btn:hover { background: var(--cta-hover); }

/* ----- ZipFit Go! brand color (#f97316 orange) ------------------------------ */
.zipfitgo-link { color: #f97316 !important; }
.zipfitgo-link:hover { color: #fb923c !important; }
.zipfitgo-btn { border-color: #f97316 !important; color: #f97316 !important; }
.zipfitgo-btn:hover { background: rgba(249,115,22,.10) !important; border-color: #f97316 !important; color: #f97316 !important; transform: translateY(-1px); }

.theme-toggle {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  cursor: pointer; transition: border-color .2s ease, transform .15s ease;
}
.theme-toggle:hover { border-color: var(--brand); transform: translateY(-1px); }
.theme-toggle svg { width: 20px; height: 20px; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ----- Generic section ---------------------------------------------------- */
.section { padding: 68px 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.eyebrow {
  display: inline-block; color: var(--brand-accent); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.12; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

/* ----- Hero --------------------------------------------------------------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  color: var(--brand-accent); font-weight: 600; font-size: 13px;
}
.hero-badge svg { width: 15px; height: 15px; }
.hero-logo-row { display: flex; align-items: center; gap: 16px; margin: 26px 0 6px; }
.hero-logo { width: 72px; height: 72px; object-fit: contain; }
.hero-word { font-family: var(--serif); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -0.02em; }
.hero-word .w1 { color: var(--text); }
.hero-word .w2 { color: var(--brand-accent); }
.hero-tagline { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--brand-accent); font-size: clamp(1.25rem, 2.6vw, 1.7rem); margin-top: 8px; }
.hero p.lead { margin-top: 18px; color: var(--muted); font-size: 1.14rem; max-width: 52ch; }
.hero-actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 14px; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; color: var(--brand); }

.hero-visual { display: grid; place-items: center; }

/* ----- Phone mockup ------------------------------------------------------- */
.phone {
  width: 300px; max-width: 100%;
  border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #26343a 0%, #0f1a1f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.phone-screen {
  position: relative; border-radius: 32px; overflow: hidden;
  background: #f3f5f6; color: #1f2937;
  font-size: 12px; line-height: 1.4;
  aspect-ratio: 300 / 620;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 22px; background: #0f1a1f; border-radius: 999px; z-index: 5;
}
.scr { padding: 34px 14px 54px; height: 100%; overflow: hidden; }
.scr-top { display: flex; align-items: center; justify-content: space-between; color: #6b7280; font-weight: 600; padding: 2px 4px 10px; }
.scr-top strong { color: #111827; font-size: 13px; }
.scr-top .chev { font-size: 15px; color: #9ca3af; }

.net-card {
  background: linear-gradient(160deg, #2e7d4f 0%, #1f5c3a 100%);
  border-radius: 16px; padding: 12px 14px; color: #fff; text-align: center;
  box-shadow: 0 10px 20px rgba(31, 92, 58, 0.3);
}
.net-card .lbl { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); }
.net-card .big { font-size: 30px; font-weight: 800; line-height: 1.1; font-family: var(--sans); }
.net-card .goal { font-size: 10px; color: rgba(255, 255, 255, 0.8); margin-bottom: 8px; }
.net-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.net-bar i { display: block; height: 100%; width: 85%; background: #9be7b8; border-radius: 999px; }

.macro-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.macro {
  background: #fff; border: 1px solid #eceef0; border-radius: 12px; padding: 8px 6px; text-align: center;
}
.macro .m-lbl { font-size: 9px; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; }
.macro .m-val { font-size: 15px; font-weight: 800; color: #111827; }
.macro .m-sub { font-size: 9px; color: #b6bcc2; }
.macro.fat .m-val { color: #d97706; }
.macro.pro .m-val { color: #2563eb; }
.macro.cal .m-val { color: #16a34a; }

.breakdown { background: #fff; border: 1px solid #eceef0; border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.breakdown h5 { font-size: 11px; color: #374151; margin-bottom: 6px; }
.breakdown .b-row { display: flex; justify-content: space-between; font-size: 10.5px; color: #6b7280; padding: 2px 0; }
.breakdown .b-row.total { border-top: 1px solid #eceef0; margin-top: 4px; padding-top: 6px; color: #111827; font-weight: 700; }
.breakdown .b-row.total b { color: #2e7d4f; }

.log { margin-top: 10px; }
.log h5 { font-size: 11px; color: #374151; margin-bottom: 6px; display: flex; justify-content: space-between; }
.log h5 span { color: #b6bcc2; font-weight: 500; }
.log .l-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid #f1f2f4; }
.log .l-row .l-name { color: #1f2937; font-weight: 600; font-size: 11px; }
.log .l-row .l-sub { color: #9ca3af; font-size: 9px; }
.log .l-row .l-net { color: #2e7d4f; font-weight: 700; font-size: 11px; }

.fab {
  position: absolute; right: 16px; bottom: 44px; width: 40px; height: 40px; border-radius: 999px;
  background: #2e7d4f; color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 300;
  box-shadow: 0 8px 18px rgba(46, 125, 79, 0.45);
}
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: #fff; border-top: 1px solid #eceef0;
  display: flex; align-items: center; justify-content: space-around; color: #b6bcc2;
}
.tabbar svg { width: 18px; height: 18px; }
.tabbar .active { color: #2e7d4f; }

/* search screen */
.search-bar { background: #fff; border: 1px solid #eceef0; border-radius: 12px; padding: 9px 12px; color: #9ca3af; display: flex; align-items: center; gap: 8px; font-size: 11px; }
.search-bar svg { width: 14px; height: 14px; }
.food-list { margin-top: 10px; display: grid; gap: 7px; }
.food-item { background: #fff; border: 1px solid #eceef0; border-radius: 12px; padding: 9px 11px; display: flex; justify-content: space-between; align-items: center; }
.food-item .f-name { font-weight: 600; color: #1f2937; font-size: 11px; }
.food-item .f-sub { color: #9ca3af; font-size: 9px; }
.badges { display: inline-flex; gap: 3px; margin-top: 3px; }
.dbadge { width: 15px; height: 15px; border-radius: 5px; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: #fff; }
.dbadge.k { background: #16a34a; }
.dbadge.c { background: #dc2626; }
.dbadge.l { background: #d4a017; }
.food-item .f-net { color: #2e7d4f; font-weight: 700; font-size: 11px; text-align: right; }

/* weight screen */
.chart-card { background: #fff; border: 1px solid #eceef0; border-radius: 14px; padding: 12px; margin-top: 4px; }
.chart-card h5 { font-size: 11px; color: #374151; margin-bottom: 8px; }
.chart-card svg { width: 100%; height: auto; display: block; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.stat { background: #fff; border: 1px solid #eceef0; border-radius: 12px; padding: 9px 6px; text-align: center; }
.stat .s-val { font-size: 15px; font-weight: 800; color: #111827; }
.stat .s-lbl { font-size: 9px; color: #9ca3af; }

/* ----- Feature grid ------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  background: var(--surface); background-image: var(--card-grad);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand-accent);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.96rem; }

/* ----- Showcase ----------------------------------------------------------- */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; justify-items: center; align-items: start; }
.showcase figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.showcase .phone { width: 260px; }
.showcase figcaption { color: var(--muted); font-size: 0.95rem; text-align: center; max-width: 26ch; }
.showcase figcaption strong { color: var(--text); display: block; font-size: 1.02rem; margin-bottom: 2px; }

/* ----- Pricing ------------------------------------------------------------ */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 22px; justify-content: center; }
.price-card {
  position: relative; background: var(--surface); background-image: var(--card-grad);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px;
}
.price-card.featured { border-color: var(--brand); box-shadow: 0 20px 44px var(--ring); }
.price-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #04140c; font-weight: 800; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}
.price-card h3 { font-family: var(--serif); font-size: 1.4rem; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 2px; }
.price-amount .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; }
.price-amount .per { color: var(--muted); font-weight: 600; }
.price-sub { color: var(--faint); font-size: 0.95rem; }
.price-list { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 11px; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 0.98rem; }
.price-list svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }
.price-card .btn { width: 100%; }

/* ----- Philosophy --------------------------------------------------------- */
.philosophy { background: color-mix(in srgb, var(--surface) 60%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.philo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.philo-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.philo-card h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 10px; }
.philo-card p { color: var(--muted); }
.pull-quote {
  max-width: 780px; margin: 44px auto 0; text-align: center;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.3; color: var(--text);
}
.pull-quote::before, .pull-quote::after { content: "\201C"; color: var(--brand-accent); }
.pull-quote::after { content: "\201D"; }

/* ----- CTA band ----------------------------------------------------------- */
.cta-band { text-align: center; padding: 76px 0; }
.cta-band .cta-logo { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 22px; }
.cta-band h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3rem); }
.cta-band p { color: var(--muted); font-size: 1.1rem; max-width: 56ch; margin: 16px auto 28px; }

/* ----- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 70%, transparent); margin-top: 20px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; padding: 40px 0 26px; }
.footer-brand { display: grid; gap: 8px; max-width: 320px; }
.footer-brand .brand { }
.footer-brand p { color: var(--muted); font-family: var(--serif); font-style: italic; }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.footer-legal { border-top: 1px solid var(--border); padding: 18px 0; color: var(--faint); font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ----- Article / blog ----------------------------------------------------- */
.article { padding: 64px 0 40px; }
.article-grid { max-width: 760px; margin: 0 auto; }
.article-meta { color: var(--brand-accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.article h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin-top: 12px; }
.article > .article-grid > p, .article p { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.article h2 { font-family: var(--serif); margin-top: 32px; font-size: 1.6rem; }
.article h3 { margin-top: 24px; font-size: 1.2rem; }
.article ul, .article ol { margin: 16px 0 0 20px; color: var(--muted); }
.article li { margin: 8px 0; }
.article a { color: var(--brand-accent); text-decoration: underline; text-underline-offset: 2px; }
.article blockquote { margin: 22px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--text); }
.article img { border-radius: var(--radius); margin-top: 18px; }
.article table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.96rem; }
.article th, .article td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.article code { color: var(--brand-accent); }

/* ----- Blog container ----------------------------------------------------- */
.blog-container { max-width: 900px; }

/* ----- Blog search -------------------------------------------------------- */
.blog-search {
  display: flex; align-items: center; gap: 0;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 6px 6px 6px 18px;
  margin-top: 28px; transition: border-color .2s ease, box-shadow .2s ease;
}
.blog-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.blog-search-input {
  flex: 1; border: none; background: transparent; color: var(--text);
  font-size: 15px; font-family: var(--sans); outline: none;
  min-width: 0;
}
.blog-search-input::placeholder { color: var(--faint); }
.blog-search-btn {
  width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center;
  border: none; background: var(--cta); color: var(--cta-text); cursor: pointer;
  flex: none; transition: background .2s ease;
}
.blog-search-btn:hover { background: var(--cta-hover); }

/* ----- Blog filters ------------------------------------------------------- */
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.blog-result-count { color: var(--faint); font-size: 13px; margin-top: 8px; }

/* ----- Tag chips ---------------------------------------------------------- */
.tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  color: var(--brand-accent); font-size: 12px; font-weight: 600;
  text-decoration: none; transition: background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.tag-chip:hover { background: color-mix(in srgb, var(--brand) 22%, transparent); border-color: var(--brand); }
.tag-chip--active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tag-chip--active:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.tag-chip-remove { color: inherit; font-size: 14px; line-height: 1; text-decoration: none; opacity: .8; }
.tag-chip-remove:hover { opacity: 1; }

/* ----- Blog grid (card list) ---------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.blog-empty { color: var(--muted); margin-top: 12px; grid-column: 1 / -1; }
.blog-empty a { color: var(--brand-accent); text-decoration: underline; text-underline-offset: 2px; }

.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); background-image: var(--card-grad);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.post-card-image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.post-card:hover .post-card-image img { transform: scale(1.03); }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-date { color: var(--brand-accent); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.post-card h3 { margin-top: 6px; font-size: 1.12rem; line-height: 1.3; }
.post-card p { color: var(--muted); margin-top: 8px; font-size: 0.94rem; flex: 1; }
.post-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* ----- Blog pagination ---------------------------------------------------- */
.blog-pagination {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border);
}
.page-btn {
  display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.page-btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.page-btn--disabled { opacity: .4; cursor: default; pointer-events: none; }
.page-info { color: var(--muted); font-size: 14px; }

/* ----- Post page additions ------------------------------------------------ */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand-accent); font-size: 14px; font-weight: 600;
  text-decoration: none; margin-bottom: 20px;
  transition: gap .15s ease, color .15s ease;
}
.back-link:hover { color: var(--text); gap: 10px; }

.post-header-image {
  border-radius: var(--radius); overflow: hidden; margin-bottom: 24px;
  aspect-ratio: 2 / 1; background: var(--surface-2);
}
.post-header-image img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0;
}

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; margin-bottom: 8px; }

/* ----- Old blog-list (keep for back-compat, hidden by new grid) ----------- */
.blog-list { display: grid; gap: 14px; margin-top: 28px; }

.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-top: 28px; }
.info-card h2 { margin-top: 0; }
.info-card .actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }

.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-top: 28px; }
.info-card h2 { margin-top: 0; }
.info-card .actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ----- Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; }
  .philo-grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: minmax(0, 420px); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .section { padding: 52px 0; }
  .nav { min-height: 62px; gap: 8px; }
  .nav-links { gap: 2px; }
  .nav-links > a.btn { display: none; }
  .nav-links > a:not(.btn) { padding: 7px 9px; font-size: 14px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-word { font-size: 19px; }
  .theme-toggle { width: 40px; height: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-pagination { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 480px) {
  .site-header .brand-word { display: none; }
  .nav-links > a:not(.btn) { padding: 7px 8px; }
}
