/* =============================================
   TEXAS.MONEY — Custom Stylesheet
   Brand: Navy / Gold / Cream
   Typography: DM Serif Display + Inter
   ============================================= */

/* ---- TOKENS ---- */
:root {
  --navy:        #0F1E3A;
  --navy-deep:   #071428;
  --navy-mid:    #162a4a;
  --gold:        #C9A227;
  --gold-light:  #e0bc4a;
  --gold-dim:    rgba(201, 162, 39, 0.15);
  --cream:       #F8F4E3;
  --cream-dim:   rgba(248, 244, 227, 0.6);
  --text-light:  #d4cfc0;
  --text-dim:   rgba(248, 244, 227, 0.4);

  --font-serif:  'DM Serif Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --space-2xl: 120px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--navy); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--space-lg) var(--space-2xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sky-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(201, 162, 39, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, #071428 0%, #0F1E3A 40%, #1a2e52 70%, #0F1E3A 100%);
}

.pumpjack-svg {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, 85vw);
  opacity: 0.18;
  animation: pump-gently 4s ease-in-out infinite;
}

@keyframes pump-gently {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  animation: fadeUp 0.8s ease-out both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: var(--space-lg);
}

.headline-accent {
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 520px;
  margin-bottom: var(--space-xl);
  animation: fadeUp 0.8s 0.2s ease-out both;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  animation: fadeUp 0.8s 0.4s ease-out both;
}

.metric { display: flex; flex-direction: column; }
.metric-val {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
}
.metric-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}
.metric-divider {
  width: 1px;
  height: 40px;
  background: rgba(201, 162, 39, 0.3);
}

/* ---- SECTION SHARED ---- */
.section-header {
  margin-bottom: var(--space-lg);
}
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}
.section-eyebrow.light { color: var(--gold); }
.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  color: var(--cream);
}

/* ---- TOOLS ---- */
.tools {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--navy-deep);
  border-top: 1px solid rgba(201, 162, 39, 0.1);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.tool-card {
  background: var(--navy);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 8px;
  padding: var(--space-lg);
  transition: border-color 0.3s, transform 0.3s;
}

.tool-card:hover {
  border-color: rgba(201, 162, 39, 0.5);
  transform: translateY(-2px);
}

.tool-primary {
  grid-column: 1;
  grid-row: 1 / 3;
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.tool-name {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--cream);
  margin-bottom: var(--space-xs);
}

.tool-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

/* Tool inputs */
.tool-inputs { margin-bottom: var(--space-md); }
.tool-input-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-sm);
}
.tool-input-row label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tool-input {
  display: flex;
  align-items: center;
  background: var(--navy-deep);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--cream);
  transition: border-color 0.2s;
}
.tool-input:focus-within { border-color: var(--gold); }
.tool-input span { color: var(--gold); margin-right: 4px; font-size: 15px; }
.tool-input input {
  background: none;
  border: none;
  outline: none;
  color: var(--cream);
  font-size: 15px;
  width: 100%;
}
.tool-input-select select {
  background: var(--navy-deep);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--cream);
  font-size: 14px;
  outline: none;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23C9A227' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.toggle-row { display: flex; align-items: center; gap: var(--space-sm); }
.toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--navy-mid);
  border: 1px solid rgba(201, 162, 39, 0.3);
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle.active { background: var(--gold); border-color: var(--gold); }
.toggle-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
}
.toggle.active .toggle-knob { left: 22px; }
.toggle-label { font-size: 13px; color: var(--text-light); }

/* Tool results */
.tool-result {
  background: var(--navy-mid);
  border-radius: 8px;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border: 1px solid rgba(201, 162, 39, 0.15);
}
.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.result-label { font-size: 12px; color: var(--text-dim); }
.result-value {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--cream);
}
.result-highlight .result-value { color: var(--gold); }

/* Fuel prices */
.fuel-prices { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.fuel-city {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}
.fuel-city:last-child { border-bottom: none; }
.city-name { font-size: 14px; font-weight: 600; color: var(--cream); }
.city-prices { display: flex; gap: 6px; }
.price-chip {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--navy-mid);
  border-radius: 4px;
  padding: 3px 8px;
}
.price-chip em { font-style: normal; color: var(--cream); font-weight: 600; }
.price-chip.mid { border: 1px solid rgba(201, 162, 39, 0.4); }
.fuel-note { font-size: 11px; color: var(--text-dim); }

/* Tip card */
.tip-card {
  background: var(--navy-mid);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}
.tip-date { font-size: 11px; color: var(--gold); font-weight: 600; letter-spacing: 0.1em; margin-bottom: 8px; }
.tip-content { font-size: 14px; color: var(--cream); line-height: 1.7; }
.tip-content strong { color: var(--gold); }
.tip-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: 3px;
  padding: 3px 8px;
  margin-top: 10px;
}

/* ---- MAGAZINE ---- */
.magazine {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--navy);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.category-card {
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 8px;
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
}
.category-card:hover { border-color: rgba(201, 162, 39, 0.5); transform: translateY(-2px); }
.category-card:hover::before { opacity: 1; }

.cat-label {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 6px;
}
.cat-count { font-size: 12px; color: var(--text-dim); font-weight: 500; }

.articles-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.article-featured {
  padding: var(--space-lg);
  background: var(--navy-mid);
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.15);
  display: flex;
  flex-direction: column;
}
.article-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: 3px;
  padding: 4px 10px;
  margin-bottom: var(--space-md);
  align-self: flex-start;
}
.article-title {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--cream);
  margin-bottom: var(--space-sm);
}
.article-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  flex: 1;
}
.read-time { font-size: 12px; color: var(--text-dim); }

.article-list { display: flex; flex-direction: column; gap: 2px; }
.article-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: 6px;
  transition: background 0.2s;
}
.article-item:hover { background: var(--navy-mid); }
.article-tag-sm {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  border-radius: 3px;
  padding: 3px 7px;
  flex-shrink: 0;
  margin-top: 2px;
}
.article-item-content { flex: 1; }
.article-item-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 4px;
}
.article-item-time { font-size: 11px; color: var(--text-dim); }

/* ---- DAILY TIP ---- */
.daily-tip {
  position: relative;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--navy-deep);
  overflow: hidden;
  border-top: 1px solid rgba(201, 162, 39, 0.1);
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.tip-background { position: absolute; inset: 0; pointer-events: none; }
.tip-geo {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
}
.geo-1 {
  width: 600px;
  height: 600px;
  background: var(--gold);
  top: -200px;
  right: -200px;
}
.geo-2 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  bottom: -150px;
  left: -150px;
}

.tip-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.tip-headline {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: var(--space-lg);
}
.tip-headline em { color: var(--gold); font-style: italic; }
.tip-context { display: flex; flex-direction: column; gap: var(--space-md); }
.tip-context p { font-size: 16px; color: var(--text-light); line-height: 1.8; }

/* ---- MANIFESTO ---- */
.manifesto {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--navy);
  text-align: center;
}
.manifesto-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto var(--space-xl);
  opacity: 0.5;
}
.manifesto-headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  color: var(--cream);
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}
.manifesto-body {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto var(--space-lg);
}
.manifesto-accent {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--gold);
  font-style: italic;
}

/* ---- CLOSING ---- */
.closing {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--navy-deep);
  text-align: center;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
}
.closing-inner { max-width: 600px; margin: 0 auto; }
.closing-icon {
  margin: 0 auto var(--space-lg);
  animation: spin-slow 20s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.closing-headline {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 80px);
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}
.closing-tagline {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: var(--space-xl);
}
.closing-pillars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.pillar {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.pillar-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(201, 162, 39, 0.1);
  padding: var(--space-xl) var(--space-lg);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand { display: flex; flex-direction: column; margin-bottom: var(--space-lg); }
.footer-name {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--cream);
  letter-spacing: -0.02em;
}
.footer-slug { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px var(--space-md);
  margin-bottom: var(--space-lg);
}
.footer-link {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
  font-weight: 500;
}
.footer-link:hover { color: var(--gold); }
.footer-note {
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid rgba(201, 162, 39, 0.1);
  padding-top: var(--space-md);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tool-primary { grid-column: 1; grid-row: auto; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-row { grid-template-columns: 1fr; }
  .article-featured-right { order: -1; }
}

@media (max-width: 600px) {
  .hero { padding: 0 var(--space-md) var(--space-xl); }
  .hero-metrics { gap: var(--space-md); flex-wrap: wrap; }
  .metric-val { font-size: 28px; }
  .categories-grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .tools, .magazine, .daily-tip, .manifesto, .closing { padding: var(--space-xl) var(--space-md); }
  .footer { padding: var(--space-lg) var(--space-md); }
  .footer-nav { gap: 6px; }
  .closing-pillars { gap: 8px; }
}

/* ---- BOTTOM NAV BAR (mobile-first PWA nav) ---- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
}

@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: 72px; }
}

.nav-items {
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: center;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  border-radius: 8px;
  min-width: 56px;
  text-align: center;
}

.nav-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.nav-item.active { color: var(--gold); }
.nav-item:hover { color: var(--text-light); }
.nav-item.active svg { stroke: var(--gold); }

/* More dropdown */
.nav-more-wrap { position: relative; }
.nav-more-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 12px; color: var(--text-dim); text-decoration: none; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; transition: color 0.2s; border-radius: 8px; cursor: pointer; background: none; border: none; }
.nav-more-btn:hover { color: var(--text-light); }
.nav-more-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--navy-deep);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 10px;
  padding: 6px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.nav-more-dropdown.open { display: block; }
.nav-more-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--text-light); font-size: 13px; font-weight: 500; text-decoration: none; border-radius: 6px; transition: background 0.2s, color 0.2s; }
.nav-more-item:hover { background: var(--navy-mid); color: var(--cream); }
.nav-more-item svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ---- NEWSLETTER SECTION ---- */
.newsletter-section {
  padding: var(--space-xl) var(--space-md);
  background: var(--navy-deep);
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  text-align: center;
}

.newsletter-inner { max-width: 480px; margin: 0 auto; }

.newsletter-headline {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--cream);
  margin-bottom: 8px;
}

.newsletter-sub { font-size: 14px; color: var(--text-light); margin-bottom: 28px; line-height: 1.6; }

.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.newsletter-form input[type="email"] {
  background: var(--navy);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--cream);
  font-size: 14px;
  width: 220px;
  outline: none;
  transition: border-color 0.2s;
  flex: 1;
}

.newsletter-form input[type="email"]::placeholder { color: var(--text-dim); }
.newsletter-form input[type="email"]:focus { border-color: var(--gold); }

.newsletter-form input[type="text"] {
  background: var(--navy);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--cream);
  font-size: 14px;
  width: 160px;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input[type="text"]::placeholder { color: var(--text-dim); }
.newsletter-form input[type="text"]:focus { border-color: var(--gold); }

.newsletter-form button {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--gold-light); }
.newsletter-form button:disabled { opacity: 0.6; cursor: not-allowed; }

.newsletter-success { display: none; color: var(--gold); font-weight: 600; font-size: 15px; margin-top: 16px; }
.newsletter-error { display: none; color: #ff6b6b; font-size: 13px; margin-top: 10px; }

/* ---- SUBSCRIPTION CTA SECTION ---- */
.subscribe-cta {
  padding: var(--space-xl) var(--space-md);
  background: var(--navy);
  border-top: 1px solid rgba(201, 162, 39, 0.1);
  text-align: center;
}

.subscribe-cta-inner { max-width: 600px; margin: 0 auto; }

.subscribe-cta-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: 3px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.subscribe-cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--cream);
  margin-bottom: 12px;
  line-height: 1.2;
}

.subscribe-cta-sub { font-size: 15px; color: var(--text-light); margin-bottom: 32px; line-height: 1.7; }

.subscribe-plans { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }

.plan-card {
  background: var(--navy-deep);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 10px;
  padding: 24px 28px;
  min-width: 200px;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}

.plan-card:hover { border-color: rgba(201, 162, 39, 0.6); transform: translateY(-2px); }
.plan-card.featured { border-color: var(--gold); }

.plan-name { font-family: var(--font-serif); font-size: 18px; color: var(--cream); margin-bottom: 4px; }
.plan-price { font-family: var(--font-serif); font-size: 32px; color: var(--gold); }
.plan-price span { font-size: 16px; color: var(--text-dim); font-family: var(--font-sans); }
.plan-desc { font-size: 12px; color: var(--text-dim); margin-top: 6px; line-height: 1.5; }
.plan-features { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.plan-features li { font-size: 13px; color: var(--text-light); display: flex; align-items: center; gap: 8px; }
.plan-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

.plan-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.plan-cta:hover { background: var(--gold-light); }
.plan-cta.secondary { background: transparent; border: 1px solid var(--gold); color: var(--gold); }

/* ---- PWA INSTALL BANNER ---- */
.pwa-install-banner {
  display: none;
  position: fixed;
  bottom: 72px;
  left: 16px;
  right: 16px;
  background: var(--navy-mid);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 12px;
  padding: 16px;
  z-index: 99;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  align-items: center;
  gap: 12px;
  animation: slideUp 0.3s ease-out;
}

.pwa-install-banner.show { display: flex; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pwa-banner-text { flex: 1; }
.pwa-banner-title { font-size: 14px; font-weight: 600; color: var(--cream); margin-bottom: 2px; }
.pwa-banner-sub { font-size: 12px; color: var(--text-dim); }

.pwa-banner-btn {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.pwa-banner-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}

/* ---- INTERACTIVE TOOL CARD ---- */
.tool-result.calculated { animation: fadeUp 0.3s ease-out; }

/* ---- RESPONSIVE ---- */
@media (max-width: 400px) {
  .categories-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 56px; }
  .subscribe-plans { flex-direction: column; align-items: center; }
  .plan-card { width: 100%; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"],
  .newsletter-form input[type="text"] { width: 100%; }
  .newsletter-form button { width: 100%; }
}