/* SaunaMetrics — shared site styles
   Neo-brutalist heat-performance design language.
   Thick borders. No shadows. Flat color. Heavy grotesk. */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Heat palette */
  --ember:    #FF5500;
  --orange:   #FF6A00;
  --yellow:   #FFC700;
  --blue:     #0033CC;
  --green:    #A7F3D0;
  --steam:    #F5F5F5;
  --paper:    #FAFAF7;
  --charcoal: #0B0B0B;
  --ink:      #0B0B0B;
  --line:     #0B0B0B;
  --muted:    #6b6b6b;

  /* Theme-controlled */
  --bg:       var(--paper);
  --fg:       var(--charcoal);
  --card:     #FFFFFF;
  --accent:   var(--ember);
  --accent-fg: #FFFFFF;

  /* Geometry */
  --b: 3px;             /* default border width */
  --b-thick: 4px;       /* thick border */
  --b-thin: 2px;        /* thin border */
  --radius: 0;
  --gap: 24px;
  --container: 1240px;

  /* Type */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: var(--charcoal);
  --fg: var(--steam);
  --card: #161616;
  --line: var(--steam);
  --muted: #9a9a9a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  padding-left:  max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; background: var(--accent);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}

h1.display {
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  font-weight: 700;
}

h2.section-title {
  font-size: clamp(40px, 6vw, 72px);
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

h3 { font-size: 22px; letter-spacing: -0.01em; }

.mono { font-family: var(--font-mono); }
.allcaps { text-transform: uppercase; letter-spacing: 0.04em; }
.accent { color: var(--accent); }
.lead { font-size: 19px; line-height: 1.5; max-width: 56ch; }
.muted { color: var(--muted); }
[data-theme="dark"] .muted { color: #b0b0b0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 22px;
  border: var(--b) solid var(--line);
  background: var(--card); color: var(--fg);
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer;
  transition: transform 120ms ease;
  position: relative;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(0, 0); }

.btn-primary { background: var(--accent); color: var(--accent-fg); border-color: var(--line); }
.btn-dark { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
[data-theme="dark"] .btn-dark { background: var(--steam); color: var(--charcoal); border-color: var(--steam); }

.btn .arr { width: 18px; height: 18px; }

/* ---------- Cards / panels ---------- */
.card {
  background: var(--card);
  border: var(--b) solid var(--line);
  padding: 28px;
}
.card-thick { border-width: var(--b-thick); }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
  border-bottom: var(--b) solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
}
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.02em; }
.nav-logo img { width: 48px; height: 48px; border: 0; border-radius: 22%; }
.nav-logo span { font-size: 18px; text-transform: uppercase; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--font-mono); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  padding: 10px 16px; border: var(--b-thin) solid var(--line);
  background: var(--accent); color: var(--accent-fg);
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.nav-cta:hover { transform: translate(-2px, -2px); }

/* language picker */
.lang-picker {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg);
  color: var(--fg);
  border: var(--b-thin) solid var(--line);
  padding: 6px 8px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.lang-picker:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 720px) {
  .lang-picker {
    margin: 8px 20px;
    width: calc(100% - 40px);
    padding: 12px 10px;
    font-size: 14px;
  }
}

/* hamburger — phone only */
.nav-burger {
  display: none;
  appearance: none;
  background: var(--card);
  border: var(--b-thin) solid var(--line);
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  padding: 0; cursor: pointer; color: var(--fg);
}
.nav-burger span {
  display: block; width: 20px; height: 2px;
  background: currentColor; position: relative;
}
.nav-burger span::before,
.nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: currentColor; transition: transform 160ms ease, top 160ms ease;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after  { top:  6px; }
.nav[data-open="1"] .nav-burger span { background: transparent; }
.nav[data-open="1"] .nav-burger span::before { top: 0; transform: rotate(45deg); }
.nav[data-open="1"] .nav-burger span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 720px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: var(--b) solid var(--line);
    padding: 8px 0 max(16px, env(safe-area-inset-bottom));
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 140ms ease;
  }
  .nav[data-open="1"] .nav-links {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border-top: 1px solid var(--line);
    min-height: 48px;
    box-sizing: border-box;
  }
  .nav-links a:first-child { border-top: 0; }
  .nav-links .nav-cta {
    margin: 12px 20px 0;
    width: calc(100% - 40px);
    padding: 14px 16px;
    text-align: center;
    border-width: var(--b);
    font-size: 14px;
    min-height: 48px;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: var(--b) solid var(--line);
  background: var(--accent);
  color: var(--accent-fg);
  overflow: hidden;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 44px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex; gap: 48px;
  animation: marquee 40s linear infinite;
  padding-left: 48px;
}
.marquee-track > span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-dot {
  width: 18px; height: 18px; background: var(--charcoal);
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Section ---------- */
.section {
  border-bottom: var(--b) solid var(--line);
  padding: 96px 0;
}
.section-tight { padding: 64px 0; }

/* ---------- Footer ---------- */
.foot {
  background: var(--charcoal); color: var(--steam);
  padding: 64px 0 32px;
  border-top: var(--b) solid var(--line);
}
.foot a { color: var(--steam); }
.foot a:hover { color: var(--ember); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

.foot-col h4 {
  font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #888; margin-bottom: 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col li { font-size: 15px; }

.foot-bottom {
  border-top: 1px solid #2a2a2a; margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 12px; color: #888;
  flex-wrap: wrap; gap: 12px;
}

/* ---------- Stamp / corner labels ---------- */
.stamp {
  display: inline-block;
  border: var(--b-thin) solid var(--line);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--card);
}

/* ---------- Article (blog) ---------- */
.article-body {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.65;
}
.article-body h2 { font-size: 32px; margin: 48px 0 16px; text-transform: uppercase; }
.article-body h3 { font-size: 22px; margin: 32px 0 12px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 18px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 24px 0; padding: 20px 24px;
  border-left: var(--b-thick) solid var(--accent);
  background: var(--card);
  font-size: 19px;
  font-weight: 500;
}
.article-body strong { font-weight: 700; }
.article-body code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: var(--card); padding: 2px 6px; border: 1px solid var(--line);
}

/* ============================================================
   RESPONSIVE — phone / small tablet
   ============================================================ */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0; }

  /* Hero — split & stacked collapse to single column */
  .hero-split-grid,
  .hero-stacked-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    align-items: start !important;
  }
  .hero-split-grid > div:last-child,
  .hero-stacked-grid > div:last-child { justify-self: center !important; }

  /* Features — 2 cols at tablet, 1 col on phone (handled below) */
  .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .features-grid > div { border-right: none !important; border-bottom: 3px solid var(--line) !important; }
  .features-grid > div:nth-child(2n) { border-right: none !important; }
  .features-grid > div:nth-child(odd):not(:nth-last-child(-n+2)) { border-right: 3px solid var(--line) !important; }
  .features-grid > div:nth-child(odd) { border-right: 3px solid var(--line) !important; }
  .features-grid > div:nth-last-child(-n+2) { border-bottom: none !important; }

  /* Widgets section — stack */
  .widgets-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Track/Learn pillars — stack */
  .tl-grid { grid-template-columns: 1fr !important; }
  .pillar-cell { border-right: none !important; border-bottom: 4px solid var(--line); }
  .pillar-cell:last-child { border-bottom: none !important; }

  /* Showcase — 2 cols on tablet */
  .showcase-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 24px !important; }

  /* Blog teaser — stack */
  .blog-grid { grid-template-columns: 1fr !important; }
  .blog-grid > a { border-right: none !important; border-bottom: 3px solid var(--line); }
  .blog-grid > a:last-child { border-bottom: none !important; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container {
    padding: 0 18px;
    padding-left:  max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
  .section { padding: 56px 0; }

  /* Nav — tighter */
  .nav { padding: 12px 16px; }
  .nav-logo img { width: 40px; height: 40px; }
  .nav-logo span { font-size: 15px; }
  .nav-cta { padding: 10px 14px; font-size: 12px; min-height: 36px; display: inline-flex; align-items: center; }

  /* Marquee — smaller, slower for readability */
  .marquee { padding: 12px 0; font-size: 22px; }
  .marquee-track { gap: 28px; padding-left: 28px; animation-duration: 60s; }
  .marquee-track > span { gap: 28px; }
  .marquee-dot { width: 12px; height: 12px; }

  /* Buttons — full-width on phones with proper touch target */
  .btn { padding: 16px 18px; font-size: 14px; width: 100%; justify-content: center; min-height: 52px; }
  .nav-cta { width: auto; min-height: 36px; }

  /* Hero — tighter, with safe-area padding */
  .hero-stamps { margin-top: 20px; gap: 8px; }
  .hero-ctas   { margin-top: 28px; gap: 10px; }
  .phone-frame { max-width: min(280px, 78vw); }
  .phone-frame .live-tag {
    top: -16px; left: 8px;
    padding: 5px 10px; font-size: 10px;
  }

  /* Section heads — stack vertically on phone for breathing room */
  .section-head { gap: 12px; margin-bottom: 32px; }

  /* Features — single column */
  .features-grid { grid-template-columns: 1fr !important; }
  .features-grid > div {
    border-right: none !important;
    border-bottom: 3px solid var(--line) !important;
    padding: 24px !important;
    min-height: 0 !important;
  }
  .features-grid > div:last-child { border-bottom: none !important; }
  .feature-cell h3 { font-size: 22px; }
  .feature-cell p  { font-size: 15px; }

  /* Widgets section — give it room to breathe */
  .widgets-section { padding: 56px 0; }
  .widget { max-width: 100%; padding: 18px; }
  .widget-bullets li { gap: 14px; }

  /* Showcase — 2 columns on phones (better than 1 long stack) */
  .showcase-grid { grid-template-columns: 1fr 1fr !important; gap: 14px !important; }
  .showcase-grid + .showcase-grid { margin-top: 14px; }

  /* Pillars — tighter padding */
  .pillar-cell { padding: 32px 22px !important; }
  .pillar-cell h3 { font-size: 28px !important; }
  .pillar-cell li { font-size: 15px; }

  /* Final CTA — tighter */
  .final-cta .lead { font-size: 16px; }
  .final-cta .ctas { margin-top: 28px; gap: 10px; }

  /* Card padding */
  .card { padding: 20px; }

  /* Article body */
  .article-body { font-size: 16.5px; }
  .article-body h2 { font-size: 26px; margin: 36px 0 12px; }
  .article-body h3 { font-size: 19px; margin: 24px 0 10px; }
  .article-body blockquote { padding: 16px 18px; font-size: 17px; }

  /* Footer — safe-area-inset for home-indicator */
  .foot {
    padding: 48px 0 max(24px, env(safe-area-inset-bottom));
  }
  .foot-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .foot a { padding: 4px 0; display: inline-block; }

  /* Stamps */
  .stamp { font-size: 10px; padding: 4px 8px; }

  /* Section title */
  h2.section-title { font-size: clamp(32px, 9vw, 52px) !important; }
  h1.display { font-size: clamp(44px, 12vw, 80px) !important; }
}

/* Very small phones (iPhone SE / 5s era) */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .nav { padding: 10px 14px; }
  .nav-logo span { display: none; }
  h1.display { font-size: clamp(40px, 11.5vw, 64px) !important; }
  .features-grid > div { padding: 20px !important; }
}

/* iOS / mobile niceties — apply when fine pointer isn't available */
@media (hover: none) {
  /* Prevent iOS tap-flash on interactive elements */
  a, button, .btn, .nav-cta, .blog-card { -webkit-tap-highlight-color: rgba(255,85,0,0.18); }
  /* Disable parallax/hover transforms on touch — they feel laggy */
  .btn:hover, .nav-cta:hover { transform: none; }
}

/* Honor users who prefer reduced motion (iOS toggle in Settings → Accessibility) */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
  .btn, .blog-card { transition: none; }
}

/* ============================================================
   HOME PAGE — sections specific to index.html
   ============================================================ */
.eyebrow-on-dark { color: var(--steam); }
.eyebrow-on-dark::before { background: var(--accent); }

.hero { padding-bottom: 0; border-bottom: none; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-stamps { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero-ctas   { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.phone-frame {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border: 4px solid var(--line);
  background: #000;
  position: relative;
}
.phone-frame img { width: 100%; display: block; }
.phone-frame .live-tag {
  position: absolute; top: -22px; left: -22px;
  background: var(--accent); color: var(--accent-fg);
  padding: 6px 12px; border: 3px solid var(--line);
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
}

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 48px;
}
.section-head h2 { margin-top: 16px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 3px solid var(--line);
}
.feature-cell {
  padding: 32px;
  background: var(--card);
  min-height: 240px;
  display: flex; flex-direction: column;
}
.feature-cell:nth-child(-n+3)  { border-bottom: 3px solid var(--line); }
.feature-cell:nth-child(3n+1),
.feature-cell:nth-child(3n+2)  { border-right: 3px solid var(--line); }
.feature-cell .num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--accent); font-weight: 700;
}
.feature-cell h3 {
  margin-top: 24px; font-size: 26px;
  text-transform: uppercase; letter-spacing: -0.01em;
}
.feature-cell p {
  margin: 14px 0 0; color: var(--muted);
  font-size: 15.5px; line-height: 1.55;
}

.widgets-section { background: var(--charcoal); color: var(--steam); border-color: var(--steam); }
.widgets-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.widgets-section .lead { color: #bdbdbd; }
.widget-bullets { list-style: none; padding: 0; margin: 32px 0 0;
  display: flex; flex-direction: column; gap: 14px; }
.widget-bullets li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 14px 0; border-top: 1px solid #333;
}
.widget-bullets .n {
  font-family: var(--font-mono); color: var(--accent);
  font-weight: 700; font-size: 13px; min-width: 28px;
}
.widget-bullets .label {
  font-weight: 700; font-size: 17px;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.widget-bullets .desc { color: #a8a8a8; font-size: 15px; margin-top: 4px; }
.widget-stack {
  display: flex; flex-direction: column;
  gap: 28px; align-items: center;
}

.widget {
  width: 100%; max-width: 340px;
  background: #000; border: 3px solid var(--steam);
  padding: 20px; font-family: var(--font-display);
}
.widget-hd {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.widget-hd .left  { color: #888; }
.widget-hd .right { color: var(--accent); letter-spacing: 0.06em; }
#heatmap-grid { display: grid; gap: 3px; }
.heatmap-cell { aspect-ratio: 1; }
.heatmap-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; font-family: var(--font-mono);
  font-size: 10px; color: #888;
}
#heatmap-legend { display: flex; gap: 3px; }

.widget-last { padding: 22px; color: #fff; }
.widget-last .top {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.widget-last .date {
  font-size: 11px; font-family: var(--font-mono);
  color: #888; letter-spacing: 0.1em;
}
.widget-last .date + .date { margin-top: 2px; }
.widget-last .score { text-align: right; }
.widget-last .score-val {
  font-size: 36px; font-weight: 700; color: var(--accent); line-height: 1;
}
.widget-last .score-val span { color: #666; font-size: 16px; }
.widget-last .score-lbl {
  font-family: var(--font-mono); font-size: 10px;
  color: #888; letter-spacing: 0.1em; margin-top: 4px;
}
.widget-last .title {
  font-size: 32px; font-weight: 700; line-height: 0.95;
  text-transform: uppercase; letter-spacing: -0.02em; margin-top: 18px;
}
.widget-last .title span { color: var(--accent); }
.widget-last .stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 18px; border-top: 1px solid #333; padding-top: 14px;
}
.widget-last .stat-v { font-weight: 700; font-size: 16px; }
.widget-last .stat-l {
  font-family: var(--font-mono); font-size: 9px;
  color: #888; letter-spacing: 0.1em; margin-top: 2px;
}

.tl-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 4px solid var(--line); margin-top: 32px;
}
.pillar-cell { padding: 48px; background: var(--card); color: var(--fg); }
.pillar-cell.left  { border-right: 4px solid var(--line); }
.pillar-cell.accent { background: var(--accent); color: var(--accent-fg); }
.pillar-cell .num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 14px;
}
.pillar-cell h3 {
  font-size: 38px; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 0.95;
}
.pillar-cell ul {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: flex; flex-direction: column;
}
.pillar-cell li {
  padding: 14px 0;
  border-top: 2px solid var(--line);
  display: flex; gap: 14px; align-items: flex-start; font-size: 16px;
}
.pillar-cell.accent li { border-top-color: var(--accent-fg); }
.pillar-cell li .idx {
  font-family: var(--font-mono); font-size: 12px;
  opacity: 0.6; padding-top: 3px;
}

.showcase { background: var(--card); }
.showcase-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; align-items: center;
}
.showcase-grid + .showcase-grid { margin-top: 48px; }

.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 3px solid var(--line);
}
.blog-card {
  padding: 32px; background: var(--card);
  display: flex; flex-direction: column; gap: 18px;
  min-height: 280px; transition: background 120ms;
}
.blog-card:not(:last-child) { border-right: 3px solid var(--line); }
.blog-card:hover { background: var(--accent); color: var(--accent-fg); }
.blog-card .meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.blog-card h3 {
  font-size: 28px; text-transform: uppercase;
  letter-spacing: -0.02em; margin-top: auto;
}
.blog-card p { margin: 0; font-size: 15px; opacity: 0.75; }
.blog-card .read {
  font-family: var(--font-mono); font-size: 12px;
  font-weight: 700; letter-spacing: 0.08em; margin-top: 4px;
}

.final-cta { background: var(--accent); color: var(--accent-fg); border-color: var(--line); }
.final-cta .container { text-align: center; }
.final-cta h2 {
  font-size: clamp(48px, 8vw, 120px);
  text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.9;
}
.final-cta .lead { margin: 28px auto 0; max-width: 540px; font-size: 18px; }
.final-cta .ctas {
  display: flex; justify-content: center; gap: 14px;
  margin-top: 40px; flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-grid, .widgets-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid > .phone-frame, .widgets-grid > .widget-stack { justify-self: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-cell:nth-child(3n+1),
  .feature-cell:nth-child(3n+2) { border-right: none; }
  .feature-cell { border-right: none; border-bottom: 3px solid var(--line); }
  .feature-cell:nth-child(odd) { border-right: 3px solid var(--line); }
  .feature-cell:nth-last-child(-n+2) { border-bottom: none; }
  .tl-grid { grid-template-columns: 1fr; }
  .pillar-cell.left { border-right: none; border-bottom: 4px solid var(--line); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card:not(:last-child) { border-right: none; border-bottom: 3px solid var(--line); }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-cell { border-right: none !important; border-bottom: 3px solid var(--line); padding: 24px; min-height: 0; }
  .feature-cell:last-child { border-bottom: none; }
  .showcase-grid { grid-template-columns: 1fr; }
  .pillar-cell { padding: 32px 24px; }
  .pillar-cell h3 { font-size: 30px; }
}
