/* ============================================================
   Dant Upchaar — Shared components: nav, footer, breadcrumbs,
   buttons, cards, chips, FAQ, dialog. Tokens only.
   ============================================================ */

/* ---------- Navbar (glass, fixed) ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow var(--t-std) var(--ease-out);
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); }
.nav > .container { height: 100%; } /* keep the % height chain intact */

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

/* Logo lockup — mark + two-tone wordmark. On dark the mark sits on a
   tint plate: the plate is ALWAYS there, so the
   mark never sits bare on navy; on light it reads as a soft chip. */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
/* The Aura app-icon tile IS the plate: corners, light and hairline are baked into favicon.svg. */
.mark-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 22.37%;
  box-shadow: 0 1px 2px rgba(11, 42, 74, 0.12);
  flex-shrink: 0;
}
.mark-plate img { width: 100%; height: 100%; display: block; }

/* Links centred in the space BETWEEN logo and actions */
.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 1060px) {
  .nav-links {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    gap: clamp(4px, 1.2vw, 16px);
  }
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s3);
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--text-2);
  transition: color var(--t-micro) var(--ease-out), background var(--t-micro) var(--ease-out);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--link); }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-shrink: 0;
}
/* Scoped for specificity so the .btn utility can't resurrect it */
.nav-right .nav-cta { display: none; }
@media (min-width: 680px) { .nav-right .nav-cta { display: inline-flex; } }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background var(--t-micro) var(--ease-out), transform var(--t-micro) var(--ease-out);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(0.97); }
.icon-btn svg { width: 20px; height: 20px; }

/* Theme toggle shows the icon of the mode it switches TO */
html[data-theme="dark"] .theme-icon-moon { display: none; }
html[data-theme="light"] .theme-icon-sun { display: none; }
html:not([data-theme]) .theme-icon-sun { display: none; }

.nav-burger { display: inline-flex; }
@media (min-width: 1060px) { .nav-right .nav-burger { display: none; } }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  display: none;
  padding: var(--s4) var(--gutter) var(--s6);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.mobile-menu li { margin: 0; }
.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--s2);
  border-radius: var(--r-input);
  font-weight: 600;
  color: var(--text);
}
.mobile-menu a:not(.btn):hover { background: var(--surface-2); text-decoration: none; }
.mobile-menu a[aria-current="page"] { color: var(--link); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: 0 var(--s6);
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-micro) var(--ease-out),
              box-shadow var(--t-std) var(--ease-out),
              background var(--t-micro) var(--ease-out),
              border-color var(--t-micro) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Primary: Trust Blue, polished — gradient depth + inner highlight.
   Every stop (--blue-lift → --blue → --blue-deep) is AA for white text. */
.btn-primary {
  background: linear-gradient(180deg, var(--blue-lift) 0%, var(--blue) 55%, var(--blue-deep) 100%);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
              0 8px 22px rgba(0, 82, 204, 0.26);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16),
              0 10px 28px rgba(0, 82, 204, 0.34);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(0.97); }

/* Inverse: white/tint pill, navy text — for navy bands */
.btn-inverse {
  background: var(--white);
  color: var(--navy-deep);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.btn-inverse:hover { background: var(--tint); transform: translateY(-1px); }

/* Secondary: outline */
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--link); color: var(--link); background: var(--surface); }
.band-navy .btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--text-2); }

.btn-sm { min-height: 44px; padding: 0 var(--s5); font-size: var(--fs-label); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding-top: calc(var(--nav-h) + var(--s5));
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-label);
  font-weight: 600;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: var(--s1); margin: 0; }
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 var(--s1);
  color: var(--text-2);
  border-radius: 6px;
}
.breadcrumbs a:hover { color: var(--link); }
.breadcrumbs li + li::before {
  content: "/";
  color: var(--text-2);
  opacity: 0.55;
  padding-inline: var(--s1);
}
.breadcrumbs [aria-current="page"] { color: var(--text); padding: 0 var(--s1); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: var(--s6);
  transition: transform var(--t-std) var(--ease-out),
              box-shadow var(--t-std) var(--ease-out),
              border-color var(--t-std) var(--ease-out);
}
/* Hover lift + pointer tilt compose through CSS vars — one transform,
   no JS/CSS collisions. ui.js writes --rx/--ry/--mx/--my. */
.card.is-hoverable {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
}
.card.is-hoverable:hover {
  --lift: -4px;
  box-shadow: var(--shadow-md);
  border-color: var(--border-soft);
}
.card h3 { margin-bottom: var(--s2); }
.card p { color: var(--text-2); }

/* Icon tile — premium plate: soft gradient, inset highlight, brand glow */
.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: var(--s4);
  border-radius: 15px;
  background: linear-gradient(150deg, var(--surface-2), var(--surface) 85%);
  border: 1px solid var(--border-soft);
  box-shadow: inset 0 1px 0 var(--tile-hi),
              0 4px 14px rgba(0, 184, 217, 0.12);
  color: var(--accent-text);
}
.tile svg { width: 24px; height: 24px; }

/* Premium icon strokes — brand gradient with the solid ink as fallback
   (unsupporting browsers keep the SVG's own currentColor attribute). */
.tile svg,
.chip > svg,
.checklist .tick svg,
.pact-card li svg,
.marquee-item svg,
.v-row svg {
  stroke: url(#du-ig) var(--accent-text);
}
/* Inside a navy band the root-scoped gradient holds the wrong (light-page)
   inks — use the always-bright inverse gradient instead. */
.band-navy .tile svg,
.band-navy .chip > svg,
.band-navy .checklist .tick svg,
.band-navy .pact-card li svg,
.band-navy .marquee-item svg,
.band-navy .v-row svg {
  stroke: url(#du-ig-inv) var(--accent-text);
}

/* Feature card with a gradient hairline top accent */
.card-feature { overflow: clip; }
.card-feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g1), var(--g3));
  opacity: 0;
  transition: opacity var(--t-std) var(--ease-out);
}
.card-feature:hover::before { opacity: 1; }
/* Spotlight that follows the pointer (vars from ui.js tilt binding) */
.card-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--t-std) var(--ease-out);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--glow-b), transparent 70%);
  pointer-events: none;
}
.card-feature:hover::after { opacity: 1; }

/* ---------- Status card ----------
   A calm, factual status block — what is open, what is not, and the one action
   that is available today. Tokens only; reads on light and dark. */
.status-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s5);
  align-items: start;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.status-card h2 { margin-bottom: var(--s3); }
.status-card .lead { margin-bottom: var(--s5); }
.status-card .hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (max-width: 560px) {
  .status-card { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 36px;
  padding: var(--s1) var(--s4);
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 16px; height: 16px; color: var(--accent-text); flex-shrink: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Soft status pill (e.g. "Coming soon", artwork tags) — always opaque */
.pill-soon,
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* ---------- FAQ accordion (native details/summary) ---------- */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq {
  border: 1px solid var(--border);
  border-radius: var(--r-tile);
  background: var(--surface);
  margin-bottom: var(--s3);
  overflow: clip;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5) var(--s6);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background var(--t-micro) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(45deg);
  transition: transform var(--t-std) var(--ease-out);
}
.faq[open] summary::after { transform: rotate(-135deg); }
.faq-body { padding: 0 var(--s6) var(--s5); color: var(--text-2); }

/* ---------- Dialog (coming soon) ---------- */
.du-dialog {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  padding: var(--s7);
  width: min(92vw, 460px);
}
.du-dialog::backdrop { background: rgba(6, 32, 59, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.du-dialog h3 { margin-bottom: var(--s2); }
.du-dialog p { color: var(--text-2); }
.du-dialog .dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s5);
}

/* ---------- Footer (always navy — Partners premium voice) ---------- */
.footer { padding: clamp(56px, 7vw, 88px) 0 var(--s7); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s7);
  margin-bottom: var(--s8);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand p { color: var(--text-2); max-width: 36ch; }
.footer h4 {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--s4);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: var(--s1); }
.footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-2);
  font-weight: 600;
  font-size: var(--fs-label);
}
.footer ul a:hover { color: var(--text); }
.footer-note {
  border-top: 1px solid var(--border-soft);
  padding-top: var(--s6);
  font-size: var(--fs-label);
  color: var(--text-2);
}
.footer-note p { margin-bottom: var(--s3); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s5);
}
.footer-legal a { color: var(--text-2); font-weight: 600; min-height: 36px; display: inline-flex; align-items: center; }
.footer-legal a:hover { color: var(--text); }
