:root {
  color-scheme: dark;
  --bg: #070a0f;
  --bg-2: #0b1119;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.105);
  --panel-light: #f5f3ea;
  --ink: #f8f5ed;
  --ink-dark: #10141b;
  --muted: rgba(248, 245, 237, 0.68);
  --muted-dark: rgba(16, 20, 27, 0.68);
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(16, 20, 27, 0.12);
  --accent: #d7ff65;
  --accent-2: #ffb85c;
  --accent-3: #6ce4ff;
  --danger: #ff7676;
  --success: #a7f071;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(215, 255, 101, 0.16), transparent 30%),
    radial-gradient(circle at 83% 0%, rgba(108, 228, 255, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg), #06070a 58%, #090c12);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
}

body::selection {
  color: #07100f;
  background: var(--accent);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

.ambient {
  position: fixed;
  width: 42vw;
  aspect-ratio: 1;
  filter: blur(80px);
  opacity: 0.24;
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  left: -14vw;
  top: 20vh;
  background: var(--accent);
}

.ambient-two {
  right: -20vw;
  bottom: -10vh;
  background: #58d3ff;
}

.site-shell {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(7, 10, 15, 0.68);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 18px;
  z-index: 20;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: fit-content;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #07100f;
  background: linear-gradient(135deg, var(--accent), #fff6bc);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.brand-mark strong,
.brand-mark em {
  display: block;
  line-height: 1.05;
}

.brand-mark strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand-mark em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topnav a,
.link-pill,
.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 10px 14px;
  font-size: 0.86rem;
  transition: 180ms ease;
}

.topnav a:hover,
.link-pill:hover {
  color: var(--ink);
  border-color: rgba(215, 255, 101, 0.5);
  background: rgba(215, 255, 101, 0.08);
}

.app-root {
  min-height: calc(100vh - 110px);
  padding: 42px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.72fr);
  gap: 22px;
  align-items: stretch;
}

.hero-copy,
.panel,
.report-hero,
.card,
.loop-card,
.table-wrap,
.methodology,
.form-shell,
.report-nav-panel,
.toast {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.elevated {
  box-shadow: var(--shadow);
}

.hero-copy {
  min-height: 620px;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -10% -34% 35%;
  height: 360px;
  background: radial-gradient(circle, rgba(215, 255, 101, 0.26), transparent 60%);
  pointer-events: none;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy h1,
.report-hero h1,
.loading-state h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
  max-width: 820px;
}

.hero-copy h1 span,
.report-hero h1 span {
  color: var(--accent);
}

.lede {
  max-width: 740px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions,
.report-actions,
.card-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  min-height: 48px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 255, 101, 0.52);
  background: rgba(255, 255, 255, 0.12);
}

.btn.primary {
  color: #08100f;
  background: linear-gradient(135deg, var(--accent), #fff5b5);
  border-color: transparent;
  font-weight: 900;
}

.btn.ghost {
  background: transparent;
}

.btn.small {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 0.86rem;
}

.hero-stat-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 38px;
}

.mini-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.mini-stat strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.06em;
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.86rem;
}

.form-shell {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.form-shell h2 {
  font-size: 1.42rem;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.form-shell .muted {
  font-size: 0.94rem;
}

.analysis-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.field span {
  color: var(--muted);
  font-size: 0.78rem;
}

input,
textarea,
select {
  width: 100%;
  color: var(--ink);
  background: rgba(2, 5, 10, 0.44);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(215, 255, 101, 0.78);
  box-shadow: 0 0 0 4px rgba(215, 255, 101, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.muted {
  color: var(--muted);
}

.subtle {
  color: rgba(248, 245, 237, 0.52);
}

.report-shell {
  display: grid;
  gap: 22px;
}

.report-hero {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 54px);
  position: relative;
  overflow: hidden;
}

.report-hero.light,
.section-light {
  color: var(--ink-dark);
  background:
    radial-gradient(circle at 82% 10%, rgba(215, 255, 101, 0.42), transparent 30%),
    linear-gradient(145deg, #f8f4e9, #ece7d8);
  border-color: rgba(16, 20, 27, 0.1);
}

.report-hero.light .muted,
.section-light .muted {
  color: var(--muted-dark);
}

.report-hero.light .eyebrow,
.section-light .eyebrow {
  color: #587300;
}

.report-hero.light .btn.ghost {
  color: var(--ink-dark);
  border-color: rgba(16, 20, 27, 0.2);
}

.report-hero p {
  max-width: 820px;
}

.meta-row,
.badge-row,
.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge {
  padding: 8px 11px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.badge.accent {
  color: #09110f;
  background: var(--accent);
  border-color: transparent;
}

.badge.warn {
  color: #1d1201;
  background: var(--accent-2);
  border-color: transparent;
}

.badge.info {
  color: #07100f;
  background: var(--accent-3);
  border-color: transparent;
}

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

.report-nav-panel {
  border-radius: var(--radius-lg);
  padding: 18px;
  position: sticky;
  top: 100px;
}

.report-nav-panel h3 {
  font-size: 0.96rem;
  margin-bottom: 12px;
}

.side-link {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 10px 11px;
  margin-bottom: 6px;
  transition: 160ms ease;
}

.side-link:hover,
.side-link.active {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.hub-grid,
.kpi-grid,
.insight-grid,
.deep-grid {
  display: grid;
  gap: 14px;
}

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

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

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

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

.card,
.loop-card,
.methodology {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.card.light,
.loop-card.light,
.methodology.light {
  color: var(--ink-dark);
  background: var(--panel-light);
  border-color: rgba(16, 20, 27, 0.1);
}

.card.light .muted,
.loop-card.light .muted,
.methodology.light .muted {
  color: var(--muted-dark);
}

.card h3,
.loop-card h3 {
  margin-bottom: 10px;
  letter-spacing: -0.035em;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.kpi-card {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kpi-value {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 950;
  letter-spacing: -0.075em;
}

.kpi-card.light .kpi-label {
  color: var(--muted-dark);
}

.report-section {
  display: grid;
  gap: 16px;
  margin: 22px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-heading p {
  max-width: 520px;
  margin-bottom: 0;
}

.table-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--accent);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

td strong {
  display: block;
}

.bar-track {
  width: 100%;
  min-width: 120px;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  border-radius: inherit;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(215, 255, 101, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.loop-wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}

.loop-card {
  min-height: 210px;
  position: relative;
  overflow: hidden;
}

.loop-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #08100f;
  background: var(--accent);
  font-weight: 950;
  margin-bottom: 32px;
}

.loop-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -40px auto;
  width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(215, 255, 101, 0.16);
}

.ordered-list {
  counter-reset: item;
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ordered-list li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 18px;
}

.ordered-list li::before {
  content: counter(item, decimal-leading-zero);
  color: #08100f;
  background: var(--accent);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-weight: 950;
  font-size: 0.82rem;
}

.methodology {
  display: grid;
  gap: 12px;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.source-list a {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 0;
  color: rgba(248, 245, 237, 0.48);
  font-size: 0.86rem;
}

.error-box,
.empty-state {
  border: 1px solid rgba(255, 118, 118, 0.35);
  background: rgba(255, 118, 118, 0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.empty-state {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.loading-state {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 7vw, 68px);
  min-height: 580px;
  display: grid;
  place-items: center;
  text-align: center;
}

.loader-orbit {
  width: 112px;
  height: 112px;
  position: relative;
  margin: 0 auto 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  animation: rotate 5s linear infinite;
}

.loader-orbit span {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 999px;
}

.loader-orbit span:nth-child(1) {
  top: -9px;
  left: 47px;
}

.loader-orbit span:nth-child(2) {
  right: 7px;
  bottom: 10px;
  background: var(--accent-3);
}

.loader-orbit span:nth-child(3) {
  left: 3px;
  bottom: 18px;
  background: var(--accent-2);
}

.loading-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.loading-steps span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--ink);
  display: none;
}

.toast.visible {
  display: block;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .report-layout,
  .hub-grid,
  .kpi-grid,
  .insight-grid,
  .deep-grid,
  .loop-wrap {
    grid-template-columns: 1fr;
  }

  .report-nav-panel {
    position: static;
  }

  .hero-copy {
    min-height: 540px;
  }
}

@media (max-width: 700px) {
  .site-shell {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
    border-radius: 24px;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-copy h1,
  .report-hero h1,
  .loading-state h1 {
    font-size: clamp(2.8rem, 18vw, 4.8rem);
  }

  .hero-stat-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 13px 12px;
  }

  .table-wrap {
    overflow-x: auto;
  }

  table {
    min-width: 680px;
  }

  .footer-note,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* AdPrompt light intelligence theme */
:root {
  color-scheme: light;
  --bg: #eaf6ff;
  --bg-2: #edf2ff;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --panel-light: rgba(255, 255, 255, 0.88);
  --ink: #102033;
  --ink-dark: #102033;
  --muted: #53647a;
  --muted-dark: #53647a;
  --line: rgba(28, 54, 86, 0.13);
  --line-dark: rgba(28, 54, 86, 0.13);
  --accent: #12b9ce;
  --accent-2: #16c783;
  --accent-3: #6757e8;
  --purple: #6f2b8f;
  --sky: #cfefff;
  --shadow: 0 28px 90px rgba(51, 84, 122, 0.18);
  --max: 1420px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 11% 14%, rgba(116, 211, 255, 0.34), transparent 34%),
    radial-gradient(circle at 82% 7%, rgba(132, 113, 255, 0.18), transparent 36%),
    radial-gradient(circle at 74% 82%, rgba(255, 255, 255, 0.62), transparent 36%),
    linear-gradient(120deg, #e5f7ff 0%, #edf6ff 44%, #e3e9ff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 70px 0 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 79, 116, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 79, 116, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.96), rgba(0,0,0,.42));
}

body::selection {
  color: #fff;
  background: var(--accent-3);
}

.ambient {
  opacity: 0.2;
  filter: blur(96px);
}

.ambient-one {
  left: -8vw;
  top: 16vh;
  background: #67d9ff;
}

.ambient-two {
  right: -12vw;
  bottom: 0;
  background: #806cff;
}

.site-shell {
  max-width: none;
  padding: 0;
}

.topbar {
  top: 0;
  border: 0;
  border-bottom: 1px solid rgba(35, 57, 83, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 38px rgba(42, 70, 105, 0.08);
  padding: 10px max(22px, calc((100vw - var(--max)) / 2 + 24px));
  backdrop-filter: blur(18px);
}

.brand-mark {
  color: var(--ink);
}

.brand-logo-frame {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  flex: 0 0 auto;
}

.brand-logo-frame img {
  display: block;
  width: 44px;
  height: 44px;
}

.brand-icon {
  color: white;
  background: linear-gradient(135deg, #9e5bff, #45156c);
}

.brand-mark strong {
  color: var(--ink);
  font-weight: 950;
  font-size: 1.02rem;
}

.brand-mark em {
  color: var(--muted);
  letter-spacing: 0.12em;
}

.topnav a,
.link-pill,
.badge {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.54);
  border-color: rgba(28, 54, 86, 0.12);
  font-weight: 800;
}

.topnav a:hover,
.link-pill:hover {
  color: var(--ink);
  border-color: rgba(18, 185, 206, 0.32);
  background: rgba(255, 255, 255, 0.86);
}

.app-root {
  max-width: var(--max);
  min-height: calc(100vh - 70px);
  margin: 0 auto;
  padding: clamp(60px, 8vh, 96px) 24px 76px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, 0.82fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.hero-builder {
  min-height: calc(100vh - 170px);
}

.hero-copy,
.panel,
.report-hero,
.card,
.loop-card,
.table-wrap,
.methodology,
.form-shell,
.report-nav-panel,
.toast {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58));
  box-shadow: var(--shadow);
  color: var(--ink);
}

.hero-copy {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
  justify-content: center;
}

.hero-copy::after {
  display: none;
}

.hero-pills {
  margin-bottom: 28px;
}

.badge {
  padding: 10px 14px;
  color: #25364e;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(27, 56, 85, 0.12);
  box-shadow: 0 8px 24px rgba(45, 75, 105, 0.06);
}

.badge.accent {
  color: #075d70;
  background: rgba(151, 229, 255, 0.58);
  border-color: rgba(18, 185, 206, 0.26);
}

.badge.warn {
  color: #5d3a00;
  background: #ffe3ae;
}

.badge.info {
  color: #163654;
  background: #dfe8ff;
}

.eyebrow {
  color: #5e6d83;
  letter-spacing: 0.18em;
  font-weight: 950;
}

.hero-main-copy {
  max-width: 900px;
}

.hero-copy h1,
.report-hero h1,
.loading-state h1 {
  font-family: var(--font);
  color: var(--ink);
  font-weight: 950;
  font-size: clamp(3.8rem, 8vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
  max-width: 980px;
}

.report-hero h1 {
  font-size: clamp(3rem, 6vw, 6.2rem);
}

.hero-copy h1 .gradient-text,
.report-hero h1 span {
  color: transparent;
  background: linear-gradient(105deg, #0e3147 0%, #057e9a 34%, #2762d0 65%, #6a55e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lede {
  color: #344a62;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.55;
  max-width: 780px;
}

.hero-url-form {
  max-width: 900px;
  margin-top: 30px;
  padding: 14px;
  border: 1px solid rgba(28, 54, 86, 0.13);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 70px rgba(47, 87, 125, 0.18);
  backdrop-filter: blur(18px);
}

.primary-url-field {
  gap: 8px;
}

.primary-url-field label {
  padding-left: 6px;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.url-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

input,
textarea,
select {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(28, 54, 86, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.primary-url-field input {
  min-height: 58px;
  border-radius: 999px;
  padding: 16px 20px;
  font-size: 1.02rem;
  background: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(18, 185, 206, 0.75);
  box-shadow: 0 0 0 4px rgba(18, 185, 206, 0.14);
}

.btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(28, 54, 86, 0.13);
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(42, 70, 105, 0.09);
}

.btn:hover {
  border-color: rgba(18, 185, 206, 0.34);
  background: #ffffff;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0fb7d1 0%, #16c783 100%);
  border-color: transparent;
  box-shadow: 0 18px 36px rgba(18, 185, 206, 0.25);
}

.btn.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.url-submit-row .btn {
  min-width: 150px;
  min-height: 58px;
}

.advanced-fields {
  margin-top: 2px;
  border-top: 1px solid rgba(28, 54, 86, 0.1);
  padding-top: 10px;
}

.advanced-fields summary {
  cursor: pointer;
  color: #25364e;
  font-size: 0.9rem;
  font-weight: 900;
  list-style: none;
  padding: 8px 8px 6px;
}

.advanced-fields summary::-webkit-details-marker {
  display: none;
}

.advanced-fields summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

.advanced-fields[open] summary::after {
  content: "–";
}

.advanced-fields-grid {
  display: grid;
  gap: 12px;
  padding: 4px 6px 8px;
}

.field label {
  color: var(--ink);
}

.field span,
.muted,
.subtle,
.source-list a,
.kpi-label {
  color: var(--muted);
}

.below-form-actions {
  margin-top: 18px;
}

.hero-brief {
  border-radius: 34px;
  padding: clamp(24px, 3vw, 36px);
  min-height: 560px;
  align-self: center;
}

.hero-brief h2 {
  max-width: 520px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin-bottom: 22px;
}

.brief-table {
  display: grid;
  gap: 0;
  border: 1px solid rgba(28, 54, 86, 0.12);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.64);
  margin: 22px 0;
}

.brief-table div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(28, 54, 86, 0.09);
}

.brief-table div:last-child {
  border-bottom: 0;
}

.brief-table span {
  color: var(--muted);
}

.brief-table strong {
  color: var(--ink);
  text-align: right;
}

.hero-brief .hero-stat-row {
  grid-template-columns: 1fr;
  margin-top: 24px;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(28, 54, 86, 0.12);
}

.mini-stat strong {
  color: transparent;
  background: linear-gradient(105deg, #0c6378, #6757e8);
  -webkit-background-clip: text;
  background-clip: text;
}

.report-shell {
  color: var(--ink);
}

.report-hero {
  background:
    radial-gradient(circle at 80% 5%, rgba(116, 211, 255, 0.34), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58));
}

.report-hero.light,
.section-light {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 10%, rgba(116, 211, 255, 0.4), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(231, 244, 255, 0.76));
  border-color: var(--line);
}

.report-hero.light .muted,
.section-light .muted,
.card.light .muted,
.loop-card.light .muted,
.methodology.light .muted {
  color: var(--muted);
}

.report-hero.light .eyebrow,
.section-light .eyebrow {
  color: #5e6d83;
}

.card.light,
.loop-card.light,
.methodology.light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
}

.card h3,
.loop-card h3,
.section-heading h2 {
  color: var(--ink);
}

.section-heading h2 {
  font-family: var(--font);
  font-weight: 950;
  letter-spacing: -0.065em;
}

th {
  color: #08758a;
}

td,
th {
  border-bottom-color: rgba(28, 54, 86, 0.11);
}

.bar-track {
  background: rgba(35, 60, 88, 0.09);
}

.bar-fill {
  background: linear-gradient(90deg, #0fb7d1, #6757e8);
}

.score-pill,
.loop-number,
.ordered-list li::before {
  color: #ffffff;
  background: linear-gradient(135deg, #0fb7d1, #6757e8);
}

.score-pill {
  box-shadow: 0 10px 22px rgba(24, 86, 168, 0.12);
}

.ordered-list li {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--line);
}

.error-box {
  color: #5b1722;
  background: rgba(255, 118, 118, 0.12);
  border-color: rgba(255, 118, 118, 0.32);
}

.empty-state {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.footer-note {
  color: rgba(16, 32, 51, 0.54);
}

.loading-state {
  color: var(--ink);
}

.loader-orbit,
.loading-steps span {
  border-color: var(--line);
}

.loader-orbit span {
  background: var(--accent);
}

.toast {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

@media (max-width: 980px) {
  .app-root {
    padding-top: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-builder {
    min-height: auto;
  }

  .hero-brief {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .topbar {
    padding: 10px 14px;
  }

  .app-root {
    padding: 34px 14px 56px;
  }

  .hero-copy h1,
  .report-hero h1,
  .loading-state h1 {
    font-size: clamp(3rem, 16vw, 5.4rem);
  }

  .url-submit-row,
  .brief-table div {
    grid-template-columns: 1fr;
  }

  .brief-table strong {
    text-align: left;
  }

  .url-submit-row .btn {
    width: 100%;
  }

  .hero-url-form {
    border-radius: 24px;
  }
}


/* --------------------------------------------------------------------------
   AdPrompt Intelligence refreshed light theme
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  --bg: #eef7ff;
  --bg-2: #dfeaff;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --panel-light: #ffffff;
  --ink: #102039;
  --ink-dark: #102039;
  --muted: rgba(30, 49, 75, 0.68);
  --muted-dark: rgba(30, 49, 75, 0.68);
  --line: rgba(22, 64, 102, 0.14);
  --line-dark: rgba(22, 64, 102, 0.14);
  --accent: #06b6d4;
  --accent-2: #14c98f;
  --accent-3: #6262f1;
  --danger: #d94848;
  --success: #159462;
  --shadow: 0 24px 80px rgba(42, 79, 124, 0.18);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1240px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background:
    linear-gradient(rgba(67, 127, 184, 0.055) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(67, 127, 184, 0.055) 1px, transparent 1px) 0 0 / 56px 56px,
    radial-gradient(circle at 14% 16%, rgba(0, 194, 255, 0.22), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(98, 98, 241, 0.18), transparent 30%),
    radial-gradient(circle at 80% 88%, rgba(20, 201, 143, 0.14), transparent 28%),
    linear-gradient(135deg, #f7fcff 0%, #dff1ff 44%, #e6e9ff 100%);
  color: var(--ink);
}

body::selection {
  color: #ffffff;
  background: var(--accent-3);
}

.ambient {
  opacity: 0.2;
  filter: blur(95px);
}

.ambient-one {
  background: #00c2ff;
}

.ambient-two {
  background: #6262f1;
}

.site-shell {
  padding: 12px 24px 32px;
}

.topbar {
  top: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(20, 66, 110, 0.11);
  box-shadow: 0 16px 50px rgba(28, 61, 102, 0.12);
  backdrop-filter: blur(22px);
}

.brand-logo {
  display: block;
  width: min(260px, 48vw);
  height: auto;
}

.brand-icon {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

.brand-mark strong {
  color: var(--ink);
}

.brand-mark em {
  color: var(--muted);
}

.topnav a,
.link-pill,
.badge {
  color: var(--muted);
  border-color: rgba(18, 55, 92, 0.12);
  background: rgba(255, 255, 255, 0.48);
}

.topnav a:hover,
.link-pill:hover {
  color: var(--ink);
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.08);
}

.app-root {
  padding: 56px 0 70px;
}

.hero-grid-alt {
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.78fr);
  align-items: start;
  gap: 34px;
}

.hero-copy,
.panel,
.report-hero,
.card,
.loop-card,
.table-wrap,
.methodology,
.form-shell,
.report-nav-panel,
.toast {
  color: var(--ink);
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 252, 255, 0.76));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy-alt {
  min-height: 590px;
  padding: clamp(24px, 4.6vw, 48px) 0 clamp(20px, 4vw, 34px);
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-copy-alt::after {
  inset: auto -12% -20% 42%;
  height: 380px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 60%);
}

.hero-copy-alt .badge-row {
  margin-bottom: 28px;
}

.badge {
  border-radius: 999px;
}

.badge-strong,
.badge.accent {
  color: #064457;
  border-color: rgba(6, 182, 212, 0.18);
  background: rgba(6, 182, 212, 0.14);
}

.badge.warn {
  color: #5c3d00;
  background: #ffe8b6;
}

.badge.info {
  color: #ffffff;
  background: var(--accent-3);
}

.eyebrow {
  color: #086f8b;
}

.hero-copy-alt h1 {
  margin-bottom: 28px;
  max-width: 870px;
  font-family: var(--font);
  font-size: clamp(3.45rem, 7.8vw, 7.15rem);
  line-height: 0.93;
  letter-spacing: -0.085em;
  background: linear-gradient(125deg, #0d2540 0%, #037a9b 38%, #2759ce 70%, #6262f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.report-hero h1,
.loading-state h1 {
  font-family: var(--font);
}

.lede {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.btn {
  border-color: rgba(18, 55, 92, 0.14);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(43, 87, 128, 0.08);
}

.btn:hover {
  border-color: rgba(6, 182, 212, 0.34);
  background: rgba(255, 255, 255, 0.9);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #04b4d1 0%, #14c98f 100%);
  border-color: transparent;
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.22);
}

.btn.ghost,
.btn.soft {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
}

.btn.soft {
  color: #085c76;
  background: rgba(6, 182, 212, 0.1);
}

.hero-stat-row {
  max-width: 850px;
}

.mini-stat {
  border-color: rgba(18, 55, 92, 0.12);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 34px rgba(43, 87, 128, 0.08);
}

.mini-stat strong {
  color: #086f8b;
}

.mini-stat span {
  color: var(--muted);
}

.hero-form-shell {
  position: sticky;
  top: 104px;
  padding: clamp(22px, 3vw, 30px);
  background:
    radial-gradient(circle at 88% 0%, rgba(98, 98, 241, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,252,255,0.92));
  border-color: rgba(22, 64, 102, 0.12);
}

.form-topline,
.form-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #31506d;
  font-size: 0.82rem;
  font-weight: 850;
}

.form-topline {
  margin-bottom: 18px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.12);
}

.form-shell h2 {
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  letter-spacing: -0.06em;
}

.form-shell .muted,
.field span {
  color: var(--muted);
}

.hero-analysis-form {
  gap: 14px;
}

.field label {
  color: #18324d;
}

.field-hero-url {
  gap: 10px;
}

.field-hero-url label {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.url-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.url-submit-row .btn {
  min-height: 58px;
  white-space: nowrap;
  padding-inline: 20px;
}

input,
textarea,
select {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(22, 64, 102, 0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.field-hero-url input {
  min-height: 58px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 750;
}

input::placeholder,
textarea::placeholder {
  color: rgba(54, 78, 104, 0.46);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(6, 182, 212, 0.78);
  box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.12);
}

.advanced-fields {
  border: 1px solid rgba(22, 64, 102, 0.12);
  border-radius: 20px;
  background: rgba(238, 247, 255, 0.7);
  overflow: hidden;
}

.advanced-fields summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  color: #18324d;
  font-weight: 900;
}

.advanced-fields summary::-webkit-details-marker {
  display: none;
}

.advanced-fields summary::after {
  content: "+";
  float: right;
  color: #086f8b;
  font-weight: 950;
}

.advanced-fields[open] summary::after {
  content: "−";
}

.advanced-fields-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.form-proof-row {
  margin-top: 16px;
}

.form-proof-row span {
  border: 1px solid rgba(22, 64, 102, 0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.68);
  padding: 7px 9px;
}

.report-hero.light,
.section-light {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(98, 98, 241, 0.16), transparent 30%),
    radial-gradient(circle at 18% 10%, rgba(6, 182, 212, 0.16), transparent 28%),
    linear-gradient(145deg, #ffffff, #edf8ff);
  border-color: var(--line);
}

.report-hero.light .eyebrow,
.section-light .eyebrow {
  color: #086f8b;
}

.report-hero.light .btn.ghost {
  color: var(--ink);
  border-color: rgba(22, 64, 102, 0.14);
}

.card.light,
.loop-card.light,
.methodology.light {
  color: var(--ink);
  background: linear-gradient(145deg, #ffffff, #f7fbff);
  border-color: var(--line);
}

.card.light .muted,
.loop-card.light .muted,
.methodology.light .muted,
.kpi-card.light .kpi-label {
  color: var(--muted);
}

.section-heading h2 {
  font-family: var(--font);
  color: var(--ink);
}

th {
  color: #086f8b;
}

th,
td {
  border-bottom-color: rgba(22, 64, 102, 0.11);
}

.bar-track {
  background: rgba(22, 64, 102, 0.09);
}

.bar-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.score-pill {
  background: rgba(6, 182, 212, 0.11);
  color: #086f8b;
}

.loop-number,
.ordered-list li::before {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

.loop-card::after {
  background: rgba(6, 182, 212, 0.13);
}

.ordered-list li,
.empty-state {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.side-link:hover,
.side-link.active {
  color: var(--ink);
  border-color: rgba(6, 182, 212, 0.22);
  background: rgba(6, 182, 212, 0.08);
}

.source-list a {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
}

.footer-note {
  color: rgba(30, 49, 75, 0.56);
}

.error-box {
  color: #7a1f1f;
  background: rgba(255, 118, 118, 0.12);
}

.loading-state {
  background:
    radial-gradient(circle at 50% 18%, rgba(6, 182, 212, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,0.94), rgba(247,252,255,0.84));
}

.loading-steps span {
  color: var(--muted);
  background: rgba(255,255,255,0.62);
}

.toast {
  background: rgba(255,255,255,0.94);
  color: var(--ink);
}

@media (max-width: 980px) {
  .hero-grid-alt {
    grid-template-columns: 1fr;
  }

  .hero-form-shell {
    position: static;
  }

  .hero-copy-alt {
    min-height: auto;
    padding-bottom: 12px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 10px 14px 26px;
  }

  .topbar {
    border-radius: 22px;
  }

  .brand-logo {
    width: min(230px, 72vw);
  }

  .app-root {
    padding-top: 32px;
  }

  .hero-copy-alt h1 {
    font-size: clamp(3.1rem, 16vw, 4.9rem);
  }

  .url-submit-row {
    grid-template-columns: 1fr;
  }

  .url-submit-row .btn {
    width: 100%;
  }

  .hero-form-shell {
    padding: 20px;
  }
}


/* Final AdPrompt Intelligence visual pass */
:root {
  --bg: #eef7ff;
  --bg-2: #e5ecff;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --panel-light: #ffffff;
  --ink: #102039;
  --ink-dark: #102039;
  --muted: rgba(30, 49, 75, 0.68);
  --muted-dark: rgba(30, 49, 75, 0.68);
  --line: rgba(22, 64, 102, 0.14);
  --line-dark: rgba(22, 64, 102, 0.14);
  --accent: #06b6d4;
  --accent-2: #14c98f;
  --accent-3: #6262f1;
  --shadow: 0 24px 80px rgba(42, 79, 124, 0.18);
  --max: 1420px;
}

body {
  color: var(--ink);
  background:
    linear-gradient(rgba(67, 127, 184, 0.052) 1px, transparent 1px) 0 70px / 56px 56px,
    linear-gradient(90deg, rgba(67, 127, 184, 0.052) 1px, transparent 1px) 0 70px / 56px 56px,
    radial-gradient(circle at 14% 16%, rgba(0, 194, 255, 0.22), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(98, 98, 241, 0.18), transparent 30%),
    radial-gradient(circle at 80% 88%, rgba(20, 201, 143, 0.13), transparent 28%),
    linear-gradient(135deg, #f7fcff 0%, #dff1ff 44%, #e6e9ff 100%);
}

body::before {
  display: none;
}

.site-shell {
  max-width: none;
  padding: 0;
}

.topbar {
  top: 0;
  margin: 0;
  width: 100%;
  min-height: 70px;
  border: 0;
  border-bottom: 1px solid rgba(20, 66, 110, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 36px rgba(28, 61, 102, 0.08);
  padding: 10px max(22px, calc((100vw - var(--max)) / 2 + 24px));
}

.brand-logo {
  display: block;
  width: min(310px, 64vw);
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.topnav a {
  color: #66758a;
  border: 0;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 10px 11px;
}

.topnav a:hover {
  color: var(--ink);
  background: rgba(6, 182, 212, 0.08);
}

.app-root {
  max-width: var(--max);
  min-height: calc(100vh - 70px);
  margin: 0 auto;
  padding: clamp(62px, 8vh, 96px) 24px 76px;
}

.hero-grid-alt {
  min-height: calc(100vh - 170px);
  grid-template-columns: minmax(0, 1.1fr) minmax(430px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 5.2vw, 76px);
}

.hero-copy-alt {
  min-height: auto;
  padding: clamp(24px, 4vw, 50px) 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.hero-copy-alt::after {
  display: none;
}

.hero-copy-alt .badge-row {
  margin-bottom: 28px;
}

.badge,
.badge-strong {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 64, 102, 0.12);
  box-shadow: 0 8px 24px rgba(43, 87, 128, 0.06);
  color: #2d415a;
}

.badge-strong,
.badge.accent {
  color: #064457;
  border-color: rgba(6, 182, 212, 0.2);
  background: rgba(6, 182, 212, 0.16);
}

.hero-copy-alt h1 {
  max-width: 980px;
  margin: 0 0 26px;
  font-family: var(--font);
  font-size: clamp(3.8rem, 8vw, 7.9rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.09em;
  background: linear-gradient(118deg, #0d2540 0%, #057d99 36%, #2861cf 68%, #6357eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy-alt .lede {
  max-width: 820px;
  color: #344a62;
  font-size: clamp(1.12rem, 1.9vw, 1.48rem);
  line-height: 1.56;
}

.hero-copy-alt .hero-actions {
  margin-top: 28px;
}

.hero-copy-alt .hero-stat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
  margin-top: 42px;
}

.hero-form-shell {
  justify-self: end;
  width: 100%;
  max-width: 560px;
  position: sticky;
  top: 94px;
  border-radius: 34px;
  padding: clamp(26px, 3vw, 38px);
  background:
    radial-gradient(circle at 88% 0%, rgba(98, 98, 241, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.92));
  border: 1px solid rgba(22, 64, 102, 0.12);
  box-shadow: 0 28px 86px rgba(42, 79, 124, 0.18);
}

.form-topline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.09);
  padding: 8px 11px;
  color: #075c72;
  font-size: 0.82rem;
  font-weight: 950;
}

.live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.12);
}

.hero-form-shell h2 {
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  margin-bottom: 12px;
}

.hero-analysis-form {
  margin-top: 22px;
  gap: 14px;
}

.field-hero-url label {
  padding-left: 6px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.url-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.field-hero-url input {
  min-height: 60px;
  border-radius: 999px;
  padding: 0 20px;
  background: #ffffff;
  border-color: rgba(22, 64, 102, 0.15);
  font-size: 1.02rem;
  font-weight: 800;
}

.url-submit-row .btn {
  min-height: 60px;
  white-space: nowrap;
  padding-inline: 22px;
}

.advanced-fields {
  border: 1px solid rgba(22, 64, 102, 0.12);
  border-radius: 22px;
  background: rgba(238, 247, 255, 0.74);
  overflow: hidden;
}

.advanced-fields summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  color: #18324d;
  font-weight: 950;
}

.advanced-fields-body,
.advanced-fields-grid {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.form-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.form-proof-row span {
  border: 1px solid rgba(22, 64, 102, 0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  color: var(--muted);
  padding: 7px 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.report-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.report-nav-panel,
.card,
.loop-card,
.methodology,
.table-wrap,
.report-hero {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 252, 255, 0.76));
  border-color: var(--line);
  color: var(--ink);
}

@media (max-width: 980px) {
  .app-root {
    padding-top: 48px;
  }

  .hero-grid-alt,
  .report-layout {
    grid-template-columns: 1fr;
  }

  .hero-form-shell {
    max-width: none;
    justify-self: stretch;
    position: static;
  }

  .hero-copy-alt {
    padding-bottom: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 10px 14px;
  }

  .brand-logo {
    width: min(300px, 88vw);
    height: 46px;
  }

  .app-root {
    padding: 34px 14px 56px;
  }

  .hero-copy-alt h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .hero-copy-alt .hero-stat-row,
  .url-submit-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .url-submit-row .btn {
    width: 100%;
  }

  .hero-form-shell {
    border-radius: 26px;
    padding: 20px;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: white;
    color: #111;
  }

  .ambient,
  .topbar,
  .report-nav-panel,
  .hero-actions,
  .report-actions,
  .card-actions,
  .inline-actions,
  .toast {
    display: none !important;
  }

  .site-shell {
    max-width: none;
    padding: 0;
  }

  .app-root {
    padding: 0;
  }

  .hero-copy,
  .panel,
  .report-hero,
  .card,
  .loop-card,
  .table-wrap,
  .methodology,
  .form-shell,
  .report-nav-panel {
    box-shadow: none !important;
    background: white !important;
    color: #111 !important;
    border-color: #ddd !important;
    break-inside: avoid;
  }

  .report-layout,
  .hub-grid,
  .kpi-grid,
  .insight-grid,
  .deep-grid,
  .loop-wrap {
    display: block;
  }

  .card,
  .loop-card,
  .methodology,
  .table-wrap,
  .report-hero {
    margin-bottom: 16px;
  }

  .muted,
  .subtle {
    color: #555 !important;
  }
}

/* User-requested logo and hero layout refinement */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-icon {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 15px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 10px 28px rgba(73, 31, 104, 0.2);
}

.brand-lockup {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-lockup strong {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-lockup em {
  color: #66758a;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-grid-alt {
  grid-template-columns: minmax(520px, 0.9fr) minmax(560px, 0.85fr);
  gap: clamp(28px, 4vw, 62px);
}

.hero-copy-alt h1 {
  max-width: 820px;
  font-size: clamp(3.15rem, 5.35vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: -0.078em;
}

.hero-copy-alt .lede {
  max-width: 780px;
  font-size: clamp(1.06rem, 1.55vw, 1.34rem);
}

.hero-form-shell {
  max-width: 690px;
  padding: clamp(30px, 3.25vw, 46px);
}

.hero-form-shell h2 {
  max-width: 540px;
}

.url-submit-row {
  grid-template-columns: minmax(300px, 1fr) auto;
  gap: 14px;
}

.field-hero-url input {
  min-width: 0;
}

@media (max-width: 1080px) {
  .hero-grid-alt {
    grid-template-columns: 1fr;
  }

  .hero-form-shell {
    justify-self: stretch;
    max-width: none;
    position: static;
  }

  .hero-copy-alt h1 {
    max-width: 920px;
  }
}

@media (max-width: 760px) {
  .brand-logo-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-lockup strong {
    font-size: 0.96rem;
  }

  .brand-lockup em {
    font-size: 0.62rem;
  }

  .hero-copy-alt h1 {
    font-size: clamp(2.75rem, 13vw, 4.45rem);
  }

  .url-submit-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .brand-lockup em {
    display: none;
  }

  .brand-lockup strong {
    white-space: normal;
  }
}


/* --------------------------------------------------------------------------
   Requested refinement: exact AdPrompt logo, smaller hero type, wider URL card
   -------------------------------------------------------------------------- */
.brand-logo-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 15px;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(22, 64, 102, 0.1);
  padding: 2px;
  box-shadow: 0 10px 28px rgba(73, 31, 104, 0.2);
}

.hero-grid-alt {
  grid-template-columns: minmax(0, 0.84fr) minmax(620px, 0.94fr);
  gap: clamp(28px, 3.8vw, 54px);
}

.hero-copy-alt h1 {
  max-width: 760px;
  font-size: clamp(2.95rem, 4.85vw, 5.35rem);
  line-height: 0.97;
  letter-spacing: -0.074em;
}

.hero-copy-alt .lede {
  max-width: 720px;
  font-size: clamp(1.02rem, 1.36vw, 1.22rem);
}

.hero-form-shell {
  justify-self: stretch;
  width: 100%;
  max-width: 760px;
  padding: clamp(32px, 3.6vw, 50px);
}

.hero-form-shell h2 {
  max-width: 620px;
  font-size: clamp(2.1rem, 3.35vw, 3.35rem);
}

.url-submit-row {
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  gap: 14px;
}

.url-submit-row .btn {
  min-width: 190px;
  padding-inline: 26px;
}

@media (max-width: 1180px) {
  .hero-grid-alt {
    grid-template-columns: 1fr;
  }

  .hero-form-shell {
    max-width: none;
    position: static;
  }

  .hero-copy-alt h1 {
    max-width: 860px;
    font-size: clamp(2.95rem, 7vw, 5.2rem);
  }
}

@media (max-width: 760px) {
  .brand-logo-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
  }

  .hero-copy-alt h1 {
    font-size: clamp(2.65rem, 12.5vw, 4.2rem);
  }

  .url-submit-row {
    grid-template-columns: 1fr;
  }

  .url-submit-row .btn {
    min-width: 0;
  }
}

/* --------------------------------------------------------------------------
   Requested refinement: remove feature pills from hero, move primary content
   above the fold, and make generated reports more presentation-like.
   -------------------------------------------------------------------------- */
body .app-root {
  padding: clamp(24px, 3.8vh, 42px) 24px 76px;
}

body .hero-grid-alt {
  align-items: start;
  min-height: auto;
  grid-template-columns: minmax(0, 0.82fr) minmax(640px, 0.98fr);
  gap: clamp(28px, 3.6vw, 52px);
}

body .hero-copy-alt {
  min-height: auto;
  padding-top: 0;
  padding-bottom: clamp(12px, 2vw, 24px);
}

body .hero-copy-alt .eyebrow {
  margin-top: 0;
  margin-bottom: 18px;
}

body .hero-copy-alt h1 {
  max-width: 760px;
  font-size: clamp(2.75rem, 4.25vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: -0.071em;
  margin-bottom: 22px;
}

body .hero-copy-alt .lede {
  max-width: 720px;
  font-size: clamp(1.02rem, 1.34vw, 1.2rem);
}

body .hero-copy-alt .hero-actions {
  margin-top: 24px;
}

body .hero-copy-alt .hero-stat-row {
  margin-top: 34px;
}

body .hero-form-shell {
  margin-top: 0;
  justify-self: stretch;
  max-width: 820px;
  top: 86px;
  padding: clamp(34px, 3.8vw, 56px);
}

body .hero-form-shell h2 {
  max-width: 640px;
  font-size: clamp(2.25rem, 3.4vw, 3.55rem);
}

body .url-submit-row {
  grid-template-columns: minmax(0, 1fr) minmax(195px, auto);
}

/* Report visuals inspired by executive media-planning decks */
.media-visual-section {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(26px, 4vw, 42px);
  background:
    radial-gradient(circle at 86% -8%, rgba(136, 67, 168, 0.13), transparent 32%),
    radial-gradient(circle at 0% 14%, rgba(6, 182, 212, 0.09), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #fbf7ff 100%);
  border: 1px solid rgba(84, 38, 108, 0.11);
  box-shadow: 0 28px 90px rgba(55, 28, 76, 0.12);
}

.media-visual-section .visual-heading {
  display: block;
  margin-bottom: 22px;
}

.visual-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #4e1b66;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.visual-eyebrow span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(84, 30, 111, 0.12);
  position: relative;
  flex: 0 0 auto;
}

.visual-eyebrow span::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a145f, #be83d7);
}

.media-visual-section h2 {
  max-width: 980px;
  color: #13061d;
  font-family: var(--font);
  font-size: clamp(2.65rem, 5.3vw, 5.25rem);
  line-height: 0.99;
  letter-spacing: -0.078em;
  margin: 0;
}

.visual-subtitle {
  max-width: 860px;
  margin: 12px 0 0;
  color: #6d5a78;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.55;
}

.media-table-wrap {
  margin-top: 24px;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(84, 38, 108, 0.1);
  box-shadow: 0 18px 60px rgba(55, 28, 76, 0.08);
}

.media-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.media-table-wrap th {
  background: #f5eff8;
  color: #351346;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-table-wrap th,
.media-table-wrap td {
  padding: 18px 18px;
  border-bottom: 1px solid rgba(84, 38, 108, 0.1);
  text-align: left;
  vertical-align: top;
}

.media-table-wrap td {
  color: #24122e;
  font-size: 1rem;
}

.media-table-wrap td:first-child strong {
  color: #2a1236;
}

.media-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.mix-visual-section {
  margin-top: 18px;
}

.mix-visual-section .compact-heading {
  margin-bottom: 18px;
}

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

.mix-card {
  border-radius: 28px;
  padding: clamp(20px, 3vw, 28px);
  background: linear-gradient(145deg, #ffffff, #fbf7ff);
  border: 1px solid rgba(84, 38, 108, 0.1);
  box-shadow: 0 18px 60px rgba(55, 28, 76, 0.08);
}

.mix-card h3 {
  margin: 0 0 18px;
  color: #150820;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.visual-bar-row {
  display: grid;
  grid-template-columns: minmax(124px, 0.82fr) minmax(140px, 1.8fr) minmax(42px, auto);
  align-items: center;
  gap: 14px;
  margin: 13px 0;
}

.visual-bar-row > span {
  color: #2b1535;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.2;
}

.visual-bar-row strong {
  color: #150820;
  font-size: 0.98rem;
  text-align: right;
}

.visual-bar-track {
  display: block;
  height: 13px;
  border-radius: 999px;
  background: #eee7f2;
  overflow: hidden;
}

.visual-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4a145f 0%, #9c52b8 58%, #deb5ee 100%);
  box-shadow: 0 0 18px rgba(156, 82, 184, 0.2);
}

@media (max-width: 1180px) {
  body .hero-grid-alt {
    grid-template-columns: 1fr;
  }

  body .hero-form-shell {
    max-width: none;
    position: static;
  }

  body .hero-copy-alt h1 {
    max-width: 900px;
  }
}

@media (max-width: 900px) {
  .mix-card-grid {
    grid-template-columns: 1fr;
  }

  .media-visual-section h2 {
    font-size: clamp(2.2rem, 10vw, 3.8rem);
  }

  .media-table-wrap {
    overflow-x: auto;
  }

  .media-table-wrap table {
    min-width: 780px;
  }
}

@media (max-width: 760px) {
  body .app-root {
    padding: 22px 14px 56px;
  }

  body .hero-copy-alt h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  body .url-submit-row,
  .visual-bar-row {
    grid-template-columns: 1fr;
  }

  .visual-bar-row strong {
    text-align: left;
  }
}

/* Deep-dive competitive report modules */
.executive-brief-section,
.ad-strategy-section,
.traffic-section,
.positioning-section,
.swot-section,
.insight-deck-section,
.roadmap-section,
.conclusion-section,
.source-method-section {
  color: #150820;
}

.executive-brief-card,
.conclusion-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: clamp(20px, 4vw, 38px);
  align-items: stretch;
  border-radius: 34px;
  padding: clamp(26px, 4vw, 44px);
  background:
    radial-gradient(circle at 92% 4%, rgba(128, 65, 172, 0.14), transparent 34%),
    radial-gradient(circle at 0% 12%, rgba(6, 182, 212, 0.12), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(84, 38, 108, 0.1);
  box-shadow: 0 26px 80px rgba(39, 64, 102, 0.12);
}

.executive-brief-copy h2,
.conclusion-card h2 {
  max-width: 900px;
  margin: 0 0 14px;
  font-family: var(--font);
  font-size: clamp(2.25rem, 4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  color: #0d1629;
}

.brief-thesis {
  margin: 0 0 14px;
  color: #25364f;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.executive-kpi-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.executive-kpi-stack article,
.conclusion-grid article,
.source-quality-grid article,
.traffic-source-card,
.strategy-profile-card,
.traffic-profile-card,
.positioning-card,
.swot-brand-card,
.insight-deck-card,
.roadmap-timeline article {
  border: 1px solid rgba(84, 38, 108, 0.11);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 50px rgba(55, 28, 76, 0.08);
}

.executive-kpi-stack article {
  border-radius: 22px;
  padding: 18px;
}

.executive-kpi-stack span,
.mini-metric-grid span,
.conclusion-grid span,
.source-quality-grid span,
.traffic-source-card > span,
.roadmap-timeline article > span,
.channel-breakdown-mini span {
  display: block;
  color: #6a5a77;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.executive-kpi-stack strong {
  display: block;
  color: #12091c;
  font-size: clamp(1.35rem, 2.3vw, 2.05rem);
  letter-spacing: -0.055em;
  line-height: 1.03;
  margin: 7px 0;
}

.executive-kpi-stack em {
  color: #6d5d78;
  font-size: 0.9rem;
  font-style: normal;
}

.comparison-metric-table,
.source-coverage-table {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(84, 38, 108, 0.1);
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(55, 28, 76, 0.08);
}

.metric-head,
.metric-row,
.source-head,
.source-row {
  display: grid;
  gap: 0;
  align-items: stretch;
}

.metric-head,
.metric-row {
  grid-template-columns: minmax(160px, 0.7fr) repeat(2, minmax(0, 1fr));
}

.source-head,
.source-row {
  grid-template-columns: minmax(160px, 0.75fr) minmax(130px, 0.5fr) minmax(0, 1.1fr) minmax(0, 1fr);
}

.metric-head,
.source-head {
  background: #f5eff8;
  color: #351346;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-head span,
.metric-row strong,
.metric-row p,
.source-head span,
.source-row strong,
.source-row p {
  margin: 0;
  padding: 17px 18px;
  border-bottom: 1px solid rgba(84, 38, 108, 0.1);
}

.metric-row:last-child strong,
.metric-row:last-child p,
.source-row:last-child strong,
.source-row:last-child p {
  border-bottom: 0;
}

.metric-row strong,
.source-row strong {
  color: #2a1236;
}

.metric-row p,
.source-row p {
  color: #3d2b49;
}

.strategy-profile-grid,
.traffic-profile-grid,
.positioning-grid,
.swot-brand-grid,
.source-quality-grid {
  display: grid;
  gap: 18px;
}

.strategy-profile-grid,
.traffic-profile-grid,
.positioning-grid,
.swot-brand-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-quality-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.strategy-profile-card,
.traffic-profile-card,
.positioning-card,
.swot-brand-card {
  border-radius: 30px;
  padding: clamp(22px, 3vw, 30px);
}

.strategy-profile-card h3,
.traffic-profile-card h3,
.positioning-card h3 {
  color: #13061d;
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.065em;
  margin: 0 0 16px;
}

.mini-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.mini-metric-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-metric-grid div {
  border-radius: 18px;
  padding: 14px;
  background: #f8f3fb;
  border: 1px solid rgba(84, 38, 108, 0.08);
}

.mini-metric-grid strong {
  display: block;
  margin-top: 4px;
  color: #140821;
  font-size: 1rem;
  line-height: 1.25;
}

.detail-list-block {
  margin-top: 16px;
}

.detail-list-block h4,
.swot-box h4 {
  margin: 0 0 10px;
  color: #2b1535;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.detail-list li {
  position: relative;
  padding-left: 18px;
  color: #4b3b57;
  font-size: 0.94rem;
  line-height: 1.45;
}

.detail-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a145f, #06b6d4);
}

.channel-breakdown-mini {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.channel-breakdown-mini div {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(50px, auto) minmax(90px, auto);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(84, 38, 108, 0.1);
}

.channel-breakdown-mini strong {
  color: #150820;
}

.channel-breakdown-mini em {
  color: #6a5a77;
  font-style: normal;
  text-align: right;
}

.traffic-source-grid,
.insight-deck-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.traffic-source-card {
  border-radius: 24px;
  padding: 18px;
}

.traffic-source-card p {
  margin: 12px 0 0;
  color: #574562;
  font-size: 0.9rem;
  line-height: 1.42;
}

.split-bars {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.split-bars em {
  display: block;
  margin-bottom: 5px;
  color: #6a5a77;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.tiny-bar {
  display: inline-block;
  width: calc(100% - 48px);
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: #eee7f2;
  overflow: hidden;
  vertical-align: middle;
}

.tiny-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4a145f, #06b6d4);
}

.split-bars strong {
  color: #13061d;
  font-size: 0.85rem;
}

.positioning-card .muted,
.strategy-profile-card .muted,
.traffic-profile-card .muted {
  color: #5b4b66;
}

.positioning-columns {
  display: grid;
  gap: 10px;
}

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

.swot-box {
  border-radius: 22px;
  padding: 16px;
  background: #fbf8fd;
  border: 1px solid rgba(84, 38, 108, 0.09);
}

.insight-deck-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-deck-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-radius: 30px;
  padding: 24px;
  background:
    radial-gradient(circle at 92% 0%, rgba(6, 182, 212, 0.12), transparent 36%),
    linear-gradient(145deg, #ffffff, #fbf7ff);
}

.insight-deck-card > span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #4a145f, #06b6d4);
  font-weight: 950;
  margin-bottom: 26px;
}

.insight-deck-card h3 {
  margin: 0 0 12px;
  color: #12091c;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.insight-deck-card p {
  color: #4d3d58;
  margin: 0;
}

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

.roadmap-timeline article {
  border-radius: 26px;
  padding: 20px;
  min-height: 220px;
  position: relative;
}

.roadmap-timeline article::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 62px;
  height: 2px;
  background: linear-gradient(90deg, #4a145f, #06b6d4);
  opacity: 0.26;
}

.roadmap-timeline h3 {
  margin: 34px 0 10px;
  color: #13061d;
  font-size: 1.12rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.roadmap-timeline p {
  color: #5b4b66;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.conclusion-card {
  grid-template-columns: 1fr;
}

.conclusion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.conclusion-grid article {
  border-radius: 24px;
  padding: 18px;
}

.conclusion-grid p,
.source-quality-grid p {
  margin: 8px 0 0;
  color: #50405d;
}

.source-quality-grid article {
  border-radius: 22px;
  padding: 18px;
}

.source-quality-grid strong {
  display: block;
  margin-top: 6px;
  color: #13061d;
  font-size: 1.1rem;
}

.light-table {
  margin-top: 18px;
}

@media (max-width: 1180px) {
  .source-quality-grid,
  .traffic-source-grid,
  .roadmap-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-head,
  .source-row {
    grid-template-columns: minmax(140px, 0.7fr) minmax(110px, 0.45fr) minmax(0, 1fr);
  }

  .source-head span:nth-child(4),
  .source-row p:nth-child(4) {
    display: none;
  }
}

@media (max-width: 900px) {
  .executive-brief-card,
  .strategy-profile-grid,
  .traffic-profile-grid,
  .positioning-grid,
  .swot-brand-grid,
  .conclusion-grid,
  .insight-deck-grid {
    grid-template-columns: 1fr;
  }

  .comparison-metric-table,
  .source-coverage-table {
    overflow-x: auto;
  }

  .metric-head,
  .metric-row {
    min-width: 760px;
  }

  .source-head,
  .source-row {
    min-width: 900px;
    grid-template-columns: minmax(160px, 0.75fr) minmax(130px, 0.5fr) minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .source-head span:nth-child(4),
  .source-row p:nth-child(4) {
    display: block;
  }
}

@media (max-width: 640px) {
  .swot-quadrants,
  .mini-metric-grid,
  .mini-metric-grid.three,
  .source-quality-grid,
  .traffic-source-grid,
  .roadmap-timeline {
    grid-template-columns: 1fr;
  }

  .channel-breakdown-mini div {
    grid-template-columns: 1fr;
  }

  .channel-breakdown-mini em {
    text-align: left;
  }
}

/* Data-rich report dashboard additions */
.hub-metrics-section {
  border-radius: 36px;
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 88% 0%, rgba(102, 73, 226, 0.12), transparent 32%),
    radial-gradient(circle at 0% 20%, rgba(8, 190, 218, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 243, 252, 0.95));
  border: 1px solid rgba(84, 38, 108, 0.1);
  box-shadow: 0 28px 90px rgba(55, 28, 76, 0.1);
}

.hub-metrics-section > .media-visual-section,
.hub-metrics-section > .traffic-section,
.hub-metrics-section > .data-coverage-section {
  margin-top: 18px;
}

.hub-metric-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 18px;
}

.data-coverage-section {
  margin-top: 8px;
}

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

.coverage-card {
  min-height: 132px;
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(84, 38, 108, 0.12);
  box-shadow: 0 14px 50px rgba(55, 28, 76, 0.07);
}

.coverage-card.connected {
  background: linear-gradient(145deg, rgba(236, 255, 251, 0.95), rgba(255, 255, 255, 0.9));
  border-color: rgba(20, 184, 166, 0.26);
}

.coverage-card.modeled {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(250, 245, 255, 0.92));
}

.coverage-card span {
  display: block;
  color: #6a5a77;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coverage-card strong {
  display: block;
  margin-top: 8px;
  color: #12091c;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.coverage-card p {
  margin: 8px 0 0;
  color: #5c4d67;
  font-size: 0.88rem;
  line-height: 1.45;
}

.table-subnote {
  display: block;
  margin-top: 4px;
  color: #7a687e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.engagement-grid {
  margin-top: -4px;
}

@media (max-width: 1200px) {
  .hub-metric-kpis,
  .coverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hub-metric-kpis,
  .coverage-grid {
    grid-template-columns: 1fr;
  }
}

/* Recent report cleanup controls */
.recent-reports-section {
  margin-top: clamp(28px, 5vw, 72px);
}

.recent-heading {
  align-items: end;
}

.recent-tools {
  display: grid;
  justify-items: end;
  gap: 12px;
  max-width: 620px;
}

.recent-tools .muted {
  max-width: 620px;
  text-align: right;
}

.recent-grid .recent-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.recent-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn.danger {
  color: #642873;
  border-color: rgba(100, 40, 115, 0.18);
  background: rgba(255, 255, 255, 0.7);
}

.btn.danger:hover {
  color: #fff;
  border-color: rgba(100, 40, 115, 0.2);
  background: linear-gradient(135deg, #6b2a7a, #bd7bd9);
  box-shadow: 0 14px 34px rgba(100, 40, 115, 0.18);
}

@media (max-width: 900px) {
  .recent-heading {
    align-items: start;
  }

  .recent-tools {
    justify-items: start;
    max-width: none;
  }

  .recent-tools .muted {
    text-align: left;
  }
}

/* Recent report workspace controls */
.recent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.recent-count {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(22, 64, 102, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #66758a;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.recent-footnote {
  margin: 6px 0 0;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .recent-actions {
    justify-content: flex-start;
  }
}

/* Demo-parity report data modules */
.required-metrics-section,
.company-context-section {
  margin-top: clamp(20px, 4vw, 44px);
}

.required-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.required-metrics-grid article {
  min-height: 156px;
  border: 1px solid rgba(83, 29, 103, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 60px rgba(61, 44, 96, 0.08);
  padding: 18px;
}

.required-metrics-grid span,
.company-profile-card .proof-signal-grid span {
  display: block;
  margin-bottom: 8px;
  color: #0b7890;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.required-metrics-grid strong {
  display: block;
  color: #10213d;
  font-size: 1rem;
  line-height: 1.2;
}

.required-metrics-grid p {
  margin: 10px 0 0;
  color: #68758a;
  font-size: 0.92rem;
  line-height: 1.45;
}

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

.company-profile-card {
  border: 1px solid rgba(83, 29, 103, 0.1);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 242, 252, 0.78));
  box-shadow: 0 22px 70px rgba(61, 44, 96, 0.1);
  padding: clamp(20px, 3vw, 30px);
}

.company-profile-card h3 {
  margin: 0 0 16px;
  color: #10213d;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  letter-spacing: -0.04em;
}

.company-profile-card .detail-list-block {
  margin-top: 16px;
}

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

.proof-signal-grid div {
  border: 1px solid rgba(22, 64, 102, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.proof-signal-grid strong {
  display: block;
  color: #10213d;
  font-size: 1rem;
}

@media (max-width: 1100px) {
  .required-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .required-metrics-grid,
  .company-profile-grid,
  .proof-signal-grid {
    grid-template-columns: 1fr;
  }
}
