/* ============================================================
   Mads brand tools — Logo Quiz + Brand Score
   Shares the Landin design language: pure black, #0055fe accent,
   DM Sans, soft glass cards, 20–30px radii.
   ============================================================ */

/* ---------------- page head ---------------- */
.tool-hero {
  position: relative;
  padding: 256px 0 50px;
  text-align: center;
  overflow: visible;
}

.tool-hero__glow {
  position: absolute;
  left: 50%;
  top: -140px;
  transform: translateX(-50%);
  width: 1100px;
  height: 620px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 46% 50% at 50% 50%,
    rgba(0, 85, 254, 0.3) 0%,
    rgba(0, 85, 254, 0.16) 42%,
    rgba(0, 85, 254, 0.05) 72%,
    rgba(0, 85, 254, 0) 100%
  );
  filter: blur(16px);
}

.tool-hero .phead .body {
  max-width: 620px;
}

/* small proof chips under the hero copy */
.tool-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  letter-spacing: -0.2px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.tool-chip b {
  color: #fff;
  font-weight: 500;
}

/* ---------------- the card shell ---------------- */
.tool {
  position: relative;
  padding: 50px 0 50px;
}

.tool__card {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 30px;
  background: #080808;
}

.tool__inner {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(
      125% 95% at 50% 0%,
      rgba(0, 85, 254, 0.16) 0%,
      rgba(0, 85, 254, 0.04) 42%,
      rgba(0, 0, 0, 0) 68%
    ),
    #060606;
  padding: 52px;
  min-height: 480px;
}

/* state machine */
.tstate {
  display: none;
}

.tstate.on {
  display: block;
}

/* ---------------- progress ---------------- */
.tq-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.tq-count {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.tq-count b {
  color: #fff;
  font-weight: 500;
}

.tq-bar {
  height: 4px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.tq-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: var(--blue);
  box-shadow: 0 0 16px rgba(0, 85, 254, 0.85);
  transition: width 0.5s var(--ease);
}

.tq-dots {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.tq-dot {
  flex: 1 1 0;
  height: 3px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.35s var(--ease);
}

.tq-dot.done {
  background: rgba(0, 85, 254, 0.5);
}

.tq-dot.active {
  background: var(--blue);
  box-shadow: 0 0 12px rgba(0, 85, 254, 0.9);
}

/* ---------------- question ---------------- */
.tq-q {
  margin-top: 34px;
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: -1.1px;
  font-weight: 500;
  color: #fff;
}

.tq-sub {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.2px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------------- options ---------------- */
.tq-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.tq-opt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 18px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.tq-opt:hover {
  border-color: rgba(0, 85, 254, 0.45);
  background: rgba(0, 85, 254, 0.09);
  transform: translateY(-1px);
}

.tq-opt.sel {
  border-color: var(--blue);
  background: rgba(0, 85, 254, 0.16);
  box-shadow: inset 0 0 0 1px rgba(0, 85, 254, 0.45);
}

.tq-opt__ico {
  flex: 0 0 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 18px;
  line-height: 1;
}

.tq-opt.sel .tq-opt__ico {
  background: rgba(0, 85, 254, 0.32);
}

.tq-opt__txt {
  min-width: 0;
}

.tq-opt__label {
  display: block;
  font-size: 15.5px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: #fff;
  font-weight: 500;
}

.tq-opt__desc {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.4;
  letter-spacing: -0.1px;
  color: rgba(255, 255, 255, 0.48);
}

/* ---------------- nav row ---------------- */
.tq-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tq-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------------- intro ---------------- */
.tq-intro__title {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 500;
}

.tq-intro__sub {
  margin-top: 10px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: -0.2px;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.style-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 176px;
  padding: 26px 14px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(
      115% 85% at 50% 0%,
      rgba(0, 85, 254, 0.11) 0%,
      rgba(255, 255, 255, 0.022) 58%,
      rgba(255, 255, 255, 0.015) 100%
    );
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.style-tile:hover {
  border-color: rgba(0, 85, 254, 0.42);
  background: radial-gradient(
      115% 85% at 50% 0%,
      rgba(0, 85, 254, 0.2) 0%,
      rgba(0, 85, 254, 0.06) 58%,
      rgba(255, 255, 255, 0.02) 100%
    );
  transform: translateY(-2px);
}

.style-tile svg {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
}

.style-tile span {
  font-size: 14px;
  letter-spacing: -0.2px;
  color: rgba(255, 255, 255, 0.7);
}

/* brand-score intro rows */
.dim-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.dim-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.dim-row__n {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(0, 85, 254, 0.95);
  font-variant-numeric: tabular-nums;
}

.dim-row__t {
  font-size: 15.5px;
  letter-spacing: -0.3px;
  color: #fff;
}

.dim-row__d {
  margin-left: auto;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.42);
  text-align: right;
}

/* ---------------- text input ---------------- */
.tq-input {
  width: 100%;
  margin-top: 30px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  letter-spacing: -0.3px;
  outline: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.tq-input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.tq-input:focus {
  border-color: rgba(0, 85, 254, 0.7);
  background: rgba(0, 85, 254, 0.07);
}

/* radio list (brand score) */
.tq-radios {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.tq-radio {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 17px 20px;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 15.5px;
  letter-spacing: -0.25px;
  cursor: pointer;
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease);
}

.tq-radio:hover {
  border-color: rgba(0, 85, 254, 0.45);
  background: rgba(0, 85, 254, 0.08);
}

.tq-radio.sel {
  border-color: var(--blue);
  background: rgba(0, 85, 254, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 85, 254, 0.45);
}

.tq-radio__dot {
  flex: 0 0 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  position: relative;
  transition: border-color 0.28s var(--ease);
}

.tq-radio.sel .tq-radio__dot {
  border-color: var(--blue);
}

.tq-radio.sel .tq-radio__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(0, 85, 254, 0.9);
}

/* ---------------- loading ---------------- */
.tq-load {
  text-align: center;
  padding: 40px 0 30px;
}

.tq-spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--blue);
  animation: tqSpin 0.85s linear infinite;
}

@keyframes tqSpin {
  to {
    transform: rotate(360deg);
  }
}

.tq-load h3 {
  margin-top: 26px;
  font-size: 22px;
  letter-spacing: -0.7px;
  font-weight: 500;
}

.tq-load p {
  margin-top: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
}

.load-steps {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin: 30px auto 0;
  text-align: left;
}

.load-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.4s var(--ease);
}

.load-step.on {
  color: rgba(255, 255, 255, 0.85);
}

.load-step__tick {
  flex: 0 0 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.load-step.on .load-step__tick {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ---------------- result ---------------- */
.tq-result__lead {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.tq-visual {
  width: 168px;
  height: 168px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 85, 254, 0.28);
  background: radial-gradient(
    circle at 50% 40%,
    rgba(0, 85, 254, 0.25) 0%,
    rgba(0, 85, 254, 0.06) 60%,
    rgba(0, 0, 0, 0) 100%
  );
}

.tq-visual svg {
  width: 96px;
  height: 96px;
}

.tq-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 85, 254, 0.95);
}

.tq-result__name {
  margin-top: 12px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -1.6px;
  font-weight: 500;
}

.tq-result__tag {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.25px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
}

.tq-visdesc {
  margin-top: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.4);
}

.tq-traits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.tq-trait {
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.tq-trait span {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.tq-trait b {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.tq-block {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tq-block h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 500;
}

.tq-block p {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.65;
  letter-spacing: -0.2px;
  color: rgba(255, 255, 255, 0.62);
}

.tq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tq-chip {
  padding: 8px 15px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  letter-spacing: -0.1px;
  color: rgba(255, 255, 255, 0.68);
}

.tq-avoid {
  border-left: 2px solid #e84040;
  padding-left: 18px;
}

/* result CTA panel */
.tq-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 28px 30px;
  border-radius: 18px;
  border: 1px solid rgba(0, 85, 254, 0.28);
  background: linear-gradient(
    120deg,
    rgba(0, 85, 254, 0.16) 0%,
    rgba(0, 85, 254, 0.04) 55%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.tq-cta h4 {
  font-size: 20px;
  letter-spacing: -0.6px;
  font-weight: 500;
}

.tq-cta p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  max-width: 460px;
}

.tq-cta__acts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tq-wa {
  font-size: 14.5px;
  letter-spacing: -0.2px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.25);
}

.tq-wa:hover {
  color: #fff;
}

/* share row */
.tq-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.tq-share__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-right: 4px;
}

.tq-sbtn {
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13.5px;
  letter-spacing: -0.15px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease),
    color 0.28s var(--ease);
}

.tq-sbtn:hover {
  border-color: rgba(0, 85, 254, 0.5);
  background: rgba(0, 85, 254, 0.12);
  color: #fff;
}

/* ============================================================
   BRAND SCORE specifics
   ============================================================ */

.bs-score-top {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.bs-dial {
  position: relative;
  width: 232px;
  height: 232px;
}

.bs-dial svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.bs-dial__num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bs-dial__num b {
  font-size: 54px;
  line-height: 1;
  letter-spacing: -2.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.bs-dial__num span {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.bs-grade {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.bs-verdict {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.3px;
  color: rgba(255, 255, 255, 0.66);
  max-width: 520px;
}

.bs-cats {
  display: grid;
  gap: 18px;
  margin-top: 12px;
}

.bs-cat {
  padding: 20px 22px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.022);
}

.bs-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bs-cat__name {
  font-size: 15.5px;
  letter-spacing: -0.3px;
  font-weight: 500;
}

.bs-cat__badge {
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.1px;
}

.bs-cat__bar {
  height: 7px;
  margin-top: 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.bs-cat__fill {
  height: 100%;
  width: 0;
  border-radius: 100px;
  transition: width 0.9s var(--ease);
}

.bs-cat__ins {
  margin-top: 13px;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.15px;
  color: rgba(255, 255, 255, 0.5);
}

.bs-fixes {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.bs-fix {
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.bs-fix__top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bs-fix__pri {
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.bs-fix__pri.critical {
  background: rgba(232, 64, 64, 0.16);
  color: #ff8080;
}

.bs-fix__pri.important {
  background: rgba(237, 161, 0, 0.16);
  color: #ffc233;
}

.bs-fix__pri.improve {
  background: rgba(0, 85, 254, 0.18);
  color: #7aa2ff;
}

.bs-fix__title {
  font-size: 17px;
  letter-spacing: -0.4px;
  font-weight: 500;
}

.bs-fix__body {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: -0.15px;
  color: rgba(255, 255, 255, 0.55);
}

.bs-fix__btn {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: #7aa2ff;
  letter-spacing: -0.2px;
}

.bs-fix__btn:hover {
  color: #fff;
}

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .tool-hero {
    padding-top: 168px;
  }

  .tool__inner {
    padding: 40px;
  }

  .tq-q {
    font-size: 26px;
  }

  .tq-result__lead {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 26px;
  }

  .tq-visual {
    width: 132px;
    height: 132px;
    border-radius: 20px;
  }

  .tq-visual svg {
    width: 76px;
    height: 76px;
  }

  .tq-result__name {
    font-size: 32px;
  }

  .bs-score-top {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 30px;
  }

  .bs-dial {
    width: 190px;
    height: 190px;
  }

  .bs-dial__num b {
    font-size: 44px;
  }
}

@media (max-width: 768px) {
  .tool-hero {
    padding: 148px 0 4px;
  }

  .tool {
    padding: 64px 0 88px;
  }

  .tool__card {
    padding: 8px;
    border-radius: 24px;
  }

  .tool__inner {
    padding: 26px 22px 30px;
    border-radius: 18px;
    min-height: 0;
  }

  .tq-q {
    font-size: 22px;
    letter-spacing: -0.8px;
    margin-top: 26px;
  }

  .tq-sub {
    font-size: 14.5px;
  }

  .tq-opts {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 22px;
  }

  .tq-opt {
    padding: 15px;
  }

  .tq-nav {
    margin-top: 26px;
    padding-top: 20px;
  }

  .style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .style-tile {
    min-height: 148px;
    padding: 20px 10px 18px;
    gap: 12px;
  }

  .style-tile svg {
    width: 58px;
    height: 58px;
  }

  .tq-result__lead {
    display: block;
  }

  .tq-visual {
    width: 108px;
    height: 108px;
    margin-bottom: 22px;
  }

  .tq-visual svg {
    width: 62px;
    height: 62px;
  }

  .tq-result__name {
    font-size: 27px;
    letter-spacing: -1px;
  }

  .tq-traits {
    grid-template-columns: minmax(0, 1fr);
  }

  .tq-cta {
    padding: 22px;
  }

  .tq-cta h4 {
    font-size: 18px;
  }

  .bs-score-top {
    display: block;
  }

  .bs-dial {
    width: 168px;
    height: 168px;
    margin: 0 auto 26px;
  }

  .bs-dial__num b {
    font-size: 40px;
  }

  .bs-verdict {
    font-size: 15.5px;
  }

  .tq-input {
    padding: 16px 18px;
    font-size: 16px;
  }

  .tq-radio {
    padding: 15px 16px;
    font-size: 14.5px;
  }

  .dim-row {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .dim-row__d {
    margin-left: 0;
    text-align: left;
    flex-basis: 100%;
  }
}

@media (max-width: 400px) {
  .tool__inner {
    padding: 22px 18px 26px;
  }

  .style-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .style-tile {
    min-height: 0;
    flex-direction: row;
    justify-content: flex-start;
    gap: 18px;
    padding: 13px 20px;
  }

  .style-tile svg {
    width: 52px;
    height: 52px;
  }
}

/* inline SVG option icons (replaced the emoji in v2) */
.tq-opt__ico {
  color: #8fb0ff;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.tq-opt__ico svg {
  width: 20px;
  height: 20px;
  display: block;
}

.tq-opt:hover .tq-opt__ico {
  color: #c3d4ff;
}

.tq-opt.sel .tq-opt__ico {
  color: #fff;
  background: rgba(0, 85, 254, 0.42);
}

/* v37 rhythm — match the site-wide 40px / 32px section padding on small screens
   (tools.css loads after shell.css, so it has to repeat the breakpoints). */
@media (max-width: 1024px) {
  .tool-hero { padding-bottom: 40px; }
  .tool { padding-top: 40px; padding-bottom: 40px; }
}
@media (max-width: 768px) {
  .tool-hero { padding-bottom: 32px; }
  .tool { padding-top: 32px; padding-bottom: 32px; }
}

@media (max-width: 1024px) { .tool-hero { padding-top: 236px; } }
@media (max-width: 768px)  { .tool-hero { padding-top: 214px; } }
