  :root{
    --red:#CC0000;
    --red-dark:#990000;
    --gold:#1C1C1C;
    --ink:#171717;
    --ink-soft:#3a3a3a;
    --gray:#54585A;
    --line:#e4e2e0;
    --bg:#f7f6f5;
    --card:#ffffff;
  }
  *{box-sizing:border-box;}
  body{
    margin:0;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    background:var(--bg);
    color:var(--ink);
    line-height:1.55;
  }
  a{color:var(--red-dark);text-decoration:none;}
  a:hover{text-decoration:underline;}

  /* ---------- Tabs ---------- */
  .tabbar{
    display:flex;
    gap:4px;
    background:#111111;
    padding:0 6vw;
    overflow-x:auto;
  }
  .tabbtn{
    appearance:none;
    background:none;
    border:none;
    color:#a8a8a8;
    font-size:.88rem;
    font-weight:600;
    padding:14px 18px 12px;
    cursor:pointer;
    border-bottom:3px solid transparent;
    white-space:nowrap;
    transition:color .15s, border-color .15s;
  }
  .tabbtn:hover{color:#fff;}
  .tabbtn.active{color:#fff;border-bottom-color:var(--red);}

  main{
    max-width:1040px;
    margin:0 auto;
    padding:34px 6vw 70px;
  }
  .panel{display:none;}
  .panel.active{display:block;animation:fadeIn .25s ease;}
  @keyframes fadeIn{from{opacity:0;transform:translateY(4px);}to{opacity:1;transform:translateY(0);}}

  .card{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:14px;
    padding:26px 28px;
    margin-bottom:24px;
    box-shadow:0 1px 3px rgba(0,0,0,.03);
  }
  .card h2{margin:0 0 10px;font-size:1.15rem;}
  .card h3{margin:0 0 8px;font-size:1rem;}
  .muted{color:var(--gray);font-size:.88rem;}

  /* ---------- Feature pills (Overview) ---------- */
  .pill-grid{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:16px;
  }
  .feature-pill{
    display:flex;
    align-items:center;
    gap:8px;
    background:#fbeceb;
    color:var(--red-dark);
    border:1px solid #f3d2cf;
    border-radius:999px;
    padding:8px 16px;
    font-size:.82rem;
    font-weight:600;
  }
  .feature-pill .dot{
    width:6px;height:6px;border-radius:50%;
    background:var(--red);
    flex-shrink:0;
  }

  /* ---------- Video ---------- */
  .video-wrap{margin-top:8px;}
  video{
    width:100%;
    border-radius:10px;
    background:#000;
    display:block;
  }
  .video-caption{
    margin-top:10px;
    font-size:.85rem;
    color:var(--gray);
  }
  .video-caption strong{color:var(--ink);}

  .setup-link-note{
    display:flex;
    align-items:center;
    gap:10px;
    background:#faf5e9;
    border:1px solid #f0e1bd;
    border-radius:10px;
    padding:12px 16px;
    margin-top:18px;
    font-size:.85rem;
  }
  .setup-link-note .tag{
    background:var(--gold);
    color:#ffffff;
    font-weight:700;
    font-size:.68rem;
    letter-spacing:.03em;
    padding:3px 8px;
    border-radius:5px;
    flex-shrink:0;
    text-transform:uppercase;
  }

  /* ---------- Checklist ---------- */
  .progress-wrap{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:26px;
  }
  .progress-track{
    flex:1;
    height:10px;
    background:#ecebe9;
    border-radius:999px;
    overflow:hidden;
  }
  .progress-fill{
    height:100%;
    width:0%;
    background:linear-gradient(90deg,var(--red),var(--red-dark));
    border-radius:999px;
    transition:width .3s ease;
  }
  .progress-label{
    font-size:.82rem;
    font-weight:700;
    color:var(--ink-soft);
    white-space:nowrap;
    min-width:74px;
    text-align:right;
  }
  .reset-btn{
    background:none;
    border:1px solid var(--line);
    color:var(--gray);
    font-size:.75rem;
    padding:6px 12px;
    border-radius:8px;
    cursor:pointer;
  }
  .reset-btn:hover{border-color:var(--gray);color:var(--ink);}

  .group{margin-bottom:22px;}
  .group-title{
    font-size:.72rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--red-dark);
    margin-bottom:10px;
  }
  .item{
    display:flex;
    gap:14px;
    align-items:flex-start;
    background:var(--card);
    border:1px solid var(--line);
    border-radius:12px;
    padding:14px 16px;
    margin-bottom:8px;
    cursor:pointer;
    transition:border-color .15s, background .15s;
  }
  .item:hover{border-color:#d8b8b4;}
  .item.checked{background:#fbf8f2;border-color:#e9c9a9;}
  .checkbox{
    width:20px;height:20px;
    border-radius:6px;
    border:2px solid #c8c6c3;
    flex-shrink:0;
    margin-top:2px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:background .15s, border-color .15s;
  }
  .item.checked .checkbox{background:var(--red);border-color:var(--red);}
  .checkbox svg{width:12px;height:12px;opacity:0;transition:opacity .1s;}
  .item.checked .checkbox svg{opacity:1;}
  .item-body{flex:1;}
  .item-title{
    font-weight:700;
    font-size:.92rem;
    margin-bottom:3px;
  }
  .item.checked .item-title{color:var(--gray);text-decoration:line-through;text-decoration-color:#d8b8b4;}
  .item-desc{font-size:.83rem;color:var(--gray);}
  .item-desc a{font-weight:600;white-space:nowrap;}

  /* ---------- Use cases ---------- */
  .uc-pills{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:24px;
  }
  .uc-pill{
    display:flex;
    align-items:center;
    gap:8px;
    border:1.5px solid var(--line);
    background:#fff;
    padding:10px 18px;
    border-radius:999px;
    font-size:.85rem;
    font-weight:700;
    cursor:pointer;
    color:var(--ink-soft);
    transition:all .15s;
  }
  .uc-pill .badge{
    width:22px;height:22px;
    border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    font-size:.75rem;
    color:#fff;
    flex-shrink:0;
  }
  .uc-pill.active{
    border-color:transparent;
    color:#fff;
  }
  .uc-detail{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:14px;
    padding:28px;
    display:none;
  }
  .uc-detail.active{display:block;animation:fadeIn .2s ease;}
  .uc-head{display:flex;align-items:center;gap:14px;margin-bottom:6px;}
  .uc-head .badge-lg{
    width:40px;height:40px;border-radius:12px;
    display:flex;align-items:center;justify-content:center;
    font-size:1.2rem;color:#fff;flex-shrink:0;
  }
  .uc-head h2{margin:0;font-size:1.2rem;}
  .uc-tagline{color:var(--gray);font-size:.9rem;margin:0 0 8px;}
  .uc-locate{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:#f4f2f0;
    border-radius:8px;
    padding:8px 12px;
    font-size:.8rem;
    color:var(--ink-soft);
    margin-bottom:18px;
  }
  .uc-locate code{
    background:#e9e6e3;
    padding:2px 6px;
    border-radius:5px;
    font-size:.78rem;
  }
  .uc-steps{margin:0;padding-left:0;list-style:none;counter-reset:step;}
  .uc-steps li{
    counter-increment:step;
    position:relative;
    padding-left:36px;
    margin-bottom:12px;
    font-size:.88rem;
    line-height:1.5;
  }
  .uc-steps li::before{
    content:counter(step);
    position:absolute;
    left:0;
    top:0;
    width:24px;height:24px;
    border-radius:50%;
    background:var(--ink);
    color:#fff;
    font-size:.75rem;
    font-weight:700;
    display:flex;align-items:center;justify-content:center;
  }
  .uc-deeplink-table{
    width:100%;
    border-collapse:collapse;
    margin:16px 0 20px;
    font-size:.82rem;
  }
  .uc-deeplink-table th,.uc-deeplink-table td{
    border:1px solid var(--line);
    padding:8px 10px;
    text-align:left;
  }
  .uc-deeplink-table th{background:#faf9f8;font-weight:700;}
  .uc-links{margin-top:18px;display:flex;gap:16px;flex-wrap:wrap;font-size:.85rem;font-weight:600;}

  /* ---------- Resources ---------- */
  .res-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:16px;
  }
  .res-card{
    display:block;
    background:var(--card);
    border:1px solid var(--line);
    border-radius:14px;
    padding:22px 20px;
    text-decoration:none;
    color:var(--ink);
    transition:border-color .15s, transform .15s;
  }
  .res-card:hover{border-color:var(--red);transform:translateY(-2px);}
  .res-icon{
    width:40px;height:40px;
    border-radius:10px;
    background:#fbeceb;
    color:var(--red-dark);
    display:flex;align-items:center;justify-content:center;
    margin-bottom:12px;
    font-size:1.1rem;
  }
  .res-card h3{margin:0 0 4px;font-size:.95rem;}
  .res-card p{margin:0;font-size:.8rem;color:var(--gray);}

  @media(max-width:600px){
    main{padding:26px 5vw 60px;}
    .card{padding:20px;}
  }

  /* ---------- Panel headers ---------- */
  .panel-header{margin-bottom:22px;}
  .panel-header .ph-title{
    display:flex;align-items:center;gap:10px;
    font-size:1.3rem;font-weight:800;color:var(--ink);
  }
  .panel-header .ph-emoji{font-size:1.3rem;line-height:1;}
  .panel-header .ph-sub{margin:4px 0 0;color:var(--gray);font-size:.9rem;}

  /* ---------- Section labels (sit above a card) ---------- */
  .section-label{display:flex;align-items:center;gap:10px;margin:0 0 12px;}
  .section-label .label-badge{
    width:34px;height:34px;border-radius:10px;
    background:var(--ink);color:#fff;
    display:flex;align-items:center;justify-content:center;
    font-size:1rem;flex-shrink:0;
  }
  .section-label h2{margin:0;font-size:1.05rem;}

  /* ---------- Feature grid (replaces old pill grid) ---------- */
  .feature-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:12px;
    margin-top:20px;
  }
  .feature-card{
    background:#f4f2f0;
    border-radius:12px;
    padding:20px 12px;
    text-align:center;
  }
  .feature-card .fi{font-size:1.6rem;margin-bottom:10px;display:block;}
  .feature-card h4{margin:0 0 4px;font-size:.83rem;font-weight:700;color:var(--ink);}
  .feature-card p{margin:0;font-size:.74rem;color:var(--gray);line-height:1.35;}
  @media(max-width:820px){.feature-grid{grid-template-columns:repeat(3,1fr);}}
  @media(max-width:600px){.feature-grid{grid-template-columns:repeat(2,1fr);}}

  /* ---------- Feedback overlay (mockup) ---------- */
  .fb-backdrop{
    display:none;
    position:fixed; inset:0;
    background:rgba(20,15,14,0.45);
    z-index:1000;
  }
  .fb-backdrop.open{display:block;}
  .fb-panel{
    position:fixed; top:0; right:0; bottom:0;
    width:min(420px, 92vw);
    background:#fff;
    box-shadow:-8px 0 24px rgba(0,0,0,.15);
    padding:26px 26px 30px;
    overflow-y:auto;
    transform:translateX(100%);
    transition:transform .25s ease;
  }
  .fb-backdrop.open .fb-panel{transform:translateX(0);}
  .fb-panel h3{margin:0 0 12px;font-size:1.1rem;}
  .fb-panel .fb-rule{height:2px;background:var(--red);width:100%;margin-bottom:16px;}
  .fb-panel p{font-size:.85rem;color:var(--ink-soft);line-height:1.5;}
  .fb-panel .fb-label{font-weight:700;color:var(--ink);margin:14px 0 6px;font-size:.85rem;}
  .fb-panel .fb-bullet{margin:0 0 4px;color:var(--gray);font-size:.85rem;}
  .fb-close{
    position:absolute; top:22px; right:22px;
    background:none; border:none; font-size:1.3rem; cursor:pointer; color:var(--gray);
    line-height:1;
  }
  .fb-trigger{
    background:none;border:none;color:var(--red-dark);font-weight:600;font-size:.82rem;cursor:pointer;padding:0;
  }
  .fb-trigger:hover{text-decoration:underline;}

  /* ---------- FAQ accordion ---------- */
  .faq-list{margin-top:6px;}
  .faq-item{
    border:1px solid var(--line);
    border-radius:12px;
    margin-bottom:12px;
    overflow:hidden;
    background:#fff;
  }
  .faq-q{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    background:none;
    border:none;
    padding:16px 18px;
    font-weight:700;
    font-size:.95rem;
    font-family:inherit;
    color:var(--ink);
    cursor:pointer;
    text-align:left;
  }
  .faq-q:hover{background:#faf9f8;}
  .faq-chevron{
    flex-shrink:0;
    color:var(--gray);
    transition:transform .2s ease;
  }
  .faq-item.open .faq-chevron{transform:rotate(180deg);}
  .faq-a{
    max-height:0;
    overflow:hidden;
    padding:0 18px;
    transition:max-height .3s ease;
  }
  .faq-item.open .faq-a{max-height:6000px;padding:0 18px 20px;}
