:root {
  --bg: #f7f9fc;
  --bg-soft: #edf2f9;
  --card: #ffffff;
  --ink: #1a1a2e;
  --ink-2: #4a5068;
  --ink-3: #7d849c;
  --accent: #0066ff;
  --accent-deep: #0052cc;
  --accent-soft: rgba(0, 102, 255, 0.08);
  --accent-softer: rgba(0, 102, 255, 0.045);
  --border: rgba(0, 102, 255, 0.1);
  --border-strong: rgba(0, 102, 255, 0.22);
  --field-border: rgba(26, 26, 46, 0.16);
  --line: rgba(26, 26, 46, 0.1);
  --green: #087f5b;
  --green-soft: rgba(8, 127, 91, 0.1);
  --red: #d92d20;
  --red-soft: rgba(217, 45, 32, 0.08);
  --amber: #b86e00;
  --amber-soft: rgba(184, 110, 0, 0.1);
  --panel-bg: #12172b;
  --panel-ink: #eaeffb;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.05), 0 20px 50px rgba(16, 24, 40, 0.13);
  --focus: rgba(0, 102, 255, 0.28);
}

:root[data-theme="dark"] {
  --bg: #0c1120;
  --bg-soft: #111830;
  --card: #151c31;
  --ink: #eaeef9;
  --ink-2: #a6adc6;
  --ink-3: #7f879f;
  --accent: #70a7ff;
  --accent-deep: #4d8df5;
  --accent-soft: rgba(112, 167, 255, 0.13);
  --accent-softer: rgba(112, 167, 255, 0.07);
  --border: rgba(129, 168, 255, 0.14);
  --border-strong: rgba(129, 168, 255, 0.28);
  --field-border: rgba(234, 238, 249, 0.18);
  --line: rgba(234, 238, 249, 0.12);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.12);
  --red: #f97066;
  --red-soft: rgba(249, 112, 102, 0.12);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.12);
  --panel-bg: #080c19;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 20px 48px rgba(0, 0, 0, 0.46);
  --focus: rgba(112, 167, 255, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 15.5px/1.55 "DM Sans", system-ui, sans-serif;
  transition: background 0.2s ease, color 0.2s ease;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3,
.brand-name,
.btn {
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
}

.material-symbols-rounded {
  font-size: 20px;
  line-height: 1;
}

.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-inline: 24px;
}

@media (min-width: 860px) {
  .wrap {
    padding-inline: 48px;
  }
}

.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;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  backdrop-filter: blur(14px);
}

.head-row {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.head-right,
.result-actions,
.build-copy,
.allowance-card,
.byok-nudge,
.section-title {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  min-width: 0;
}

.brand-button {
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
}

.brand-button:disabled {
  cursor: default;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: #ffffff;
}

.brand-logo {
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.brand-mark .material-symbols-rounded {
  font-size: 23px;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.brand-tag {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.head-right {
  gap: 9px;
  flex: 0 0 auto;
}

.kit-badge,
.source-badge,
.eyebrow,
.mini-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.kit-badge {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  padding: 5px 10px;
  border-radius: 999px;
}

.kit-badge.used {
  color: var(--ink-2);
  background: var(--bg-soft);
  border-color: var(--line);
}

.head-key,
.icon-button {
  min-height: 38px;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--field-border);
  border-radius: 11px;
}

.head-key {
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.head-key.connected {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
}

.icon-button {
  width: 38px;
  display: grid;
  place-items: center;
}

.head-key:hover,
.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-block: 8px 10px;
  border-top: 1px solid var(--border);
  scrollbar-width: none;
}

.app-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--accent);
  background: var(--accent-softer);
}

.nav-item.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--border-strong);
}

.nav-item .material-symbols-rounded {
  font-size: 18px;
}

main {
  min-height: calc(100vh - 174px);
  padding-block: 30px 44px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: fade-up 0.35s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: var(--shadow);
}

.gate-wrap {
  width: min(440px, 100%);
  margin: 38px auto 52px;
}

.gate-card {
  text-align: center;
  padding: 32px 30px 28px;
}

.gate-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.hero-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  border-radius: 16px;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 102, 255, 0.22);
}

.hero-icon .material-symbols-rounded {
  font-size: 29px;
}

.hero-icon.small {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 13px;
  box-shadow: none;
}

.hero-icon.small .material-symbols-rounded {
  font-size: 23px;
}

.eyebrow,
.mini-kicker {
  color: var(--accent);
}

.gate-card h1 {
  margin-top: 11px;
  font-size: 25px;
  line-height: 1.2;
}

.gate-sub {
  margin: 6px 0 21px;
  color: var(--ink-2);
}

.stack {
  display: grid;
  gap: 10px;
}

.gate-hint {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 13px;
}

.hub-head {
  max-width: 720px;
  margin: 10px auto 24px;
  text-align: center;
}

.hub-head h1 {
  margin-top: 6px;
  font-size: clamp(31px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hub-head p {
  margin-top: 9px;
  color: var(--ink-2);
  font-size: 16px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.tool-card {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  color: var(--ink);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.tool-card.available {
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--card) 94%, var(--accent) 6%);
}

.tool-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
}

.tool-icon .material-symbols-rounded {
  font-size: 25px;
}

.tool-icon.large {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 18px;
}

.tool-icon.large .material-symbols-rounded {
  font-size: 31px;
}

.tool-status {
  position: absolute;
  top: 25px;
  right: 24px;
  padding: 4px 8px;
  color: var(--ink-3);
  background: var(--bg-soft);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.tool-status.ready {
  color: var(--green);
  background: var(--green-soft);
}

.tool-card > strong {
  margin-top: 21px;
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
  font-size: 23px;
  line-height: 1.15;
}

.tool-description {
  max-width: 370px;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
}

.tool-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 800;
}

.tool-action .material-symbols-rounded {
  font-size: 17px;
}

.hub-note {
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 18px auto 0;
  color: var(--ink-3);
  font-size: 12.5px;
}

.hub-note .material-symbols-rounded {
  color: var(--green);
  font-size: 18px;
}

.tool-placeholder {
  max-width: 760px;
  margin: 28px auto 60px;
}

.placeholder-card {
  padding: 42px 38px;
  text-align: center;
}

.placeholder-card h1 {
  margin-top: 7px;
  font-size: clamp(29px, 5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.placeholder-card > p {
  max-width: 590px;
  margin: 10px auto 0;
  color: var(--ink-2);
}

.placeholder-points {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.placeholder-points span {
  padding: 7px 11px;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

input[type="password"],
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--field-border);
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-softer);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.short-textarea {
  min-height: 90px;
}

.btn {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 5px 16px rgba(0, 102, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(0, 102, 255, 0.3);
}

.btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--field-border);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-key {
  min-height: 38px;
  padding: 8px 15px;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--border-strong);
}

.btn-block {
  width: 100%;
}

.notice {
  margin-top: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.notice-error {
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid color-mix(in srgb, var(--red) 35%, transparent);
}

.notice-success {
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
}

.builder-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.builder-head h1,
.review-title-row h1,
.result-head h1 {
  margin-top: 5px;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.builder-head > div:first-child > p,
.review-title-row p {
  max-width: 690px;
  margin-top: 7px;
  color: var(--ink-2);
}

.allowance-card {
  min-width: 240px;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
}

.allowance-card > .material-symbols-rounded {
  font-size: 24px;
}

.allowance-card strong,
.allowance-card span {
  display: block;
}

.allowance-card strong {
  font-size: 13.5px;
}

.allowance-card div span {
  color: var(--ink-2);
  font-size: 12.5px;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}

.wizard-card {
  padding: 26px 28px 24px;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 700;
}

.progress-track {
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-soft);
}

.progress-track span {
  display: block;
  width: 16.666%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.25s ease;
}

.wizard-step {
  display: none;
  padding: 28px 0 10px;
}

.wizard-step.active {
  display: block;
  animation: fade-up 0.25s ease both;
}

.question-number {
  color: var(--accent);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.wizard-step > label:not(.small-label) {
  display: block;
  max-width: 730px;
  margin-top: 7px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(22px, 3.4vw, 31px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.field-help {
  margin: 8px 0 18px;
  color: var(--ink-2);
}

.small-label {
  display: flex;
  justify-content: space-between;
  margin: 20px 0 7px;
  font-weight: 700;
}

.small-label span {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice {
  min-height: 112px;
  padding: 15px;
  text-align: left;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--field-border);
  border-radius: 13px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.choice:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.choice.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent-softer);
}

.choice .material-symbols-rounded {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 24px;
}

.choice strong,
.choice span {
  display: block;
}

.choice strong {
  font-size: 14px;
}

.choice span:last-child {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.side-card {
  padding: 21px 20px;
}

.side-card h2 {
  margin-bottom: 10px;
  font-size: 16px;
}

.rule {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.rule > span {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.rule strong,
.rule p {
  display: block;
}

.rule strong {
  font-size: 13.5px;
}

.rule p,
.side-note {
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.45;
}

.side-note {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.narrow-wrap {
  width: min(820px, 100%);
  margin: 0 auto;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
}

.text-button:hover {
  text-decoration: underline;
}

.text-button.centered {
  margin: 14px auto 0;
}

.review-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 17px;
}

.source-badge {
  flex: 0 0 auto;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid color-mix(in srgb, var(--green) 32%, transparent);
  border-radius: 999px;
  padding: 6px 10px;
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.review-item span {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-item strong {
  font-size: 14px;
  font-weight: 600;
}

.build-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 20px;
  border-color: var(--border-strong);
}

.build-copy {
  gap: 13px;
}

.build-copy h2 {
  font-size: 17px;
}

.build-copy p {
  max-width: 500px;
  color: var(--ink-2);
  font-size: 13px;
}

.loading-wrap {
  width: min(620px, 100%);
  margin: 45px auto;
}

.loading-card {
  padding: 36px 30px 32px;
  text-align: center;
}

.build-loader {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  animation: breathe 1.5s ease-in-out infinite;
}

.build-loader .material-symbols-rounded {
  font-size: 38px;
}

@keyframes breathe {
  50% {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 102, 255, 0.15);
  }
}

.loading-card h1 {
  max-width: 480px;
  margin: 8px auto 5px;
  font-size: 28px;
  line-height: 1.2;
}

.loading-card > p {
  color: var(--ink-2);
}

.loading-list {
  width: min(380px, 100%);
  display: grid;
  gap: 9px;
  margin: 24px auto 0;
  text-align: left;
}

.loading-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 600;
}

.loading-list i {
  width: 9px;
  height: 9px;
  border: 2px solid var(--field-border);
  border-radius: 50%;
}

.loading-list span.active {
  color: var(--accent);
}

.loading-list span.active i {
  border-color: var(--accent);
  background: var(--accent);
}

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
}

.result-head > div:first-child {
  min-width: 0;
}

.result-head h1 {
  overflow-wrap: anywhere;
}

.result-head p {
  max-width: 720px;
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 16px;
}

.result-actions {
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.result-actions .btn {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 13px;
}

.byok-nudge {
  gap: 13px;
  margin-bottom: 18px;
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
}

.byok-nudge > .material-symbols-rounded {
  font-size: 25px;
}

.byok-nudge div {
  min-width: 0;
  flex: 1;
}

.byok-nudge strong,
.byok-nudge span {
  display: block;
}

.byok-nudge strong {
  font-size: 13.5px;
}

.byok-nudge span {
  color: var(--ink-2);
  font-size: 12.5px;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.result-main,
.result-side {
  display: grid;
  gap: 18px;
}

.result-section,
.mini-section {
  padding: 22px 24px;
}

.section-title {
  gap: 11px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-title > .material-symbols-rounded {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 11px;
  color: var(--accent);
  background: var(--accent-soft);
}

.section-title span:not(.material-symbols-rounded) {
  display: block;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.section-title h2 {
  font-size: 17px;
}

.promise-box {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.promise-main {
  padding: 16px 17px;
  color: var(--ink);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-size: 17px;
  font-weight: 600;
}

.name-row,
.proof-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.name-chip {
  padding: 6px 10px;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.proof-row {
  color: var(--ink-2);
  font-size: 13.5px;
}

.proof-row strong {
  color: var(--ink);
}

.days-list {
  padding-top: 5px;
}

.day-card {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.day-card:first-child {
  border-top: 0;
}

.day-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.day-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--accent);
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.day-head span {
  display: block;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.day-head h3 {
  font-size: 17px;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.day-detail {
  padding: 11px 12px;
  background: var(--bg-soft);
  border-radius: 10px;
}

.day-detail span {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.day-detail p {
  font-size: 13px;
  font-weight: 600;
}

.steps-list,
.problem-list {
  margin: 11px 0 0 20px;
  color: var(--ink-2);
  font-size: 13px;
}

.steps-list li,
.problem-list li {
  padding: 2px 0;
}

.day-why {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-style: italic;
}

.messages-list {
  display: grid;
  gap: 10px;
  padding-top: 17px;
}

.message-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.message-card summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  background: var(--bg-soft);
}

.message-card summary::-webkit-details-marker {
  display: none;
}

.message-card summary div {
  min-width: 0;
}

.message-card summary span {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.message-card summary strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
}

.message-card summary > .material-symbols-rounded {
  color: var(--ink-3);
  transition: transform 0.15s ease;
}

.message-card[open] summary > .material-symbols-rounded {
  transform: rotate(180deg);
}

.message-body {
  padding: 15px;
}

.message-copy {
  white-space: pre-wrap;
  color: var(--ink-2);
  font-size: 13.5px;
}

.message-meta {
  display: grid;
  gap: 8px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.message-meta p,
.message-meta ol {
  font-size: 12.5px;
}

.message-meta ol {
  margin-left: 18px;
}

.message-meta strong {
  color: var(--ink);
}

.copy-message {
  margin-top: 12px;
  color: var(--accent);
  background: transparent;
  font-size: 12.5px;
  font-weight: 800;
}

.mini-section h2 {
  margin-top: 5px;
  font-size: 19px;
}

.mini-section > p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 13px;
}

.mini-section ol {
  margin: 12px 0 0 19px;
  color: var(--ink-2);
  font-size: 12.5px;
}

.mini-section li {
  padding: 3px 0;
}

.mini-callout,
.range-row {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.mini-callout strong,
.mini-callout span {
  display: block;
}

.mini-callout strong {
  color: var(--accent);
  font-size: 13px;
}

.mini-callout span {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 12px;
}

.price-value {
  margin-top: 5px;
  color: var(--green);
  font-family: "Outfit", sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
}

.range-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-3);
  font-size: 12px;
}

.range-row strong {
  color: var(--ink);
}

.small-copy {
  font-size: 11.5px !important;
}

.mini-section dl {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mini-section dt {
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mini-section dd {
  font-size: 12.5px;
}

.truth-line {
  color: var(--accent) !important;
  font-weight: 700;
}

.challenge-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.challenge-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  color: var(--panel-ink);
  background: var(--panel-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.challenge-card-head strong {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.challenge-card-head button {
  color: var(--panel-ink);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.challenge-card pre {
  padding: 14px;
  color: var(--panel-ink);
  background: var(--panel-bg);
  font: 11.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.site-foot {
  border-top: 1px solid var(--border);
}

.site-foot p {
  padding: 17px 0 23px;
  color: var(--ink-3);
  text-align: center;
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 25, 0.72);
  backdrop-filter: blur(5px);
}

.modal-card {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 27px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: var(--bg-soft);
  border-radius: 10px;
}

.modal-card h2 {
  margin-top: 7px;
  font-size: 25px;
}

.modal-intro {
  margin: 5px 0 18px;
  color: var(--ink-2);
  font-size: 13.5px;
}

.modal-card > label:not(.check-row) {
  display: block;
  margin: 13px 0 5px;
  font-size: 13px;
  font-weight: 700;
}

.provider-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  background: var(--bg-soft);
  border-radius: 11px;
}

.provider-tab {
  padding: 9px 12px;
  color: var(--ink-2);
  background: transparent;
  border-radius: 8px;
  font-weight: 700;
}

.provider-tab.active {
  color: var(--accent);
  background: var(--card);
  box-shadow: var(--shadow);
}

.key-field {
  position: relative;
}

.key-field input {
  padding-right: 46px;
}

.key-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: var(--ink-3);
  background: transparent;
}

.provider-help {
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 11.5px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 17px 0 14px;
  color: var(--ink-2);
  font-size: 12.5px;
}

.check-row input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--accent);
}

@media (max-width: 900px) {
  .builder-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .side-card {
    display: none;
  }

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

  .challenge-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .brand-tag,
  .kit-badge,
  .head-key span:not(.material-symbols-rounded) {
    display: none;
  }

  .head-key {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .brand-name {
    max-width: 210px;
    font-size: 14px;
    letter-spacing: 0.055em;
  }

  .app-nav {
    margin-inline: 0;
    width: 100%;
    padding-inline: 17px;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 225px;
  }

  .builder-head,
  .result-head,
  .build-card {
    align-items: stretch;
    flex-direction: column;
  }

  .allowance-card {
    min-width: 0;
  }

  .result-actions {
    justify-content: flex-start;
  }

  .byok-nudge {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .byok-nudge .btn {
    width: 100%;
  }

  .review-item {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .review-title-row {
    flex-direction: column;
  }

  .build-card .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-inline: 17px;
  }

  main {
    padding-top: 22px;
  }

  .gate-card,
  .wizard-card,
  .result-section,
  .mini-section {
    padding: 20px;
  }

  .choice-grid,
  .day-grid,
  .result-side {
    grid-template-columns: 1fr;
  }

  .head-row {
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .brand-name {
    max-width: 168px;
    font-size: 12px;
  }

  .hub-head {
    margin-top: 0;
  }

  .hub-head p {
    font-size: 14.5px;
  }

  .tool-card,
  .placeholder-card {
    padding: 21px;
  }

  .placeholder-card {
    padding-block: 30px;
  }

  .wizard-actions .btn {
    padding-inline: 15px;
  }

  .result-actions .btn {
    flex: 1;
  }

  .challenge-card {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Unified four-builder output system */

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.brand-copy {
  min-width: 0;
  display: grid;
}

.brand-copy strong {
  font: 800 16px/1.15 "Outfit", "DM Sans", system-ui, sans-serif;
  letter-spacing: 0.065em;
}

.brand-copy small {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

input[type="url"] {
  width: 100%;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--field-border);
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="url"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-softer);
}

.question-label {
  display: block;
}

.stop-panel {
  margin-top: 16px;
  padding: 15px;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  border-radius: 12px;
}

.stop-panel p {
  font-weight: 700;
}

.stop-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tool-card.has-result {
  border-color: var(--green);
}

.tool-card.has-result .tool-status {
  color: var(--green);
  background: var(--green-soft);
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.section-description {
  margin: 14px 0 0;
  color: var(--ink-2);
}

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

.result-card-grid > .block-title {
  grid-column: 1 / -1;
}

.result-card-grid:has(> .output-card:only-child) {
  grid-template-columns: 1fr;
}

.output-card,
.output-block {
  min-width: 0;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.output-block {
  margin-top: 14px;
}

.output-card h3,
.output-block h3,
.block-title {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.output-card > p,
.output-block > p {
  margin-top: 7px;
  color: var(--ink-2);
}

.output-card ul,
.output-block ul,
.output-block ol,
.message-body ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.output-card li,
.output-block li,
.message-body li {
  margin-top: 6px;
  color: var(--ink-2);
}

.output-rows {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.output-rows > div {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.output-rows dt {
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.output-rows dd {
  margin-top: 2px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.table-scroll {
  margin-top: 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.output-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
}

.output-table th,
.output-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.output-table th {
  color: var(--accent);
  background: var(--accent-softer);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.output-table td {
  color: var(--ink-2);
  font-size: 13px;
}

.output-table tr:last-child td {
  border-bottom: 0;
}

.artifact-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  color: var(--ink);
  background: var(--green-soft);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  border-radius: 14px;
}

.artifact-bar > .material-symbols-rounded {
  color: var(--green);
  font-size: 27px;
}

.artifact-bar strong,
.artifact-bar span {
  display: block;
}

.artifact-bar div > span {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 12px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  color: var(--panel-ink);
  background: var(--panel-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card-head strong {
  font: 700 12px/1.2 "Outfit", system-ui, sans-serif;
  letter-spacing: 0.05em;
}

.product-card-head button {
  color: var(--panel-ink);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.product-card pre {
  max-height: 520px;
  overflow: auto;
  padding: 14px;
  color: var(--panel-ink);
  background: var(--panel-bg);
  font: 11.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.btn-community {
  margin-top: 9px;
  color: var(--ink);
  background: var(--green-soft);
  border: 1px solid color-mix(in srgb, var(--green) 34%, transparent);
  text-decoration: none;
}

.copy-fallback {
  width: 100%;
  min-height: 220px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--field-border);
  border-radius: 11px;
  padding: 12px;
  resize: vertical;
}

@media (max-width: 900px) {
  .result-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .result-main,
  .result-side {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .result-main > *,
  .result-side > * {
    min-width: 0;
  }

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

  .product-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .brand-copy small,
  .kit-badge {
    display: none;
  }

  .brand-copy strong {
    max-width: 220px;
    font-size: 13px;
  }

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

  .artifact-bar .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand-copy strong {
    max-width: 150px;
    font-size: 11px;
  }

  .result-card-grid,
  .result-layout .result-side {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-column: auto;
  }

  .stop-actions .btn {
    width: 100%;
  }
}

.gate-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.handoff-card {
  border: 1px solid var(--border-strong);
  background: var(--accent-softer);
}

.handoff-steps {
  margin: 12px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  color: var(--ink-2);
}

.handoff-steps li::marker {
  color: var(--accent);
  font-weight: 700;
}

.handoff-actions {
  margin-top: 14px;
}

.handoff-actions .btn {
  gap: 8px;
}

/* Gate: tighter vertical rhythm, one-line lane switcher (2026-07-24) */
.gate-wrap {
  margin: 24px auto 40px;
}

.gate-card {
  padding: 26px 30px 22px;
}

.gate-logo {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
}

.gate-card h1 {
  margin-top: 7px;
  margin-bottom: 0;
  font-size: 24px;
}

.gate-card > p {
  max-width: 40ch;
  margin: 8px auto 16px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
}

.gate-hint {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.45;
}

.gate-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.gate-links .text-button {
  font-size: 13px;
}

.gate-links .text-button:not([hidden]) + .text-button:not([hidden]) {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
