/* CSS Document */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #1A0C00;
  --white: #FDF8F0;
  --gray-dark: #3D2200;
  --gray-mid: #7A5910;
  --gray-light: #C8A45A;
  --gray-xlight: #F0E0B0;
  --accent: #C8900A;
  --gold: #D4A017;
  --gold-bright: #FFD700;
  --gold-dark: #8B6014;
  --bg: #FDF8F0;
  --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--black);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

body.dark-mode {
  --bg: #1A0800;
  --black: #FDF8F0;
  --white: #1A0800;
  --gray-dark: #F0E0B0;
  --gray-mid: #C8A45A;
  --gray-xlight: #2C1500;
  background: var(--bg);
  color: var(--black);
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-xlight);
  transition: background var(--transition), border-color var(--transition);
}

body.dark-mode nav {
  background: rgba(26, 8, 0, 0.95);
  border-bottom-color: #2C1500;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--black);
  border-radius: 10px;
  display: grid;
  place-items: center;
  transition: background var(--transition);
}

.logo-mark svg {
  fill: var(--bg);
  transition: fill var(--transition);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.logo-text span {
  font-weight: 400;
  font-style: italic;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 9px 22px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-mid);
}

.btn-ghost:hover {
  border-color: var(--black);
  background: var(--gray-xlight);
}

.btn-solid {
  background: linear-gradient(135deg, #D4A017, #B8860B);
  color: #1A0C00;
  font-weight: 700;
}

.btn-solid:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 144, 10, 0.35);
}

body.dark-mode .btn-solid {
  background: linear-gradient(135deg, #D4A017, #B8860B);
  color: #1A0C00;
}

body.dark-mode .btn-ghost {
  color: var(--black);
  border-color: #5A3A00;
}

body.dark-mode .btn-ghost:hover {
  background: #2C1500;
  border-color: #C8A45A;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 110px 5% 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, #000 39px, #000 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, #000 39px, #000 40px);
  transition: opacity var(--transition);
}

body.dark-mode .hero-bg-pattern {
  opacity: 0.06;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 39px, #fff 39px, #fff 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, #fff 39px, #fff 40px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-mid);
  background: var(--gray-xlight);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: background var(--transition), color var(--transition);
  animation: fadeUp 0.6s ease both;
}

.hero-sub-en {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #888;
  max-width: 480px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  font-style: italic;
}

.hero-sub-en strong {
  color: #111;
  font-style: normal;
}

body.dark-mode .hero-eyebrow {
  background: #1c1c1c;
  color: #888;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C8900A;
}

body.dark-mode .eyebrow-dot {
  background: #D4A017;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: var(--black);
  max-width: 780px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s 0.1s ease both;
  transition: color var(--transition);
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-mid);
  max-width: 480px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s 0.2s ease both;
  transition: color var(--transition);
}

body.dark-mode .hero-sub {
  color: #888;
}

/* ── PRODUCT QUESTION ── */
.question-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s 0.3s ease both;
  transition: color var(--transition);
}

body.dark-mode .question-label {
  color: #666;
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s 0.4s ease both;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 28px;
  border-radius: 16px;
  border: 1.5px solid var(--gray-xlight);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  min-width: 120px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

body.dark-mode .product-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: #222;
}

.product-card:hover {
  border-color: var(--black);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

body.dark-mode .product-card:hover {
  border-color: #888;
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.06);
}

.product-card.selected {
  background: linear-gradient(135deg, #D4A017, #B8860B);
  border-color: #D4A017;
  color: #1A0C00;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(200, 144, 10, 0.35);
}

body.dark-mode .product-card.selected {
  background: linear-gradient(135deg, #D4A017, #B8860B);
  border-color: #D4A017;
  color: #1A0C00;
}

.product-icon {
  font-size: 2rem;
  /* filter: grayscale(1); */
  /* transition: filter 0.3s ease, transform 0.3s ease; */
}

.product-card:hover .product-icon {
  filter: grayscale(0.4);
  transform: scale(1.1);
}

.product-card.selected .product-icon {
  filter: grayscale(0) brightness(0.2);
  transform: scale(1.05);
}

body.dark-mode .product-card.selected .product-icon {
  filter: grayscale(0) brightness(0.2);
}

.product-name {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
  transition: color 0.3s;
}

/* ── COMMON APPLY BUTTON ── */
.apply-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s 0.5s ease both;
}

.apply-hint {
  font-size: 0.8rem;
  color: #aaaaaa;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.apply-hint.ready {
  color: #666666;
}

.common-apply-btn {
  padding: 16px 48px;
  background: linear-gradient(135deg, #D4A017, #B8860B);
  color: #1A0C00;
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0.35;
  transform: scale(0.97);
}

.common-apply-btn:not([disabled]):hover {
  opacity: 1;
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 12px 40px rgba(200, 144, 10, 0.4);
}

.common-apply-btn.active {
  opacity: 1;
  transform: scale(1);
}

/* ── BG COLOR CHANGE OVERLAY ── */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(ellipse at 60% 40%, #2C1500 0%, #1A0800 100%);
  transition: opacity 0.6s ease;
  pointer-events: none;
}

body.product-selected .bg-overlay {
  opacity: 1;
}

body.product-selected {
  color: #f5f5f0 !important;
}

body.product-selected nav {
  background: rgba(26, 8, 0, 0.95) !important;
  border-bottom-color: #3D2200 !important;
}

body.product-selected .logo-text,
body.product-selected .hero-title,
body.product-selected .hero-sub,
body.product-selected .question-label,
body.product-selected .hero-eyebrow {
  color: #f5f5f0 !important;
}

body.product-selected .hero-eyebrow {
  background: #2C1500 !important;
}

body.product-selected .logo-mark {
  background: #D4A017 !important;
}

body.product-selected .logo-mark svg {
  fill: #1A0C00 !important;
}

body.product-selected .btn-ghost {
  color: #FDF8F0 !important;
  border-color: #7A5910 !important;
}

body.product-selected .btn-ghost:hover {
  background: #2C1500 !important;
}

body.product-selected .btn-solid {
  background: linear-gradient(135deg, #D4A017, #B8860B) !important;
  color: #1A0C00 !important;
}

body.product-selected .product-card:not(.selected) {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: #3D2200 !important;
  color: #FDF8F0 !important;
}

body.product-selected .hero-bg-pattern {
  opacity: 0.06 !important;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 39px, #fff 39px, #fff 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, #fff 39px, #fff 40px) !important;
}

/* ── MODAL ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  /* centered on desktop */
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 20px;
  overflow-y: auto;
  /* allow backdrop itself to scroll on tiny screens */
  -webkit-overflow-scrolling: touch;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 44px 40px 36px;
  position: relative;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.15);
  border: 1px solid #eeeeee;

  /* KEY: constrain height and make form scroll inside */
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;

  /* Prevent modal shrinking when content is taller */
  flex-shrink: 0;
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: sticky;
  /* sticky inside scrollable modal */
  top: 0px;
  float: right;
  /* sit in the top-right corner */
  margin-bottom: -36px;
  /* collapse space so title is unaffected */
  margin-left: auto;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #666;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: #D4A017;
  color: #1A0C00;
}


/* ── MOBILE: slide up from bottom like a sheet ── */
@media (max-width: 520px) {
  .modal-backdrop {
    align-items: flex-end;
    /* anchor to bottom */
    padding: 0;
  }

  .modal {
    border-radius: 24px 24px 0 0;
    /* rounded only at top */
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
    /* leave a sliver of backdrop visible */
    padding: 20px 20px 32px;
    transform: translateY(100%);
    /* slide up from below */
    border: none;
    border-top: 1px solid #eeeeee;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
  }

  .modal-backdrop.open .modal {
    transform: translateY(0);
  }

  /* Drag handle indicator */
  .modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 0 auto 16px;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  /* Stack form-row to single column on small screens */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* Submit button always visible with bottom safe area */
  .btn-submit {
    position: sticky;
    bottom: 0;
    margin-top: 12px;
    z-index: 5;
    box-shadow: 0 -8px 20px rgba(255, 255, 255, 0.95);
  }
}

/* ── VERY SHORT SCREENS (landscape mobile) ── */
@media (max-width: 520px) and (max-height: 500px) {
  .modal {
    max-height: 85vh;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-sub {
    display: none;
  }

  /* hide subtitle to save space */
  .form-group {
    margin-bottom: 10px;
  }

  .form-input {
    padding: 9px 12px;
  }
}


.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  background: #f0f0e8;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0a0a0a;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.modal-sub {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 28px;
  line-height: 1.5;
}

.modal-selected-product {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #D4A017, #B8860B);
  color: #1A0C00;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-size: 0.85rem;
  font-weight: 500;
}

.modal-selected-product .picon {
  font-size: 1.2rem;
  filter: brightness(0.2);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #0a0a0a;
  background: #fafaf7;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: #D4A017;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.form-input::placeholder {
  color: #bbb;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #D4A017, #B8860B);
  color: #1A0C00;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  letter-spacing: 0.03em;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-submit:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.modal-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 0.82rem;
  color: #999;
}

.modal-footer a {
  color: #C8900A;
  font-weight: 500;
  text-decoration: none;
}

.modal-footer a:hover {
  text-decoration: underline;
}

/* ── HOW IT WORKS ── */
.section {
  padding: 96px 5%;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-mid);
  display: block;
  margin-bottom: 12px;
  transition: color var(--transition);
}

body.product-selected .section-eyebrow {
  color: #888;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  transition: color var(--transition);
}

body.product-selected .section-title {
  color: #f5f5f0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  padding: 32px 28px;
  border: 1.5px solid var(--gray-xlight);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}

body.dark-mode .step-card,
body.product-selected .step-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: #222;
}

.step-card:hover {
  border-color: #D4A017;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(200, 144, 10, 0.15);
}

body.product-selected .step-card:hover {
  border-color: #888;
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.05);
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gray-xlight);
  line-height: 1;
  margin-bottom: 16px;
  transition: color var(--transition);
}

body.product-selected .step-num {
  color: #222;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  transition: color var(--transition);
}

body.product-selected .step-title {
  color: #f5f5f0;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--gray-mid);
  line-height: 1.6;
  transition: color var(--transition);
}

body.product-selected .step-desc {
  color: #666;
}

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  padding: 32px 20px;
  border: 1.5px solid var(--gray-xlight);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

body.dark-mode .team-card,
body.product-selected .team-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: #222;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: #D4A017;
  box-shadow: 0 12px 40px rgba(200, 144, 10, 0.12);
}

body.product-selected .team-card:hover {
  border-color: #888;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gray-xlight);
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--black);
  transition: background var(--transition), color var(--transition);
}

body.product-selected .team-avatar {
  background: #1c1c1c;
  color: #f5f5f0;
}

.team-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
  transition: color var(--transition);
}

body.product-selected .team-name {
  color: #f5f5f0;
}

.team-role {
  font-size: 0.8rem;
  color: var(--gray-mid);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

body.product-selected .team-role {
  color: #666;
}

/* ── FOOTER ── */
footer {
  padding: 56px 5% 36px;
  border-top: 1px solid var(--gray-xlight);
  position: relative;
  z-index: 1;
  transition: border-color var(--transition);
}

body.product-selected footer {
  border-top-color: #1c1c1c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 48px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--gray-mid);
  line-height: 1.7;
  max-width: 280px;
  margin-top: 14px;
  transition: color var(--transition);
}

body.product-selected .footer-brand p {
  color: #666;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
  transition: color var(--transition);
}

body.product-selected .footer-col-title {
  color: #f5f5f0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li {
  font-size: 0.875rem;
  color: var(--gray-mid);
  line-height: 1.7;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--black);
}

body.product-selected .footer-links a:hover {
  color: #f5f5f0;
}

.contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.contact-icon {
  color: var(--gray-mid);
  flex-shrink: 0;
  margin-top: 4px;
  transition: color var(--transition);
}

.contact-address {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.7;
  font-style: normal;
  transition: color var(--transition);
}

body.product-selected .contact-icon,
body.product-selected .contact-address {
  color: #666;
}

.footer-bottom {
  border-top: 1px solid var(--gray-xlight);
  padding-top: 28px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color var(--transition);
}

body.product-selected .footer-bottom {
  border-top-color: #1c1c1c;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-mid);
}

/* ── DIVIDER ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--gray-xlight);
  transition: background var(--transition);
  position: relative;
  z-index: 1;
}

body.product-selected .divider {
  background: #1c1c1c;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #C8A45A;
  border-radius: 3px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    height: 64px;
    gap: 8px;
  }

  .logo {
    flex: 1 1 0;
    min-width: 0;
  }

  .logo-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-actions {
    flex-shrink: 0;
    gap: 8px;
    margin-left: 0;
    flex-wrap: nowrap;
  }

  .locale-switcher {
    margin-left: 0;
  }

  .hero {
    padding-top: 90px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 36px 24px 28px;
  }

  .gold-calc-row {
    grid-template-columns: 1fr;
  }

  .gold-banner-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gold-banner-right {
    display: none;
  }

  .split-visual {
    max-width: 100%;
  }

  .gold-calc {
    padding: 22px 18px;
  }

  .trust-strip-inner {
    gap: 12px 16px;
  }

  .trust-dot {
    display: none;
  }

  .scheme-highlights {
    flex-direction: column;
    border-radius: 14px;
  }

  .sh-divider {
    width: 100%;
    height: 1px;
  }

  .sh-item {
    flex-direction: row;
    text-align: left;
    padding: 14px 16px;
  }

  .gram-range-box {
    padding: 18px 16px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    display: none;
  }

  .logo {
    flex: 0 0 auto;
  }

  .nav-actions .btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .locale-switcher a {
    font-size: 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-width: 100px;
    padding: 18px 20px;
  }

  .gold-calc-result {
    flex-direction: column;
  }

  .gcr-divider {
    width: 100%;
    height: 1px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .grb-range {
    gap: 4px;
  }

  .gram-option {
    min-width: 44px;
    padding: 8px 10px;
  }

  .gram-arrow {
    display: none;
  }
}


.app-download-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.app-download-inner {
  background: #f8f9fa;
  /* or your theme's surface color */
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid #e9ecef;
}

.app-download-desc {
  color: #6c757d;
  font-size: 15px;
  line-height: 1.6;
  margin: 0.75rem 0 1.5rem;
  max-width: 480px;
}

.app-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.app-badge-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
  min-width: 155px;
}

.app-badge-btn:hover {
  background: #f1f3f5;
  border-color: #adb5bd;
}

.badge-icon {
  color: #212529;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-sub {
  font-size: 11px;
  color: #6c757d;
  line-height: 1;
}

.badge-name {
  font-size: 15px;
  font-weight: 500;
  color: #212529;
  line-height: 1.3;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f1f1f1;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 3px;
}

.lang-btn {
  padding: 5px 14px;
  border-radius: 16px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #888;
  transition: all 0.15s;
  font-family: inherit;
}

.lang-btn.active {
  background: linear-gradient(135deg, #D4A017, #B8860B);
  color: #1A0C00;
  border: 1px solid #D4A017;
  box-shadow: 0 1px 3px rgba(200, 144, 10, 0.25);
  font-weight: 700;
}


/* ── SCHEME HIGHLIGHTS BAR ── */
.scheme-highlights {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
  max-width: 720px;
  width: 100%;
  margin: 0 auto 28px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1;
}

.sh-item {
  flex: 1;
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.sh-icon {
  font-size: 1.4rem;
}

.sh-text {
  font-size: 0.78rem;
  color: #555;
  line-height: 1.45;
}

.sh-text strong {
  color: #111;
  display: block;
  font-size: 0.82rem;
}

.sh-divider {
  width: 1px;
  background: #eee;
  flex-shrink: 0;
}

/* ── GRAM RANGE BOX ── */
.gram-range-box {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 20px;
  padding: 24px 28px;
  max-width: 580px;
  width: 100%;
  margin: 0 auto 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.grb-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
  text-align: left;
}

.grb-range {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.gram-option {
  text-align: center;
  padding: 10px 14px;
  border: 1.5px solid #eee;
  border-radius: 10px;
  background: #fafafa;
  min-width: 52px;
  transition: all 0.2s;
}

.gram-option.go-active {
  background: linear-gradient(135deg, #D4A017, #B8860B);
  border-color: #D4A017;
}

.gram-val {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  line-height: 1;
}

.gram-option.go-active .gram-val {
  color: #1A0C00;
}

.gram-unit {
  font-size: 0.62rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.gram-option.go-active .gram-unit {
  color: #5A3A00;
}

.gram-arrow {
  font-size: 0.75rem;
  color: #ccc;
}

.grb-summary {
  margin-top: 12px;
  color: #444;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.grb-note {
  font-size: 0.75rem;
  color: #999;
  text-align: center;
  line-height: 1.5;
}


/* ── SPLIT VISUAL (50/50) ── */
.split-visual {
  display: flex;
  align-items: stretch;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid #e8e8e8;
  max-width: 480px;
  width: 100%;
  margin: 36px auto 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
  position: relative;
  z-index: 1;
}

.split-half {
  flex: 1;
  padding: 28px 20px;
  text-align: center;
}

.split-left {
  background: #1A0800;
  color: #FDF8F0;
}

.split-right {
  background: #ffffff;
  color: #111;
}

.split-percent {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}

.split-left .split-percent {
  color: #D4A017;
}

.split-right .split-percent {
  color: #111;
}

.split-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.split-left .split-label {
  color: #aaa;
}

.split-right .split-label {
  color: #888;
}

.split-desc {
  font-size: 0.75rem;
  opacity: 0.65;
}

.split-divider {
  width: 60px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1.5px solid #eee;
  border-right: 1.5px solid #eee;
  flex-shrink: 0;
}

.split-icon {
  font-size: 1.6rem;
}

/* ── TRUST STRIP ── */
.trust-strip {
  background: #1A0800;
  padding: 18px 5%;
  border-top: 1px solid #3D2200;
  border-bottom: 1px solid #3D2200;
}

.trust-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #C8A45A;
}

.trust-icon {
  font-size: 1rem;
}

.trust-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6B4C00;
  flex-shrink: 0;
}

 /* ── WHY GOLD GRID ── */
  .why-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px; max-width: 1000px; margin: 0 auto;
  }
  .why-card {
    padding: 30px 26px;
    border: 1.5px solid #eeeeee;
    border-radius: 16px; background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
  }
  .why-card:hover {
    border-color: #D4A017; transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(200, 144, 10, 0.15);
  }
  .why-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
  .why-title { font-size: 1rem; font-weight: 600; color: #111; margin-bottom: 8px; }
  .why-desc { font-size: 0.875rem; color: #777; line-height: 1.65; }

  /* ── TAMIL GOLD BANNER ── */
  .gold-banner {
    background: #1A0800;
    padding: 72px 5%;
    position: relative; overflow: hidden;
  }
  .gold-banner::before {
    content: '🪙';
    position: absolute; right: -40px; top: -40px;
    font-size: 18rem; opacity: 0.04; line-height: 1;
    pointer-events: none;
  }
  .gold-banner-inner {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 56px; align-items: center;
  }
  .gold-banner-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: #888;
    background: rgba(255,255,255,0.08);
    padding: 5px 13px; border-radius: 100px;
    margin-bottom: 18px;
  }
  .gold-banner-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 900; line-height: 1.15;
    letter-spacing: -0.02em; color: #ffffff;
    margin-bottom: 18px;
  }
  .gold-banner-title em {
    font-style: italic; font-weight: 400; color: #dddddd;
  }
  .gold-banner-sub {
    font-size: 1.05rem; line-height: 1.75;
    color: #cccccc; margin-bottom: 12px;
    font-family: 'DM Sans', sans-serif;
  }
  .gold-banner-en {
    font-size: 0.875rem; line-height: 1.7;
    color: #888888; margin-bottom: 28px;
    font-style: italic;
  }
  .gold-banner-btn {
    padding: 14px 36px;
    background: linear-gradient(135deg, #D4A017, #B8860B); color: #1A0C00;
    border: none; border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem; font-weight: 700;
    cursor: pointer; letter-spacing: 0.03em;
    transition: transform 0.2s, opacity 0.2s;
  }
  .gold-banner-btn:hover { transform: translateY(-2px); opacity: 0.9; }

  /* Coin stack visual */
  .gold-banner-right { display: flex; justify-content: center; align-items: center; }
  .gold-coin-stack { position: relative; width: 220px; height: 220px; }
  .gold-coin {
    position: absolute; font-size: 4rem;
    animation: coinFloat 3s ease-in-out infinite;
  }
  .gc1 { top: 10px; left: 30px; animation-delay: 0s; }
  .gc2 { top: 60px; left: 90px; animation-delay: -1s; font-size: 5rem; }
  .gc3 { top: 110px; left: 20px; animation-delay: -2s; }
  @keyframes coinFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
  }
  .gold-stat-card {
    position: absolute; bottom: 20px; right: 0;
    background: #fff; border-radius: 12px;
    padding: 12px 18px; text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .gsc-right { bottom: 80px; right: -10px; }
  .gsc-val {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; font-weight: 900; color: #111; line-height: 1;
  }
  .gsc-lbl { font-size: 0.65rem; color: #888; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

 