/* ============================================================
   MAISHA MOVES — design tokens
   Base: deep navy. Accent = which house you're in (color-coded
   by sub-brand). Signature motif: the M-Pesa confirmation SMS
   and WhatsApp-style bubbles — the visual language Kenyans
   already trust for "this payment worked."
   ============================================================ */

:root {
  --navy: #0D1B2A;
  --navy-light: #16283D;
  --navy-lighter: #1F3450;
  --paper: #F4EFE6;
  --paper-dim: #C9C2B4;
  --muted: #8492A6;
  --line: rgba(244, 239, 230, 0.12);

  --gold: #F5A623;
  --green: #1DB954;
  --terracotta: #C2622D;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-lift: 0 20px 50px -20px rgba(0,0,0,0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold);
  color: #21160a;
}
.btn-primary:hover { box-shadow: 0 10px 30px -8px rgba(245,166,35,0.55); }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}
.btn-outline:hover { border-color: var(--paper); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  padding: 10px 4px;
}

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

.btn[data-brand="moneymoves"] { background: var(--gold); color: #21160a; }
.btn[data-brand="freelanceforward"] { background: var(--green); color: #05170c; }
.btn[data-brand="biashara"] { background: var(--terracotta); color: #22100a; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo .dot { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--paper-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--paper); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-family: var(--font-mono);
}
.cart-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #21160a;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-body);
}
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(ellipse at top, rgba(245,166,35,0.16), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(29,185,84,0.12);
  border: 1px solid rgba(29,185,84,0.3);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-kicker .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 rgba(29,185,84,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(29,185,84,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(29,185,84,0); }
  100% { box-shadow: 0 0 0 0 rgba(29,185,84,0); }
}
.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--gold); }
.hero-sub {
  font-size: 18px;
  color: var(--paper-dim);
  max-width: 48ch;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hero-proof {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.proof-item {
  font-family: var(--font-mono);
}
.proof-num {
  font-size: 22px;
  font-weight: 600;
  color: var(--paper);
  display: block;
}
.proof-label {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Phone / M-Pesa confirmation mockup ---------- */

.phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.phone {
  width: 280px;
  border-radius: 36px;
  background: linear-gradient(160deg, #1a2f47, #0c1826);
  border: 1px solid rgba(244,239,230,0.15);
  padding: 14px;
  box-shadow: var(--shadow-lift);
  transform: rotate(3deg);
}
.phone-screen {
  background: #071019;
  border-radius: 24px;
  min-height: 460px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 6px;
  border-radius: 999px;
  background: rgba(244,239,230,0.15);
}
.sms-sender {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 24px;
  text-align: center;
}
.sms-bubble {
  background: var(--navy-lighter);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--paper);
  opacity: 0;
  transform: translateY(8px);
  animation: sms-in 0.6s var(--ease) forwards;
  animation-delay: 0.6s;
}
@keyframes sms-in {
  to { opacity: 1; transform: translateY(0); }
}
.sms-bubble .tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #05170c;
  font-size: 12px;
  margin-right: 8px;
}
.sms-amount {
  color: var(--gold);
  font-weight: 700;
}
.sms-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

/* ---------- Section shell ---------- */

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-top: 10px;
}
.section-desc {
  max-width: 46ch;
  color: var(--paper-dim);
  font-size: 15px;
}

/* ---------- Brand / house cards ---------- */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.brand-card {
  background: var(--navy-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 3px solid var(--card-color, var(--gold));
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.brand-card:hover { transform: translateY(-4px); }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--card-color, var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #14100a;
}
.brand-card h3 { font-size: 22px; }
.brand-swahili {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--card-color, var(--gold));
  letter-spacing: 0.02em;
}
.brand-card p.desc {
  color: var(--paper-dim);
  font-size: 14.5px;
  flex-grow: 1;
}

/* ---------- Product / receipt list ---------- */

.receipt {
  background: var(--navy-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.receipt-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.receipt-row:last-child { border-bottom: none; }
.receipt-row:hover { background: rgba(244,239,230,0.03); }
.receipt-swatch {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--row-color, var(--gold));
  flex-shrink: 0;
}
.receipt-info h4 {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.receipt-info .brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--row-color, var(--gold));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.receipt-info .tagline {
  font-size: 13.5px;
  color: var(--paper-dim);
  margin-top: 4px;
}
.receipt-price {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

/* Product grid (shop page cards) */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--navy-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.product-card:hover { transform: translateY(-3px); border-color: rgba(244,239,230,0.25); }
.product-cover {
  height: 140px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--card-color, var(--gold)), rgba(0,0,0,0.35));
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0,0,0,0.55);
  font-weight: 700;
}
.product-card .brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--card-color, var(--gold));
}
.product-card h4 { font-size: 17px; }
.product-card .tagline {
  font-size: 13.5px;
  color: var(--paper-dim);
  flex-grow: 1;
}
.product-card .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price-tag {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  padding: 28px;
  background: var(--navy-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--paper-dim); font-size: 14px; }

/* ---------- Testimonials (chat bubble) ---------- */

.chat-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.chat-bubble {
  background: var(--navy-light);
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 4px;
  padding: 22px;
  font-size: 14.5px;
  line-height: 1.6;
}
.chat-bubble .quote { color: var(--paper); }
.chat-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--avatar-color, var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: #14100a;
}
.chat-name { font-size: 13px; font-weight: 600; }
.chat-role { font-size: 12px; color: var(--muted); }

/* ---------- Payment strip ---------- */

.pay-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 28px 0;
}
.pay-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
}
.pay-badge .sw { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: var(--paper-dim);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Shop page filters ---------- */

.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--paper-dim);
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--paper); color: var(--paper); }
.filter-chip.active {
  background: var(--chip-color, var(--gold));
  border-color: var(--chip-color, var(--gold));
  color: #14100a;
  font-weight: 600;
}

.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.page-hero p { color: var(--paper-dim); max-width: 60ch; }

/* ---------- Checkout ---------- */

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}
.panel {
  background: var(--navy-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.panel + .panel { margin-top: 20px; }
.panel h3 { font-size: 17px; margin-bottom: 20px; }

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: none; }
.cart-line-title { font-size: 14.5px; font-weight: 500; }
.cart-line-brand { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.cart-line-price { font-family: var(--font-mono); font-size: 14.5px; }
.remove-btn {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 12px; text-decoration: underline;
}

.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  color: var(--paper-dim);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14.5px;
}
.field input:focus { border-color: var(--gold); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.pay-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.pay-tab {
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--navy);
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.pay-tab.active {
  border-color: var(--green);
  color: var(--paper);
  background: rgba(29,185,84,0.1);
}
.pay-panel { display: none; }
.pay-panel.active { display: block; }

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.total-row .amount { font-size: 22px; font-weight: 700; color: var(--gold); }

.mpesa-status {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  display: none;
}
.mpesa-status.show { display: block; }
.mpesa-status.pending { color: var(--gold); border-color: var(--gold); }
.mpesa-status.success { color: var(--green); border-color: var(--green); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--paper-dim);
}
.empty-state h3 { color: var(--paper); margin-bottom: 10px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-wrap { order: -1; margin-bottom: 12px; }
  .phone { transform: none; }
  .brand-grid, .steps, .chat-wall { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .receipt-row { grid-template-columns: auto 1fr auto; }
  .receipt-row .btn { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .pay-tabs { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG
   ============================================================ */

.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  background: var(--navy-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.blog-featured-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.blog-featured-body h2 { font-size: clamp(24px, 3vw, 32px); }
.blog-featured-body .excerpt { color: var(--paper-dim); font-size: 15.5px; flex-grow: 1; }
.blog-featured-cover {
  background: linear-gradient(135deg, var(--card-color, var(--gold)), rgba(0,0,0,0.45));
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  font-weight: 700;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.post-meta .brand-tag {
  color: var(--card-color, var(--gold));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.blog-card {
  background: var(--navy-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.blog-card:hover { transform: translateY(-3px); border-color: rgba(244,239,230,0.25); }
.blog-card h3 { font-size: 19px; }
.blog-card .excerpt { color: var(--paper-dim); font-size: 14px; flex-grow: 1; }
.read-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--card-color, var(--gold));
  font-weight: 600;
}

/* ---------- Article page ---------- */

.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}
.article-wrap h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  margin: 18px 0 20px;
}
.article-body h2 {
  font-size: 24px;
  margin: 44px 0 16px;
}
.article-body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: #DDD6C8;
  margin-bottom: 18px;
}

/* Monetization blocks */

.income-block {
  border-radius: var(--radius);
  padding: 26px;
  margin: 36px 0;
}
.guide-cta {
  background: var(--navy-light);
  border: 1px solid var(--card-color, var(--gold));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.guide-cta .eyebrow { color: var(--card-color, var(--gold)); margin-bottom: 8px; display: block; }
.guide-cta h4 { font-size: 18px; margin-bottom: 6px; }
.guide-cta p { font-size: 13.5px; color: var(--paper-dim); margin: 0; }
.guide-cta .price-tag { display: block; margin-bottom: 10px; text-align: right; }

.ad-slot {
  border: 1px dashed var(--line);
  background: rgba(244,239,230,0.02);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding: 34px 20px;
}

.affiliate-box {
  background: var(--navy-light);
  border: 1px solid var(--line);
  border-left: 3px solid var(--card-color, var(--gold));
}
.affiliate-box h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
}
.affiliate-box p { font-size: 14px; color: var(--paper-dim); margin-bottom: 14px; }

.newsletter-box {
  background: linear-gradient(135deg, var(--navy-lighter), var(--navy-light));
  border: 1px solid var(--line);
  text-align: center;
}
.newsletter-box h4 { font-size: 20px; margin-bottom: 8px; }
.newsletter-box p { font-size: 14px; color: var(--paper-dim); margin-bottom: 18px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--navy);
  color: var(--paper);
  font-size: 14px;
}
.newsletter-form input:focus { border-color: var(--gold); outline: none; }
.newsletter-status {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--green);
  margin-top: 12px;
  display: none;
}

@media (max-width: 820px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-cover { min-height: 160px; order: -1; }
  .guide-cta { grid-template-columns: 1fr; }
  .guide-cta .price-tag { text-align: left; }
  .newsletter-form { flex-direction: column; }
}

/* ---------- Post images (real photos, when provided) ---------- */

.blog-featured img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}
.blog-card-cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.blog-card-cover-fallback {
  height: 160px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--card-color, var(--gold)), rgba(0,0,0,0.45));
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(0,0,0,0.55);
}
.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.article-hero-fallback {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--card-color, var(--gold)), rgba(0,0,0,0.45));
  margin-bottom: 12px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: rgba(0,0,0,0.55);
}

/* ============================================================
   STARS, SHARE, PRODUCT PAGE, MOBILE NAV
   ============================================================ */

/* ---------- Star ratings ---------- */

.stars {
  display: inline-flex;
  gap: 2px;
  font-size: 15px;
  line-height: 1;
}
.star { color: rgba(244,239,230,0.18); }
.star.full { color: var(--star-color, var(--gold)); }
.star.half {
  background: linear-gradient(90deg, var(--star-color, var(--gold)) 50%, rgba(244,239,230,0.18) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rating-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}
.rating-row {
  display: flex;
  align-items: center;
}

/* ---------- Product covers as real images ---------- */

.product-cover-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  background: var(--navy);
  border-radius: var(--radius-sm);
}

/* ---------- Product detail page ---------- */

.pd-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
}
.pd-cover img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.pd-info h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 10px 0 14px; }
.pd-info .tagline { font-size: 17px; color: var(--paper-dim); margin-bottom: 18px; }
.pd-desc {
  font-size: 15.5px;
  line-height: 1.75;
  color: #DDD6C8;
  margin: 22px 0;
}
.pd-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 24px;
}
.pd-buy {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.pd-buy .price-tag { font-size: 26px; }

/* ---------- Share buttons ---------- */

.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 26px 0;
}
.share-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--navy-light);
  color: var(--paper-dim);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.share-btn:hover { color: var(--paper); border-color: var(--paper); transform: translateY(-1px); }
.share-btn .ic { font-size: 15px; }
.share-btn.whatsapp:hover { border-color: #25D366; color: #25D366; }
.share-btn.facebook:hover { border-color: #1877F2; color: #6ea8f7; }
.share-btn.x:hover { border-color: var(--paper); }
.share-btn.telegram:hover { border-color: #2AABEE; color: #2AABEE; }

/* ---------- Mobile navigation ---------- */

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-size: 20px;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-inner { padding: 14px 18px; flex-wrap: wrap; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-light);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.6);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 15px 24px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-right { gap: 12px; }
  .nav-right .btn { display: none; } /* keep mobile nav uncluttered */

  /* Bigger tap targets + comfortable spacing on phones */
  .btn { padding: 15px 24px; font-size: 15px; }
  .section { padding: 64px 0; }
  .hero { padding: 44px 0 64px; }
  .hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .container { padding: 0 18px; }
  .pd-grid { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
  .pd-cover { max-width: 320px; margin: 0 auto; }
  .filter-chip { padding: 11px 18px; font-size: 14px; }
  .receipt-row { padding: 18px; gap: 14px; }
  .panel { padding: 20px; }
  .checkout-grid > .panel[style] { position: static !important; }
}

/* iOS-specific: prevent zoom-on-focus by keeping inputs ≥16px */
@media (max-width: 760px) {
  .field input, .newsletter-form input { font-size: 16px; }
}

/* ============================================================
   HERO BOOK SHOWCASE (morphing covers)
   ============================================================ */

.book-stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  perspective: 1200px;
}
.book-stage {
  position: relative;
  width: 300px;
  aspect-ratio: 4 / 5;
  display: block;
  transform: rotateY(-8deg) rotateX(2deg);
  transform-style: preserve-3d;
  animation: book-float 6s ease-in-out infinite;
  cursor: pointer;
}
@keyframes book-float {
  0%, 100% { transform: rotateY(-8deg) rotateX(2deg) translateY(0); }
  50%       { transform: rotateY(-8deg) rotateX(2deg) translateY(-12px); }
}
.book-glow {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--glow-color, rgba(245,166,35,0.35)), transparent 65%);
  filter: blur(28px);
  transition: background 1s ease;
  pointer-events: none;
  z-index: 0;
}
.book-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(244,239,230,0.12);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.9s ease, transform 0.9s ease;
  z-index: 1;
}
.book-img.active {
  opacity: 1;
  transform: scale(1);
}
.book-stage:hover { animation-play-state: paused; }
.book-stage:hover .book-img.active { transform: scale(1.03); }

.book-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.book-caption-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: opacity 0.4s ease;
}
.book-brand {
  color: var(--glow-solid, var(--gold));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.book-price {
  color: var(--paper);
  font-weight: 700;
}
.book-dots {
  display: flex;
  gap: 7px;
}
.book-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(244,239,230,0.2);
  transition: background 0.4s, transform 0.4s;
}
.book-dot.on {
  background: var(--glow-solid, var(--gold));
  transform: scale(1.25);
}

@media (max-width: 900px) {
  .book-stage-wrap { order: -1; margin-bottom: 16px; }
  .book-stage { width: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  .book-stage { animation: none; }
}
