/* ==========================================================================
   KrishiOx — Design System
   BioRawNex theme: Charcoal / Copper / Biomass Gold / Ivory
   Mobile-first, no frameworks.
   ========================================================================== */

:root {
  /* --- Brand palette --- */
  --charcoal:        #111827;
  --charcoal-soft:   #1B2333;
  --charcoal-glass:  rgba(17, 24, 39, 0.86);
  --copper:          #8B5A2B;
  --copper-light:    #A9713C;
  --gold:            #D9A441;
  --gold-soft:       #F0C97A;
  --ivory:           #F7F5F2;
  --ivory-dim:       #EDE9E2;
  --whatsapp:        #25D366;
  --whatsapp-dark:   #1DA851;
  --danger:          #C0483C;
  --line:            rgba(17, 24, 39, 0.10);
  --line-on-dark:    rgba(247, 245, 242, 0.14);

  /* --- Text --- */
  --text-primary:    #1A1712;
  --text-muted:      #5B564C;
  --text-on-dark:    #F7F5F2;
  --text-on-dark-muted: rgba(247, 245, 242, 0.68);

  /* --- Elevation --- */
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.08), 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 6px 16px rgba(17, 24, 39, 0.10), 0 2px 6px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.16), 0 4px 12px rgba(17, 24, 39, 0.08);
  --shadow-gold: 0 8px 24px rgba(217, 164, 65, 0.35);

  /* --- Radius --- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-full: 999px;

  /* --- Spacing scale --- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 56px;

  /* --- Type --- */
  --font-main: 'Noto Sans Devanagari', 'Hind', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Layout --- */
  --max-width: 560px;
  --header-h: 64px;
  --bottomnav-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* --- Text size (user-controlled, see .text-size-btn in header) --- */
  --text-zoom: 1;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--ivory);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottomnav-h) + var(--safe-bottom));
}

h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

::selection { background: var(--gold); color: var(--charcoal); }

/* ==========================================================================
   Layout shell
   ========================================================================== */
.app-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--ivory);
  position: relative;
}

.page {
  padding: var(--sp-4) var(--sp-4) var(--sp-8);
  zoom: var(--text-zoom);
}

.section {
  margin-top: var(--sp-7);
}

.section:first-child { margin-top: var(--sp-5); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-4);
  background: var(--charcoal-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-on-dark);
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--copper) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--charcoal);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-on-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  font-size: 12px;
  color: var(--gold-soft);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-action {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  background: rgba(247, 245, 242, 0.08);
  border: 1px solid var(--line-on-dark);
  color: var(--text-on-dark);
}
.header-action svg { width: 20px; height: 20px; stroke: currentColor; }

.header-action-call {
  background: rgba(217, 164, 65, 0.14);
  border-color: rgba(217, 164, 65, 0.35);
  color: var(--gold);
}

.text-size-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.5px;
  cursor: pointer;
}

/* ==========================================================================
   Bottom Navigation — thumb-reach, large tap targets
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  max-width: var(--max-width);
  margin: 0 auto;
  height: calc(var(--bottomnav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--charcoal);
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(217, 164, 65, 0.15);
  box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.25);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-on-dark-muted);
  font-size: 13px;
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.nav-item.active {
  color: var(--gold);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--gold);
}

.nav-item-book {
  flex: 1.3;
}

.nav-item-book .nav-book-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--gold) 0%, var(--copper) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -22px;
  box-shadow: var(--shadow-gold);
  border: 3px solid var(--charcoal);
}
.nav-item-book .nav-book-btn svg { width: 24px; height: 24px; stroke: var(--charcoal); }
.nav-item-book.active .nav-book-btn { box-shadow: 0 0 0 4px rgba(217,164,65,0.25), var(--shadow-gold); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 52px;
  padding: 0 var(--sp-5);
  border-radius: var(--r-md);
  border: none;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--copper) 100%);
  color: var(--charcoal);
  box-shadow: var(--shadow-gold);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}

.btn-ghost {
  background: rgba(139, 90, 43, 0.08);
  color: var(--copper);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp svg { width: 20px; height: 20px; fill: #fff; }

.btn-sm { min-height: 40px; font-size: 14px; padding: 0 var(--sp-4); width: auto; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.btn-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: var(--r-full);
  flex-shrink: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: radial-gradient(120% 100% at 20% 0%, #23293c 0%, var(--charcoal) 55%, #0c1119 100%);
  color: var(--text-on-dark);
  border-radius: 0 0 28px 28px;
  padding: var(--sp-6) var(--sp-4) var(--sp-7);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,164,65,0.25) 0%, rgba(217,164,65,0) 70%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-soft);
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid rgba(217, 164, 65, 0.3);
  padding: 6px 12px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
}

.hero h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: var(--sp-2);
  max-width: 320px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  font-size: 14.5px;
  color: var(--text-on-dark-muted);
  max-width: 300px;
  margin-bottom: var(--sp-6);
}

.hero-cta-row {
  display: flex;
  gap: var(--sp-3);
}

.hero-stats {
  display: flex;
  gap: var(--sp-6);
  margin-top: var(--sp-7);
  position: relative;
  z-index: 1;
}

.hero-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
}
.hero-stat span {
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   Section headings
   ========================================================================== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.section-head h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
}

.section-head span.tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 2px;
}

.link-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--copper);
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ==========================================================================
   Service Cards (grid)
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.service-grid.compact { grid-template-columns: repeat(4, 1fr); }

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.service-card:active { transform: scale(0.96); }

.service-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(217,164,65,0.35), var(--shadow-md);
  background: linear-gradient(180deg, #FFFBF2 0%, #FFFFFF 100%);
}

.service-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FBF1DD 0%, #F2E1BD 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card .icon-wrap svg {
  width: 24px;
  height: 24px;
  stroke: var(--copper);
}

.service-card .s-name-hi {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}
.service-card .s-name-en {
  font-size: 12px;
  color: var(--text-muted);
}

.service-card .check-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  display: none;
  align-items: center;
  justify-content: center;
}
.service-card .check-badge svg { width: 11px; height: 11px; stroke: var(--charcoal); stroke-width: 3; }
.service-card.selected .check-badge { display: flex; }

/* Wide service row (services.html list) */
.service-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-3);
}
.service-row .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FBF1DD 0%, #F2E1BD 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-row .icon-wrap svg { width: 26px; height: 26px; stroke: var(--copper); }
.service-row .row-body { flex: 1; min-width: 0; }
.service-row .row-body h3 { font-size: 15.5px; font-weight: 800; }
.service-row .row-body .s-name-en { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; display: block; }
.service-row .row-body p { font-size: 14px; color: var(--text-muted); }
.service-row .row-cta {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-row .row-cta svg { width: 18px; height: 18px; stroke: var(--gold); }

/* ==========================================================================
   Generic Cards
   ========================================================================== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.card-dark {
  background: linear-gradient(145deg, var(--charcoal) 0%, #1B2333 100%);
  color: var(--text-on-dark);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
}

.info-strip {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: #FBF6EC;
  border: 1px solid rgba(217,164,65,0.35);
  align-items: flex-start;
}
.info-strip svg { width: 20px; height: 20px; stroke: var(--copper); flex-shrink: 0; margin-top: 2px; }
.info-strip p { font-size: 14.5px; color: #5B4A2E; }

/* How it works steps */
.steps-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.step-item { display: flex; gap: var(--sp-3); align-items: flex-start; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--charcoal); color: var(--gold);
  font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-item h4 { font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.step-item p { font-size: 14.5px; color: var(--text-muted); }

/* Testimonial / partner cards */
.scroll-row {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row > * { scroll-snap-align: start; flex-shrink: 0; }

.testimonial-card {
  width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.testimonial-card p { font-size: 15px; color: var(--text-primary); margin-bottom: var(--sp-3); font-style: italic; }
.testimonial-who { display: flex; align-items: center; gap: 10px; }
.avatar-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal); font-weight: 800; font-size: 13px;
  flex-shrink: 0;
}
.testimonial-who strong { font-size: 14px; display: block; }
.testimonial-who span { font-size: 13px; color: var(--text-muted); }

/* Trust badges row */
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  text-align: center;
}
.trust-item svg { width: 26px; height: 26px; stroke: var(--copper); margin: 0 auto 6px; }
.trust-item span { font-size: 13px; font-weight: 700; color: var(--text-primary); line-height: 1.3; display: block; }

/* ==========================================================================
   Forms — Booking wizard
   ========================================================================== */
.form-group { margin-bottom: var(--sp-4); }
.form-label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-label .req { color: var(--danger); }
.form-hint { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

.input, .textarea, .select {
  width: 100%;
  min-height: 52px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 0 var(--sp-4);
  font-size: 16px;
  color: var(--text-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217,164,65,0.18);
}
.textarea { min-height: 96px; padding: var(--sp-3) var(--sp-4); resize: vertical; }

.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B564C' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.chip {
  padding: 10px 16px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.chip.selected {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--gold);
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 6px;
}
.qty-btn {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: none;
  background: var(--ivory-dim);
  color: var(--charcoal);
  font-size: 20px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.qty-value { flex: 1; text-align: center; font-size: 18px; font-weight: 800; }
.qty-unit { font-size: 13px; color: var(--text-muted); text-align: center; display: block; margin-top: -4px; }

/* Radio / village pill list */
.pill-select-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.pill-option {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: #fff;
  min-height: 52px;
}
.pill-option.selected {
  border-color: var(--gold);
  background: #FFFBF2;
}
.pill-option .radio-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.pill-option.selected .radio-dot { border-color: var(--gold); }
.pill-option.selected .radio-dot::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.pill-option span { font-size: 14.5px; font-weight: 600; }

/* ==========================================================================
   Booking Wizard shell
   ========================================================================== */
.wizard-progress {
  display: flex;
  gap: 6px;
  margin-bottom: var(--sp-5);
}
.wizard-progress .seg {
  flex: 1;
  height: 5px;
  border-radius: var(--r-full);
  background: var(--line);
  overflow: hidden;
}
.wizard-progress .seg.done, .wizard-progress .seg.active {
  background: linear-gradient(90deg, var(--gold), var(--copper));
}

.wizard-step-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.wizard-step-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: var(--sp-5);
}

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeSlideIn 0.28s ease; }

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

.wizard-nav {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.wizard-nav .btn { flex: 1; }

/* Summary rows */
.summary-list { display: flex; flex-direction: column; }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed var(--line);
  gap: var(--sp-3);
}
.summary-row:last-child { border-bottom: none; }
.summary-row .s-label { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.summary-row .s-value { font-size: 16px; font-weight: 700; text-align: right; }
.summary-row .s-edit { font-size: 13px; color: var(--copper); font-weight: 700; }

/* Toast */
.toast {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--charcoal);
  color: var(--text-on-dark);
  padding: 12px 20px;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 90%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ==========================================================================
   Success screen
   ========================================================================== */
.success-wrap {
  text-align: center;
  padding: var(--sp-7) var(--sp-4);
}
.success-icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-5);
  box-shadow: var(--shadow-gold);
  animation: popIn 0.4s cubic-bezier(.25,1.4,.5,1);
}
.success-icon svg { width: 40px; height: 40px; stroke: var(--charcoal); stroke-width: 3; }
@keyframes popIn { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-wrap h2 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.success-wrap p { font-size: 15px; color: var(--text-muted); max-width: 300px; margin: 0 auto; }

/* ==========================================================================
   Floating WhatsApp button (global)
   ========================================================================== */
.fab-whatsapp {
  position: fixed;
  right: 16px;
  bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 16px);
  z-index: 45;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
  animation: pulseWA 2.6s infinite;
}
.fab-whatsapp svg { width: 28px; height: 28px; fill: #fff; }
@keyframes pulseWA {
  0% { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* App shell offset so fab doesn't sit outside constrained width on desktop */
@media (min-width: 560px) {
  body { background: #E7E2D8; }
  .app-shell { box-shadow: 0 0 60px rgba(0,0,0,0.15); }
  .site-header, .bottom-nav, .fab-whatsapp, .consent-banner { left: 50%; transform: translateX(-50%); right: auto; }
  .fab-whatsapp { transform: translateX(calc(280px - 56px - 16px)); }
}

/* ==========================================================================
   Consent banner (Terms / Privacy) — first visit, and again if the policy
   version changes. Not a "cookie" banner: this app sets no cookies, so the
   copy is honest about what's actually stored (see js/main.js).
   ========================================================================== */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--bottomnav-h) + var(--safe-bottom));
  z-index: 60;
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--charcoal);
  color: var(--text-on-dark);
  padding: var(--sp-4);
  box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.3);
  border-top: 1px solid rgba(217, 164, 65, 0.25);
  animation: fadeSlideIn 0.3s ease;
}
.consent-banner p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--sp-3);
}
.consent-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.consent-actions .consent-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-soft);
  text-decoration: underline;
  flex-shrink: 0;
}
.consent-actions .btn { flex: 1; }

/* ==========================================================================
   Misc pages: About / Contact / Partners
   ========================================================================== */
.page-hero-sm {
  background: var(--charcoal);
  color: var(--text-on-dark);
  border-radius: 0 0 24px 24px;
  padding: var(--sp-6) var(--sp-4) var(--sp-6);
}
.page-hero-sm .tag { color: var(--gold-soft); font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.page-hero-sm h1 { font-size: 24px; font-weight: 800; margin-top: 6px; }
.page-hero-sm p { font-size: 15px; color: var(--text-on-dark-muted); margin-top: 8px; }

.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-4); box-shadow: var(--shadow-sm);
}
.value-card svg { width: 24px; height: 24px; stroke: var(--copper); margin-bottom: 10px; }
.value-card h4 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.value-card p { font-size: 13px; color: var(--text-muted); }

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  margin-bottom: var(--sp-3);
  box-shadow: var(--shadow-sm);
}
.contact-method .icon-wrap {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-method.wa .icon-wrap { background: rgba(37,211,102,0.12); }
.contact-method.wa .icon-wrap svg { width: 24px; height: 24px; fill: var(--whatsapp-dark); }
.contact-method.call .icon-wrap { background: rgba(139,90,43,0.10); }
.contact-method.call .icon-wrap svg { width: 22px; height: 22px; stroke: var(--copper); }
.contact-method .cm-body h4 { font-size: 15px; font-weight: 800; }
.contact-method .cm-body span { font-size: 13px; color: var(--text-muted); }
.contact-method .cm-go { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--ivory-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-method .cm-go svg { width: 16px; height: 16px; stroke: var(--charcoal); }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: var(--sp-4) 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  gap: var(--sp-3);
}
.faq-q svg { width: 18px; height: 18px; stroke: var(--copper); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  font-size: 14.5px;
  color: var(--text-muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-a { max-height: 200px; margin-top: 10px; }

.partner-tier-card {
  background: linear-gradient(145deg, #fff 0%, #FBF6EC 100%);
  border: 1px solid rgba(217,164,65,0.3);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-4);
}
.partner-tier-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 4px; }
.partner-tier-card .tier-tag {
  display: inline-block;
  font-size: 12px; font-weight: 800; color: var(--charcoal);
  background: var(--gold); padding: 3px 10px; border-radius: var(--r-full);
  margin-bottom: 10px; letter-spacing: 0.3px;
}
.partner-tier-card ul { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 16px; }
.partner-tier-card li { display: flex; gap: 8px; font-size: 14.5px; color: var(--text-primary); align-items: flex-start; }
.partner-tier-card li svg { width: 16px; height: 16px; stroke: var(--copper); flex-shrink: 0; margin-top: 2px; }

.roadmap-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3) 0;
}
.roadmap-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line); margin-top: 6px; flex-shrink: 0;
  border: 2px solid var(--gold);
}
.roadmap-item h4 { font-size: 14.5px; font-weight: 800; }
.roadmap-item p { font-size: 13px; color: var(--text-muted); }
.roadmap-badge {
  font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  background: var(--ivory-dim); color: var(--text-muted);
  padding: 2px 8px; border-radius: var(--r-full); margin-left: 8px;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  background: rgba(247,245,242,0.08);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-full);
  padding: 3px;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--text-on-dark-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--r-full);
}
.lang-toggle button.active {
  background: var(--gold);
  color: var(--charcoal);
}

/* Long-form legal text (Terms / Privacy) */
.legal-body h2 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: var(--sp-6);
  margin-bottom: 8px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-2);
}
.legal-body ul {
  padding-left: 20px;
  list-style: disc;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-body li { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.legal-body a { color: var(--copper); text-decoration: underline; }

/* Utility */
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mb-3 { margin-bottom: var(--sp-3); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.small { font-size: 13px; }
.flex-row { display: flex; align-items: center; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.divider { height: 1px; background: var(--line); margin: var(--sp-5) 0; }

.badge-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700; color: var(--whatsapp-dark);
  background: rgba(37,211,102,0.12); padding: 4px 10px; border-radius: var(--r-full);
}
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--whatsapp); }

.offline-banner {
  display: none;
  background: var(--danger);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  padding: 8px;
}
.offline-banner.show { display: block; }

footer.site-footer {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  color: var(--text-muted);
  font-size: 13px;
}
footer.site-footer strong { color: var(--copper); }
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}
.footer-links a { color: var(--text-muted); }

.footer-update-btn {
  display: block;
  margin: var(--sp-4) auto 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.footer-update-btn:active { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   Rotate-to-portrait overlay
   Only for touch phones held sideways — desktops/laptops (hover:hover,
   pointer:fine) and tablets/wide viewports never match this, so the
   min-width:560px "concept view" for non-mobile devices is unaffected.
   ========================================================================== */
.rotate-overlay { display: none; }
@media (orientation: landscape) and (max-width: 900px) and (hover: none) and (pointer: coarse) {
  .app-shell { display: none; }
  .rotate-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-5);
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--charcoal);
    color: var(--text-on-dark);
    text-align: center;
    padding: var(--sp-6);
  }
  .rotate-overlay-icon svg { width: 56px; height: 56px; stroke: var(--gold); transform: rotate(90deg); }
  .rotate-overlay p { max-width: 260px; font-size: 15px; font-weight: 600; }
}
