/* ShowMacros landing site: styling that matches the extension brand. */

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

:root {
  --bg-page:        #F7F8FA;
  --bg-card:        #FFFFFF;
  --bg-hero:        #0F172A;
  --bg-hero-glow:   #1E293B;

  --text-primary:   #1E293B;
  --text-secondary: #64748B;
  --text-muted:     #94A3B8;
  --text-on-dark:   #F8FAFC;
  --text-on-dark-muted: rgba(248,250,252,0.6);

  --color-protein:  #3B82F6;
  --color-fat:      #F59E0B;
  --color-carbs:    #10B981;
  --color-calories: #8B5CF6;
  --color-accent-2: #6D28D9;

  --border-light:   #E2E8F0;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      18px;
  --shadow-sm:      0 1px 2px rgba(15,23,42,0.05);
  --shadow-md:      0 4px 16px rgba(15,23,42,0.08);
  --shadow-lg:      0 20px 60px rgba(15,23,42,0.18);
}

html, body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--color-calories); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.8; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  z-index: 50;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 16px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.logo img { width: 30px; height: 30px; border-radius: 7px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); opacity: 1; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Display face: Roboto Slab for the big headings, Roboto for everything else. */
.hero h1, .section-title, .cta-band-title, .status-title, .article h1, .article h2 {
  font-family: "Roboto Slab", "Roboto", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero h1 {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-bottom: 22px;
  color: #0F172A;
  font-feature-settings: "ss01", "cv11";
}

.hero p {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.55;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}
.btn-primary {
  background: #059669;
  color: white;
  box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.45);
  opacity: 1;
}
.btn-chrome { display: inline-flex; align-items: center; gap: 9px; }
.btn-chrome svg { flex: 0 0 auto; }

/* ── Trust strip: recipe sites it works on ───────────── */
.trusted {
  padding: 28px 0 8px;
  text-align: center;
}
.trusted-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.trusted-sites {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Free-plan reassurance ───────────────────────────── */
.plan-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ── FAQ ─────────────────────────────────────────────── */
.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.faq-q { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.faq-a { font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
@media (max-width: 720px) { .faq { grid-template-columns: 1fr; } }

/* ── Closing CTA band ────────────────────────────────── */
.cta-band {
  background: var(--bg-hero);
  padding: 64px 0;
  text-align: center;
}
.cta-band-title { font-size: 32px; font-weight: 700; color: var(--text-on-dark); margin-bottom: 10px; }
.cta-band-sub   { font-size: 16px; color: var(--text-on-dark-muted); margin-bottom: 24px; }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--text-muted);
  transform: translateY(-1px);
  opacity: 1;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--color-carbs);
  border-radius: 50%;
  display: inline-block;
}

/* Trust line: led by its own emoji, slightly more prominent than the meta. */
.hero-trust {
  margin-top: 8px;
  color: var(--text);
  font-weight: 600;
}
.hero-trust::before { display: none; }

/* ── How it works: 3 numbered steps ──────────────────── */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.how-step {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.how-num {
  width: 40px; height: 40px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  color: #fff;
  background: #059669;
  border-radius: 50%;
}
.how-step-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.how-step-desc  { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
@media (max-width: 720px) {
  .how-steps { grid-template-columns: 1fr; }
}

/* ── Hero visual: stylized popup mockup ──────────────── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-mock {
  width: 320px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  position: relative;
  border: 1px solid var(--border-light);
}
.popup-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.popup-mock-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
}
.popup-mock-title img { width: 22px; height: 22px; border-radius: 5px; }
.popup-mock-streak {
  font-size: 10px;
  font-weight: 700;
  color: #f97316;
  background: rgba(249,115,22,0.12);
  padding: 3px 8px;
  border-radius: 999px;
}
.popup-mock-recipe {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-weight: 500;
}
.popup-mock-donut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
}
.donut-svg { width: 130px; height: 130px; display: block; }
.donut-center-cal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  line-height: 1;
}
.donut-cal-num { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; }
.donut-cal-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-top: 4px; }
.donut-wrap { position: relative; display: flex; justify-content: center; align-items: center; }
.macro-row {
  display: flex;
  width: 100%;
  justify-content: space-around;
  font-size: 11px;
}
.macro-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.macro-dot { width: 8px; height: 8px; border-radius: 50%; }
.macro-cell-name { color: var(--text-muted); font-weight: 500; }
.macro-cell-val { font-weight: 700; font-size: 13px; }
.popup-mock-pills {
  display: flex;
  gap: 6px;
}
.pill {
  flex: 1;
  background: var(--bg-page);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pill:hover { transform: translateY(-1px); border-color: var(--border-light); }
.pill-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.pill-val { font-size: 13px; font-weight: 700; margin-top: 2px; }
.pill-cal     .pill-lbl { color: var(--color-calories); }
.pill-protein .pill-lbl { color: var(--color-protein); }
.pill-fat     .pill-lbl { color: var(--color-fat); }
.pill-carbs   .pill-lbl { color: var(--color-carbs); }

/* Card stack — three cards fanned out, click-to-front */
.popup-stack {
  position: relative;
  width: 320px;
  min-height: 580px;
}
.popup-stack .popup-mock {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.35s ease,
              box-shadow 0.45s ease;
  will-change: transform;
}
/* Default (stacked): cards sit nearly on top of each other */
.popup-stack .popup-mock[data-slot="1"] {
  transform: translate(0, 0) rotate(0deg);
  z-index: 3;
  opacity: 1;
  box-shadow: var(--shadow-lg);
}
.popup-stack .popup-mock[data-slot="2"] {
  transform: translate(0, 0) rotate(0deg);
  z-index: 2;
  opacity: 0.98;
  box-shadow: 0 12px 36px rgba(15,23,42,0.12);
}
.popup-stack .popup-mock[data-slot="3"] {
  transform: translate(0, 0) rotate(0deg);
  z-index: 1;
  opacity: 0.96;
  box-shadow: 0 12px 36px rgba(15,23,42,0.10);
}
/* Fanned (after the user clicks ShowMacros): cards spread left → right */
.popup-stack.fanned .popup-mock[data-slot="1"] {
  transform: translate(-58px, 0) rotate(-3deg);
  cursor: default;
}
.popup-stack.fanned .popup-mock[data-slot="2"] {
  transform: translate(20px, 36px) rotate(4deg);
}
.popup-stack.fanned .popup-mock[data-slot="3"] {
  transform: translate(98px, 72px) rotate(11deg);
}
.popup-stack.fanned .popup-mock[data-slot="2"]:hover {
  transform: translate(20px, 36px) rotate(4deg) scale(1.03);
}
.popup-stack.fanned .popup-mock[data-slot="3"]:hover {
  transform: translate(98px, 72px) rotate(11deg) scale(1.03);
}
.popup-stack .popup-mock:focus-visible {
  outline: 2px solid var(--color-calories);
  outline-offset: 4px;
}

.popup-mock-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-calories);
  background: rgba(139,92,246,0.10);
  padding: 3px 8px;
  border-radius: 999px;
}
.ing-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: var(--bg-page);
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.ing-row:hover {
  border-color: rgba(139,92,246,0.30);
  background: #faf7ff;
  transform: translateX(2px);
}
.ing-info { min-width: 0; }
.ing-name {
  font-weight: 600;
  font-size: 11.5px;
  color: var(--text-primary);
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ing-qty {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ing-row-more .ing-name { color: var(--text-secondary); font-style: italic; }
.ing-row-more .ing-qty  { white-space: normal; line-height: 1.3; }
.ing-vals { text-align: right; flex-shrink: 0; }
.ing-cal { font-weight: 700; font-size: 12px; letter-spacing: -0.2px; }
.ing-mac { font-size: 9.5px; color: var(--text-muted); margin-top: 1px; font-weight: 600; letter-spacing: 0.2px; }
.ing-mac .m-p { color: var(--color-protein); }
.ing-mac .m-f { color: var(--color-fat); }
.ing-mac .m-c { color: var(--color-carbs); }

/* Recipe site card */
.popup-mock-site { padding: 0; overflow: hidden; }
.rs-browser {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 10px 9px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.rs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}
.rs-dot:nth-child(1) { background: #fca5a5; }
.rs-dot:nth-child(2) { background: #fcd34d; }
.rs-dot:nth-child(3) { background: #86efac; }
.rs-url {
  flex: 1;
  margin-left: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 9.5px;
  color: var(--text-muted);
  text-align: center;
  border: 1px solid var(--border-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: -0.2px;
}

/* Extension toolbar button (ShowMacros) */
.rs-ext-btn {
  position: relative;
  width: 26px;
  height: 26px;
  margin-left: 6px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15,23,42,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rs-ext-btn img { width: 18px; height: 18px; border-radius: 3px; }
.rs-ext-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(139,92,246,0.25); }
.rs-ext-pulse {
  position: absolute;
  inset: -4px;
  border: 2px solid var(--color-calories);
  border-radius: 9px;
  opacity: 0;
  animation: extPulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes extPulse {
  0%   { opacity: 0;    transform: scale(0.95); }
  50%  { opacity: 0.85; transform: scale(1.15); }
  100% { opacity: 0;    transform: scale(1.25); }
}

/* Click cursor pointing at the SM button */
.rs-cursor {
  position: absolute;
  right: 2px;
  top: 26px;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(15,23,42,0.35));
  animation: cursorTap 2s ease-in-out infinite;
  z-index: 5;
}
@keyframes cursorTap {
  0%, 100% { transform: translate(0, 0)   scale(1);    }
  35%      { transform: translate(-3px, -3px) scale(1); }
  50%      { transform: translate(0, 0)   scale(0.88); }
  65%      { transform: translate(-3px, -3px) scale(1); }
}
.rs-hero {
  height: 178px;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}
.rs-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rs-tag-healthy {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: rgba(16,185,129,0.95);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 18px rgba(16,185,129,0.4);
  z-index: 5;
}
.rs-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-calories);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 16px 22px 4px;
}
.rs-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.25;
  padding: 0 22px;
  margin: 0 0 10px;
  color: var(--text-primary);
}
.rs-stats {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 0 22px 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.rs-stats .sep { color: var(--text-muted); font-weight: 400; }

/* Floating accent shape behind popup */
.hero-visual::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: transparent;
  z-index: -1;
}

/* ── Sections ────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 12px;
  font-feature-settings: "ss01", "cv11";
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Feature grid ────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139,92,246,0.25);
}
.feature-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 17px;
  background: var(--bg-page);
}
.feature-icon.protein { background: rgba(59,130,246,0.1); color: var(--color-protein); }
.feature-icon.fat     { background: rgba(245,158,11,0.1); color: var(--color-fat); }
.feature-icon.carbs   { background: rgba(16,185,129,0.1); color: var(--color-carbs); }
.feature-icon.cal     { background: rgba(139,92,246,0.1); color: var(--color-calories); }
.feature-icon.streak  { background: rgba(249,115,22,0.1); color: #f97316; }
.feature-icon.lock    { background: var(--bg-page); color: var(--text-secondary); }

.pro-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-calories);
  background: rgba(139,92,246,0.10);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.6px;
  margin-left: 4px;
  vertical-align: middle;
}

.feature-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.feature-desc {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ── Pricing ─────────────────────────────────────────── */
.section-pricing { background: white; }
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}
.pricing.pricing-3 { grid-template-columns: 1fr 1fr 1fr; max-width: 1040px; align-items: stretch; }
.pricing-3 .plan { padding: 28px 24px; }
.pricing-3 .plan-features { flex: 1; }
.pricing-3 .plan-features-pro li { color: var(--text-primary); }
.pricing-3 .plan-features-pro li::before { color: #059669; }
@media (max-width: 880px) { .pricing.pricing-3 { grid-template-columns: 1fr; max-width: 420px; } }
.plan {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.plan.featured {
  border-color: #10B981;
  background: #f7fdfa;
  box-shadow: 0 8px 32px rgba(16,185,129,0.12);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #059669;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(16,185,129,0.4);
}
.plan-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.plan-price-was {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(148,163,184,0.8);
  margin-right: 10px;
  vertical-align: middle;
}
.plan-price {
  font-size: 42px;
  font-weight: 800;
  margin: 12px 0 4px;
  letter-spacing: -1.5px;
  line-height: 1;
}
.plan-price-suffix {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0;
}
.plan-savings {
  font-size: 13px;
  color: var(--color-carbs);
  font-weight: 600;
  margin-bottom: 22px;
}
.plan-savings.empty { visibility: hidden; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}
.plan-features li {
  font-size: 14px;
  color: var(--text-primary);
  padding: 7px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.plan-features li::before {
  content: '✓';
  color: var(--color-carbs);
  font-weight: 800;
  flex-shrink: 0;
}
/* Reserve the green ticks for Pro; the Free tier reads as the limited option. */
.plan:not(.featured) .plan-features li {
  color: var(--text-secondary);
}
.plan:not(.featured) .plan-features li::before {
  color: var(--text-muted);
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 40px;
}
footer a { color: var(--text-secondary); margin: 0 12px; }
footer a:hover { color: var(--text-primary); opacity: 1; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.footer-logo img { width: 24px; height: 24px; border-radius: 5px; }
.footer-byline { color: var(--text-secondary); font-size: 13px; margin: 0 0 10px; }

/* ── Article (privacy / etc.) ────────────────────────── */
.article { max-width: 720px; margin: 0 auto; padding: 60px 28px 80px; }
.article h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}
.article .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 36px; }
.article h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 14px;
  letter-spacing: -0.3px;
}
.article p { margin-bottom: 14px; color: var(--text-primary); }
.article ul { padding-left: 22px; margin-bottom: 16px; }
.article li { margin-bottom: 8px; }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}
.article table th, .article table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.article table th {
  font-weight: 700;
  background: var(--bg-page);
  font-size: 13px;
}
.article code {
  background: var(--bg-page);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.privacy-tldr {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 0 0 32px;
}
.privacy-tldr .tldr-title {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 10px;
  padding: 0;
}
.privacy-tldr p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
}

/* ── Status pages ────────────────────────────────────── */
.status-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 28px;
  text-align: center;
}
.status-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16,185,129,0.12);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.status-mark-muted { background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border-light); }
.status-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #059669;
  margin-bottom: 10px;
}
.status-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 32px;
  text-align: left;
}
.status-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
}
.status-step-num {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #059669;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.status-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.status-fine { font-size: 13px; color: var(--text-muted); }
.status-fine strong { color: var(--text-secondary); font-weight: 600; }
.status-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.status-text {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.55;
}

/* ── Animations ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cardFade {
  from { opacity: 0; }
}
@keyframes donutIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes streakPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22, 0.0); }
  50%      { box-shadow: 0 0 0 6px rgba(249,115,22, 0.10); }
}
@keyframes glowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  50%      { transform: translate(8px, -10px) scale(1.04); opacity: 0.85; }
}

/* Hero entrance — staggered fade-up */
.hero h1       { animation: fadeUp 0.7s ease-out 0.05s both; }
.hero p        { animation: fadeUp 0.7s ease-out 0.18s both; }
.cta-row       { animation: fadeUp 0.7s ease-out 0.30s both; }
.hero-meta     { animation: fadeUp 0.7s ease-out 0.42s both; }
.popup-stack .popup-mock { animation: cardFade 0.7s ease-out both; }
.popup-stack .popup-mock:nth-child(1) { animation-delay: 0.25s; }
.popup-stack .popup-mock:nth-child(2) { animation-delay: 0.40s; }
.popup-stack .popup-mock:nth-child(3) { animation-delay: 0.55s; }

/* Donut + center number reveal */
.donut-svg circle:not(:first-child) {
  transform-origin: center;
  transform-box: fill-box;
  animation: donutIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}
.donut-center-cal { animation: fadeUp 0.6s ease-out 0.85s both; }
.macro-cell       { animation: fadeUp 0.6s ease-out both; }
.macro-cell:nth-child(1) { animation-delay: 0.95s; }
.macro-cell:nth-child(2) { animation-delay: 1.02s; }
.macro-cell:nth-child(3) { animation-delay: 1.09s; }
.pill             { animation: fadeUp 0.6s ease-out both; }
.pill:nth-child(1) { animation-delay: 1.15s; }
.pill:nth-child(2) { animation-delay: 1.20s; }
.pill:nth-child(3) { animation-delay: 1.25s; }
.pill:nth-child(4) { animation-delay: 1.30s; }

/* Streak badge breathing pulse */
.popup-mock-streak { animation: streakPulse 3s ease-in-out 1.6s infinite; }

/* Hero ambient glow drift */
.hero-visual::before { animation: glowDrift 9s ease-in-out infinite; }

/* Scroll reveal — features + pricing plans */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.feature.reveal:nth-child(1)      { transition-delay: 0.00s; }
.feature.reveal:nth-child(2)      { transition-delay: 0.06s; }
.feature.reveal:nth-child(3)      { transition-delay: 0.12s; }
.feature.reveal:nth-child(4)      { transition-delay: 0.18s; }
.feature.reveal:nth-child(5)      { transition-delay: 0.24s; }
.feature.reveal:nth-child(6)      { transition-delay: 0.30s; }
.plan.reveal:nth-child(1)         { transition-delay: 0.00s; }
.plan.reveal:nth-child(2)         { transition-delay: 0.10s; }
.plan.reveal:nth-child(3)         { transition-delay: 0.20s; }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero p, .cta-row, .hero-meta,
  .popup-mock, .donut-svg circle, .donut-center-cal,
  .macro-cell, .pill, .popup-mock-streak, .hero-visual::before,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-meta { justify-content: center; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 36px; letter-spacing: -0.01em; }
  .hero p { font-size: 16px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; letter-spacing: -0.8px; }
  .pricing { grid-template-columns: 1fr; }
  .plan-price { font-size: 36px; }
  .popup-mock { width: 280px; }
  .nav-links { gap: 18px; font-size: 13px; }
}

/* ── Referral hand-off banner (?ref=CODE links from in-app shares) ──── */
.ref-banner {
  display: none; /* revealed by JS when a valid ?ref= is present */
  max-width: 720px;
  margin: 18px auto 0;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1.5px solid #10B981;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(16,185,129,0.12);
  text-align: left;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.ref-banner.show { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ref-banner-gift { font-size: 22px; line-height: 1; }
.ref-banner strong { color: var(--text-primary); }
.ref-banner-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 15px;
  color: #059669;
  background: rgba(16,185,129,0.10);
  border-radius: 8px;
  padding: 4px 10px;
  letter-spacing: 0.04em;
}
.ref-banner-copy {
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.ref-banner-copy:hover { border-color: #10B981; color: #059669; }
@media (max-width: 600px) {
  .ref-banner { margin: 14px 16px 0; }
}
