:root{
  --bg: #ffffff;
  --fg: #0b0b0c;
  --muted: #606368;
  --card: #ffffff;
  --border: #e6e7ea;
  --shadow: 0 8px 24px rgba(0,0,0,.06);
  --shadow-sm: 0 6px 18px rgba(0,0,0,.05);
  --radius: 18px;
  --radius-sm: 14px;
  --focus: 0 0 0 4px rgba(0,0,0,.12);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.45;
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.85; }

.container{
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.app-shell{
  min-height:100%;
  display:flex;
  flex-direction:column;
}

.page-container{
  padding: 28px 0 40px;
}

/* HERO */
.hero-wrap{
  width: 100%;
  background: #0b0b0c;
  padding: 22px 0;
}

.hero{
  padding: 0 0 18px;
}

.hero--dark{
  background: transparent;
  color: #ffffff;
  border-radius: var(--radius);
  padding: 34px 18px;
  margin: 0;
  box-shadow: var(--shadow);
}

.hero--dark .hero-title{ color:#ffffff; }
.hero--dark .hero-subtitle{ color: rgba(255,255,255,.78); }

.hero--dark .hero-badge{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.88);
}

.hero--center{ text-align:center; }
.hero--center .hero-subtitle{
  margin-left:auto;
  margin-right:auto;
}

.hero-badge{
  display:inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #fafafa;
}
.hero-title-wrap{
  display: flex;
  align-items: center;
  justify-content: center;   /* keeps it centered */
  gap: 12px;
}

.hero-logo{
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.nav-brand--logo{
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo{
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.hero-title{
  margin: 14px 0 8px;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-subtitle{
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 720px;
}

.hero-meta{
  display:flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.meta-chip{
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 10px 12px;
  display:flex;
  gap: 10px;
  align-items:center;
}

.chip-title{
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.chip-value{
  font-size: 13px;
  font-weight: 800;
}

/* TEST AREA */
.test-area{
  padding: 16px 0 26px;
}

.toolbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 14px;
  margin: 10px 0 16px;
  flex-wrap: wrap;
}

.toolbar-title{
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.toolbar-subtitle{
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.toolbar-right{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bottom-actions{
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn{
  border-radius: 999px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: #111;
  cursor:pointer;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  transition: transform .06s ease, box-shadow .15s ease, opacity .15s ease;
  user-select:none;
}

.btn:focus{ outline:none; box-shadow: var(--focus); }
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: #0b0b0c;
  color: #fff;
  border-color: #0b0b0c;
}

.btn-ghost{
  background: #fff;
}

/* Premium centered result */
.result-area--center{
  padding: 28px 0 50px;
}

.result-card--premium{
  width: min(880px, 100%);
  margin: 0 auto;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0,0,0,.10);
  padding: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-card--premium::before{
  content:"";
  position:absolute;
  inset: -90px -120px auto -120px;
  height: 200px;
  background: radial-gradient(circle at 50% 35%, rgba(66,133,244,.16), rgba(255,255,255,0) 60%);
  pointer-events:none;
}

.result-topline{
  position: relative;
  margin-bottom: 6px;
}

.result-title{
  font-weight: 950;
  letter-spacing: -0.02em;
  color: #111;
  font-size: 16px;
}

.result-subtitle{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

/* Big Google-style ring */
.result-ring{
  width: 240px;
  height: 240px;
  border-radius: 999px;
  margin: 16px auto 10px;
  border: 10px solid transparent;
  background:
    linear-gradient(#fff,#fff) padding-box,
    conic-gradient(
      from 210deg,
      #4285F4 0deg 80deg,
      #34A853 80deg 165deg,
      #FBBC05 165deg 265deg,
      #EA4335 265deg 360deg
    ) border-box;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  position: relative;
}

.result-ring::after{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 22%, rgba(255,255,255,.75), rgba(255,255,255,0) 55%);
  opacity: .55;
  pointer-events:none;
}

.result-ring-inner{
  width: 100%;
  height: 100%;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  position: relative;
}

/* Your requirement: big score */
.result-score-big{
  font-size: 100px;
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 1;
  color: #0b0b0c;
}

.result-score-unit{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}

.result-badge-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin: 10px auto 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fafafa;
  color: #111;
  font-weight: 950;
  font-size: 12px;
}

.result-tone{
  margin-top: 12px;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.01em;
}

.result-description{
  margin: 8px auto 0;
  max-width: 680px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}

/* meta chips */
.result-meta{
  display:flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.result-meta-chip{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 170px;
  text-align: left;
}

.result-meta-chip .chip-k{
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
}

.result-meta-chip .chip-v{
  margin-top: 4px;
  font-size: 13px;
  font-weight: 950;
  color: #111;
}

.result-actions--center{
  justify-content: center;
  margin-top: 16px;
}

.result-privacy-note{
  margin-top: 14px;
  color: var(--muted);
  font-weight: 650;
  font-size: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* Mobile */
@media (max-width: 520px){
  .result-ring{ width: 210px; height: 210px; }
  .result-score-big{ font-size: 84px; }
  .result-meta-chip{ min-width: 100%; }
}

/* FOOTER */
.footer{
  margin-top:auto;
  border-top: 1px solid var(--border);
  padding: 18px 0;
  background: #fff;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap: 16px;
  align-items:flex-start;
  flex-wrap: wrap;
}

.brand-mini{
  font-weight: 900;
  letter-spacing: -0.02em;
}

.footer-note{
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
}

.footer-right{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

/* NAVBAR (LEGAL PAGES) */
.navbar{
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.navbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 12px;
}

.nav-brand{
  font-weight: 900;
  letter-spacing: -0.02em;
}

.nav-links{
  display:flex;
  gap: 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  flex-wrap: wrap;
}

/* CONTENT PAGES */
.page-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.page-title{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.prose{
  color: #111;
  font-weight: 600;
}

.prose p{ color: var(--muted); font-weight: 600; }
.prose h3{ margin-top: 18px; margin-bottom: 8px; }
.prose ul{ color: var(--muted); font-weight: 600; }

/* MODAL */
.modal[hidden]{ display:none; }

.modal{
  position: fixed;
  inset: 0;
  z-index: 50;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45);
}

.modal-panel{
  position:relative;
  width: min(520px, 100%);
  border-radius: var(--radius);
  background:#fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
}

.modal-title{
  font-weight: 900;
  letter-spacing: -0.02em;
}

.icon-btn{
  border: 1px solid var(--border);
  background:#fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor:pointer;
  font-weight: 900;
}

.modal-body{
  padding: 14px;
}

.modal-footer{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.field{ display:block; }

.field-label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}

.input{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 14px;
  font-weight: 700;
}

.input:focus{
  outline:none;
  box-shadow: var(--focus);
}

.hint{
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  margin-top: 10px;
}

.error{
  margin-top: 12px;
  border: 1px solid #f2c3c3;
  background: #fff4f4;
  color: #8b1c1c;
  font-weight: 800;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12px;
}

/* COOKIE BANNER */
.cookie-banner[hidden]{ display:none; }

.cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
}

.cookie-banner-inner{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow);
  padding: 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

.cookie-text{
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  max-width: 720px;
}

.cookie-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* SHARE PAGE */
.shared-result{
  margin-top: 8px;
}

.shared-name{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.shared-score{
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.shared-date{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
}

.shared-cta{
  display:flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.shared-note{
  margin-top: 14px;
  color: var(--muted);
  font-weight: 650;
  font-size: 12px;
}

/* QUESTIONS (ROW STYLE) */
.questions-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.q-checkbox--hidden{
  position:absolute;
  opacity:0;
  pointer-events:none;
  width:1px;
  height:1px;
}

.q-row{
  display:block;
  cursor:pointer;
}

.q-row-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  transition: transform .06s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.q-row:hover .q-row-inner{
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.q-row-left{
  display:flex;
  align-items:center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.q-row-serial{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #f3f4f6;
  color: #111;
  font-weight: 900;
  font-size: 13px;
  flex: 0 0 auto;
}

.q-row-text{
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #111;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.q-row-indicator{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #111;
  background: transparent;
  flex: 0 0 auto;
}

/* selected state */
.q-checkbox:checked + .q-row-inner{
  border-color: #0b0b0c;
  background: #f6f6f7;
}

.q-checkbox:checked + .q-row-inner .q-row-indicator{
  background: #0b0b0c;
}

/* LEGACY GRID/CARD (kept harmless, in case any older markup exists) */
.questions-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 760px){
  .questions-grid{ grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1020px){
  .questions-grid{ grid-template-columns: 1fr 1fr; }
}

.q-card{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: none;
  cursor:pointer;
  transition: transform .06s ease, box-shadow .15s ease, border-color .15s ease;
}

.q-card:hover{
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.q-checkbox{
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #0b0b0c;
}

.q-content{
  display:flex;
  gap: 12px;
  flex:1;
}

.q-number{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #f3f4f6;
  color: #111;
  font-weight: 800;
  font-size: 13px;
  flex: 0 0 auto;
}

.q-text{
  font-size: 14px;
  color: #111;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.prose h2{ margin-top: 18px; }
.prose h3{ margin-top: 16px; }
.prose ul{ padding-left: 18px; }
.bottom-actions--center{
  justify-content: center;
  margin-top: 22px;
}

.btn-lg{
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 520px){
  .bottom-actions--center{
    flex-direction: column;
    align-items: stretch;
  }
  .bottom-actions--center .btn-lg{
    width: 100%;
  }
}
.stats-row{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-circle{
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: #ffffff;
  border: 5px solid black;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-shadow: var(--shadow);
  padding: 10px;
}

.stat-value{
  font-weight: 950;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: #0b0b0c;
  line-height: 1.05;
}

.stat-label{
  margin-top: 6px;
  font-weight: 900;
  font-size: 12px;
  color: #0b0b0c;
  letter-spacing: -0.01em;
}

.stat-sub{
  margin-top: 4px;
  font-weight: 700;
  font-size: 11px;
  color: #606368;
}

@media (max-width: 520px){
  .stat-circle{
    width: 46%;
    height: 150px;
  }
}
/* Shared result page */
.shared-wrap{
  width: min(860px, 100%);
  margin: 0 auto;
}

.shared-card{
  border: 1px solid var(--border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.10);
  overflow: hidden;
}

.shared-top{
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.shared-title{
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: #111;
}

.shared-sub{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.shared-hero{
  padding: 18px 18px 16px;
  text-align: center;
  position: relative;
}

.shared-hero::before{
  content:"";
  position:absolute;
  inset: -80px -120px auto -120px;
  height: 180px;
  background: radial-gradient(circle at 50% 35%, rgba(66,133,244,.16), rgba(255,255,255,0) 90%);
  pointer-events:none;
}

.shared-name{
  position: relative;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: #111;
}

/* Google segmented ring */
.shared-ring{
  width: 230px;
  height: 230px;
  border-radius: 999px;
  margin: 16px auto 10px;
  border: 10px solid transparent;
  background:
    linear-gradient(#fff,#fff) padding-box,
    conic-gradient(
      from 210deg,
      #4285F4 0deg 80deg,
      #34A853 80deg 165deg,
      #FBBC05 165deg 265deg,
      #EA4335 265deg 360deg
    ) border-box;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  position: relative;
}

.shared-ring::after{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 22%, rgba(255,255,255,.75), rgba(255,255,255,0) 55%);
  opacity: .55;
  pointer-events:none;
}

.shared-ring-inner{
  width: 100%;
  height: 100%;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  position: relative;
}

.shared-score-big{
  font-size: 92px;
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 1;
  color: #0b0b0c;
}

.shared-score-unit{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}

.shared-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin: 10px auto 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fafafa;
  color: #111;
  font-weight: 950;
  font-size: 12px;
}

.shared-text{
  margin-top: 12px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.shared-tone{
  font-weight: 900;
  color: #111;
  letter-spacing: -0.01em;
}

.shared-desc{
  margin-top: 8px;
  color: var(--muted);
  font-weight: 650;
}

.shared-meta{
  display:flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.shared-meta-chip{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 180px;
  text-align: left;
}

.shared-meta-chip .chip-k{
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
}

.shared-meta-chip .chip-v{
  margin-top: 4px;
  font-size: 13px;
  font-weight: 900;
  color: #111;
}

.shared-cta--center{
  justify-content: center;
  margin-top: 16px;
}

.shared-note{
  margin-top: 14px;
  color: var(--muted);
  font-weight: 650;
  font-size: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

@media (max-width: 520px){
  .shared-ring{
    width: 200px;
    height: 200px;
  }
  .shared-score-big{
    font-size: 78px;
  }
  .shared-meta-chip{
    min-width: 100%;
  }
}
.faq-section {
    margin: 120px 0;
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 0;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.faq-question:focus {
    outline: none;
}

.faq-icon {
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
}

.faq-answer p {
    margin: 0 0 18px;
    color: #444;
    line-height: 1.6;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 300px;
    opacity: 1;
}
