/* ==========================================================================
   AI Tool Finder — The AI Ronin Lab
   Reuses the approved homepage design tokens. Same sakura palette,
   same rounded language, same soft shadows.
   ========================================================================== */

:root {
  --cream:#fff8ef;
  --paper:#fffdf9;
  --navy:#172040;
  --muted:#5f6476;
  --coral:#ff735c;
  --coral2:#ff8f77;
  --sky:#44b9e9;
  --line:#f0dbc9;
  --peach:#ffe8db;
  --lav:#eee9ff;
  --green:#eef7e7;
  --shadow:0 18px 55px rgba(128,84,52,.11);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at 85% 4%,rgba(255,189,163,.18),transparent 20%),
    radial-gradient(circle at 0% 60%,rgba(255,218,199,.22),transparent 18%),
    var(--cream);
  color:var(--navy);
  font-family:Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button{cursor:pointer}
.wrap{width:min(1180px,calc(100% - 30px));margin:auto}

/* Visible focus rings everywhere — accessibility requirement */
:focus-visible{outline:3px solid var(--sky);outline-offset:3px;border-radius:6px}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:300;
  background:var(--navy);color:#fff;padding:12px 18px;border-radius:0 0 14px 0;font-weight:900;
}
.skip-link:focus{left:0}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* ---------------------------------------------------------------- */
/* Header — same as homepage                                        */
/* ---------------------------------------------------------------- */
.topbar{
  position:sticky;top:10px;z-index:50;
  width:min(1180px,calc(100% - 30px));margin:18px auto 0;
  min-height:72px;padding:10px 16px 10px 12px;
  display:flex;align-items:center;gap:24px;
  border:1px solid var(--line);border-radius:28px;
  background:rgba(255,253,249,.90);backdrop-filter:blur(18px);
  box-shadow:0 12px 35px rgba(118,79,45,.08);
}
.brand{display:flex;align-items:center;gap:11px;margin-right:auto}
.logo{
  width:54px;height:54px;object-fit:contain;border-radius:18px;
  background:#fff3e6;padding:3px;border:1px solid #f4dfcd;
}
.brand strong{font-size:20px;letter-spacing:-.02em}
.nav{display:flex;gap:30px;font-size:14px;font-weight:800}
.nav a{padding:10px 2px}
.nav a:hover{color:var(--coral)}
.lablog{
  border:0;background:linear-gradient(180deg,var(--coral2),var(--coral));
  color:white;font-weight:900;padding:12px 18px;border-radius:15px;
  box-shadow:0 10px 22px rgba(255,115,92,.24);
  display:inline-flex;align-items:center;text-decoration:none;white-space:nowrap;
}
.menu{display:none;background:transparent;border:0;font-size:25px}
.mobile-nav{display:none}

/* ---------------------------------------------------------------- */
/* Buttons — same as homepage                                       */
/* ---------------------------------------------------------------- */
.btn{
  min-height:52px;padding:0 20px;border-radius:15px;
  border:1px solid transparent;font-weight:900;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn.primary{background:linear-gradient(180deg,var(--coral2),var(--coral));color:#fff;box-shadow:0 12px 26px rgba(255,115,92,.22)}
.btn.secondary{background:#fff;border-color:#cbd1dc}
.btn:hover:not(:disabled){transform:translateY(-1px)}
.btn:disabled{opacity:.42;cursor:not-allowed;box-shadow:none}

.badge{
  display:inline-flex;align-items:center;gap:8px;
  color:#df5f50;background:#fff3eb;border:1px solid #ffd6c7;
  padding:8px 13px;border-radius:999px;font-size:13px;font-weight:900;
}

/* ---------------------------------------------------------------- */
/* Finder hero                                                      */
/* ---------------------------------------------------------------- */
.finder-hero{
  position:relative;overflow:hidden;margin-top:18px;
  border-radius:34px;border:1px solid var(--line);
  background:linear-gradient(180deg,#fffdfa 0%,#fff6ec 100%);
  box-shadow:var(--shadow);
}
.finder-hero-grid{
  display:grid;grid-template-columns:1.15fr .85fr;align-items:center;
  gap:20px;padding:44px 52px;position:relative;z-index:2;
}
.finder-hero h1{
  margin:16px 0 16px;font-size:clamp(38px,4.7vw,58px);
  line-height:1.02;letter-spacing:-.045em;font-weight:950;
}
.finder-hero h1 span{color:var(--sky)}
.finder-hero .lede{margin:0;max-width:560px;color:var(--muted);font-size:18px;line-height:1.55}

.trust-chips{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px;padding:0;list-style:none}
.trust-chips li{
  font-size:12.5px;font-weight:900;padding:8px 13px;border-radius:999px;
  background:#fff;border:1px solid var(--line);color:#6a5f6e;
}
.trust-chips li::before{content:"✓ ";color:#5fb56a}

.hero-note{
  margin:18px 0 0;color:var(--muted);font-size:14px;line-height:1.55;max-width:520px;
  padding-left:14px;border-left:3px solid var(--peach);
}

/* The mascot artwork already contains the sun, Fuji, torii and petals,
   so the hero does not repeat them — it would read as a double sunset. */
.finder-art{position:relative;min-height:320px;display:grid;place-items:center}
.finder-art .mascot{
  width:min(360px,33vw);height:auto;
  filter:drop-shadow(0 18px 24px rgba(98,63,39,.12));
}
.petals span{
  position:absolute;width:13px;height:8px;background:#ffc5bc;
  border-radius:70% 30% 70% 30%;opacity:.75;transform:rotate(25deg);
}
.petals span:nth-child(1){left:44%;top:12%}
.petals span:nth-child(2){left:53%;top:24%;transform:rotate(78deg)}
.petals span:nth-child(3){right:5%;top:18%}
.petals span:nth-child(4){right:22%;bottom:12%;transform:rotate(-34deg)}
.petals span:nth-child(5){left:5%;bottom:8%}

/* ---------------------------------------------------------------- */
/* Sections                                                         */
/* ---------------------------------------------------------------- */
.section{padding:64px 0}
/* The topbar is sticky, so anything we scroll to needs to clear it.
   Without this, scrollIntoView tucks headings under the header. */
#quizSection,#resultsSection,#librarySection,#join{scroll-margin-top:96px}
.section-head{text-align:center;margin-bottom:28px}
.section-head h2{margin:0;font-size:32px;letter-spacing:-.035em}
.section-head p{margin:8px auto 0;color:var(--muted);max-width:640px}
.spark{color:#ff947d}

.panel{
  background:rgba(255,253,249,.95);border:1px solid var(--line);
  border-radius:28px;padding:34px;box-shadow:0 12px 35px rgba(138,94,59,.07);
}

/* ---------------------------------------------------------------- */
/* Quiz                                                             */
/* ---------------------------------------------------------------- */
.quiz-panel{max-width:860px;margin:0 auto}
.is-hidden{display:none !important}

.quiz-top{margin-bottom:26px}
.quiz-meta{display:flex;align-items:baseline;gap:12px;margin-bottom:11px}
.quiz-step{font-size:13px;font-weight:900;color:var(--coral);letter-spacing:.02em}
.quiz-hint{margin-left:auto;font-size:12.5px;color:var(--muted);font-weight:700}
.progress-track{height:9px;border-radius:999px;background:#f6e7db;overflow:hidden}
.progress-fill{
  height:100%;border-radius:999px;width:0%;
  background:linear-gradient(90deg,var(--coral2),var(--coral));
  transition:width .32s cubic-bezier(.4,0,.2,1);
}

.question h2{margin:0 0 6px;font-size:28px;letter-spacing:-.03em;line-height:1.2}
.question .q-sub{margin:0 0 22px;color:var(--muted);font-size:15px}

.options{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:12px;margin:0 0 26px;padding:0;list-style:none;
}
.options.cols-3{grid-template-columns:repeat(3,1fr)}
.option{
  position:relative;display:flex;align-items:center;gap:12px;width:100%;
  text-align:left;min-height:66px;padding:15px 17px;
  border:1.5px solid var(--line);border-radius:19px;background:#fff;
  font-weight:800;font-size:15px;color:var(--navy);line-height:1.3;
  transition:transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.option:hover{transform:translateY(-2px);border-color:#ffc7b6;box-shadow:0 10px 24px rgba(138,94,59,.09)}
.option .opt-icon{
  flex:none;width:36px;height:36px;border-radius:12px;display:grid;place-items:center;
  background:var(--lav);font-size:18px;line-height:1;
}
.option[aria-pressed="true"]{
  border-color:var(--coral);background:linear-gradient(180deg,#fff7f3,#fff1ea);
  box-shadow:0 10px 26px rgba(255,115,92,.16);
}
.option[aria-pressed="true"] .opt-icon{background:#ffe1d6}
.option[aria-pressed="true"]::after{
  content:"✓";position:absolute;right:14px;top:50%;transform:translateY(-50%);
  width:23px;height:23px;border-radius:50%;
  background:var(--coral);color:#fff;font-size:13px;font-weight:900;
  display:grid;place-items:center;
}
.option[aria-pressed="true"] .opt-label{padding-right:24px}

.quiz-actions{display:flex;gap:12px;align-items:center;border-top:1px solid var(--line);padding-top:22px}
.quiz-actions .btn.primary{margin-left:auto;min-width:186px}

/* Loading */
.loading{text-align:center;padding:64px 20px}
.loading img{width:118px;height:118px;object-fit:contain;animation:bob 1.15s ease-in-out infinite}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-11px)}}
.loading p{margin:18px 0 0;font-weight:900;font-size:19px}
.loading .dots span{
  display:inline-block;width:8px;height:8px;margin:0 3px;border-radius:50%;
  background:var(--coral);opacity:.35;animation:pulse 1.15s ease-in-out infinite;
}
.loading .dots{margin-top:14px}
.loading .dots span:nth-child(2){animation-delay:.16s}
.loading .dots span:nth-child(3){animation-delay:.32s}
@keyframes pulse{0%,100%{opacity:.3;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important}
  html{scroll-behavior:auto}
}

/* ---------------------------------------------------------------- */
/* Results                                                          */
/* ---------------------------------------------------------------- */
.results-head{text-align:center;margin-bottom:26px}
.results-head h2{margin:0;font-size:34px;letter-spacing:-.035em}
.results-head p{margin:8px auto 0;color:var(--muted);max-width:620px}

.disclosure{
  max-width:860px;margin:0 auto 20px;padding:12px 16px;
  background:#fffaf4;border:1px dashed var(--line);border-radius:15px;
  color:var(--muted);font-size:12.5px;line-height:1.5;
}

.best-card{
  position:relative;overflow:hidden;
  border:1.5px solid #ffd0c0;border-radius:29px;padding:30px;
  background:linear-gradient(150deg,#fff7f3 0%,#fffdf9 46%,#f6f2ff 100%);
  box-shadow:0 20px 50px rgba(138,94,59,.13);
  max-width:860px;margin:0 auto 18px;
}
/* Base badge styling must stay unscoped so alternative cards inherit the
   shape — only the colours differ between best match and alternatives. */
.rank-badge{
  display:inline-flex;align-items:center;gap:7px;
  padding:8px 15px;border-radius:999px;font-size:12px;font-weight:900;letter-spacing:.06em;
}
.best-card .rank-badge{
  background:linear-gradient(180deg,var(--coral2),var(--coral));color:#fff;
  box-shadow:0 8px 18px rgba(255,115,92,.26);
}
.result-top{display:flex;align-items:flex-start;gap:18px;margin-top:16px}
.tool-initials{
  flex:none;width:64px;height:64px;border-radius:20px;display:grid;place-items:center;
  font-size:23px;font-weight:950;letter-spacing:-.02em;color:#fff;
  box-shadow:0 10px 22px rgba(98,63,39,.14);
}
.result-title{margin-right:auto;min-width:0}
.result-title h3{margin:0 0 5px;font-size:29px;letter-spacing:-.03em}
.result-title p{margin:0;color:var(--muted);font-size:15.5px;line-height:1.5}

.match{flex:none;text-align:center;min-width:88px}
.match strong{display:block;font-size:34px;font-weight:950;letter-spacing:-.04em;line-height:1;color:var(--coral)}
.match small{display:block;font-size:10.5px;font-weight:900;color:var(--muted);letter-spacing:.09em;margin-top:4px}

.reasons{list-style:none;padding:0;margin:20px 0 0;display:grid;gap:9px}
.reasons li{
  display:flex;align-items:flex-start;gap:10px;font-size:14.5px;font-weight:700;line-height:1.45;
  background:#fff;border:1px solid var(--line);border-radius:14px;padding:11px 14px;
}
.reasons li::before{content:"🌸";flex:none;font-size:13px;line-height:1.35}

.meta-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.tag{
  font-size:11px;font-weight:900;padding:7px 11px;border-radius:999px;
  background:#edf4ff;color:#4273dc;letter-spacing:.02em;
}
.tag.price{background:#f1ebff;color:#7e59d6}
.tag.free{background:var(--green);color:#4b8b3d}

.bestfor{margin-top:18px;font-size:14px;color:var(--muted);line-height:1.55}
.bestfor strong{color:var(--navy)}
.watchout{
  margin-top:12px;padding:12px 15px;border-radius:15px;
  background:#fff8ec;border:1px solid #f6e2c4;font-size:13.5px;line-height:1.5;color:#7a6647;
}
.watchout strong{color:#8a6a34}

.result-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:22px}
.link-why{
  border:1px solid #cbd1dc;background:#fff;border-radius:15px;min-height:52px;
  padding:0 20px;font-weight:900;display:inline-flex;align-items:center;gap:8px;
}
.link-why:hover{border-color:var(--sky);color:var(--sky)}

/* Alternatives */
.alts{display:grid;gap:14px;max-width:860px;margin:0 auto}
.alt-card{
  border:1px solid var(--line);border-radius:23px;padding:22px;
  background:rgba(255,253,249,.95);box-shadow:0 12px 32px rgba(138,94,59,.07);
  transition:transform .18s ease, box-shadow .18s ease;
}
.alt-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(138,94,59,.12)}
.alt-card .rank-badge{
  background:#fff;border:1px solid var(--line);color:var(--muted);box-shadow:none;
  font-size:11px;
}
.alt-card .tool-initials{width:52px;height:52px;border-radius:17px;font-size:19px}
.alt-card .result-title h3{font-size:22px}
.alt-card .match strong{font-size:27px;color:var(--navy)}
.alt-card .reasons{margin-top:16px}

.finder-footer-actions{
  display:flex;flex-wrap:wrap;gap:11px;justify-content:center;
  max-width:860px;margin:26px auto 0;
}

/* Empty / error states */
.state-card{
  max-width:640px;margin:0 auto;text-align:center;padding:36px 30px;
  border:1px solid var(--line);border-radius:26px;background:var(--paper);
  box-shadow:0 12px 35px rgba(138,94,59,.07);
}
.state-card img{width:104px;height:104px;object-fit:contain;margin-bottom:8px}
.state-card h3{margin:0 0 8px;font-size:23px;letter-spacing:-.02em}
.state-card p{margin:0 0 20px;color:var(--muted);line-height:1.55}
.state-card .state-actions{display:flex;gap:11px;justify-content:center;flex-wrap:wrap}

.toast{
  position:fixed;left:50%;bottom:26px;transform:translate(-50%,24px);
  background:var(--navy);color:#fff;padding:13px 22px;border-radius:15px;
  font-weight:800;font-size:14px;box-shadow:0 18px 40px rgba(23,32,64,.3);
  opacity:0;pointer-events:none;transition:opacity .22s ease, transform .22s ease;z-index:300;
}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ---------------------------------------------------------------- */
/* Tool library                                                     */
/* ---------------------------------------------------------------- */
.library-controls{display:grid;gap:15px;margin-bottom:26px}
.search-box{position:relative;max-width:520px;margin:0 auto;width:100%}
.search-box input{
  width:100%;min-height:52px;padding:0 44px 0 44px;
  border:1px solid var(--line);border-radius:16px;background:#fff;outline:none;
  font-size:15px;
}
.search-box input:focus{border-color:var(--sky)}
.search-box .icon{
  position:absolute;left:16px;top:50%;transform:translateY(-50%);
  color:var(--muted);font-size:16px;pointer-events:none;
}
.search-clear{
  position:absolute;right:9px;top:50%;transform:translateY(-50%);
  border:0;background:#f7efe9;width:31px;height:31px;border-radius:50%;
  font-size:16px;color:var(--muted);display:none;place-items:center;
}
.search-clear.show{display:grid}

.filters{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.filter{
  border:1px solid var(--line);background:#fff;border-radius:999px;
  padding:9px 15px;font-size:13px;font-weight:800;color:var(--muted);
  transition:.15s;
}
.filter:hover{border-color:#ffc7b6;color:var(--navy)}
.filter[aria-pressed="true"]{
  background:linear-gradient(180deg,var(--coral2),var(--coral));
  border-color:transparent;color:#fff;box-shadow:0 8px 18px rgba(255,115,92,.22);
}

.library-count{text-align:center;color:var(--muted);font-size:13px;margin-bottom:18px;font-weight:700}
.library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.lib-card{
  display:flex;flex-direction:column;
  border:1px solid var(--line);border-radius:22px;padding:20px;
  background:rgba(255,253,249,.95);box-shadow:0 8px 24px rgba(138,94,59,.05);
  transition:transform .18s ease, box-shadow .18s ease;
}
.lib-card:hover{transform:translateY(-4px);box-shadow:0 16px 38px rgba(138,94,59,.11)}
.lib-head{display:flex;align-items:center;gap:12px;margin-bottom:13px}
.lib-card .tool-initials{width:46px;height:46px;border-radius:15px;font-size:17px}
.lib-card h3{margin:0;font-size:17px;letter-spacing:-.02em}
.lib-card p{margin:0 0 14px;color:var(--muted);font-size:13.5px;line-height:1.5}
.lib-card .meta-row{margin-top:auto;margin-bottom:14px}
.lib-card .tag{font-size:10px;padding:6px 10px}
.lib-visit{
  border:1px solid #cbd1dc;background:#fff;border-radius:13px;min-height:44px;
  font-weight:900;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;
}
.lib-visit:hover{border-color:var(--coral);color:var(--coral)}

.library-empty{
  grid-column:1/-1;text-align:center;padding:44px 20px;color:var(--muted);
  border:1px dashed var(--line);border-radius:22px;background:#fffaf4;
}
.library-empty strong{display:block;color:var(--navy);font-size:17px;margin-bottom:6px}

/* ---------------------------------------------------------------- */
/* Transparency + Join                                              */
/* ---------------------------------------------------------------- */
.transparency{
  background:linear-gradient(180deg,rgba(245,249,255,.66),rgba(255,255,255,.1));
  border-top:1px solid #e8eef5;border-bottom:1px solid #e8eef5;
}
.transparency-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:960px;margin:0 auto}
.t-card{
  background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;text-align:center;
}
.t-card .circle{
  width:62px;height:62px;border-radius:50%;display:grid;place-items:center;
  margin:0 auto 13px;font-size:27px;border:1px solid var(--line);background:var(--cream);
}
.t-card h3{margin:0 0 6px;font-size:16px}
.t-card p{margin:0;color:var(--muted);font-size:13.5px;line-height:1.55}

.join{
  display:grid;grid-template-columns:1fr 1.3fr;gap:28px;align-items:center;
  padding:28px;border-radius:27px;border:1px solid #ffd8ca;
  background:linear-gradient(90deg,#fff3ec,#f8f4ff);box-shadow:var(--shadow);
}
.join h2{margin:0 0 7px;font-size:28px}
.join p{margin:0;color:var(--muted)}
.join-form{display:grid;grid-template-columns:1fr auto;gap:10px}
.join input{border:1px solid #dce0ea;background:#fff;padding:0 15px;border-radius:14px;min-height:50px;outline:none}
.join button{border:0;background:linear-gradient(180deg,var(--coral2),var(--coral));color:#fff;font-weight:900;padding:0 22px;border-radius:14px}

.footer{display:flex;justify-content:space-between;gap:20px;padding:28px 0 40px;color:var(--muted);font-size:12px}

/* Independence / accuracy statement under "How recommendations work". */
.transparency-note{
  max-width:960px;margin:22px auto 0;text-align:center;
  color:var(--muted);font-size:13.5px;line-height:1.65;
}
.transparency-note strong{color:var(--navy)}
.transparency-note a{color:#c4503c;text-decoration:underline;text-underline-offset:2px}

/* Shared site footer with the legal navigation. */
.site-footer{border-top:1px solid var(--line);margin-top:20px;padding:30px 0 44px;color:var(--muted);font-size:13px}
.site-footer .footer-inner{width:min(1180px,calc(100% - 30px));margin:auto;display:flex;flex-wrap:wrap;gap:16px 30px;align-items:center}
.site-footer nav{display:flex;flex-wrap:wrap;gap:8px 20px;margin-right:auto}
.site-footer nav a{color:var(--muted);font-weight:800}
.site-footer nav a:hover{color:var(--coral);text-decoration:underline}
.site-footer .tag{color:#8b8296}
@media(max-width:700px){
  .site-footer .footer-inner{flex-direction:column;align-items:flex-start}
  .site-footer nav{margin-right:0}
}

/* ---------------------------------------------------------------- */
/* "Why this match" modal                                           */
/* ---------------------------------------------------------------- */
.modal-backdrop{
  position:fixed;inset:0;z-index:200;background:rgba(23,32,64,.36);backdrop-filter:blur(8px);
  display:none;align-items:center;justify-content:center;padding:20px;
}
.modal-backdrop.open{display:flex}
.modal{
  width:min(640px,100%);max-height:88vh;overflow:auto;background:#fffdf9;
  border:1px solid var(--line);border-radius:28px;padding:28px;
  box-shadow:0 35px 90px rgba(38,26,20,.24);
}
.modal-head{display:flex;align-items:flex-start;gap:15px;margin-bottom:20px}
.modal-head div{margin-right:auto}
.modal h3{font-size:25px;margin:0 0 5px;letter-spacing:-.03em}
.modal-head p{margin:0;color:var(--muted);font-size:14px}
.close{border:0;background:#f7efe9;width:38px;height:38px;border-radius:50%;font-size:20px;flex:none}
.close:hover{background:var(--peach)}

.why-block{margin-bottom:20px}
.why-block h4{
  margin:0 0 11px;font-size:12px;letter-spacing:.09em;font-weight:900;
  color:var(--muted);text-transform:uppercase;
}
.answer-list{list-style:none;padding:0;margin:0;display:grid;gap:7px}
.answer-list li{
  display:flex;gap:12px;align-items:baseline;font-size:14px;
  background:#fff;border:1px solid var(--line);border-radius:13px;padding:10px 14px;
}
.answer-list .k{flex:none;width:104px;color:var(--muted);font-weight:800;font-size:12.5px}
.answer-list .v{font-weight:800}

.score-list{list-style:none;padding:0;margin:0;display:grid;gap:9px}
.score-list li{display:grid;grid-template-columns:130px 1fr 46px;gap:11px;align-items:center;font-size:13.5px;font-weight:800}
.score-bar{height:9px;border-radius:999px;background:#f2e6db;overflow:hidden}
.score-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--sky),#6fd0f5)}
.score-list .val{text-align:right;color:var(--muted);font-weight:900;font-size:12.5px}
.specialist-note{
  margin-top:14px;padding:12px 15px;border-radius:15px;
  background:#eef7e7;border:1px solid #d6ead0;
  display:grid;gap:4px;
}
.specialist-note strong{font-size:13px;font-weight:900;color:#4b8b3d;letter-spacing:.02em}
.specialist-note span{font-size:12.5px;line-height:1.5;color:#5f6476}

.score-total{
  margin-top:16px;padding:14px 16px;border-radius:15px;background:var(--lav);
  font-weight:900;display:flex;align-items:center;justify-content:space-between;font-size:14.5px;
}
.why-foot{margin:18px 0 0;font-size:12.5px;color:var(--muted);line-height:1.55}

/* ---------------------------------------------------------------- */
/* Responsive                                                       */
/* ---------------------------------------------------------------- */
@media(max-width:920px){
  .nav,.lablog{display:none}
  .menu{display:block}
  .mobile-nav.open{
    display:grid;gap:4px;width:min(1180px,calc(100% - 30px));margin:8px auto;
    background:#fffdf9;border:1px solid var(--line);border-radius:20px;padding:10px;box-shadow:var(--shadow);
  }
  .mobile-nav a{padding:11px 12px;border-radius:10px;font-weight:800}
  .mobile-nav a:hover{background:#fff1e8}
  .finder-hero-grid{grid-template-columns:1fr;padding:34px 30px 10px}
  .finder-art{min-height:0;margin-top:6px}
  .finder-art .mascot{width:min(260px,52vw)}
  .library-grid{grid-template-columns:1fr 1fr}
  .transparency-grid{grid-template-columns:1fr;max-width:520px}
  .join{grid-template-columns:1fr}
}

@media(max-width:700px){
  .topbar{min-height:64px}
  .logo{width:46px;height:46px}
  .brand strong{font-size:17px}
  .finder-hero-grid{padding:28px 21px 0}
  .finder-hero h1{font-size:37px}
  .finder-hero .lede{font-size:16px}
  .section{padding:48px 0}
  .panel{padding:22px 18px;border-radius:23px}

  /* Keyboard shortcut hint is meaningless on a touch screen */
  .quiz-hint{display:none}

  /* Quiz: single column, big touch targets */
  .options{grid-template-columns:1fr;gap:10px}
  .options.cols-3{grid-template-columns:1fr}
  .option{min-height:60px;padding:14px 15px}
  .question h2{font-size:23px}
  .quiz-actions{flex-direction:column-reverse;align-items:stretch}
  .quiz-actions .btn{width:100%;margin-left:0}
  .quiz-actions .btn.primary{min-width:0}

  /* Results fill width */
  .best-card{padding:22px 18px;border-radius:24px}
  .alt-card{padding:18px 16px}
  .result-top{flex-wrap:wrap;gap:14px}
  .result-title{flex:1 1 100%;order:2;margin-right:0}
  .tool-initials{order:1}
  .match{order:1;margin-left:auto;text-align:right;min-width:0}
  .match strong{font-size:29px}
  .results-head h2{font-size:27px}
  .result-actions .btn,.result-actions .link-why{width:100%}
  .finder-footer-actions .btn{width:100%}

  .library-grid{grid-template-columns:1fr}
  .filters{justify-content:flex-start}
  .modal{padding:22px 18px;border-radius:24px}
  .score-list li{grid-template-columns:1fr;gap:5px}
  .score-list .val{text-align:left}
  .answer-list li{flex-direction:column;gap:3px}
  .answer-list .k{width:auto}
  .join-form{grid-template-columns:1fr}
  .footer{display:grid}
}

@media(max-width:400px){
  .finder-hero h1{font-size:32px}
  .finder-art .mascot{width:190px}
  .trust-chips li{font-size:11.5px;padding:7px 11px}
}
