/* =========================================================
   LUCIDSEAL POLISH LAYER — Unified Visual & Typographic Pass
   v2025-10-27  |  Safe override layer for app.css
   ========================================================= */

/* ---------------------------------------------------------
   1. Brand Warmth + Accent Refinement
   --------------------------------------------------------- */
   :root {
    --accent: #00A19E;
    --accent-deep: color-mix(in srgb, var(--accent) 85%, black);
    --accent-a12: rgba(0,161,158,0.12);
    --accent-a18: rgba(0,161,158,0.18);
    --accent-a20: rgba(0,161,158,0.20);
    --accent-a25: rgba(0,161,158,0.25);
    --accent-a35: rgba(0,161,158,0.35);
  }
  
  /* ---------------------------------------------------------
     2. Global Typography & Layout Rhythm
     --------------------------------------------------------- */
  :root {
    --fs-body: 17px;
    --fs-h1: clamp(28px, 3vw, 40px);
    --fs-h2: clamp(22px, 2.4vw, 26px);
    --fs-h3: clamp(18px, 2vw, 20px);
  }
  
  body {
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--text);
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  
  p, li {
    font-size: 1.05em;
    line-height: 1.75;
    margin-bottom: 1rem;
    max-width: none;
  }
  
  h1, h2, h3 {
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  h1 {
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.25rem;
  }
  h2 {
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 1rem;
  }
  h3 {
    font-weight: 500;
    line-height: 1.3;
  }
  
  /* ---------------------------------------------------------
     3. Section & Container Comfort
     --------------------------------------------------------- */
  .section {
    padding-block: clamp(3.5rem, 6vw, 7rem);
  }
  .section + .section {
    margin-top: var(--space-5);
  }
  .wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
  }
  
  /* ---------------------------------------------------------
     4. Buttons & Interactive Elements
     --------------------------------------------------------- */
  .btn {
    font-size: 1.05em;
    padding: 12px 18px;
    border-radius: 14px;
    transition: transform 0.2s ease, filter 0.25s ease;
    box-shadow: 0 6px 18px var(--accent-a20);
  }
  .btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
  }
  a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
  }
  a:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  
  /* ---------------------------------------------------------
     5. Cards / Tiles / Panels
     --------------------------------------------------------- */
  .card {
    background: var(--panel-2);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-a12);
  }
  
  /* ---------------------------------------------------------
     6. App Bar Transparency & Subtle Motion
     --------------------------------------------------------- */
  .appbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(1.4) blur(10px);
    transition: background 0.3s ease;
  }
  .appbar:hover {
    background: rgba(255, 255, 255, 0.98);
  }
  .fade-up {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeUp 0.6s ease-out forwards;
  }
  @keyframes fadeUp {
    to { opacity: 1; transform: none; }
  }
  
  /* ---------------------------------------------------------
     7. ROUTE-SPECIFIC POLISH
     --------------------------------------------------------- */
  
  /* === /quiz === */
  [data-route="/quiz"] h1,
  [data-route="/quiz"] h2 {
    text-align: center;
    margin-bottom: 1rem;
  }
  [data-route="/quiz"] .question {
    padding: 1.25rem 1.5rem;
    font-size: 1.05em;
  }
  [data-route="/quiz"] .answers label {
    font-size: 1.05em;
    padding: 0.7rem 1rem;
    border-radius: 12px;
  }
  [data-route="/quiz"] .result {
    padding: 1.75rem 1.5rem;
    border-radius: calc(var(--radius) + 4px);
  }
  [data-route="/quiz"] .score {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 0.5rem;
  }
  [data-route="/quiz"] main { scroll-margin-top: 80px; }
  
  /* === /about === */
  [data-route="/about"] h1,
  [data-route="/about"] h2 {
    text-align: left;
    max-width: 60ch;
  }
  [data-route="/about"] .founder-note {
    font-size: 1.05em;
    line-height: 1.7;
  }
  [data-route="/about"] .principle {
    padding: 1rem;
    font-size: 1em;
  }
  
  /* === /share === */
  [data-route="/share"] h1,
  [data-route="/share"] h2 {
    text-align: center;
  }
  [data-route="/share"] .tile {
    font-size: 1.05em;
    padding: 1rem;
  }
  [data-route="/share"] .progress-fill {
    background: var(--accent);
  }
  
  /* === /resources === */
  [data-route="/resources"] h1,
  [data-route="/resources"] h2 {
    text-align: center;
  }
  [data-route="/resources"] .resource-list {
    font-size: 1.05em;
    line-height: 1.7;
  }
  [data-route="/resources"] .callout {
    font-size: 1em;
    line-height: 1.6;
    background: var(--panel);
  }
  
  /* === /trust === */
  [data-route="/trust"] h1,
  [data-route="/trust"] h2 {
    text-align: center;
  }
  [data-route="/trust"] section {
    padding-block: clamp(3rem, 5vw, 6rem);
  }
  [data-route="/trust"] .card {
    border-radius: calc(var(--radius) + 4px);
    font-size: 1.05em;
  }
  
  /* === /network === */
  [data-route="/network"] h1,
  [data-route="/network"] h2 {
    text-align: center;
  }
  [data-route="/network"] .card,
  [data-route="/network"] .tile {
    font-size: 1.05em;
    line-height: 1.7;
    padding: 1.25rem 1.5rem;
  }
  [data-route="/network"] .badge {
    font-size: 0.9rem;
    border-radius: 10px;
  }
  
  /* ---------------------------------------------------------
     8. Optional: Accent Divider Under Main Headings
     --------------------------------------------------------- */
  h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin-top: 0.5rem;
    background: var(--accent);
    border-radius: 2px;
  }
  
  /* ---------------------------------------------------------
     9. Minor Cleanup / Consistency
     --------------------------------------------------------- */
  section, .about-block, .founder-note {
    scroll-margin-top: 80px;
  }
  
  /* ---------------------------------------------------------
   Home Quick-Start Card
   --------------------------------------------------------- */
.quick-start {
    float: right;
    width: 40%;
    max-width: 420px;
    margin: 0 0 2rem 2rem;
    padding: 1.75rem 1.5rem;
    background: var(--panel-2);
    border: 1px solid var(--ring);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px var(--accent-a12);
    text-align: left;
  }
  
  .quick-start h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--ink);
  }
  
  .quick-start p {
    line-height: 1.6;
    margin-bottom: 0.75rem;
  }
  
  .quick-start .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
  }
  
  .quick-start .muted.small {
    font-size: 0.85rem;
    color: var(--muted);
  }
  
  /* graceful collapse on small screens */
  @media (max-width: 900px) {
    .quick-start {
      float: none;
      width: 100%;
      margin: 2rem 0;
    }
  }
  
  /* ---------------------------------------------------------
   Quick-Start Card  –  Dynamic Trust Snapshot
   --------------------------------------------------------- */
.quick-start {
    float: right;
    width: 40%;
    max-width: 420px;
    margin: 0 0 2rem 2rem;
    padding: 1.75rem 1.5rem;
    background: var(--panel-2);
    border: 1px solid var(--ring);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px var(--accent-a12);
  }
  
  .trust-stats {
    margin: 1rem 0 1.25rem;
  }
  
  .trust-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: var(--ring);
    border-radius: 999px;
    overflow: hidden;
  }
  
  .trust-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--accent);
    border-radius: inherit;
    width: 0%;
    transition: width 1.4s ease-out;
  }
  
  .trust-stats .muted.small {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
  }
  
/* ---------------------------------------------------------
   Combined Symbolic + Principles Card
   --------------------------------------------------------- */
   .trust-combined {
    float:right; width:40%; max-width:420px;
    margin:0 0 2rem 2rem; padding:1.5rem;
    background:var(--panel-2);
    border:1px solid var(--ring);
    border-radius:var(--radius);
    box-shadow:0 8px 24px var(--accent-a12);
    text-align:left;
  }
  .trust-graphic { margin-bottom:1rem; }
  .trust-svg { width:100%; height:auto; display:block; }
  .trust-combined .nodes circle { fill:var(--accent); opacity:.9; }
  .trust-combined .links line { stroke:var(--accent); opacity:.25; stroke-width:3; }
  .trust-combined .orbits circle { transform-origin:130px 130px; animation:orbit 18s linear infinite; }
  @keyframes orbit { to { transform:rotate(360deg); } }
  
  .principles-mini {
    list-style:none; margin:.5rem 0 1rem; padding:0;
    display:grid; gap:.5rem;
  }
  .principles-mini li {
    display:flex; align-items:center; gap:.5rem;
    padding:.5rem .6rem;
    border-radius:999px;
    border:1px solid var(--ring);
    background:var(--panel);
    font-size:.95rem;
  }
  .principles-mini i { width:18px; height:18px; opacity:.9; }
  
  @media (prefers-reduced-motion:reduce){
    .trust-combined .orbits circle{animation:none;}
  }
  @media (max-width:900px){
    .trust-combined{ float:none; width:100%; margin:2rem 0; }
  }
  

  @media (max-width: 900px) {
    .quick-start { float: none; width: 100%; margin: 2rem 0; }
  }
  
/* ---------------------------------------------------------
   Trust Network Panel (home column visual)
   --------------------------------------------------------- */
   .trust-network-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 420px;
    margin: 1.5rem 0 2rem auto;
    border: 1px solid var(--ring);
    border-radius: var(--radius);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--panel) 90%, white),
        color-mix(in srgb, var(--panel-2) 90%, var(--accent-a08))
    );
    box-shadow: 0 8px 24px var(--accent-a12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
  }
  
  .trust-network-header {
    padding: 1rem 1.25rem 0;
    z-index: 2;
    position: relative;
    text-align: left;
  }
  .trust-network-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
  }
  .trust-network-header p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
  }
  
  #trustNetworkCanvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.6;
  }
  
  /* glow halo (ambient depth) */
  .trust-network-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 70% 30%,
        var(--accent-a08) 0%,
        transparent 60%
    );
    z-index: 0;
  }
  
  /* mobile fallback */
  @media (max-width: 900px) {
    .trust-network-card {
      display: none;
    }
  }
 

.resilience-waves {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      rgba(255,255,255,0.6),
      rgba(255,255,255,0.9)
    ),
    url('/assets/waves-bg.svg') center/cover no-repeat;
  opacity: 0.5;
  z-index: 1;
  animation: waveShift 20s linear infinite alternate;
  pointer-events: none;
}

@keyframes waveShift {
  from { background-position: 0 0; }
  to   { background-position: 200px 50px; }
}

.icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  color: var(--accent);
}

li[data-subcategory="Collection"] .pill {
  background-color: var(--accent-light);
  content: "Collection";
}

/* FAQ intro paragraph styling */
#faqs .intro {
  max-width: 70ch;
  margin: 0 auto var(--space-lg);
  color: var(--muted-ink, #555);
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
}

/* Optional subtle fade-in if your site uses motion tokens */
@media (prefers-reduced-motion: no-preference) {
  #faqs .intro {
    opacity: 0;
    transform: translateY(0.5rem);
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.1s;
  }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* -------------------------------------
   Global Accordion Styling
-------------------------------------- */
details.accordion {
  border-bottom: 1px solid var(--ring, rgba(0,0,0,0.1));
  padding: var(--space-sm, 0.75rem) 0;
}

details.accordion summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.5;
  list-style: none;
  position: relative;
  outline: none;
}

details.accordion summary::-webkit-details-marker {
  display: none;
}

details.accordion summary::after {
  content: "›";
  display: inline-block;
  position: absolute;
  right: 0;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.25s ease;
  font-size: 1.25rem;
  color: var(--accent, currentColor);
}

details.accordion[open] summary::after {
  transform: rotate(90deg);
}

details.accordion .content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.35s ease;
  will-change: max-height, opacity;
}

details.accordion[open] .content {
  max-height: 500px;
  opacity: 1;
  margin-top: 0.5rem;
}

details.accordion p {
  margin: 0.5rem 0 0;
  color: var(--ink, #222);
  line-height: 1.6;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filter-btn {
  border: 1px solid #00b7c2;
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  background: white;
  color: #00b7c2;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.filter-btn.active {
  background: #00b7c2;
  color: white;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;

.meta {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
}
