/* ============================================================
   Yuva marketing — shared styles
   Single source of truth for brand tokens. Update once, the
   whole site rebrands.
   ============================================================ */

:root {
  /* Brand */
  --color-ink:        #1A1A1A;
  --color-ink-2:      #2A2A2A;
  --color-paper:      #FFFFFF;
  --color-accent:     #1A1A1A;       /* TODO(brand): your primary brand color */
  --color-accent-soft:#F4F1EC;       /* TODO(brand): soft tint of brand color */
  --color-quote:      #94A3B8;

  /* Surfaces */
  --radius-card:      18px;
  --radius-pill:      9999px;
  --shadow-card:      0 1px 2px rgba(0,0,0,.04), 0 10px 30px -10px rgba(0,0,0,.08);
  --bg-gradient:      linear-gradient(to bottom, #FFFFFF 0%, #FBF9F4 25%, #F5F8FB 60%, #FFFFFF 100%);
}

html { scroll-behavior: smooth; }
h2[id], h3[id] { scroll-margin-top: 100px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--color-ink);
  background-color: #FFFFFF;
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: -0.01em;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
  border-radius: 8px;
}

/* FAQ + accordion */
details[open] > summary .chev { transform: rotate(180deg); }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }

/* Decorative quote-mark */
.deco-quote::before {
  content: "\201C";
  font-family: 'Bricolage Grotesque', serif;
  font-size: 3rem;
  line-height: 0;
  color: var(--color-quote);
  position: relative;
  top: 0.3em;
  margin-right: .15em;
}

/* Long-form article prose (used on legal + blog pages) */
.prose {
  max-width: 68ch;
  color: rgba(26, 26, 26, .92);
  font-size: 1rem;
  line-height: 1.7;
}
.prose h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 .75rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.prose h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 .5rem;
  font-weight: 600;
}
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose strong { font-weight: 600; color: var(--color-ink); }
.prose a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26,26,26,.35);
}
.prose a:hover { text-decoration-color: var(--color-ink); }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-ink);
  background: var(--color-accent-soft);
  font-style: italic;
  color: rgba(26,26,26,.85);
  border-radius: 0 12px 12px 0;
}
.prose hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid rgba(0,0,0,.08);
}
.prose code {
  background: rgba(0,0,0,.05);
  padding: .15em .35em;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
  .prose table, .prose thead, .prose tbody, .prose th, .prose td, .prose tr {
    display: block;
  }
  .prose table {
    border: none;
    overflow: visible;
  }
  .prose thead {
    display: none;
  }
  .prose tr {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1rem;
  }
  .prose td {
    padding: 0.5rem 0;
    border-bottom: none;
    font-size: 0.875rem;
  }
  .prose td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(26,26,26,.55);
    margin-bottom: 0.25rem;
  }
}
.prose thead {
  background: var(--color-accent-soft);
}
.prose th {
  text-align: left;
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(26,26,26,.55);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.09);
  white-space: nowrap;
}
.prose td {
  padding: 0.875rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: rgba(26,26,26,.85);
  line-height: 1.55;
}
.prose tbody tr:last-child td {
  border-bottom: none;
}
.prose tbody tr:hover {
  background: rgba(0,0,0,.018);
}

/* Pricing toggle pill */
.toggle-pill {
  background: rgba(0,0,0,.05);
  padding: 4px;
  border-radius: var(--radius-pill);
  display: inline-flex;
}
.toggle-pill button {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  color: rgba(26,26,26,.65);
}
.toggle-pill button[aria-pressed="true"] {
  background: var(--color-ink);
  color: white;
}

/* ============================================================
   Floating nav wrapper — positions the pill with side gaps
   ============================================================ */
.floating-nav-wrapper {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 16px;
  display: flex;
  justify-content: center;
}
@media (min-width: 640px) {
  .floating-nav-wrapper { padding: 0 40px; }
}

/* ============================================================
   Floating nav pill (BitePal-inspired)
   ============================================================ */
.floating-nav-pill {
  width: 100%;
  border-radius: 40px;
  background: #FFFFFF;
  color: #1A1A1A;
  transition: box-shadow 0.25s ease;
}
.floating-nav-pill.has-shadow {
  box-shadow: 0 2px 20px rgba(0,0,0,.14);
}

/* Mobile menu dropdown attached below floating nav */
.floating-mobile-menu {
  border-radius: 24px;
  background: #FFFFFF;
  color: #1A1A1A;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  margin-top: 6px;
}
/* Ensure hidden attribute still works even with other display classes */
.floating-mobile-menu[hidden] { display: none !important; }

/* ============================================================
   Topic navigation cards (BitePal "Other topics" pattern)
   ============================================================ */
.topic-nav-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.5rem 1.5rem 1.375rem;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,.08);
  border-radius: 24px;
  text-decoration: none;
  color: var(--color-ink);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.topic-nav-card:hover {
  background-color: #F5F5F5;
  border-color: rgba(0,0,0,.14);
}
.topic-nav-card .topic-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  flex-shrink: 0;
}
.topic-nav-card .topic-label {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-ink);
}

/* ============================================================
   Floating footer pill (BitePal-inspired)
   ============================================================ */
.floating-footer-wrap {
  padding: 0 16px 16px;
}
@media (min-width: 640px) {
  .floating-footer-wrap { padding: 0 40px 24px; }
}
.floating-footer-pill {
  border-radius: 28px;
  background: #1A1A1A;
  color: #F5F5F0;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 8px 24px -8px rgba(0,0,0,.25);
  padding: 2rem 2rem 1.75rem;
}
/* Extra horizontal padding at md+ */
@media (min-width: 768px) {
  .floating-footer-pill { padding: 2rem 2.5rem 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   Desktop landscape fixes
   Targets wide + short viewports (laptops, 16:9 desktops).
   Reduces excessive vertical rhythm that was designed for tall
   portrait/mobile readings.
   ============================================================ */
@media (min-width: 1024px) and (max-height: 860px) {
  /* Shrink body top offset if nav somehow recomputes */
  body { padding-top: 72px; }

  /* Scale down section vertical padding that's too tall for 720p screens */
  .section-padding-lg {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  /* FAQ accordion items: reduce per-item padding */
  #faq details {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  /* FAQ section heading gap */
  #faq .mt-10 {
    margin-top: 1.5rem;
  }

  /* Footer adjustments */
  .floating-footer-wrap {
    padding-bottom: 14px;
  }
}

/* ============================================================
   Landscape phone / tablet landscape (short but narrower)
   ============================================================ */
@media (max-height: 600px) and (orientation: landscape) {
  body { padding-top: 64px; }

  #faq details {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

/* Footer navigation links spacing fallback */
nav[aria-label="Footer navigation"] {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  column-gap: 2rem !important; /* Equal to gap-x-8 */
  row-gap: 0.75rem !important;    /* Equal to gap-y-3 */
}

