/* ============================================
     DESIGN TOKENS — change these to restyle the whole page
     ============================================ */
     :root{
        color-scheme: dark;
        --ink: #F3F2F7;            /* primary text */
        --ink-soft: #9A9AB0;       /* secondary text */
        --paper: #15151F;          /* page background — echoes the app's 0x12121A, shifted so it's not a 1:1 match */
        --paper-2: #1B1C29;        /* second gradient stop, echoes the app's gradient */
        --surface: #1E1F2C;        /* card background — echoes the app's gradient dark stop */
        --line: rgba(255,255,255,0.10); /* borders */
        --accent: #15803D;         /* button fills / status dot — echoes the app's "like" green, tuned for contrast on dark */
        --accent-ink: #22C55E;     /* brighter accent — for links & small text on dark backgrounds */
        --accent-soft: rgba(21,128,61,0.18); /* tinted backgrounds for icons/chips */
        --topic-accent: #8B5CF6;        /* purple, sampled from the app icon, brightened for legibility on dark */
        --topic-accent-soft: rgba(81,57,148,0.22); /* purple wash, matches the icon's background purple */
        --radius: 14px;
        --shadow: 0 16px 40px -18px rgba(0,0,0,0.6);
        --font-display: 'Inter', ui-sans-serif, system-ui, sans-serif;
        --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
      }
    
      /* ============================================
         RESET & BASE
         ============================================ */
      *, *::before, *::after{ box-sizing: border-box; }
      html{ scroll-behavior: smooth; }
      body{
        margin: 0;
        background: linear-gradient(160deg, var(--paper) 0%, var(--paper-2) 50%, var(--paper) 100%);
        color: var(--ink);
        font-family: var(--font-body);
        line-height: 1.55;
        -webkit-font-smoothing: antialiased;
      }
      img, svg{ display:block; max-width:100%; }
      a{ color: var(--accent-ink); }
      h1,h2,h3{ font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
      p{ margin: 0; }
      :focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }
      @media (prefers-reduced-motion: reduce){
        *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
      }
    
      .wrap{ max-width: 960px; margin: 0 auto; padding: 0 24px; }
      .eyebrow{
        font-family: var(--font-mono);
        font-size: 12px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--accent-ink);
      }
    
      /* ============================================
         HEADER
         ============================================ */
      header{
        position: sticky; top: 0; z-index: 10;
        background: rgba(21,21,31,0.85);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--line);
      }
      .nav{
        display:flex; align-items:center; justify-content:space-between;
        padding: 16px 0;
      }
      .brand{
        display:flex; align-items:center; gap:10px;
        font-family: var(--font-display); font-weight:700; font-size: 18px;
        color: var(--ink); text-decoration:none;
      }
      .brand-mark{
        width: 28px; height:28px; border-radius: 8px;
        display:block; object-fit: cover; flex-shrink: 0;
      }
      .nav-links{ display:flex; align-items:center; gap: 28px; list-style:none; margin:0; padding:0; }
      .nav-links a{ color: var(--ink-soft); text-decoration:none; font-size: 14px; font-weight: 500; }
      .nav-links a:hover{ color: var(--ink); }
      .status-pill{
        display:flex; align-items:center; gap:7px;
        font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft);
        border: 1px solid var(--line); background: var(--surface);
        padding: 6px 12px; border-radius: 999px;
      }
      .status-dot{
        width:7px; height:7px; border-radius:50%; background: var(--accent);
        box-shadow: 0 0 0 0 rgba(21,128,61,0.5);
        animation: pulse 2.2s infinite;
      }
      @keyframes pulse{
        0%{ box-shadow: 0 0 0 0 rgba(21,128,61,0.45); }
        70%{ box-shadow: 0 0 0 6px rgba(21,128,61,0); }
        100%{ box-shadow: 0 0 0 0 rgba(21,128,61,0); }
      }
      .nav-toggle{ display:none; background:none; border:1px solid var(--line); border-radius:8px; padding:8px; }
    
      /* ============================================
         HERO / SEARCH
         ============================================ */
      .hero{ padding: 72px 0 48px; text-align:center; }
      .hero h1{ font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin: 14px 0 12px; }
      .hero p{ color: var(--ink-soft); font-size: 17px; max-width: 480px; margin: 0 auto; }
    
      .search-box{
        max-width: 560px; margin: 32px auto 0;
        display:flex; align-items:center; gap:10px;
        background: var(--surface); border: 1px solid var(--line);
        border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow);
      }
      .search-box svg{ width:18px; height:18px; color: var(--ink-soft); flex-shrink:0; }
      .search-box input{
        border:0; outline:0; flex:1; font-size:15px; font-family: var(--font-body);
        background: transparent; color: var(--ink);
      }
      .search-box input::placeholder{ color: var(--ink-soft); }
    
      .quick-links{
        display:flex; flex-wrap:wrap; justify-content:center; gap:10px;
        margin-top: 20px;
      }
      .chip{
        font-size: 13px; color: var(--ink-soft); text-decoration:none;
        border: 1px solid var(--line); background: var(--surface);
        padding: 7px 14px; border-radius: 999px;
      }
      .chip:hover{ border-color: var(--accent); color: var(--accent-ink); }
    
      #search-empty{ display:none; text-align:center; color: var(--ink-soft); padding: 16px 0 0; font-size:14px; }
    
      /* ============================================
         SECTION HEADINGS (shared)
         ============================================ */
      .section{ padding: 56px 0; }
      .section-head{ margin-bottom: 28px; }
      .section-head h2{ font-size: 26px; margin-bottom: 6px; }
      .section-head p{ color: var(--ink-soft); font-size: 15px; }
    
      /* ============================================
         TOPICS GRID
         ============================================ */
      .topics-grid{
        display:grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
      }
      .topic-card{
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 22px;
      }
      .topic-icon{
        width: 38px; height:38px; border-radius:10px;
        background: var(--topic-accent-soft); color: var(--topic-accent);
        display:flex; align-items:center; justify-content:center; margin-bottom: 14px;
      }
      .topic-icon svg{ width:19px; height:19px; }
      .topic-card h3{ font-size: 16px; margin-bottom: 6px; }
      .topic-card p{ color: var(--ink-soft); font-size: 14px; }
    
      /* ============================================
         FAQ (native details/summary — no JS required)
         ============================================ */
      .faq-list{ border-top: 1px solid var(--line); }
      .faq-item{ border-bottom: 1px solid var(--line); }
      .faq-item summary{
        display:flex; align-items:center; justify-content:space-between; gap: 16px;
        padding: 18px 4px; cursor:pointer; font-weight: 600; font-size: 15px;
        list-style: none;
      }
      .faq-item summary::-webkit-details-marker{ display:none; }
      .faq-item summary::after{
        content: "+";
        font-family: var(--font-mono); font-size: 18px; color: var(--ink-soft);
        flex-shrink:0; transition: transform 0.15s ease;
      }
      .faq-item[open] summary::after{ transform: rotate(45deg); }
      .faq-item .faq-answer{
        padding: 0 4px 20px; color: var(--ink-soft); font-size: 14.5px; max-width: 640px;
      }
    
      /* ============================================
         CONTACT
         ============================================ */
      .contact-card{
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 40px; text-align:center;
      }
      .contact-card h2{ font-size: 24px; margin-bottom: 8px; }
      .contact-card p{ color: var(--ink-soft); max-width: 420px; margin: 0 auto 24px; }
      .btn-primary{
        display:inline-flex; align-items:center; gap:8px;
        background: var(--accent); color:#fff; text-decoration:none;
        font-weight:600; font-size:15px; padding: 13px 24px; border-radius: 10px;
        transition: filter 0.15s ease;
      }
      .btn-primary:hover{ filter: brightness(1.12); }
      .contact-fallback{
        margin-top: 16px; font-size: 13px; color: var(--ink-soft);
      }
      .copy-email{
        background:none; border:none; padding:0; margin-left: 2px;
        font-family: var(--font-mono); font-size: 13px; color: var(--accent-ink);
        text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px;
        cursor: pointer;
      }
      .copy-email:hover{ color: var(--ink); }
    
      /* ============================================
         FOOTER
         ============================================ */
      footer{ border-top: 1px solid var(--line); padding: 28px 0; margin-top: 24px; }
      .footer-row{
        display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap: 12px;
      }
      .footer-row p{ font-size: 13px; color: var(--ink-soft); }
      .footer-links{ display:flex; gap: 20px; list-style:none; margin:0; padding:0; }
      .footer-links a{ font-size: 13px; color: var(--ink-soft); text-decoration:none; }
      .footer-links a:hover{ color: var(--ink); }
    
      /* ============================================
         RESPONSIVE
         ============================================ */
      @media (max-width: 720px){
        .nav-links{
          position:absolute; top:100%; left:0; right:0;
          flex-direction:column; align-items:flex-start; gap:0;
          background: var(--surface); border-bottom:1px solid var(--line);
          padding: 8px 24px; display:none;
        }
        .nav-links.open{ display:flex; }
        .nav-links li{ width:100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
        .nav-links li:last-child{ border-bottom:0; }
        .nav-toggle{ display:block; }
        .status-pill span.status-text{ display:none; } /* keep just the dot on small screens */
      }
      @media (max-width: 560px){
        .topics-grid{ grid-template-columns: 1fr; }
        .contact-card{ padding: 28px 20px; }
      }