/* ============================
   SUBSTACK INSIGHTS — LANDING
   Substack colour palette
   ============================ */

:root {
  --orange:       #FF6719;
  --orange-dark:  #E8550A;
  --orange-light: #FFF0E6;
  --orange-faint: #FFF9F5;
  --cream:        #FFFDF9;
  --cream-2:      #F7F4EF;
  --border:       #EDE8E0;
  --text:         #1a1a1a;
  --text-2:       #555048;
  --text-3:       #8C8278;
  --white:        #FFFFFF;
  --radius:       12px;
  --radius-lg:    20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 2px solid transparent;
  line-height: 1.2;
}

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 103, 25, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--text-2);
  background: var(--cream-2);
}

.btn-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.coming-soon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--border);
  color: var(--text-3);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,253,249,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--orange);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}

.logo-text { color: var(--text); }

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--orange); }

/* ---- HERO ---- */
.hero {
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -160px;
  left: -10%;
  width: 70%;
  height: 600px;
  background: radial-gradient(ellipse at top left, rgba(255,103,25,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-split {
  display: grid;
  grid-template-columns: 42fr 58fr;
  gap: 32px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-light);
  color: var(--orange-dark);
  border: 1px solid rgba(255,103,25,0.2);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 14px;
}

.highlight { color: var(--orange); }

.highlight-local {
  color: var(--orange);
  font-weight: 700;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 18px;
  line-height: 1.6;
}

.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-2);
  font-weight: 500;
}

.bullet-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bullet-icon--green {
  background: #DCFCE7;
  color: #16A34A;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.price-orig {
  opacity: 0.6;
  font-weight: 400;
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.6);
}

.hero-note {
  font-size: 13px;
  color: var(--text-3);
}

.hero-right {
  position: relative;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-left { align-items: center; text-align: center; }
  .hero-bullets li { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-note { text-align: center; }
}

/* ---- MOCKUP INSIGHT ---- */
.mockup-insight {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #FFF7ED;
  border: 1px solid rgba(255,103,25,0.2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.5;
  margin-top: 10px;
}

.insight-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---- LOCAL BANNER ---- */
.local-banner {
  background: var(--text);
  padding: 20px 0;
}

.local-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.local-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 36px;
  color: var(--white);
}

.local-stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

.local-stat strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.local-stat span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.local-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

@media (max-width: 860px) {
  .local-divider { display: none; }
  .local-stat { padding: 10px 20px; }
  .local-banner-inner { justify-content: flex-start; }
}

/* ---- STACKED CARDS ---- */
.stack-outer {
  position: relative;
  width: 95%;
}

.stack-stage {
  position: relative;
  /* padding reserves space so back card (offset 24px right+down) isn't clipped */
  padding-right: 24px;
  padding-bottom: 24px;
}

.stack-spacer {
  /* same width as the cards; its height drives the container */
  width: calc(100% - 24px);
  height: auto;
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.stack-card {
  position: absolute;
  width: calc(100% - 24px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: top 0.45s cubic-bezier(0.34, 1.2, 0.64, 1),
              left 0.45s cubic-bezier(0.34, 1.2, 0.64, 1),
              box-shadow 0.35s ease,
              z-index 0s;
  line-height: 0;
}

.stack-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* front card: sits at top-left, high elevation */
.stack-card.is-front {
  top: 0;
  left: 0;
  z-index: 2;
  box-shadow: 0 24px 64px rgba(0,0,0,0.20), 0 4px 16px rgba(0,0,0,0.08);
  cursor: default;
}

/* back card: offset 24px right + 24px down, clearly visible as a second window */
.stack-card.is-back {
  top: 24px;
  left: 24px;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  cursor: pointer;
}

.stack-card.is-back:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.20);
}

@keyframes stack-glow {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 0px rgba(255,103,25,0); }
  50%       { box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 18px 4px rgba(255,103,25,0.30); }
}

.stack-card.is-back {
  animation: stack-glow 2.6s ease-in-out infinite;
}

.stack-card.is-back:hover {
  animation: none;
  box-shadow: 0 12px 40px rgba(255,103,25,0.25), 0 0 0 2px rgba(255,103,25,0.55);
  transform: translate(24px, 24px) scale(1.02) !important;
  transition: transform 0.2s ease, box-shadow 0.15s ease !important;
}

/* floating "click" badge on the back card */
.stack-card.is-back::after {
  content: "↑ click to switch";
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(255,103,25,0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}

.stack-card.is-back:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ripple on click */
@keyframes stack-ripple {
  to { transform: scale(3.5); opacity: 0; }
}

.stack-ripple {
  position: absolute;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  background: rgba(255,103,25,0.30);
  pointer-events: none;
  animation: stack-ripple 0.55s ease-out forwards;
  z-index: 10;
}

.stack-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: var(--cream-2);
  border-bottom: 1px solid var(--border);
  line-height: 1;
}

.stack-dots {
  display: flex;
  gap: 6px;
}
.stack-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.stack-dots span:nth-child(1) { background: #FF5F57; }
.stack-dots span:nth-child(2) { background: #FFBD2E; }
.stack-dots span:nth-child(3) { background: #28CA41; }

.stack-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

.stack-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 12px;
}

/* ---- APP MOCKUP (kept for reference, no longer used in hero) ---- */
.mockup-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  background: var(--white);
}

.mockup-chrome {
  background: var(--cream-2);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}
.chrome-dots span:nth-child(1) { background: #FF5F57; }
.chrome-dots span:nth-child(2) { background: #FFBD2E; }
.chrome-dots span:nth-child(3) { background: #28CA41; }

.chrome-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  margin-right: 48px;
}

.mockup-body {
  display: flex;
  min-height: 300px;
}

.mockup-sidebar {
  width: 130px;
  flex-shrink: 0;
  background: var(--cream-2);
  border-right: 1px solid var(--border);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: default;
}

.sidebar-item.active {
  background: var(--orange);
  color: var(--white);
}

.sidebar-item:not(.active):hover {
  background: var(--border);
}

.mockup-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.kpi-card {
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.kpi-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.kpi-delta {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.kpi-delta.positive { color: #22c55e; }
.kpi-delta.neutral  { color: var(--text-3); }

.chart-placeholder {
  flex: 1;
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
}

.chart-bar-group {
  width: 100%;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  margin-bottom: 8px;
}

.bar {
  flex: 1;
  background: rgba(255,103,25,0.18);
  border-radius: 4px 4px 0 0;
  transition: background 0.2s;
}

.bar.accent {
  background: var(--orange);
}

.chart-label {
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  font-weight: 500;
}

/* ---- BADGE DOT ---- */
.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34,197,94,0.25); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0.10); }
}

/* ---- PILLARS ---- */
.pillars {
  padding: 0 0 80px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

.pillar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon--offline { background: #EFF6FF; color: #3B82F6; }
.pillar-icon--lock    { background: #F0FDF4; color: #22C55E; }
.pillar-icon--ai      { background: var(--orange-light); color: var(--orange); }

.pillar-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.pillar-body p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ---- AI SECTION ---- */
.ai-section {
  padding: 100px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ai-options {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
}

.ai-option {
  flex: 1;
  padding: 40px 36px;
}

.ai-option--free  { background: var(--cream); }
.ai-option--byok  { background: var(--orange-light); border-left: 1px solid rgba(255,103,25,0.15); }

.ai-option-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  flex-shrink: 0;
  background: var(--border);
  color: var(--text-3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ai-option-header {
  margin-bottom: 16px;
}

.ai-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.ai-pill--free { background: #DCFCE7; color: #16A34A; }
.ai-pill--byok { background: rgba(255,103,25,0.15); color: var(--orange-dark); }

.ai-option-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.ai-option p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
}

.ai-tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-tag {
  background: #DCFCE7;
  color: #15803D;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #BBF7D0;
}

.ai-providers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.provider-chip {
  background: var(--white);
  border: 1px solid rgba(255,103,25,0.25);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

@media (max-width: 700px) {
  .ai-options { flex-direction: column; }
  .ai-option-divider { width: 100%; height: 40px; }
  .ai-option--byok { border-left: none; border-top: 1px solid rgba(255,103,25,0.15); }
}

/* ---- AI OPTIONAL LABEL ---- */
.ai-optional-label {
  display: inline-block;
  background: var(--cream-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---- SECTION HEADERS ---- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto;
}

/* ---- FEATURES ---- */
.features {
  padding: 100px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .features-list { grid-template-columns: 1fr; }
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.feature-row:hover { background: var(--orange-light); }

.feature-row-icon {
  width: 38px;
  height: 38px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

.feature-row-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.feature-row-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.feature-row-tag {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}

/* ---- HOW IT WORKS ---- */
.howto {
  padding: 100px 0;
}

.steps {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 280px;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.step-body h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

.step-arrow {
  font-size: 24px;
  color: var(--border);
  flex-shrink: 0;
}

/* ---- CHANGELOG ---- */
.changelog {
  padding: 80px 0;
  background: var(--cream-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.changelog-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 760px) {
  .changelog-inner { grid-template-columns: 1fr; gap: 40px; }
}

.changelog-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.changelog-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,103,25,0.2);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.changelog-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.1;
}

.changelog-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 420px;
}

.changelog-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  border-bottom: 2px solid rgba(255,103,25,0.3);
  padding-bottom: 2px;
  transition: border-color 0.15s;
}
.changelog-link:hover { border-color: var(--orange); }

.changelog-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.changelog-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.changelog-item:last-child { border-bottom: none; }
.changelog-item:hover { background: var(--cream); }

.changelog-item--new {
  background: var(--orange-light);
}
.changelog-item--new:hover { background: #FFE8D6; }

.changelog-version {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: var(--cream-2);
  color: var(--text-3);
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}

.changelog-item--new .changelog-version {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.changelog-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.changelog-item-date {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 1px;
}

/* ---- PRICING ---- */
.pricing {
  padding: 100px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto 28px;
}

@media (max-width: 680px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card--lifetime {
  background: var(--text);
  border-color: var(--text);
  color: var(--white);
  box-shadow: 0 20px 60px rgba(26,26,26,0.20);
}

/* early bird badge */
.pricing-early-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* lifetime best value badge */
.pricing-lifetime-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--text-3);
}

.pricing-card--lifetime .pricing-name {
  color: rgba(255,255,255,0.5);
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.pricing-orig {
  font-size: 20px;
  color: var(--text-3);
  font-weight: 400;
  text-decoration: line-through;
}

.pricing-orig--dark {
  color: rgba(255,255,255,0.35);
}

.pricing-price {
  font-size: 58px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.pricing-card--lifetime .pricing-price {
  color: var(--white);
}

.pricing-cents {
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0;
}

.pricing-period {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 28px;
}

.pricing-card--lifetime .pricing-period {
  color: rgba(255,255,255,0.45);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}

.pricing-card--lifetime .pricing-features li {
  color: rgba(255,255,255,0.75);
}

.check {
  color: var(--orange);
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.check--white {
  color: var(--orange);
}

.pricing-cta-row {
  margin-bottom: 12px;
}

.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline-dark:hover {
  border-color: var(--text);
  background: var(--cream-2);
}

.btn-white {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--white);
}
.btn-white:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
}

/* small de-emphasised extension note */
.pricing-extension-footnote {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.5;
}

/* lifetime math nudge */
.pricing-lifetime-math {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* demo + note row below cards */
.pricing-footer-row {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.pricing-footer-note {
  font-size: 13px;
  color: var(--text-3);
}

/* ---- FAQ ---- */
.faq {
  padding: 100px 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: var(--cream); }

.faq-item[open] .faq-q { background: var(--cream); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.2s;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-a {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ---- FOOTER ---- */
.footer {
  padding: 56px 0 0;
  border-top: 1px solid var(--border);
  background: var(--text);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-logo .logo-mark {
  background: var(--orange);
}

.footer-logo .logo-text { color: var(--white); }

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mockup-sidebar { display: none; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .mockup-body { height: 280px; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .pricing-card { padding: 40px 24px; }
  .pricing-price { font-size: 52px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero { padding: 60px 0 40px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .btn-lg { width: 100%; justify-content: center; }
}
