:root {
  color-scheme: light;
  --bg: #f6fbff;
  --ink: #07111f;
  --muted: #5d6c7d;
  --soft: #eef6ff;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --line: rgba(82, 111, 143, 0.18);
  --blue: #0878ff;
  --blue-2: #32c7ff;
  --green: #0bbf8a;
  --amber: #ffb02e;
  --coral: #ff5b61;
  --violet: #6b7cff;
  --shadow: 0 24px 80px rgba(42, 68, 105, 0.18);
  --shadow-soft: 0 18px 50px rgba(42, 68, 105, 0.12);
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(8, 120, 255, 0.16), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(11, 191, 138, 0.16), transparent 34%),
    radial-gradient(circle at 72% 88%, rgba(255, 91, 97, 0.12), transparent 30%),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 48%, #f8fffb 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 88, 155, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 88, 155, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 78%);
}

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

a {
  color: inherit;
}

.request-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 76px;
}

.topline {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.brand-link {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 8px 18px 8px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(42, 68, 105, 0.14);
  backdrop-filter: blur(22px) saturate(148%);
}

.brand-link::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 23%, transparent 24%),
    linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 12px 28px rgba(8, 120, 255, 0.28);
}

.brand-link strong {
  display: block;
  font-weight: 900;
  line-height: 1.05;
}

.brand-link span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.request-hero {
  position: relative;
}

.request-hero::before,
.request-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
}

.request-hero::before {
  width: 170px;
  height: 170px;
  right: 18%;
  top: 84px;
  background: radial-gradient(circle, rgba(50, 199, 255, 0.24), transparent 68%);
}

.request-hero::after {
  width: 210px;
  height: 210px;
  right: -42px;
  bottom: -36px;
  background: radial-gradient(circle, rgba(255, 91, 97, 0.16), transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.64fr);
  gap: 34px;
  align-items: stretch;
}

.request-copy,
.rule-card,
.flow-strip,
.request-form,
.request-summary {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(150%);
}

.request-copy {
  min-height: 330px;
  display: grid;
  align-content: center;
  border-radius: 34px;
  padding: clamp(26px, 4.4vw, 52px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.54)),
    linear-gradient(120deg, rgba(8, 120, 255, 0.1), rgba(11, 191, 138, 0.1));
}

.eyebrow,
.mini-label,
.stamp,
.ai-mode {
  margin: 0;
  color: #0a65d8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), var(--amber));
  box-shadow: 0 0 0 7px rgba(255, 91, 97, 0.12);
}

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

h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: clamp(34px, 4.35vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.65;
}

.rule-card {
  min-height: 330px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  border-radius: 34px;
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(238, 246, 255, 0.72)),
    rgba(255, 255, 255, 0.76);
}

.stamp {
  width: fit-content;
  border-radius: 999px;
  padding: 10px 13px;
  background: #101827;
  color: #fff;
  box-shadow: 0 14px 30px rgba(16, 24, 39, 0.18);
}

.rule-card strong {
  display: block;
  max-width: 320px;
  margin: auto 0 0;
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: 1.13;
  letter-spacing: 0;
}

.rule-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.62;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
  border-radius: 26px;
  padding: 12px;
}

.flow-strip div {
  min-height: 82px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(82, 111, 143, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  padding: 14px;
}

.flow-strip strong {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #07111f, #1f365c);
  box-shadow: 0 12px 24px rgba(7, 17, 31, 0.14);
}

.flow-strip span {
  color: #33465b;
  font-weight: 900;
  line-height: 1.25;
}

.request-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.request-form,
.request-summary {
  border-radius: 30px;
  padding: clamp(22px, 3.2vw, 34px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.72);
}

.form-block {
  margin: 0;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(82, 111, 143, 0.16);
}

.form-block + .form-block {
  padding-top: 24px;
}

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

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

label {
  display: grid;
  gap: 8px;
  color: #172235;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(82, 111, 143, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  padding: 14px 16px;
  outline: none;
  font-weight: 750;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
  min-height: 118px;
  margin-top: 14px;
  resize: vertical;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: rgba(93, 108, 125, 0.76);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(8, 120, 255, 0.78);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(8, 120, 255, 0.12);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.consent input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
}

.primary-button,
.ghost-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), #ff8a3d);
  box-shadow: 0 18px 34px rgba(255, 91, 97, 0.22);
}

.primary-button:hover,
.primary-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: default;
  transform: none;
  background: linear-gradient(135deg, #7aa7d8, #7bd5bd);
  box-shadow: none;
}

.ghost-button {
  border: 1px solid rgba(82, 111, 143, 0.18);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.request-summary {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.request-summary h2 {
  margin: 0;
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.14;
  letter-spacing: 0;
}

.ai-status {
  border: 1px solid rgba(8, 120, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(8, 120, 255, 0.09), rgba(11, 191, 138, 0.08)),
    rgba(255, 255, 255, 0.68);
  color: #33465b;
  padding: 18px;
  font-weight: 750;
  line-height: 1.6;
}

.ai-status.loading {
  color: #075c44;
  background:
    linear-gradient(135deg, rgba(11, 191, 138, 0.16), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.72);
}

.ai-status.error {
  color: #8d2d0f;
  background:
    linear-gradient(135deg, rgba(255, 91, 97, 0.14), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.72);
}

.ai-draft-result {
  display: grid;
  gap: 14px;
}

.ai-draft-result[hidden],
.edit-ai-input-button[hidden] {
  display: none;
}

.ai-mode {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(11, 191, 138, 0.12);
  color: #075c44;
}

.ai-mode::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.ai-hero-result {
  display: grid;
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 0.64fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid rgba(8, 120, 255, 0.16);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 30px);
  background:
    radial-gradient(circle at 16% 18%, rgba(8, 120, 255, 0.13), transparent 36%),
    radial-gradient(circle at 92% 8%, rgba(11, 191, 138, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft);
}

.risk-summary {
  min-height: 230px;
  display: grid;
  align-content: center;
  gap: 10px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 176, 46, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.72);
  padding: 22px;
}

.risk-orb {
  --risk-score: 58%;
  position: relative;
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  margin: 6px 0 4px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.94) 0 54%, transparent 55%),
    conic-gradient(var(--coral) var(--risk-score), rgba(8, 120, 255, 0.13) 0);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    0 22px 44px rgba(42, 68, 105, 0.16);
}

.risk-orb span {
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
}

.risk-orb small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.risk-summary strong {
  display: block;
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.risk-summary p,
.risk-summary small {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.48;
}

.risk-summary small {
  color: #075c44;
}

.risk-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(8, 120, 255, 0.11);
}

.risk-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--coral));
}

.result-summary-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.result-summary-copy h3 {
  margin: 0;
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: clamp(29px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.result-summary-copy p {
  max-width: 760px;
  margin: 0;
  color: #26384c;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
}

.confidence-line {
  color: var(--muted) !important;
  font-size: 14px !important;
}

.ai-signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  grid-column: 1 / -1;
}

.signal-tile {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  display: grid;
  align-content: end;
  gap: 8px;
  border: 1px solid rgba(82, 111, 143, 0.13);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 48px rgba(42, 68, 105, 0.1);
  color: inherit;
  text-decoration: none;
}

.signal-link {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.signal-link:hover,
.signal-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 91, 97, 0.34);
  box-shadow: 0 24px 62px rgba(255, 91, 97, 0.17);
  outline: none;
}

.signal-link:focus-visible {
  box-shadow:
    0 0 0 5px rgba(255, 91, 97, 0.14),
    0 24px 62px rgba(255, 91, 97, 0.17);
}

.signal-tile::before {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  opacity: 0.9;
}

.signal-tile::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.56), transparent 44%);
  pointer-events: none;
}

.signal-tile span,
.signal-tile strong,
.signal-tile small {
  position: relative;
  z-index: 1;
}

.signal-tile span,
.card-kicker {
  color: #0a65d8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-tile strong {
  font-size: 22px;
  line-height: 1.15;
}

.signal-tile small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.signal-blue::before {
  background: radial-gradient(circle, rgba(8, 120, 255, 0.22), transparent 65%);
}

.signal-green::before {
  background: radial-gradient(circle, rgba(11, 191, 138, 0.24), transparent 65%);
}

.signal-coral::before {
  background: radial-gradient(circle, rgba(255, 91, 97, 0.22), transparent 65%);
}

.signal-link strong::after {
  content: " ->";
  color: var(--coral);
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.ai-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(82, 111, 143, 0.15);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 52px rgba(42, 68, 105, 0.1);
  padding: 20px;
}

.ai-card::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -42px;
  width: 136px;
  height: 136px;
  border-radius: 999px;
  opacity: 0.76;
  background: radial-gradient(circle, rgba(8, 120, 255, 0.12), transparent 68%);
  pointer-events: none;
}

.ai-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  width: 66px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--green));
}

.card-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(8, 120, 255, 0.08);
}

.ai-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.ai-card p {
  margin-bottom: 14px;
  color: #33465b;
  font-weight: 650;
  line-height: 1.58;
}

.ai-list {
  counter-reset: ai-list;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-list li {
  counter-increment: ai-list;
  position: relative;
  min-height: 54px;
  border: 1px solid rgba(82, 111, 143, 0.12);
  border-radius: 18px;
  background: rgba(247, 251, 255, 0.72);
  padding: 13px 15px 13px 54px;
  color: #172235;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
}

.ai-list li::before {
  content: counter(ai-list);
  position: absolute;
  left: 15px;
  top: 13px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(11, 191, 138, 0.13);
  color: #075c44;
  font-size: 12px;
  font-weight: 900;
}

.ai-card-loss {
  border-color: rgba(255, 91, 97, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 91, 97, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 246, 246, 0.68));
}

.ai-card-loss::before {
  background: linear-gradient(90deg, var(--coral), #ff8a3d);
}

.ai-card-loss .card-kicker,
.ai-card-stop .card-kicker {
  background: rgba(255, 91, 97, 0.1);
  color: #ce3a40;
}

.ai-card-safe {
  border-color: rgba(11, 191, 138, 0.2);
}

.ai-card-safe::before,
.ai-card-team::before {
  background: linear-gradient(90deg, var(--green), var(--blue-2));
}

.ai-card-safe .card-kicker,
.ai-card-team .card-kicker {
  background: rgba(11, 191, 138, 0.11);
  color: #075c44;
}

.ai-card-paid,
.ai-card-client {
  border-color: rgba(8, 120, 255, 0.18);
}

.ai-card-paid::before,
.ai-card-client::before,
.ai-card-facts::before {
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.ai-card-paid .card-kicker,
.ai-card-client .card-kicker,
.ai-card-facts .card-kicker {
  background: rgba(8, 120, 255, 0.09);
  color: #0a65d8;
}

.ai-card-limit {
  border-color: rgba(255, 176, 46, 0.25);
}

.ai-card-limit::before {
  background: linear-gradient(90deg, var(--amber), var(--green));
}

.ai-card-limit .card-kicker {
  background: rgba(255, 176, 46, 0.14);
  color: #9c6100;
}

.ai-next-step {
  border-color: rgba(11, 191, 138, 0.2);
  background:
    radial-gradient(circle at 88% 10%, rgba(50, 199, 255, 0.2), transparent 28%),
    radial-gradient(circle at 8% 88%, rgba(11, 191, 138, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(231, 251, 242, 0.94), rgba(255, 255, 255, 0.72));
  padding: clamp(22px, 3vw, 32px);
}

.ai-next-step h3 {
  font-family: Unbounded, Manrope, system-ui, sans-serif;
  font-size: clamp(27px, 3vw, 40px);
}

.ai-next-step small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

body.ai-report-ready .hero-grid,
body.ai-report-ready .flow-strip {
  display: none;
}

body.ai-report-ready .topline {
  margin-bottom: 22px;
}

body.ai-report-ready .request-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.ai-report-ready .request-form {
  display: none;
}

body.ai-report-ready .request-summary {
  position: static;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
}

body.ai-report-ready .request-summary > .mini-label {
  width: fit-content;
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 91, 97, 0.1);
  color: #ce3a40;
}

body.ai-report-ready .request-summary > h2 {
  max-width: 780px;
  margin: -2px 0 4px;
  font-size: clamp(34px, 4.8vw, 58px);
}

body.ai-report-ready .ai-status {
  max-width: 880px;
  border-color: rgba(11, 191, 138, 0.18);
  background:
    linear-gradient(135deg, rgba(11, 191, 138, 0.12), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.72);
  color: #075c44;
}

body.ai-report-ready .ai-draft-result {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

body.ai-report-ready .ai-mode,
body.ai-report-ready .ai-hero-result,
body.ai-report-ready .ai-next-step {
  grid-column: 1 / -1;
}

body.ai-report-ready .ai-card h3 {
  font-size: 22px;
}

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

  .rule-card {
    min-height: auto;
  }

  .request-summary {
    position: static;
  }
}

@media (max-width: 820px) {
  .flow-strip,
  body.ai-report-ready .ai-draft-result,
  .ai-hero-result,
  .ai-signal-row {
    grid-template-columns: 1fr;
  }

  .risk-summary {
    min-height: auto;
  }

  .risk-orb {
    width: 112px;
    height: 112px;
  }

  .report-actions .primary-button,
  .report-actions .ghost-button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .request-shell {
    width: calc(100% - 24px);
    padding-top: 14px;
  }

  .topline {
    top: 10px;
    margin-bottom: 18px;
  }

  .brand-link {
    width: 100%;
    min-height: 58px;
  }

  .brand-link span {
    font-size: 11px;
  }

  .request-copy,
  .rule-card,
  .request-form,
  .request-summary {
    border-radius: 24px;
  }

  .hero-grid {
    gap: 12px;
  }

  .rule-card,
  .flow-strip {
    display: none;
  }

  .request-copy {
    min-height: auto;
    padding: 24px 22px;
  }

  h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 15px;
  }

  .request-grid {
    margin-top: 14px;
  }

  .field-grid,
  .form-actions {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .primary-button,
  .form-actions .ghost-button {
    width: 100%;
  }

  .ai-hero-result {
    padding: 16px;
    border-radius: 22px;
  }

  .result-summary-copy h3 {
    font-size: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
