/* ==========================================================================
   VAHAN RAKSHAK — UI KIT
   Shared components for every page. Loaded after style.css.
   Brand: orange (#FF5500) as the accent, charcoal (#0B0E14) for dark
   surfaces, slate neutrals for text and borders.
   ========================================================================== */

:root {
  --ink-900: #0B0E14;
  --ink-800: #111827;
  --ink-700: #1F2937;
  --ink-600: #334155;
  --ink-500: #475569;
  --ink-400: #64748B;
  --ink-300: #94A3B8;
  --ink-200: #CBD5E1;
  --ink-100: #E2E8F0;
  --ink-50: #F1F5F9;
  --surface: #FFFFFF;
  --surface-muted: #F8F9FC;
  --line: #E8EBF1;
  --orange-50: #FFF4ED;
  --orange-100: #FFE4D5;
  --orange-600: #E64A00;

  --success: #059669;
  --success-bg: #ECFDF5;
  --warning: #B45309;
  --warning-bg: #FFFBEB;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --info: #2563EB;
  --info-bg: #EFF6FF;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --sh-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --sh-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --sh-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --sh-lg: 0 20px 48px rgba(16, 24, 40, 0.12);
  --sh-brand: 0 8px 20px rgba(255, 85, 0, 0.25);
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-orange);
  margin-bottom: 14px;
}

.eyebrow-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
}

.display-title {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink-900);
}

.lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: var(--ink-400);
}

.text-accent {
  color: var(--primary-orange);
}

.text-gradient {
  background: var(--grad-orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-muted {
  color: var(--ink-400);
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.78rem;
}

.fw-bold {
  font-weight: 700;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-white {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  background: var(--ink-900);
  color: #E5E7EB;
}

.section-dark .section-title,
.section-dark h2,
.section-dark h3 {
  color: #FFFFFF;
}

.section-dark .lead,
.section-dark .text-muted {
  color: var(--ink-300);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head .lead {
  margin-top: 16px;
}

.section-head-left {
  margin-left: 0;
  text-align: left;
}

/* Inner page header (every page except home) */
.page-hero {
  position: relative;
  padding: 72px 0 56px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(255, 85, 0, 0.09), transparent 70%),
    var(--surface-muted);
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink-900);
  max-width: 820px;
  margin: 0 auto;
}

.page-hero .lead {
  max-width: 640px;
  margin: 16px auto 0;
}

.page-body {
  padding: 56px 0 96px;
}

/* ---------- Layout ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

.split-form {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.narrow {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.medium {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
}

.card-lg {
  padding: 40px;
  border-radius: var(--r-xl);
}

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--orange-100);
}

.card-dark {
  background: linear-gradient(160deg, #161A22 0%, #0B0E14 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #E5E7EB;
}

.card-dark h2,
.card-dark h3,
.card-dark h4 {
  color: #FFFFFF;
}

.card-dark .text-muted {
  color: var(--ink-300);
}

.card-accent {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 4px rgba(255, 85, 0, 0.08), var(--sh-md);
}

.card-soft {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: none;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-400);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Icon boxes ---------- */
.icon-box {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-50);
  color: var(--primary-orange);
  border: 1px solid var(--orange-100);
}

.icon-box-lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.icon-box-sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.icon-box-solid {
  background: var(--grad-orange);
  color: #FFFFFF;
  border: none;
  box-shadow: var(--sh-brand);
}

.icon-box-dark {
  background: rgba(255, 85, 0, 0.12);
  border-color: rgba(255, 85, 0, 0.25);
}

.icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.btn .icon {
  margin: -2px 0;
}

/* ---------- Buttons (extends .btn in style.css) ---------- */
.btn {
  font-weight: 700;
  letter-spacing: 0;
}

.btn-primary {
  box-shadow: var(--sh-brand);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 85, 0, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink-800);
  border: 1px solid var(--ink-100);
  box-shadow: var(--sh-xs);
}

.btn-secondary:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-orange);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--orange-50);
}

.btn-white {
  background: #FFFFFF;
  color: var(--ink-900);
  border: 1px solid #FFFFFF;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

.btn-outline-light {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.btn-danger {
  background: var(--danger);
  color: #FFFFFF;
}

.btn-success {
  background: var(--success);
  color: #FFFFFF;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-square {
  border-radius: var(--r-md);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge-orange { background: var(--orange-50); color: var(--orange-600); border-color: var(--orange-100); }
.badge-success { background: var(--success-bg); color: var(--success); border-color: #A7F3D0; }
.badge-warning { background: var(--warning-bg); color: var(--warning); border-color: #FDE68A; }
.badge-danger { background: var(--danger-bg); color: var(--danger); border-color: #FECACA; }
.badge-info { background: var(--info-bg); color: var(--info); border-color: #BFDBFE; }
.badge-neutral { background: var(--ink-50); color: var(--ink-500); border-color: var(--ink-100); }
.badge-dark { background: var(--ink-900); color: #FFFFFF; }
.badge-solid { background: var(--grad-orange); color: #FFFFFF; box-shadow: var(--sh-brand); }

/* ---------- Forms ---------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-600);
}

.form-label .req {
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:hover {
  border-color: var(--ink-300);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 4px rgba(255, 85, 0, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-control-lg {
  padding: 15px 18px;
  font-size: 1rem;
}

.form-dark .form-control {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.form-dark .form-label {
  color: var(--ink-200);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--ink-400);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.input-group {
  display: flex;
  gap: 10px;
}

.input-group .form-control {
  flex: 1;
  min-width: 0;
}

/* Search bar: big input + button */
.search-bar {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

.search-bar .form-control {
  flex: 1;
  min-width: 0;
  border: none;
  box-shadow: none;
  font-size: 1rem;
  padding: 12px 14px;
}

.search-bar .form-control:focus {
  box-shadow: none;
}

/* Selectable option cards (radios) */
.option-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.option-card:hover {
  border-color: var(--ink-300);
}

.option-card:has(input:checked) {
  border-color: var(--primary-orange);
  background: var(--orange-50);
}

.option-card input {
  margin-top: 3px;
  accent-color: var(--primary-orange);
}

/* ---------- Lists ---------- */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-600);
}

.check-list li .icon {
  color: var(--primary-orange);
  margin-top: 2px;
}

.check-list li.is-off {
  color: var(--ink-300);
}

.check-list li.is-off .icon {
  color: var(--ink-300);
}

.section-dark .check-list li,
.card-dark .check-list li {
  color: var(--ink-200);
}

.kv-list {
  display: flex;
  flex-direction: column;
}

.kv-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}

.kv-list > div:last-child {
  border-bottom: none;
}

.kv-list dt,
.kv-list .k {
  color: var(--ink-400);
}

.kv-list dd,
.kv-list .v {
  font-weight: 600;
  color: var(--ink-900);
  text-align: right;
}

/* ---------- Stats / KPIs ---------- */
.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--ink-400);
}

.section-dark .stat-value,
.card-dark .stat-value {
  color: #FFFFFF;
}

.section-dark .stat-label,
.card-dark .stat-label {
  color: var(--ink-300);
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--sh-xs);
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.kpi-value {
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink-900);
}

.kpi-meta {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--ink-400);
}

/* ---------- Steps ---------- */
.step {
  position: relative;
}

.step-index {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-orange);
  letter-spacing: 0.08em;
}

/* ---------- Tables ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th {
  padding: 12px 16px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-400);
  text-align: left;
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-600);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Alerts ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid;
  font-size: 0.92rem;
  line-height: 1.55;
}

.alert .icon {
  margin-top: 2px;
}

.alert-success { background: var(--success-bg); border-color: #A7F3D0; color: #065F46; }
.alert-warning { background: var(--warning-bg); border-color: #FDE68A; color: #92400E; }
.alert-danger { background: var(--danger-bg); border-color: #FECACA; color: #991B1B; }
.alert-info { background: var(--info-bg); border-color: #BFDBFE; color: #1E40AF; }
.alert-orange { background: var(--orange-50); border-color: var(--orange-100); color: #9A3412; }

.alert-close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  padding: 2px;
  line-height: 0;
}

.alert-close:hover {
  opacity: 1;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 64px 48px;
  background: var(--grad-orange);
  color: #FFFFFF;
  text-align: center;
  box-shadow: 0 24px 60px rgba(255, 60, 0, 0.25);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(0, 0, 0, 0.12), transparent 45%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

.cta-band p {
  max-width: 620px;
  margin: 14px auto 28px;
  font-size: 1.08rem;
  opacity: 0.95;
}

/* ---------- Trust strip ---------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-500);
}

.trust-row > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row .icon {
  color: var(--success);
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 24px 0;
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .nav-container {
  min-height: 72px;
}

.site-header .brand-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.site-header .nav-links {
  gap: 4px;
}

.site-header .nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-500);
}

.site-header .nav-links a::after {
  display: none;
}

.site-header .nav-links a:hover {
  color: var(--ink-900);
  background: var(--ink-50);
}

.site-header .nav-links a.active {
  color: var(--primary-orange);
  background: var(--orange-50);
}

.site-header .nav-actions .btn {
  padding: 10px 18px;
  font-size: 0.875rem;
}

.site-header .mobile-nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-300);
  padding: 72px 0 28px;
  border-top: none;
}

.site-footer .footer-grid {
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}

.site-footer .footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-300);
  max-width: 320px;
}

.site-footer .footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.site-footer .footer-col ul li {
  margin-bottom: 12px;
}

.site-footer .footer-col a {
  font-size: 0.92rem;
  color: var(--ink-300);
}

.site-footer .footer-col a:hover {
  color: #FFFFFF;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.88rem;
}

.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-contact .icon {
  color: var(--primary-orange);
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #FFFFFF;
}

.footer-contact .footer-address {
  align-items: flex-start;
  line-height: 1.5;
}

.footer-contact .footer-address > span {
  display: block;
}

.footer-contact .footer-address .icon {
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact .footer-address strong {
  color: #FFFFFF;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-actions .footer-wa {
  background: #25D366;
  color: #0B1F12;
}

.footer-actions .footer-play {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 10px;
  background: #000000;
  border: 1px solid #A6A6A6;
  color: #FFFFFF;
  line-height: 1.05;
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-actions .footer-play small {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.footer-actions .footer-play.is-soon {
  cursor: default;
}

.footer-actions .footer-play .play-mark {
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  font-size: 0.86rem;
}

.footer-social a {
  color: var(--ink-200);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a:hover {
  color: #FFFFFF;
}

.site-footer .footer-legal p {
  margin: 0;
}

.site-footer .footer-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 6px !important;
  font-size: 0.8rem;
  opacity: 0.8;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-size: 0.85rem;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer .made-in-india {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  font-weight: 700;
  color: #FFFFFF;
}

.site-footer .made-in-india .flag-in {
  display: block;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-badges .badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink-200);
}

/* Flash messages under the header */
.flash-stack {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   HOME
   ========================================================================== */
.home-hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 80% 10%, rgba(255, 85, 0, 0.10), transparent 70%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(255, 85, 0, 0.06), transparent 70%),
    var(--surface-muted);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.home-hero > .container {
  position: relative;
}

.home-hero .split {
  gap: 56px;
}

.home-hero .lead {
  max-width: 540px;
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-500);
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-proof .icon {
  color: var(--success);
}

/* Product visual: phone + tag */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 56px 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 85, 0, 0.18), transparent 65%);
}

.tag-card {
  position: relative;
  width: min(320px, 100%);
  background: linear-gradient(160deg, #1A1E27 0%, #0B0E14 100%);
  border-radius: 28px;
  padding: 28px;
  color: #FFFFFF;
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  text-align: center;
}

.tag-card-inner {
  background: var(--grad-orange);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(255, 60, 0, 0.35);
}

.tag-card-inner img {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 8px;
  display: block;
  margin: 0 auto;
}

.tag-card-code {
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tag-card-sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.9;
}

.tag-card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--ink-300);
}

.tag-card-foot .icon {
  color: var(--primary-orange);
}

/* The printed tag card (website/tag_card.py) shown as an image */
.tag-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.6;
  border-radius: 18px;
  background: #FBF8F2;
  box-shadow: var(--sh-lg);
}

.hero-visual .tag-card-image {
  position: relative;
  width: min(560px, 100%);
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
  z-index: 2;
}

.float-chip small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-400);
}

.float-chip-1 {
  top: 0;
  left: 0;
}

.float-chip-2 {
  bottom: 0;
  right: 0;
}

/* Feature list rows */
.feature-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-row h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.feature-row p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-400);
}

/* Step cards with connector */
.steps {
  counter-reset: step;
}

.step-card-v2 {
  position: relative;
  padding: 28px;
}

.step-card-v2 .step-index {
  display: block;
  margin: 18px 0 8px;
}

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.pricing-grid > .plan {
  flex: 1 1 260px;
  max-width: 296px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 26px 26px;
  box-shadow: var(--sh-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.plan.is-featured {
  border: 2px solid var(--primary-orange);
  box-shadow: 0 0 0 6px rgba(255, 85, 0, 0.07), var(--sh-md);
}

.plan-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-900);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 4px;
}

.plan-price strong {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  line-height: 1;
}

.plan-price s {
  font-size: 1rem;
  color: var(--ink-300);
}

.plan .check-list {
  flex: 1;
  margin: 22px 0 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.plan .check-list li {
  font-size: 0.9rem;
}

/* ==========================================================================
   FAQ (details/summary)
   ========================================================================== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px 22px;
  box-shadow: var(--sh-xs);
}

.faq details[open] {
  border-color: var(--orange-100);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-weight: 700;
  color: var(--ink-900);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--ink-400);
  transition: transform 0.2s ease;
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
  color: var(--primary-orange);
}

.faq details p {
  padding: 0 0 18px;
  color: var(--ink-400);
  line-height: 1.7;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer .footer-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 992px) {
  .split,
  .split-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    padding: 56px 0 48px;
    text-align: center;
  }

  .home-hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-proof {
    justify-content: center;
  }

  .site-header .nav-links {
    gap: 4px;
    padding: 12px 16px 16px;
  }

  .site-header .nav-links a {
    padding: 12px 14px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .section-sm {
    padding: 44px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .page-hero {
    padding: 48px 0 36px;
  }

  .page-body {
    padding: 36px 0 64px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 22px;
  }

  .card-lg {
    padding: 26px 20px;
  }

  .cta-band {
    padding: 44px 22px;
  }

  .float-chip-1 {
    left: 0;
  }

  .float-chip-2 {
    right: 0;
  }

  .site-header .nav-container {
    min-height: 64px;
  }

  .site-header .brand-logo img {
    height: 42px;
  }
}

@media (max-width: 640px) {
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar .btn {
    width: 100%;
  }

  .input-group {
    flex-direction: column;
  }

  .pricing-grid > .plan {
    max-width: none;
    flex-basis: 100%;
  }

  .float-chip {
    display: none;
  }

  .kv-list > div {
    flex-direction: column;
    gap: 2px;
  }

  .kv-list dd,
  .kv-list .v {
    text-align: left;
  }
}

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

/* Owner dashboard: one vehicle with 2 QR stickers shows both cards */
.sticker-cards {
  display: grid;
  gap: 14px;
  margin: 16px 0 22px;
}

.sticker-cards.is-multi {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.sticker-card {
  margin: 0;
  min-width: 0;
}

.sticker-card figcaption {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--ink-500);
}

/* ---------------------------------------------------------------- language picker (header + scan page) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lang-select { position: relative; display: inline-flex; align-items: center; margin-inline-start: auto; margin-inline-end: 8px; }
.lang-select-icon { position: absolute; inset-inline-start: 10px; display: inline-flex; color: var(--ink-400, #77736E); pointer-events: none; }
.lang-select select {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: 0.86rem; font-weight: 600; color: inherit;
  padding: 7px 28px 7px 32px; border: 1px solid var(--line, #E3E0DC); border-radius: 999px; background: var(--surface, #fff)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2377736E' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
  max-width: 150px; cursor: pointer;
}
[dir="rtl"] .lang-select select { padding: 7px 32px 7px 28px; background-position: left 10px center; }
.lang-select select:focus-visible { outline: 2px solid #FF5500; outline-offset: 2px; }
@media (max-width: 380px) { .lang-select select { max-width: 112px; } }
/* Desktop header: a globe button after Track Order opens a panel of languages (the native picker next to the logo
   is for phones / tablets) */
@media (min-width: 993px) { .lang-select-mobile { display: none !important; } }
.lang-menu { position: relative; flex-shrink: 0; }
.lang-menu-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 1px solid var(--line, #E3E0DC);
  border-radius: 999px; background: var(--surface, #fff); color: #0B0E14; font: inherit; font-size: 0.82rem; font-weight: 800;
  letter-spacing: 0.04em; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.lang-menu-btn:hover, .lang-menu-btn[aria-expanded="true"] { border-color: #0B0E14; box-shadow: 0 4px 14px rgba(11, 14, 20, 0.08); }
.lang-menu-btn:focus-visible { outline: 2px solid #FF5500; outline-offset: 2px; }
.lang-menu-chevron { display: inline-flex; opacity: 0.55; transition: transform .2s; }
.lang-menu-btn[aria-expanded="true"] .lang-menu-chevron { transform: rotate(180deg); }
.lang-menu-panel {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 1000; width: 340px; padding: 14px;
  background: #fff; border: 1px solid var(--line, #E3E0DC); border-radius: 18px;
  box-shadow: 0 24px 48px -12px rgba(11, 14, 20, 0.22), 0 2px 6px rgba(11, 14, 20, 0.06);
  animation: vr-lang-in .16s ease-out;
}
.lang-menu-panel[hidden] { display: none; }
@keyframes vr-lang-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang-menu-head {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 10px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line, #E3E0DC); color: #0B0E14; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.lang-menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.lang-menu-item {
  display: block; padding: 9px 8px; border-radius: 10px; color: #0B0E14 !important; font-size: 0.92rem; font-weight: 600;
  text-align: center; text-decoration: none; transition: background .12s;
}
.lang-menu-item:hover, .lang-menu-item:focus-visible { background: #F4F2EF; outline: none; }
.lang-menu-item.is-current { background: #0B0E14; color: #fff !important; }

/* Every language keeps the same desktop layout. A long-worded language (Tamil, Malayalam...) does not get a menu
   button: main.js steps the header through .fit-1 ... .fit-4 (tighter spacing, smaller text, then two-line labels)
   until it fits on one row. */
.site-header .nav-links a { white-space: nowrap; }
@media (min-width: 993px) {
  .site-header.fit-1 .nav-container { gap: 10px; }
  .site-header.fit-1 .nav-links { gap: 0; }
  .site-header.fit-1 .nav-links a { padding: 8px 8px; font-size: 0.86rem; }
  .site-header.fit-1 .nav-actions { gap: 8px; }
  .site-header.fit-1 .nav-actions .btn { padding: 9px 12px; }
  .site-header.fit-2 .brand-logo img { height: 40px; }
  .site-header.fit-2 .nav-links a { padding: 6px 6px; font-size: 0.8rem; }
  .site-header.fit-2 .nav-actions .btn { font-size: 0.8rem; }
  .site-header.fit-2 .nav-actions .btn svg { display: none; }
  .site-header.fit-2 .lang-menu-chevron { display: none; }
  .site-header.fit-3 .nav-links a, .site-header.fit-3 .nav-actions .btn {
    white-space: normal; text-align: center; line-height: 1.2; max-width: 116px;
  }
  .site-header.fit-3 .nav-actions .btn { max-width: 140px; }
  .site-header.fit-4 .nav-links a, .site-header.fit-4 .nav-actions .btn { font-size: 0.74rem; }
  .site-header.fit-4 .nav-links a { padding: 4px 5px; }
}
/* Right-to-left languages (Urdu, Kashmiri, Sindhi): mirror text; numbers, plates and codes stay left-to-right */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .mono, [dir="rtl"] .vr-plate, [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { direction: ltr; unicode-bidi: isolate; }
