   :root{
      --bg-0:#070A12;
      --bg-1:#0A1022;
      --card: rgba(255,255,255,.06);
      --card-2: rgba(255,255,255,.08);
      --border: rgba(255,255,255,.10);
      --text:#EAF0FF;
      --muted: rgb(255 255 255 / 85%);
      --muted2: rgb(255 255 255 / 85%);

      --accentA:#7C3AED;  /* violet */
      --accentB:#22C55E;  /* green */
      --accentC:#2DD4BF;  /* teal */
      --warn:#FACC15;
      --danger:#FB7185;

      --r-xl: 26px;
      --r-lg: 20px;
      --r-md: 16px;
      --shadow: 0 30px 90px rgba(0,0,0,.45);
    }

    * { box-sizing: border-box; }
    body{
      font-family: "Google Sans", sans-serif;
      background:
        radial-gradient(1200px 700px at 20% -10%, rgba(124,58,237,.25), transparent 60%),
        radial-gradient(1000px 700px at 100% 0%, rgba(45,212,191,.18), transparent 55%),
        radial-gradient(900px 700px at 40% 90%, rgba(34,197,94,.14), transparent 60%),
        linear-gradient(180deg, var(--bg-0), var(--bg-1));
      color: var(--text);
      min-height: 100vh;
      overflow-x:hidden;
    }

    .noise{
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: .06;
      mix-blend-mode: overlay;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
      z-index: 0;
    }

    .page{ position: relative; z-index: 1; }

    .topbar{
      position: sticky;
      top: 0;
      z-index: 10;
      backdrop-filter: blur(12px);
      background: rgba(7,10,18,.55);
      border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .brand{
      display:flex; align-items:center; gap:10px;
      text-decoration:none;
      color: var(--text);
      font-weight: 850;
      letter-spacing: -0.02em;
    }
    .brandMark{
      width: 38px; height: 38px;
      border-radius: 14px;
      display:flex; align-items:center; justify-content:center;
      background: linear-gradient(135deg, rgba(124,58,237,.35), rgba(45,212,191,.22));
      border: 1px solid rgba(255,255,255,.12);
      box-shadow: 0 18px 40px rgba(124,58,237,.18);
      font-weight: 900;
    }
    .chip{
      display:inline-flex; align-items:center; gap:10px;
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.10);
      color: rgba(234,240,255,.82);
      font-size: 12px;
      font-weight: 700;
    }
    .dot{
      width: 8px; height: 8px; border-radius: 999px;
      background: linear-gradient(135deg, var(--accentC), var(--accentB));
      box-shadow: 0 0 0 4px rgba(45,212,191,.12);
    }

    .shell{
      max-width: 980px;
      margin: 0 auto;
      padding: 28px 14px 64px;
    }
    .hero{
      text-align: center;
      padding: 26px 0 12px;
    }
    .hero h1{
      font-size: clamp(2.05rem, 4vw, 3.2rem);
      letter-spacing: -0.04em;
      line-height: 1.05;
      font-weight: 900;
      margin: 14px 0 12px;
    }
    .hero p{
      margin: 0 auto;
      max-width: 70ch;
      color: var(--muted); 
      line-height: 1.65;
      font-size: 1.05rem;
    }
    .gradText{
      background: linear-gradient(90deg, rgba(124,58,237,1), rgba(45,212,191,1), rgba(34,197,94,1));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .cardLovable{
      margin: 18px auto 0;
      background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.045));
      border: 1px solid rgba(255,255,255,.10);
      border-radius: var(--r-md);
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .cardHeader{
      padding: 16px 18px;
      display:flex; align-items:center; justify-content: space-between; gap: 12px;
      border-bottom: 1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.03);
    }
    .cardHeader .title{
      font-weight: 850;
      letter-spacing: -0.02em;
    }
    .cardHeader .sub{
      color: var(--muted2);
      font-size: 13px;
      font-weight: 700;
      display:flex; align-items:center; gap: 10px;
    }

    .cardBody{ padding: 18px; }

    .promptWrap{
      border-radius: 10px;
      background: rgba(7,10,18,.35);
      border: 1px solid rgba(255,255,255,.10);
      padding: 12px;
    }
    .promptRow{
      display:flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: stretch;
    }
    .urlInput{
      flex: 1 1 420px;
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.06);
      color: white;
      padding: 14px 14px;
      outline: none;
    }
    .urlInput::placeholder{ color: rgba(234,240,255,.55); }
    .urlInput:focus{
      border-color: rgba(45,212,191,.35);
      box-shadow: 0 0 0 .2rem rgba(45,212,191,.12);
    }

  .strategy{
    width: 170px;
    height: 55px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background-color: rgba(255,255,255,.06);
    color: var(--text);
    padding: 12px 44px 12px 12px;
    outline: none;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Chevron SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(234,240,255,0.85)' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;

    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  }

  .strategy:hover{
    border-color: rgba(255,255,255,.18);
  }

  .strategy:focus{
    border-color: rgba(45,212,191,.35);
    box-shadow: 0 0 0 .2rem rgba(45,212,191,.12);
    background-color: rgba(255,255,255,.07);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(45,212,191,1)' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  .strategy option{
    background: #0b1020;
    color: #eaf0ff;
  }


    .btnGo{
      min-width: 160px;
      border: none;
      border-radius: 10px;
      padding: 12px 16px;
      font-weight: 900;
      letter-spacing: -0.01em;
      color: rgba(7,10,18,.98);
      background: linear-gradient(135deg, rgba(45,212,191,1), rgba(34,197,94,1));
      box-shadow: 0 18px 40px rgba(34,197,94,.18);
    }
    .btnGo:disabled{ opacity:.7; cursor:not-allowed; }

    .statusLine{
      /* margin-top: 10px; */
      color: var(--muted2);
      font-size: 13px;
      display:flex; align-items:center; gap:10px;
      padding: 0 4px;
    }

    #statusText{
      margin-top:10px;
    }

    .progressWrap{ margin-top: 12px; display:none; }
    .progressWrap.on{ display:block; }
    .progress{
      height: 10px;
      border-radius: 999px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.10);
      overflow: hidden;
    }
    .progress-bar{
      width: 0%;
      transition: width .35s ease;
      background: linear-gradient(90deg, rgba(124,58,237,1), rgba(45,212,191,1), rgba(34,197,94,1));
    }
    .progressHint{
      margin-top: 8px;
      color: var(--muted2);
      font-size: 12.5px;
    }

    .resultWrap{ margin-top: 16px; display:none; }
    .resultWrap.on{ display:block; }

    .resultCard{
      border-radius: var(--r-md);
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(7,10,18,.32);
      padding: 16px;
    }
    .scoreBox{
      width: 64px; height: 64px;
      border-radius: 10px;
      display:flex; align-items:center; justify-content:center;
      font-weight: 950;
      font-size: 1.55rem;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.08);
    }
    .resultTitle{
      font-weight: 950;
      letter-spacing: -0.02em;
      margin: 0;
    }
    .resultSub{
      margin: 2px 0 0;
      color: var(--muted);
      font-size: 13.5px;
    }

    .issue{
      display:flex;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 0;
      border-top: 1px solid rgba(255,255,255,.08);
    }
    .issueTitle{
      font-weight: 850;
      letter-spacing: -0.01em;
    }
    .issueDesc{
      color: var(--muted2);
      font-size: 13px;
      line-height: 1.55;
      margin-top: 4px;
      max-width: 68ch;
    }
    .issueMeta{
      color: rgba(234,240,255,.70);
      font-size: 13px;
      white-space: nowrap;
      padding-top: 2px;
    }

    .linkSoft{
      color: rgba(234,240,255,.88);
      text-decoration: none;
      font-weight: 800;
    }
    .linkSoft:hover{ color: #fff; text-decoration: underline; }

    /* WCAG report */
    .wcagWrap{ margin-top: 14px; display:none; }
    .wcagWrap.on{ display:block; }

    .wcagCard{
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(255,255,255,.10);
      border-radius: var(--r-md);
      padding: 14px;
    }
    .wcagTop{
      display:flex;
      align-items:flex-start;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }
    .wcagTitle{
      font-weight: 950;
      letter-spacing: -0.02em;
    }
    .wcagNote{
      color: var(--muted2);
      font-size: 13px;
      line-height: 1.5;
      max-width: 72ch;
      margin-top: 4px;
    }
    .wcagStats{
      display:flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items:center;
    }
    .badgeSoft{
      display:inline-flex;
      align-items:center;
      gap: 8px;
      padding: 8px 10px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(7,10,18,.28);
      color: rgba(234,240,255,.85);
      font-size: 12px;
      font-weight: 900;
    }
    .badgeFail{
      border-color: rgba(251,113,133,.35);
      background: rgba(251,113,133,.12);
    }
    .badgePass{
      border-color: rgba(34,197,94,.35);
      background: rgba(34,197,94,.10);
    }
    .badgeNA{
      border-color: rgba(234,240,255,.18);
      background: rgba(255,255,255,.06);
    }
    .wcagGrid{
      margin-top: 12px;
      display:grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 10px;
    }
    .wcagItem{
      grid-column: span 6;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(7,10,18,.22);
      padding: 10px 10px;
      display:flex;
      justify-content: space-between;
      gap: 10px;
      align-items:flex-start;
    }
    @media (max-width: 768px){
      .wcagItem{ grid-column: span 12; }
    }
    .wcagLeft{ max-width: 78%; }
    .wcagId{ font-weight: 950; letter-spacing: -0.01em; }
    .wcagName{
      color: rgba(234,240,255,.82);
      font-size: 13px;
      margin-top: 2px;
      line-height: 1.4;
    }
    .wcagLevel{
      color: rgba(234,240,255,.60);
      font-size: 12px;
      margin-top: 4px;
      font-weight: 800;
    }
    .wcagStatus{
      font-size: 12px;
      font-weight: 950;
      padding: 7px 10px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.06);
      white-space: nowrap;
    }
    .wcagStatus.fail{
      border-color: rgba(251,113,133,.35);
      background: rgba(251,113,133,.12);
      color: rgba(255,220,227,.95);
    }
    .wcagStatus.pass{
      border-color: rgba(34,197,94,.35);
      background: rgba(34,197,94,.10);
      color: rgba(220,255,235,.95);
    }
    .wcagStatus.na{
      border-color: rgba(234,240,255,.18);
      background: rgba(255,255,255,.06);
      color: rgba(234,240,255,.78);
    }

    .exBox{
      margin-top: 8px;
      padding: 10px;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 10px;
      background: rgba(255,255,255,.04);
    }
    .exTitle{
      font-weight: 850;
      color: rgba(234,240,255,.92);
      margin-bottom: 4px;
      font-size: 12.5px;
    }
    .exLine{
      font-size: 12px;
      color: rgba(234,240,255,.72);
      margin-top: 4px;
      line-height: 1.45;
    }
    code{
      color: rgba(234,240,255,.92);
      background: rgba(0,0,0,.20);
      padding: 2px 6px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,.10);
    }

    .refsWrap{ margin-top: 30px; display:none; }
    .refsWrap.on{ display:block; }

    .refsGrid{
      margin-top: 12px;
      display:grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 12px;
    }
    .refCard{
      grid-column: span 6;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(255,255,255,.10);
      border-radius: var(--r-md);
      padding: 14px;
    }
    @media (max-width: 768px){
      .refCard{ grid-column: span 12; }
    }
    .refCard a{
      color: rgba(234,240,255,.92);
      text-decoration: none;
      font-weight: 900;
      letter-spacing: -0.01em;
    }
    .refCard a:hover{ text-decoration: underline; color: #fff; }
    .refCard p{
      margin: 8px 0 0;
      color: var(--muted2);
      line-height: 1.55;
      font-size: 14px;
    }

    footer{
      margin-top: 22px;
      border-top: 1px solid rgba(255,255,255,.08);
      padding-top: 18px;
      color: var(--muted2);
      font-size: 13px;
      display:flex;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }

    /* WCAG Accordion (Bootstrap) */
    .accordion-item{
    background: rgba(7,10,18,.22);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    overflow: hidden;
    }
    .accordion-button{
    background: rgba(255,255,255,.02) !important;
    color: var(--text) !important;
    font-weight: 900;
    letter-spacing: -0.01em;
    padding: 14px 14px;
    box-shadow: none !important;
    }
    .accordion-button:focus{
    border-color: rgba(45,212,191,.35);
    box-shadow: 0 0 0 .2rem rgba(45,212,191,.12) !important;
    }
    .accordion-button:not(.collapsed){
    background: rgba(255,255,255,.04) !important;
    }
    .accordion-body{
    color: rgba(234,240,255,.78);
    background: rgba(7,10,18,.18);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 14px;
    }

    /* header line layout inside button */
    .wcagBtnLine{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    }
    .wcagBtnLeft{
    display:flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    }
    .wcagBtnId{
    font-weight: 950;
    }
    .wcagBtnName{
    color: rgba(234,240,255,.80);
    font-weight: 800;
    font-size: 13px;
    }
    .wcagBtnMeta{
    color: rgba(234,240,255,.58);
    font-size: 12px;
    font-weight: 800;
    }
    .wcagPill{
    font-size: 12px;
    font-weight: 950;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
    white-space: nowrap;
    margin-right: 28px;
    }
    .wcagPill.fail{
    border-color: rgba(251,113,133,.35);
    background: rgba(251,113,133,.12);
    color: rgba(255,220,227,.95);
    }
    .wcagPill.pass{
    border-color: rgba(34,197,94,.35);
    background: rgba(34,197,94,.10);
    color: rgba(220,255,235,.95);
    }
    .wcagPill.na{
    border-color: rgba(234,240,255,.18);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.78);
    }
    .accordion-item:not(:first-of-type) {
    border-top: 1px;
    border: 1px solid rgba(255, 255, 255, .10);
    }
    #modeLabel{
        text-transform:capitalize;
    }
    /* custom chevron */
    .accordion-button{
    position: relative;
    }

    .accordion-button::before{
    content: "";
    position: absolute;
    right: 16px;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(234,240,255,.65);
    border-bottom: 2px solid rgba(234,240,255,.65);
    transform: rotate(-45deg);
    transition: transform .25s ease, border-color .25s ease;
    }

    /* opened state */
    .accordion-button:not(.collapsed)::before{
    transform: rotate(45deg);
    border-color: rgba(45,212,191,.95);
    }

    /* HERO full viewport */
    .shell-hero{
    min-height: calc(100vh - 100px); /* desconta topbar */
    max-width:865px;
    }

    .hero-full{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    }

    /* garante bom spacing em ecrãs pequenos */
    @media (max-height: 700px){
    .shell-hero{
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 48px;
    }
    }

     @media (max-width: 700px){
    .btnGo {
    width: 100%;
    }
    .strategy{
     width: 100%;
    }
    footer {
    text-align: center;
    }
    .cardLovable {
    margin: 30px auto 0;
        }
    }

/* Honeypot: visually hidden, still in DOM */
.hp{
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.accordion-item:first-of-type {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.accordion-item:last-of-type {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.micro-note{
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted2);
  justify-content: center;
}

.micro-note .dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accentC), var(--accentB));
  box-shadow: 0 0 0 3px rgba(45,212,191,.10);
}

dl, ol, ul {
    margin-top: 0;
    margin-bottom: 1rem;
    margin-left: 20px;
}

.hidden{
  display:none;
}