/* ============================================================
   FaceShapesAI — Design System  v1.6
   Rose / porcelain theme. Every legacy class hook is preserved
   so existing markup + JS keep working, restyled to the new UI.
   ============================================================ */

:root {
  --rose-50:  #FFF7F9;
  --rose-100: #FDEDF1;
  --rose-200: #FBDCE4;
  --rose-300: #F6BECC;
  --rose-400: #F090A8;
  --rose-500: #E9637C;
  --rose-600: #DE4E6C;
  --rose-700: #C13C57;

  --ink:      #141416;
  --body:     #6E6B70;
  --line:     #FBDCE4;
  --surface:  #FFFFFF;

  --grad: linear-gradient(135deg, #E9637C 0%, #F090A8 100%);
  --shadow-card: 0 4px 24px -8px rgba(20, 20, 22, .08);
  --shadow-soft: 0 12px 40px -14px rgba(233, 99, 124, .35);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .font-zen, .font-orbitron, .h-display {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--ink);
  letter-spacing: -.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--rose-300); color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible, label:focus-visible {
  outline: 2px solid var(--rose-500);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ── Page shell ───────────────────────────────────────────── */
.page-wrap { max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 1024px) { .page-wrap { padding-inline: 32px; } }

.bg-tint   { background: var(--rose-50); }
.bg-tint-2 { background: linear-gradient(180deg, #fff 0%, var(--rose-50) 100%); }

/* ── Navbar ───────────────────────────────────────────────── */
#navbar {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rose-100);
  transition: box-shadow .3s ease, background .3s ease;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 26px -18px rgba(20, 20, 22, .35);
}

.nav-links-box { gap: 6px; }

.nav-link {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(20, 20, 22, .7);
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--rose-500); background: var(--rose-50); }
.nav-link.active { color: var(--rose-500); font-weight: 600; }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 232px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 8px; box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s ease; z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(4px); }
.nav-dropdown-menu a {
  display: block; padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; color: rgba(20, 20, 22, .74);
}
.nav-dropdown-menu a:hover { background: var(--rose-50); color: var(--rose-500); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-glass { display: inline-block; }

.btn,
.btn-gradiant {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  border: 0; border-radius: 999px;
  background: var(--grad); color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600; line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-gradiant:hover { transform: translateY(-2px); filter: saturate(1.06) brightness(1.03); }
.btn-gradiant:active { transform: translateY(0); }
.btn-gradiant i { color: #fff; }

.btn-sm { padding: 9px 16px; font-size: 13px; }

/* White button for use on top of the gradient CTA band.
   (Never override .btn-gradiant's colour inline — that was the old bug.) */
.btn-invert {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border: 0; border-radius: 999px;
  background: #fff; color: var(--rose-600);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; line-height: 1;
  cursor: pointer; box-shadow: 0 10px 30px -12px rgba(20,20,22,.25);
  transition: transform .2s ease, background .2s ease;
}
.btn-invert:hover { transform: translateY(-2px); background: var(--rose-50); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 26px; border-radius: 999px;
  border: 1px solid var(--rose-200); background: #fff;
  color: var(--ink); font-size: 14px; font-weight: 600;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-outline:hover { border-color: var(--rose-400); color: var(--rose-500); transform: translateY(-2px); }

/* ── Section headings ─────────────────────────────────────── */
.section-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--rose-500); margin: 0 0 12px;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700; line-height: 1.2;
  color: var(--rose-500);
  margin: 0 0 10px;
}
.section-title .text-nft-purple { color: var(--ink); }
.section-sub { font-size: 14px; line-height: 1.75; color: var(--body); margin: 0; }

.divider { display: block; }
.divider-line { height: 1px; background: linear-gradient(90deg, transparent, var(--rose-200), transparent); }

/* ── Generic cards ────────────────────────────────────────── */
.feature-card,
.shape-card,
.spec-card,
.step-item,
.result-card,
.upload-file-wrapper,
.result-wrapper {
  background: #fff;
  border: 1px solid var(--rose-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.feature-card { padding: 22px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--rose-300); box-shadow: var(--shadow-soft); }

.shape-card { padding: 24px 16px; text-align: center; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.shape-card:hover { transform: translateY(-6px); border-color: var(--rose-300); box-shadow: var(--shadow-soft); }
.shape-card svg { margin: 0 auto 14px; display: block; stroke: var(--rose-500); }

.spec-card-wrapper { display: block; height: 100%; }
.spec-card { padding: 22px; height: 100%; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.spec-card:hover { transform: translateY(-5px); border-color: var(--rose-300); box-shadow: var(--shadow-soft); }
.spec-num { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--rose-400); }
.spec-title { font-family: 'Outfit', sans-serif; font-size: 14.5px; font-weight: 600; color: var(--ink); margin: 14px 0 6px; }
.spec-desc { font-size: 12px; line-height: 1.65; color: var(--body); margin: 0; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rose-50); color: var(--rose-500); font-size: 18px;
}

.pill-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 14px;
  border: 1px solid var(--rose-100); background: rgba(255, 255, 255, .8);
  font-size: 11.5px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-card);
}
.pill-badge i { color: var(--rose-500); }
@media (min-width: 640px) { .pill-badge > span:last-child { white-space: nowrap; } }

/* ── Steps ────────────────────────────────────────────────── */
.step-flow { position: relative; }
.step-item { padding: 26px 20px; text-align: center; position: relative; }
.step-circle,
.step-num-badge {
  width: 26px; height: 26px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rose-500); color: #fff;
  font-size: 12px; font-weight: 700;
}
.step-num-badge { position: absolute; top: 16px; left: 16px; }
.step-icon {
  width: 56px; height: 56px; border-radius: 999px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--rose-100); color: var(--rose-500); font-size: 22px;
}
.step-desc { font-size: 11.5px; line-height: 1.65; color: var(--body); }

/* ── Uploader / analyzer ──────────────────────────────────── */
.upload-file-wrapper { padding: 22px; }
.upload-file-box { border-radius: 16px; overflow: hidden; }
.upload-file {
  display: block; border: 2px dashed var(--rose-300);
  border-radius: 16px; background: rgba(255, 247, 249, .7);
  transition: border-color .22s ease, background .22s ease;
}
.upload-file:hover { border-color: var(--rose-500); background: var(--rose-50); }
.upload-icon-gradiant { background: var(--rose-100); color: var(--rose-500); transition: background .22s ease, color .22s ease; }
.upload-icon-gradiant i { color: var(--rose-500); }
.upload-file:hover .upload-icon-gradiant { background: var(--grad); }
.upload-file:hover .upload-icon-gradiant i { color: #fff; }

.result-wrapper { padding: 26px; }
.result-card-wrapper { display: block; }
.result-card { padding: 20px; border-radius: 16px; background: var(--rose-50); border-color: var(--rose-100); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  border: 1px solid var(--rose-200); border-radius: 14px;
  background: #fff; overflow: hidden;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.faq-item.open { border-color: var(--rose-400); box-shadow: var(--shadow-card); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 20px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 500; color: var(--ink);
}
.faq-q:hover { color: var(--rose-500); }
.faq-icon { flex-shrink: 0; color: var(--rose-500); transition: transform .25s ease; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  padding: 0 20px; font-size: 13px; line-height: 1.75; color: var(--body);
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 420px; padding: 0 20px 18px; }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-card {
  background: #fff; border: 1px solid var(--rose-100);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-card);
}
.testimonial-quote { font-family: 'Outfit', sans-serif; font-size: 26px; line-height: .8; color: var(--rose-300); }
.stars { color: var(--rose-500); letter-spacing: 1px; font-size: 12px; }
.slider-btn {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rose-200); background: #fff; color: var(--rose-500);
  cursor: pointer; transition: background .2s ease, color .2s ease;
}
.slider-btn:hover { background: var(--rose-500); color: #fff; }

.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ── Marquee ──────────────────────────────────────────────── */
.marquee-wrapper { overflow: hidden; -ms-overflow-style: none; scrollbar-width: none; }
.marquee-wrapper::-webkit-scrollbar { display: none; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 34s linear infinite; }
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-section {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: 38px 34px;
  background: linear-gradient(100deg, var(--rose-600) 0%, var(--rose-500) 45%, var(--rose-400) 100%);
  color: #fff;
}
.cta-section h2, .cta-section h3 { color: #fff; }
.cta-section::before,
.cta-section::after {
  content: ""; position: absolute; border-radius: 999px; background: rgba(255, 255, 255, .1);
}
.cta-section::before { width: 230px; height: 230px; top: -70px; right: -40px; }
.cta-section::after  { width: 210px; height: 210px; bottom: -110px; left: 34%; }

.cta-form { display: flex; align-items: center; gap: 8px; }
.cta-form input,
.cta-form-input {
  flex: 1; min-width: 0;
  padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--rose-200); background: #fff;
  font-size: 13px; color: var(--ink);
}
.cta-form input::placeholder { color: rgba(110, 107, 112, .6); }
.cta-form input:focus { outline: none; border-color: var(--rose-500); }
.cta-form button,
.cta-form-button {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px;
  border: 0; background: var(--grad); color: #fff; cursor: pointer;
  transition: filter .2s ease;
}
.cta-form button:hover { filter: brightness(1.05); }

/* ── Footer ───────────────────────────────────────────────── */
footer { background: rgba(255, 247, 249, .6); border-top: 1px solid var(--rose-100); }
.footer-heading { font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { font-size: 12.5px; color: var(--body); transition: color .2s ease; }
.footer-links a:hover { color: var(--rose-500); }

.social-icon {
  width: 34px; height: 34px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--rose-500); font-size: 13px;
  box-shadow: var(--shadow-card);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social-icon:hover { background: var(--rose-500); color: #fff; transform: translateY(-2px); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero-section { position: relative; overflow: hidden; }
.hero-section::before {
  content: ""; position: absolute; inset: auto auto 0 -140px;
  width: 340px; height: 340px; border-radius: 999px;
  background: var(--rose-100); filter: blur(70px); opacity: .8; z-index: -1;
}
.hero-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(40px, 6vw, 62px);
  font-weight: 800; line-height: 1.05; letter-spacing: -.02em;
  color: var(--ink); margin: 0;
}
.hero-heading span { color: var(--rose-500); }

.hero-face-frame {
  position: relative; border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-face-frame img { width: 100%; height: 100%; object-fit: cover; }

.hero-result-float {
  background: #fff; border: 1px solid var(--rose-100);
  border-radius: 22px; padding: 18px; box-shadow: var(--shadow-card);
}
.hero-bar-track { height: 6px; border-radius: 999px; background: var(--rose-100); flex: 1; overflow: hidden; }
.hero-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--grad); width: 0; transition: width 1.1s cubic-bezier(.22,.61,.36,1); }
.hero-metric { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rose-100); }
.hero-metric:last-child { border-bottom: 1px solid var(--rose-100); }
.hero-metric-label { width: 76px; flex-shrink: 0; font-size: 11px; font-weight: 500; color: var(--ink); }
.hero-metric-val { width: 32px; text-align: right; font-size: 10.5px; font-weight: 600; color: var(--body); }

.hero-scan-dot { fill: #fff; }
.hero-nft-img { border-radius: 24px; overflow: hidden; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--body); }
.breadcrumb a:hover { color: var(--rose-500); }

/* ── Prose (legal pages) ──────────────────────────────────── */
.prose-block h2 { font-size: 20px; margin: 32px 0 10px; color: var(--ink); }
.prose-block h3 { font-size: 16px; margin: 22px 0 8px; color: var(--ink); }
.prose-block p, .prose-block li { font-size: 13.5px; line-height: 1.8; color: var(--body); }
.prose-block ul { padding-left: 20px; }
.prose-block li { margin-bottom: 6px; }
.prose-block a { color: var(--rose-500); }

/* ── Forms ────────────────────────────────────────────────── */
.field {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--rose-200); border-radius: 12px;
  background: #fff; font-family: inherit; font-size: 13.5px; color: var(--ink);
  transition: border-color .2s ease;
}
.field::placeholder { color: rgba(110, 107, 112, .6); }
.field:focus { outline: none; border-color: var(--rose-500); }
.field-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }

/* ── Misc legacy hooks ────────────────────────────────────── */
.dot, .scroll-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--rose-300); display: inline-block; }
.cross-mark { position: relative; width: 16px; height: 16px; display: inline-block; }
.cross-mark::before, .cross-mark::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.6px;
  background: currentColor; border-radius: 2px;
}
.cross-mark::before { transform: rotate(45deg); }
.cross-mark::after  { transform: rotate(-45deg); }

.badge-user, .badge-bid {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--body);
}
.badge-user .h5, .badge-bid .h5 { font-size: 12px; font-weight: 600; color: var(--ink); }

.about-img-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.about-img-main { grid-column: span 2; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); }

.glich-wrapper, .glich-art { position: relative; border-radius: 24px; overflow: hidden; }
.glich-art img { width: 100%; }
.glich-gradiant { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(233, 99, 124, .22)); }
.glich-mask { position: absolute; inset: 0; }

.search-overlay {
  position: fixed; inset: 0; z-index: 80; display: flex;
  align-items: flex-start; justify-content: center; padding-top: 14vh;
  background: rgba(20, 20, 22, .45); backdrop-filter: blur(6px);
}
.search-overlay.hidden { display: none; }
.search-box { width: min(560px, 92vw); display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 8px 8px 8px 20px; }
.search-box input { flex: 1; border: 0; outline: none; font-size: 14px; color: var(--ink); }
.search-box button { width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; cursor: pointer; }

.roadmap-timeline { position: relative; }
.roadmap-item { position: relative; padding-left: 34px; margin-bottom: 26px; }
.roadmap-timeline::before { content: ""; position: absolute; left: 9px; top: 4px; bottom: 4px; width: 2px; background: var(--rose-200); }
.roadmap-dot { position: absolute; left: 3px; top: 6px; width: 14px; height: 14px; border-radius: 999px; background: var(--rose-500); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--rose-200); }
.roadmap-date { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rose-500); }
.roadmap-title { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 600; color: var(--ink); margin: 4px 0; }
.roadmap-desc { font-size: 13px; color: var(--body); }

/* ── Reveal on scroll ─────────────────────────────────────────
   Scoped to .js so the page is fully visible without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track { animation: none !important; }
}

/* ── Small screens ────────────────────────────────────────── */
@media (max-width: 640px) {
  .upload-file-wrapper, .result-wrapper { padding: 18px; }
  .cta-section { padding: 28px 22px; border-radius: 22px; }
  .btn, .btn-gradiant { padding: 12px 22px; }
}

/* ── Ad slots ─────────────────────────────────────────────────
   Rendered server-side only when a slot has code AND is enabled, so
   these rules never apply to an empty placement. min-height is set
   inline per format to stop late-loading ads shifting the layout. */
.ad-slot {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 8px auto; max-width: 100%; overflow: hidden;
}
.ad-label {
  font-size: 9.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(110, 107, 112, .55);
}
.ad-body { display: flex; align-items: center; justify-content: center; max-width: 100%; }
/* Images keep height:auto so they scale by aspect ratio without distortion.
   iframes are different: most network snippets create the iframe via a
   script rather than with HTML width/height attributes, so with no explicit
   size and CSS giving it height:auto, the browser falls back to its own
   default iframe height (historically ~150px) instead of the format's real
   size. The ad-body container already has a fixed height for every capped
   format (see lib/ad-slots.js), so telling the iframe to fill 100% of that
   — rather than guess its own — is what makes the whole creative render
   instead of a partial, wrongly-scaled slice of it. */
.ad-body img { max-width: 100%; height: auto; }
/* width:100% here was the mistake — it stretches a 728px-wide creative to
   fill however wide the container happens to be on a large screen. Some
   network scripts measure the iframe's own rendered width at runtime to
   decide which part of a wider composite image to reveal (a common trick
   for rotating banner creatives), and a stretched iframe reports the wrong
   width, so the script shows a cropped slice instead of the whole banner.
   max-width alone still shrinks the iframe on a narrow phone screen without
   ever inflating it past its real size on a wide one. height:100% stays —
   that part was correct and is what stopped ads being cut off vertically. */
.ad-body iframe { max-width: 100%; height: 100%; border: 0; }

.ad-desktop-only { display: none; }
@media (min-width: 768px) {
  .ad-desktop-only { display: flex; }
  .ad-mobile-only  { display: none; }
}

/* ── Tools roadmap chips ──────────────────────────────────── */
.tool-group-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink); margin: 0 0 12px;
  padding-bottom: 9px; border-bottom: 1px solid var(--rose-200);
}
.tool-group-label i { color: var(--rose-500); font-size: 12px; }

.tool-chip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tool-chip {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 12px; line-height: 1.45; color: var(--body);
}
.tool-chip::before {
  content: ""; flex-shrink: 0;
  width: 5px; height: 5px; margin-top: 6px;
  border-radius: 999px; background: var(--rose-300);
}

/* ── Tool catalogue ───────────────────────────────────────── */
.tool-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px dashed var(--rose-300); background: var(--rose-50);
  font-size: 11.5px; font-weight: 500; color: var(--body);
}
.tool-chip i { color: var(--rose-400); font-size: 11px; }

.tool-row {
  display: flex; gap: 12px; align-items: flex-start; height: 100%;
  padding: 16px; border-radius: 16px;
  border: 1px solid var(--rose-100); background: #fff;
  transition: border-color .2s ease, transform .2s ease;
}
.tool-row.is-live { border-color: var(--rose-200); }
a:hover > .tool-row.is-live { border-color: var(--rose-400); transform: translateY(-3px); }
.tool-row p { color: var(--body); margin: 0; }

.tool-status {
  display: inline-block; margin-left: 4px; padding: 2px 8px;
  border-radius: 999px; font-size: 9.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; vertical-align: middle;
}
.tool-status.is-live    { background: #E7F7EF; color: #17784B; }
.tool-status.is-soon    { background: var(--rose-100); color: var(--rose-700); }
.tool-status.is-planned { background: #F1F0F2; color: var(--body); }

/* ── Landmark map controls ────────────────────────────────── */
.lm-toggle, .lm-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--rose-200); background: #fff;
  font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 500;
  color: var(--body); cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.lm-toggle:hover, .lm-chip:hover { border-color: var(--rose-400); }
.lm-toggle.is-on { background: var(--rose-500); border-color: var(--rose-500); color: #fff; }
.lm-chip.is-on   { background: var(--rose-50); border-color: var(--rose-500); color: var(--rose-700); font-weight: 600; }
.lm-swatch { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* ── Advice tools: other-shape accordions ─────────────────── */
.advice-other {
  border: 1px solid var(--rose-100); border-radius: 12px;
  background: #fff; margin-bottom: 8px; overflow: hidden;
}
.advice-other > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; cursor: pointer; list-style: none;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.advice-other > summary::-webkit-details-marker { display: none; }
.advice-other > summary i { color: var(--rose-500); font-size: 11px; transition: transform .2s ease; }
.advice-other[open] > summary i { transform: rotate(180deg); }
.advice-other-body { padding: 0 14px 13px; }
.advice-other-body p { font-size: 11.5px; line-height: 1.65; color: var(--body); margin: 0 0 7px; }
.advice-other-body p:last-child { margin-bottom: 0; }
.advice-other-body strong { color: var(--ink); }

/* ── Nav mega menu ────────────────────────────────────────── */
.nav-dropdown { position: static; }
.mega-menu {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(8px);
  top: 100%; width: min(1080px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--rose-100); border-radius: 20px;
  box-shadow: 0 24px 60px -20px rgba(20, 20, 22, .18);
  padding: 18px 20px 0; opacity: 0; visibility: hidden;
  display: flex; flex-direction: column; max-height: 76vh;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
/* Visibility is driven by the .is-open class only. Having CSS :hover open it
   as well meant two sources of truth, and the two disagreed. The ::before
   strip bridges the gap between trigger and panel so moving the mouse down
   doesn't cross dead space and close the menu. */
.mega-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav-dropdown.is-open .mega-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mega-grid {
  display: grid; gap: 2px 20px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  overflow-y: auto; padding-bottom: 4px;
}
/* The longest category would otherwise stretch the panel far taller than
   the rest, so it flows into two sub-columns instead. */
.mega-col.is-tall { grid-column: span 2; }
.mega-col.is-tall .mega-col-links { columns: 2; column-gap: 18px; }
.mega-col-title {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--rose-500);
  padding: 4px 8px 6px;
}
.mega-col a {
  display: flex; align-items: center; gap: 9px;
  padding: 5.5px 8px; border-radius: 9px;
  font-size: 12.5px; line-height: 1.3; color: var(--body); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.mega-col a i { width: 15px; font-size: 11.5px; color: var(--rose-400); flex-shrink: 0; }
.mega-col a:hover { background: var(--rose-50); color: var(--ink); }
.mega-col a.active { background: var(--rose-50); color: var(--rose-700); font-weight: 600; }
.mega-footer {
  display: block; margin-top: auto; padding: 12px 0;
  border-top: 1px solid var(--rose-100); background: #fff;
  text-align: center; font-size: 12px; font-weight: 600;
  color: var(--rose-500); text-decoration: none;
}
.mega-footer:hover { color: var(--rose-700); }

/* ── Mobile: collapsible category groups ──────────────────── */
.mobile-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--body);
  padding: 14px 0 4px; margin: 0;
}
.mobile-group { border-bottom: 1px solid var(--rose-100); }
.mobile-group-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 13px 2px; background: none; border: 0;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--ink); cursor: pointer; text-align: left;
}
.mobile-group-toggle > span:first-child { flex: 1; }
.mobile-group-count {
  font-size: 10.5px; font-weight: 600; color: var(--rose-500);
  background: var(--rose-50); border-radius: 999px; padding: 2px 8px;
}
.mobile-group-toggle i { font-size: 11px; color: var(--body); transition: transform .2s ease; }
.mobile-group.is-open .mobile-group-toggle i { transform: rotate(180deg); }
.mobile-group-items { display: none; padding: 0 0 10px 4px; }
.mobile-group.is-open .mobile-group-items { display: block; }
.mobile-sublink {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 6px; font-size: 13px; color: var(--body); text-decoration: none;
}
.mobile-sublink i { width: 15px; font-size: 11.5px; color: var(--rose-400); }
.mobile-sublink.active { color: var(--rose-700); font-weight: 600; }

/* Tailwind's preflight is disabled here, so a heading or paragraph keeps the
   browser's default margins unless something removes them. `my-0` does that,
   but only once tailwind.css has been rebuilt — and a stale build is exactly
   what left this spacing visible. Declaring it here too means it works even
   if the compiled file is behind. */
.my-0 { margin-top: 0; margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Every page now carries a banner ad right above its hero, then the hero's
   own top padding on top of that — the two stacking made the gap under the
   ad look excessive. This removes only the TOP padding of the hero content
   that follows an ad, leaving its bottom padding untouched. `!important`
   because tailwind.css loads after this file and its responsive `lg:pt-*`
   utility would otherwise win at desktop widths purely by load order. */
.hero-after-ad { padding-top: 0 !important; }
