/* =========================================================
   ModMaster — Liquid Glass theme layer
   Loads AFTER styles.css and restyles surfaces as translucent,
   refractive glass floating over a soft, luminous backdrop.
   Remove the <link> to this file to revert to the flat theme.
   ========================================================= */

:root {
  /* glass material */
  --glass-fill:      linear-gradient(135deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.34) 55%, rgba(255,255,255,0.46) 100%);
  --glass-fill-soft: linear-gradient(135deg, rgba(255,255,255,0.48) 0%, rgba(255,255,255,0.22) 60%, rgba(255,255,255,0.34) 100%);
  --glass-rim:       rgba(255,255,255,0.72);
  --glass-rim-soft:  rgba(255,255,255,0.45);
  --glass-blur:      blur(26px) saturate(170%);
  --glass-shadow:
      inset 0 1px 0 rgba(255,255,255,0.95),        /* top specular edge */
      inset 0 -1px 0 rgba(255,255,255,0.25),       /* bottom catch-light */
      inset 1px 0 0 rgba(255,255,255,0.55),        /* left rim */
      0 24px 60px -28px rgba(21,22,15,0.28),       /* ambient depth */
      0 2px 6px rgba(21,22,15,0.05);
  --glass-shadow-hover:
      inset 0 1px 0 rgba(255,255,255,1),
      inset 0 -1px 0 rgba(255,255,255,0.3),
      inset 1px 0 0 rgba(255,255,255,0.6),
      0 34px 70px -28px rgba(21,22,15,0.34),
      0 2px 8px rgba(21,22,15,0.06);

  /* green-tinted glass (strip, CTA band) */
  --glass-green:     linear-gradient(135deg, rgba(178,216,120,0.82) 0%, rgba(168,209,107,0.58) 60%, rgba(190,224,140,0.72) 100%);

  /* dark glass (pills, tags) */
  --glass-ink:       linear-gradient(180deg, rgba(48,50,38,0.92) 0%, rgba(21,22,15,0.94) 100%);

  /* rounder geometry */
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 30px;
}

/* ---------- luminous backdrop the glass refracts ---------- */

html { background: #f2f0e9; }
body {
  background: #f2f0e9;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: -25vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 34% at 18% 14%, rgba(168,209,107,0.60), transparent 62%),
    radial-gradient(34% 30% at 82% 18%, rgba(255,226,150,0.55), transparent 62%),
    radial-gradient(42% 38% at 74% 84%, rgba(168,209,107,0.48), transparent 62%),
    radial-gradient(30% 28% at 14% 82%, rgba(185,215,255,0.42), transparent 62%),
    radial-gradient(26% 24% at 50% 50%, rgba(255,255,255,0.55), transparent 65%);
  filter: blur(48px);
  animation: glass-drift 38s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes glass-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5vmax, -1.5vmax, 0) scale(1.04); }
  100% { transform: translate3d(-2vmax, 2vmax, 0) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* sections separate by floating panels now, not rules */
.section + .section { border-top: none; }
.page-header { border-bottom: none; }

/* ---------- reusable glass recipe ---------- */

.hero-visual,
.showcase-media,
.feature-grid > .feature-card,
.quote-card,
.review-card,
.rating-summary,
.dims-panel,
.box-item,
.coming-next-card,
.faq-item,
.notify-success,
.draft-notice {
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-rim);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  position: relative;
}

/* specular sheen — a soft highlight pooled in the top-left corner */
.quote-card::after,
.review-card::after,
.rating-summary::after,
.dims-panel::after,
.coming-next-card::after,
.feature-grid > .feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(255,255,255,0.55), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 30%);
  mix-blend-mode: soft-light;
}

/* ---------- navigation: floating capsule ---------- */

.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.58), rgba(255,255,255,0.36));
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-rim);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(255,255,255,0.3),
    0 18px 50px -20px rgba(21,22,15,0.35),
    0 1px 3px rgba(21,22,15,0.06);
}
.nav-inner { padding: 8px 8px 8px 22px; }
.nav-links { gap: 4px; }
.nav-links a:not(.btn) {
  padding: 9px 15px;
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.nav-links a:not(.btn):hover {
  background: rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.nav-links a.active {
  background: rgba(255,255,255,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 4px 14px -8px rgba(21,22,15,0.3);
}
.nav-links a.active::after { display: none; }
.nav-links a.btn { margin-left: 8px; }
.nav-toggle {
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border-color: var(--glass-rim);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ---------- buttons: capsules with a lit top edge ---------- */

.btn { border-radius: 999px; }
.btn-primary {
  background: var(--glass-ink);
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.26),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 14px 30px -12px rgba(21,22,15,0.6);
}
.btn-primary:hover {
  background: linear-gradient(180deg, rgba(104,140,54,0.98), rgba(79,107,38,1));
  border-color: rgba(255,255,255,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.3),
    0 18px 36px -12px rgba(79,107,38,0.65);
}
.btn-ghost {
  background: var(--glass-fill-soft);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-color: var(--glass-rim);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 10px 26px -14px rgba(21,22,15,0.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 16px 32px -14px rgba(21,22,15,0.3);
}
.btn-on-green, .btn-ghost-on-green { border-radius: 999px; }

/* ---------- hero ---------- */

.hero { overflow: visible; }
.hero::before { display: none; }              /* backdrop now handles ambience */
.hero-visual {
  padding: 12px;
  border-radius: var(--radius-xl);
  background: var(--glass-fill);
}
.hero-visual img {
  border-radius: calc(var(--radius-xl) - 12px);
  box-shadow: 0 10px 30px -18px rgba(21,22,15,0.35);
}
.hero-tag,
.status-pill,
.coming-next-badge {
  background: var(--glass-ink);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 8px 24px -10px rgba(21,22,15,0.55);
}
.hero-tag { bottom: 24px; left: 24px; }
.coming-next-badge { color: var(--green); }
.hero-meta { border-top-color: rgba(21,22,15,0.10); }

/* ---------- strip: green glass slab ---------- */

.strip {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.6);
  background: var(--glass-green);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(255,255,255,0.2),
    0 28px 70px -30px rgba(79,107,38,0.55);
  overflow: hidden;
}
.strip::before {
  left: 5%; right: 5%;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  opacity: 0.45;
}
.strip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(90% 60% at 8% 0%, rgba(255,255,255,0.5), transparent 55%);
  mix-blend-mode: soft-light;
}

/* ---------- feature grid: separate floating tiles ---------- */

.feature-grid {
  gap: 16px;
  border: none;
  background: transparent;
  overflow: visible;
  border-radius: 0;
}
.feature-grid > .feature-card:nth-child(n) {
  border: 1px solid var(--glass-rim) !important;
  border-radius: var(--radius-lg);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.feature-grid > .feature-card:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.74), rgba(255,255,255,0.46));
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-hover);
}
.feature-card > * { position: relative; z-index: 1; }

/* ---------- showcase / media frames ---------- */

.showcase-media {
  padding: 10px;
  border-radius: var(--radius-xl);
  background: var(--glass-fill);
}
.showcase-media img { border-radius: calc(var(--radius-xl) - 10px); }
.showcase-media.is-infographic { padding: 10px; }

/* ---------- cards ---------- */

.quote-card::before { display: none; }       /* drop the flat accent bar */
.quote-card > *,
.review-card > *,
.rating-summary > *,
.dims-panel > *,
.box-item > * { position: relative; z-index: 1; }
.review-card { transition: transform 220ms ease, box-shadow 220ms ease; }
.review-card:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow-hover); }
.review-meta { border-top-color: rgba(21,22,15,0.08); }
.box-item { border-radius: var(--radius-lg); }

/* coming-next: keep media dark, glass around it */
.coming-next-card { border-radius: var(--radius-xl); }
.coming-next-card > * { position: relative; z-index: 1; }
.coming-next-media {
  border-radius: calc(var(--radius-xl) - 12px);
  box-shadow: 0 16px 40px -20px rgba(21,22,15,0.6);
}
.coming-next-specs li { border-bottom-color: rgba(21,22,15,0.08); }

/* ---------- FAQ: each question is its own glass row ---------- */

.faq-list { border-top: none; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: 20px;
  padding: 0 22px;
  transition: box-shadow 200ms ease, background 200ms ease;
}
.faq-item[open] {
  background: linear-gradient(135deg, rgba(255,255,255,0.74), rgba(255,255,255,0.5));
  box-shadow: var(--glass-shadow-hover);
}
.faq-item summary { padding: 1.3rem 0; }
.faq-item .faq-body { padding-bottom: 1.5rem; }

/* ---------- specs table: glass rows ---------- */

.specs-table {
  border: none;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.specs-table tr { border: none; }
.specs-table th, .specs-table td {
  background: rgba(255,255,255,0.46);
  border-top: 1px solid var(--glass-rim-soft);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding: 18px 20px;
}
.specs-table th { border-left: 1px solid var(--glass-rim-soft); border-radius: 16px 0 0 16px; }
.specs-table td { border-right: 1px solid var(--glass-rim-soft); border-radius: 0 16px 16px 0; }

/* ---------- timeline ---------- */

.timeline::before { background: rgba(21,22,15,0.12); }
.timeline-step .node { background: rgba(255,255,255,0.8); box-shadow: inset 0 1px 0 #fff; }

/* ---------- inputs ---------- */

.notify-form input[type="email"] {
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border-color: var(--glass-rim);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.notify-form input[type="email"]:focus {
  background: rgba(255,255,255,0.8);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 4px rgba(168,209,107,0.35);
}

/* ---------- CTA band: green glass slab ---------- */

.cta-band {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.6);
  background: var(--glass-green);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(255,255,255,0.2),
    0 28px 70px -30px rgba(79,107,38,0.55);
}
.cta-band::after { left: 5%; right: 5%; opacity: 0.6; }
/* six pocket dots: tile from the left edge so none are cut in half */
.cta-band::before { width: min(600px, 72vw); background-position: 0 0; top: 26px; }
.cta-band .btn-primary { box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 18px 40px -14px rgba(21,22,15,0.7); }

/* ---------- footer: floating glass slab ---------- */

.footer {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin: 40px auto 24px;
  border-radius: var(--radius-xl);
  background: var(--glass-fill-soft);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-rim);
  box-shadow: var(--glass-shadow);
  padding: 3.5rem 0 1.5rem;
}
.footer-top, .parent-co { border-color: rgba(21,22,15,0.08); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  /* Nested backdrop-filter can't blur outside the parent's box, so the
     dropdown is near-opaque glass instead of translucent. */
  .nav-links.open {
    top: calc(100% + 10px);
    left: 0; right: 0;
    border-radius: 24px;
    background: linear-gradient(160deg, #fcfbf7, #f4f2ec);   /* opaque: alpha ghosts under a sticky glass parent in Chromium */
    border: 1px solid var(--glass-rim);
    box-shadow: var(--glass-shadow-hover);
    padding: 10px;
    gap: 4px;
    align-items: stretch;
  }
  .nav-links.open a:not(.btn) {
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 1rem;
  }
  .nav-links.open a:not(.btn):hover,
  .nav-links.open a.active { background: rgba(21,22,15,0.05); box-shadow: none; }
  .nav-links.open a.btn {
    align-self: stretch;
    justify-content: center;
    margin: 8px 0 0;
    padding: 14px 22px;
  }
}

@media (max-width: 640px) {
  /* base sheet forces a solid nav on phones; keep it glass but cheaper */
  .nav {
    width: calc(100% - 2 * var(--gutter));
    left: auto; right: auto;
    background: rgba(255,255,255,0.78);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
  }
  .nav-inner { padding: 6px 6px 6px 16px; }
  .hero-visual { padding: 10px; }
  .hero-visual img { border-radius: 18px; }
  .strip, .cta-band, .footer { border-radius: 22px; }
  body::before { filter: blur(36px); }
}

/* ---------- brand family + colorways in glass ---------- */
.colorway-card, .brand-card {
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-rim);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-xl);
  position: relative;
}
.colorway-card { padding: 10px; }
.colorway-media { border-radius: calc(var(--radius-xl) - 10px); }
.colorway-copy { padding: 16px 14px 8px; }
a.brand-card:hover { box-shadow: var(--glass-shadow-hover); background: linear-gradient(135deg, rgba(255,255,255,0.74), rgba(255,255,255,0.46)); }
.brand-card-list { border-top-color: rgba(21,22,15,0.08); }
.home-logo-panel { background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7)); }
.home-logo-panel img { border-radius: 0; box-shadow: none; }
.status-chip { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nav-links a.nav-sub.active { background: rgba(255,255,255,0.72); }
@media (max-width: 900px) {
  .nav-links.open a.nav-sub { display: flex; }
}
.house-bar { border-bottom: none; }
.house-bar-brands a[aria-current="page"] { background: rgba(255,255,255,0.6); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9); }
.nav { margin-top: 4px; }

/* ---------- 50/50 hub in glass ---------- */
.split-panel, .sister-strip {
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-rim);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-xl);
}
.split-panel { padding: 10px; transition: box-shadow 220ms ease, transform 220ms ease; }
.split-panel:hover { box-shadow: var(--glass-shadow-hover); transform: translateY(-3px); }
.split-media { border-radius: calc(var(--radius-xl) - 10px); }
.split-body { padding: 26px 22px 18px; }
.sister-strip:hover { box-shadow: var(--glass-shadow-hover); }
.footer-brands { border-top-color: rgba(21,22,15,0.08); }
.nav-inner { padding-left: 24px; }

/* MHome feature cards */
.home-feature {
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-rim);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-xl);
}
.home-milestones { border-top-color: rgba(21,22,15,0.10); }
.company-banner { border: 1px solid var(--glass-rim); box-shadow: var(--glass-shadow); }
