@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/Bricolage_Grotesque/BricolageGrotesque-VariableFont_opsz,wdth,wght.ttf') format('truetype');
  font-weight: 400 800;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #090509;
  --panel: rgba(25, 13, 22, 0.78);
  --panel-strong: rgba(32, 16, 26, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 149, 87, 0.34);
  --text: #fff8fb;
  --muted: rgba(255, 248, 251, 0.68);
  --muted-strong: rgba(255, 248, 251, 0.82);
  --pink: #ff3366;
  --orange: #ff6b3d;
  --amber: #ffb45f;
  --bad: #ff7676;
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --max: 1080px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #090509 url('/bg.webp') center / cover fixed no-repeat;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none !important;
}

.bg-grid,
.glow {
  position: fixed;
  pointer-events: none;
}

.bg-grid {
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 10%, rgba(255, 107, 61, 0.1), transparent 36%);
}

.glow {
  z-index: 0;
  border-radius: 999px;
  filter: blur(74px);
}

.glow--one {
  top: -120px;
  right: min(8vw, 90px);
  width: min(460px, 48vw);
  height: min(460px, 48vw);
  background: rgba(255, 51, 102, 0.34);
}

.glow--two {
  bottom: -170px;
  left: -90px;
  width: min(520px, 60vw);
  height: min(520px, 60vw);
  background: rgba(255, 107, 61, 0.28);
}

.tool-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 22px 20px 0;
}

.tool-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px 18px 10px 12px;
  border: 1px solid rgba(255, 107, 61, 0.32);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 107, 61, 0.22), rgba(30, 16, 36, 0.68), rgba(10, 12, 24, 0.58));
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 26px 55px rgba(9, 7, 20, 0.48), 0 0 45px rgba(255, 107, 61, 0.18);
  backdrop-filter: blur(18px);
}

.tool-brand img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: contain;
}

.app {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100vw - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 94px) 0 70px;
}

.studio-card,
.result,
.lead-modal__panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 12% 0%, rgba(255, 107, 61, 0.13), transparent 34%),
    rgba(17, 10, 17, 0.72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(145%);
}

.studio-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  padding: clamp(30px, 6vw, 72px);
  border-radius: var(--radius-lg);
  text-align: center;
}

.kicker,
.panel-kicker,
.upload-zone__label,
.schema-row label {
  margin: 0;
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
.target {
  font-family: 'Bricolage Grotesque', sans-serif;
}

h1 {
  position: relative;
  max-width: 860px;
  margin: 1rem 0 0;
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.intro {
  position: relative;
  max-width: 680px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.72;
}

.scan-form {
  position: relative;
  display: grid;
  gap: 1rem;
  width: min(100%, 820px);
  margin-top: clamp(28px, 4vw, 44px);
}

.upload-zone {
  position: relative;
  display: grid;
  gap: 1rem;
  min-height: 190px;
  align-content: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px dashed rgba(255, 149, 87, 0.42);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 107, 61, 0.14), transparent 46%),
    rgba(255, 255, 255, 0.045);
  color: #fff;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.upload-zone:hover {
  border-color: rgba(255, 149, 87, 0.72);
  transform: translateY(-2px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 107, 61, 0.2), transparent 48%),
    rgba(255, 255, 255, 0.06);
}

.upload-zone__title {
  display: block;
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.upload-zone__hint {
  color: var(--muted);
  font-size: 0.95rem;
}

input[type='file'] {
  display: block;
  width: min(100%, 430px);
  min-height: 54px;
  margin: 0.45rem auto 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.82);
}

.schema-row {
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

input[type='text'],
input[type='email'],
input[type='url'],
select,
textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  background: rgba(0, 0, 0, 0.26);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

input:focus {
  outline: none;
  border-color: rgba(255, 107, 61, 0.54);
  box-shadow: 0 0 0 4px rgba(255, 107, 61, 0.15);
}

select {
  appearance: none;
  padding-right: 3rem;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 248, 251, 0.78) 50%),
    linear-gradient(135deg, rgba(255, 248, 251, 0.78) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) calc(50% - 3px),
    calc(100% - 18px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.schema-row button,
.secondary-button,
.lead-cta-button,
.lead-form__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 820;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 38px rgba(255, 107, 61, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.schema-row button:hover,
.secondary-button:hover,
.lead-cta-button:hover,
.lead-form__button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 24px 46px rgba(255, 107, 61, 0.38);
}

.hidden {
  display: none !important;
}

.result {
  margin-top: 1.15rem;
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--radius-lg);
}

.result-head,
.sql-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.target {
  margin: 0.35rem 0 0;
  color: #fff;
  font-size: clamp(1.65rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.96;
  word-break: break-word;
}

.sql-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: right;
}

.sql-panel {
  margin-top: 1.25rem;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.feedback-card {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  min-height: 116px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 107, 61, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.045);
}

.feedback-card span {
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feedback-card strong {
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.25rem, 2.8vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.feedback-card--wide {
  grid-column: 1 / -1;
}

.feedback-card--summary {
  grid-column: span 2;
}

.feedback-card--summary strong {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1.6;
  color: var(--muted-strong);
}

.feedback-card ul {
  display: grid;
  gap: 0.85rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.feedback-card li {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feedback-card li:first-child {
  padding-top: 0;
  border-top: 0;
}

.feedback-card li strong {
  font-size: 1.12rem;
}

.feedback-card li span,
.feedback-card li small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.sql-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.secondary-button {
  min-height: 44px;
  padding: 0 1.05rem;
  font-size: 0.82rem;
}

.sql-output {
  overflow: auto;
  max-height: min(54vh, 620px);
  margin: 1rem 0 0;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(2, 6, 9, 0.72);
  color: rgba(255, 248, 251, 0.88);
  font-family: 'SFMono-Regular', ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.65;
  white-space: pre;
}

.result-notice {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 118, 118, 0.28);
  border-radius: 18px;
  background: rgba(255, 118, 118, 0.1);
  color: #ffd0d0;
  line-height: 1.55;
}

.result-cta {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 149, 87, 0.2);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 107, 61, 0.13), transparent 46%),
    rgba(255, 255, 255, 0.045);
  text-align: center;
}

.result-cta p {
  max-width: 620px;
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

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

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 6, 0.62);
  backdrop-filter: blur(10px);
}

.lead-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  width: min(100%, 480px);
  padding: clamp(24px, 4vw, 34px);
  border-radius: 30px;
}

.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.25rem;
}

.lead-modal__title {
  margin: 0;
  padding-right: 2rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.lead-modal__copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.lead-form {
  display: grid;
  gap: 0.75rem;
}

.lead-form label {
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Shared compatibility layer for every Koragence tool app. */
.bg-wrapper,
.noise,
.gradient-circle {
  position: fixed;
  pointer-events: none;
}

.bg-wrapper,
.noise {
  inset: 0;
  z-index: 0;
}

.noise {
  opacity: 0.08;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 96px 96px;
}

.gradient-circle {
  border-radius: 999px;
  filter: blur(74px);
}

.circle-1 {
  top: -120px;
  right: min(8vw, 90px);
  width: min(460px, 48vw);
  height: min(460px, 48vw);
  background: rgba(255, 51, 102, 0.34);
}

.circle-2,
.circle-3 {
  bottom: -170px;
  left: -90px;
  width: min(520px, 60vw);
  height: min(520px, 60vw);
  background: rgba(255, 107, 61, 0.28);
}

.tool-header__inner,
.header-pill {
  display: flex;
  justify-content: center;
  width: auto;
}

.header-brand,
.tool-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px 18px 10px 12px;
  border: 1px solid rgba(255, 107, 61, 0.32);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 107, 61, 0.22), rgba(30, 16, 36, 0.68), rgba(10, 12, 24, 0.58));
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 26px 55px rgba(9, 7, 20, 0.48), 0 0 45px rgba(255, 107, 61, 0.18);
  backdrop-filter: blur(18px);
}

.header-brand img,
.tool-brand img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: contain;
}

.tool-page {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100vw - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 94px) 0 70px;
}

.hero-section,
.hero-container,
.tool-form,
.hero-copy {
  display: grid;
  justify-items: center;
}

.tool-form,
.audit-form,
.form-card {
  width: min(100%, 820px);
}

.tool-form-card,
.card.hero,
.hero > .hero-copy + .card,
.form-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  justify-items: center;
  width: 100%;
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 12% 0%, rgba(255, 107, 61, 0.13), transparent 34%),
    rgba(17, 10, 17, 0.72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(145%);
  text-align: center;
}

.card.hero {
  margin: 0 auto;
}

.tool-form-card__title {
  position: relative;
  max-width: 860px;
  margin: 0;
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.tool-form-card__copy,
.subtitle,
.eyebrow,
.note,
.audit-form > label,
.form-card > label {
  display: none;
}

.hero-email,
.row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  width: min(100%, 760px);
  margin-top: clamp(28px, 4vw, 44px);
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.form-card {
  width: min(100%, 820px);
}

.form-card > input,
.form-card > select,
.form-card > button {
  width: min(100%, 760px);
}

.hero-email input,
.row input,
.form-card input,
.form-card select,
input[type='url'],
select {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  background: rgba(0, 0, 0, 0.26);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-email button,
.row button,
.form-card button,
.header-cta,
.sql-action,
.action-button,
.cta-button,
.tool-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.35rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 820;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(255, 107, 61, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.hero-email button:hover,
.row button:hover,
.form-card button:hover,
.header-cta:hover,
.sql-action:hover,
.action-button:hover,
.cta-button:hover,
.tool-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 24px 46px rgba(255, 107, 61, 0.38);
}

.tool-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  width: min(100%, 760px);
  margin-top: 1rem;
}

.tool-pill {
  min-height: 42px;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.tool-pill.is-active {
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 38px rgba(255, 107, 61, 0.24);
}

.file-pill {
  position: relative;
  display: grid;
  gap: 0.75rem;
  width: min(100%, 760px);
  min-height: 190px;
  margin-top: clamp(28px, 4vw, 44px);
  align-content: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px dashed rgba(255, 149, 87, 0.42);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 107, 61, 0.14), transparent 46%),
    rgba(255, 255, 255, 0.045);
  color: #fff;
  text-align: center;
  cursor: pointer;
}

.file-pill__label,
.file-pill__name {
  display: block;
}

.file-pill__label {
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.file-pill__name {
  color: var(--muted);
  font-size: 0.95rem;
}

.file-pill + input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hidden-until-file.is-hidden {
  display: none;
}

.result-shell,
.card:not(.hero) {
  position: relative;
  z-index: 1;
}

.result-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.card:not(.hero) {
  width: min(var(--max), calc(100vw - 36px));
  margin: 1.15rem auto 0;
}

.result-panel,
.result-card,
.score-wrap,
.notice {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 12% 0%, rgba(255, 107, 61, 0.13), transparent 34%),
    rgba(17, 10, 17, 0.72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(145%);
}

.result-stack,
.result-main,
.checks,
.findings {
  display: grid;
  gap: 1rem;
}

.result-topbar,
.result-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.result-label,
.muted,
.panel-kicker {
  margin: 0;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.result-target,
.score,
.score-chip__value {
  margin: 0.35rem 0 0;
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.65rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.96;
  word-break: break-word;
}

.score-chip,
.score-box,
.sql-card,
.tool-grid > *,
.checks > *,
.findings > *,
.finding-card,
.check {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 107, 61, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.045);
}

.score-chip,
.score-box,
.sql-card,
.tool-grid > *,
.checks > *,
.findings > *,
.finding-card,
.check {
  padding: 1rem;
}

.score-chip[data-tone='good'],
.score-box[data-tone='good'],
.finding-card[data-tone='good'],
.check.pass {
  border-color: rgba(120, 255, 194, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(120, 255, 194, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.045);
}

.score-chip[data-tone='mid'],
.score-box[data-tone='mid'],
.finding-card[data-tone='mid'],
.check.warn {
  border-color: rgba(255, 180, 95, 0.24);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 180, 95, 0.13), transparent 44%),
    rgba(255, 255, 255, 0.045);
}

.score-chip[data-tone='bad'],
.score-box[data-tone='bad'],
.finding-card[data-tone='bad'],
.check.fail {
  border-color: rgba(255, 118, 118, 0.28);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 118, 118, 0.15), transparent 44%),
    rgba(255, 255, 255, 0.045);
}

.finding-card,
.check {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.finding-card__eyebrow,
.badge {
  width: fit-content;
  margin: 0;
  padding: 0.35rem 0.62rem;
  border: 1px solid rgba(255, 149, 87, 0.22);
  border-radius: 999px;
  background: rgba(255, 107, 61, 0.12);
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.finding-card__title,
.check h3,
.check h4,
.checks-head h3,
.result-card h2,
.result-head h2 {
  margin: 0;
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.finding-card__copy,
.finding-list,
.check p,
.rec {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.finding-list {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.1rem;
}

.line,
.actions,
.result-actions,
.checks-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
}

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

.inline-link,
.share-url {
  color: #fff;
  text-decoration-color: rgba(255, 107, 61, 0.5);
  text-underline-offset: 0.22em;
}

.inline-link:hover,
.share-url:hover {
  color: var(--amber);
}

.checks-wrap {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.result-headline {
  margin: 0.35rem 0 0;
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.result-copy,
.summary,
.sql-card__note,
.verdict-detail,
.notice,
.check-impact,
.check-details p,
.finding-block p,
.finding-block li,
.details,
.recommendation,
.empty,
.status-detail,
.verdict-reason,
.share-url {
  color: var(--muted);
  line-height: 1.65;
}

.meta-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.meta-card__label {
  margin: 0;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.meta-card__value {
  margin: 0;
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
  word-break: break-word;
}

.section-stack {
  display: grid;
  gap: 0.85rem;
}

.section-stack__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.attribution-copy,
.schema-row__note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.viewer-shell {
  position: relative;
  overflow: hidden;
  min-height: min(70vh, 720px);
  margin-top: 1rem;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 107, 61, 0.08), transparent 38%),
    rgba(5, 7, 12, 0.62);
}

.viewer-frame {
  display: block;
  width: 100%;
  min-height: min(66vh, 780px);
  border: 0;
  border-radius: 20px;
  background: rgba(8, 10, 16, 0.82);
}

.locked-reader {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.locked-reader__page {
  width: min(100%, 1020px);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.locked-reader__canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
}

.locked-docx {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(14px, 2.2vw, 24px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.locked-docx,
.locked-docx .docx {
  color: #111318;
}

.locked-text__content {
  width: min(100%, 980px);
  margin: 0;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(5, 7, 12, 0.84);
  color: rgba(255, 248, 251, 0.9);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'SFMono-Regular', ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.72;
}

.locked-watermark {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  pointer-events: none;
}

.locked-watermark__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.18);
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-24deg);
  user-select: none;
}

.locked-screen-overlay {
  position: fixed;
  inset: auto 0 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 0 18px;
  pointer-events: none;
}

.locked-screen-overlay span {
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(255, 107, 61, 0.16);
  border-radius: 999px;
  background: rgba(9, 5, 9, 0.48);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}

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

.sql-card__header,
.sql-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.share-url {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .tool-header {
    padding-top: 14px;
  }

  .tool-brand,
  .header-brand {
    min-height: 58px;
  }

  .app,
  .tool-page,
  .card:not(.hero) {
    width: min(100vw - 20px, 100%);
    padding-top: 34px;
  }

  .studio-card,
  .result,
  .tool-form-card,
  .card.hero,
  .result-panel {
    border-radius: 26px;
  }

  .schema-row,
  .hero-email,
  .row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .schema-row button,
  .hero-email button,
  .row button,
  .secondary-button,
  .lead-cta-button,
  .lead-form__button,
  .header-cta,
  .sql-action {
    width: 100%;
  }

  .result-head,
  .result-topbar,
  .sql-head,
  .sql-actions,
  .sql-card__header {
    flex-direction: column;
    align-items: stretch;
  }

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

  .feedback-card--summary {
    grid-column: auto;
  }

  .sql-note {
    max-width: none;
    text-align: left;
  }

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

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

  .viewer-frame,
  .viewer-shell {
    min-height: 56vh;
  }
}
