:root {
  --navy: #071d38;
  --navy-2: #0d2b4d;
  --gold: #c8a15b;
  --gold-soft: #f6eddf;
  --green: #159a5c;
  --ink: #0d1b33;
  --muted: #66738a;
  --line: #e4dccf;
  --paper: #fffdf9;
  --soft: #f7f4ef;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(13, 27, 51, .14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(110deg, #ffffff 0%, #f8f5ee 65%, #f1e8d9 100%);
}

html.is-portal-embed,
html.is-portal-embed body {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

button,
input,
select {
  font: inherit;
}

button:disabled {
  cursor: wait;
  opacity: .7;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
}

.sidebar {
  background: radial-gradient(circle at top left, #13385e, var(--navy) 54%);
  color: #fff;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.logo {
  width: 164px;
  height: auto;
}

.sidebar nav {
  display: grid;
  gap: 10px;
}

.nav-item {
  text-decoration: none;
  padding: 15px 16px;
  border-radius: 16px;
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}

.nav-item.is-active,
.nav-item:hover {
  background: var(--gold-soft);
  color: var(--ink);
}

.help-card {
  margin-top: auto;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 12px;
}

.help-card span {
  color: rgba(255, 255, 255, .76);
  line-height: 1.5;
}

.help-card a {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
  background: #e6fff0;
  color: #0b7b49;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
}

.main {
  width: min(1180px, calc(100vw - 320px));
  margin: 0 auto;
  padding: 44px 26px 70px;
}

.topbar,
.desktop-stepper,
.hero-card,
.check-layout,
.result-section {
  margin-bottom: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.language-toggle {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.language-toggle button {
  min-width: 44px;
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 950;
  cursor: pointer;
}

.language-toggle button.is-active {
  background: var(--navy);
  color: #fff;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 42px;
  line-height: 1.04;
}

h2 {
  font-size: 36px;
  line-height: 1.08;
}

p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 18px;
}

.portal-link,
.btn {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.portal-link,
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn[hidden] {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.hero-card,
.wizard-card,
.side-panel,
.result-section {
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: 250px;
  padding: 34px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  overflow: hidden;
}

.hero-card img {
  width: 270px;
  justify-self: end;
}

.desktop-stepper {
  --step-progress: 0%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  padding: 0 4px;
}

.desktop-stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) 0 var(--step-progress), #e7ded0 var(--step-progress) 100%);
}

.desktop-stepper-item {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 900 13px/1.25 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.desktop-stepper-dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: #eee6da;
  color: var(--muted);
  box-shadow: 0 8px 20px rgba(13, 27, 51, .1);
}

.desktop-stepper-item.is-done,
.desktop-stepper-item.is-active {
  color: var(--ink);
}

.desktop-stepper-item.is-done .desktop-stepper-dot {
  background: var(--green);
  color: #fff;
}

.desktop-stepper-item.is-active .desktop-stepper-dot {
  background: var(--navy);
  color: #fff;
}

.check-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 24px;
  align-items: start;
}

.check-layout > .desktop-stepper {
  grid-column: 1 / -1;
  margin-bottom: -4px;
}

.wizard-card,
.side-panel,
.result-section {
  padding: 28px;
}

.wizard-card {
  min-height: 548px;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 18px;
}

.progress-track {
  height: 9px;
  background: #e7ded0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 30px;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 13%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: inherit;
  transition: width .25s ease;
}

.step-pane {
  display: grid;
  gap: 22px;
}

.step-topline {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.step-hero-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d6b072, var(--gold));
  color: #fff;
  font-size: 31px;
  font-weight: 950;
  box-shadow: 0 16px 36px rgba(200, 161, 91, .22);
}

.step-pane h2 {
  font-size: 34px;
}

.choices {
  display: grid;
  gap: 14px;
}

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

.choice {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 56px 16px 16px;
  border-radius: 15px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.choice::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 2px solid #d5cab8;
  border-radius: 999px;
  transform: translateY(-50%);
}

.choice.is-selected {
  border-color: var(--navy);
  background: #fffaf2;
  box-shadow: inset 0 0 0 1px var(--navy), 0 14px 30px rgba(13, 27, 51, .08);
}

.choice.is-selected::after {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 6px #fff;
  background: var(--navy);
}

.choice-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 22px;
  flex: 0 0 auto;
}

.choice strong {
  display: block;
  font-size: 18px;
}

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

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

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

.field label {
  font-weight: 900;
}

.field input,
.field select {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
}

.info-note {
  padding: 16px 18px;
  background: #edf8f2;
  color: #0e6a42;
  border: 1px solid #bee8cf;
  border-radius: 14px;
  line-height: 1.5;
}

.energy-standalone-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid #cde9d8;
  border-radius: 18px;
  background: #f0fbf5;
}

.energy-standalone-card > span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 76px;
  border-radius: 13px;
  background: linear-gradient(135deg, #16864b, #39b973);
  color: #fff;
  font-size: 36px;
  font-weight: 950;
}

.energy-standalone-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 22px;
}

.energy-standalone-card small {
  color: var(--muted);
  line-height: 1.45;
}

.lookup-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #fffdf9, #f5f9f5);
}

.lookup-card > div:first-child {
  display: grid;
  gap: 4px;
}

.lookup-card > div:first-child strong {
  font-size: 18px;
}

.lookup-card > div:first-child span {
  color: var(--muted);
  line-height: 1.5;
}

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

.lookup-row {
  min-height: 104px;
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eee7dc;
}

.lookup-row span {
  color: var(--muted);
  font-weight: 850;
}

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

.lookup-row small {
  color: var(--muted);
  line-height: 1.45;
}

.lookup-row.is-ok {
  border-color: #bde8cd;
  background: #f2fbf5;
}

.lookup-row.is-ok strong {
  color: var(--green);
}

.lookup-row.is-warning {
  border-color: #efd7ab;
  background: #fff8ec;
}

.lookup-row.is-loading {
  position: relative;
  overflow: hidden;
}

.lookup-row.is-loading::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: lookup-loading 1.1s linear infinite;
}

@keyframes lookup-loading {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.button-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}

html.is-portal-embed .app-shell {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: 1fr;
  background: #fff;
}

html.is-portal-embed .sidebar {
  display: none;
}

html.is-portal-embed .help-card,
html.is-portal-embed .topbar,
html.is-portal-embed .hero-card {
  display: none;
}

html.is-portal-embed .main {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto;
  align-content: center;
  overflow: hidden;
  padding: 22px 26px 24px;
  background: #fff;
}

html.is-portal-embed .check-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 0;
  align-content: center;
  align-items: start;
  width: min(1060px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

html.is-portal-embed .check-layout > .desktop-stepper {
  display: none;
}

html.is-portal-embed .wizard-card {
  min-height: 0;
  height: auto;
  max-height: 100%;
  overflow: auto;
  padding: 24px 28px;
  border-radius: 22px;
  border-color: rgba(200, 161, 91, .24);
  box-shadow: 0 16px 44px rgba(13, 27, 51, .09);
}

html.is-portal-embed .progress-row {
  margin-bottom: 8px;
  font-size: 15px;
}

html.is-portal-embed .progress-track {
  height: 7px;
  margin-bottom: 18px;
}

html.is-portal-embed .step-pane {
  gap: 16px;
}

html.is-portal-embed .step-topline {
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
}

html.is-portal-embed .step-hero-icon {
  width: 54px;
  height: 54px;
  font-size: 24px;
}

html.is-portal-embed .step-pane h2 {
  font-size: 34px;
  line-height: 1.08;
}

html.is-portal-embed p {
  font-size: 15px;
  line-height: 1.48;
}

html.is-portal-embed .choices {
  gap: 10px;
}

html.is-portal-embed .choice {
  min-height: 66px;
  gap: 12px;
  padding: 14px 52px 14px 14px;
  border-radius: 15px;
}

html.is-portal-embed .choice::after {
  right: 14px;
  width: 19px;
  height: 19px;
}

html.is-portal-embed .choice-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 18px;
}

html.is-portal-embed .choice strong {
  font-size: 16px;
}

html.is-portal-embed .choice span span {
  font-size: 13px;
  line-height: 1.35;
}

html.is-portal-embed .field-grid,
html.is-portal-embed .lookup-grid {
  gap: 10px;
}

html.is-portal-embed .field {
  gap: 6px;
}

html.is-portal-embed .field label {
  font-size: 13px;
}

html.is-portal-embed .field input,
html.is-portal-embed .field select {
  min-height: 50px;
  border-radius: 12px;
  padding: 0 13px;
}

html.is-portal-embed .lookup-card,
html.is-portal-embed .info-note,
html.is-portal-embed .energy-standalone-card {
  padding: 13px;
  border-radius: 14px;
}

html.is-portal-embed .lookup-card {
  gap: 10px;
}

html.is-portal-embed .lookup-card > div:first-child strong {
  font-size: 16px;
}

html.is-portal-embed .lookup-card > div:first-child span,
html.is-portal-embed .lookup-row small {
  font-size: 13px;
  line-height: 1.35;
}

html.is-portal-embed .lookup-row {
  min-height: 76px;
  padding: 10px;
  gap: 3px;
}

html.is-portal-embed .button-row {
  margin-top: 16px;
}

html.is-portal-embed .btn {
  min-height: 50px;
  border-radius: 13px;
}

html.is-portal-embed .side-panel {
  display: none;
}

html.is-portal-embed.has-result .check-layout {
  display: none;
}

html.is-portal-embed .result-section {
  width: min(1060px, 100%);
  height: auto;
  min-height: 0;
  max-height: 100%;
  margin: 0 auto;
  overflow: auto;
  padding: 24px 28px;
  border: 1px solid rgba(200, 161, 91, .24);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(13, 27, 51, .09);
  gap: 18px;
}

html.is-portal-embed .result-section[hidden] {
  display: none;
}

html.is-portal-embed .result-hero {
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 4px;
}

html.is-portal-embed .result-hero img {
  width: 118px;
}

html.is-portal-embed .result-hero h2 {
  font-size: 31px;
  line-height: 1.08;
}

html.is-portal-embed .result-grid {
  gap: 14px;
}

html.is-portal-embed .result-grid article {
  min-height: 112px;
  padding: 18px;
  border-radius: 16px;
}

html.is-portal-embed .result-grid strong {
  font-size: 31px;
}

html.is-portal-embed .email-result-card {
  padding: 18px;
  gap: 14px;
}

.side-panel {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 18px;
}

.side-panel h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.score-ring {
  width: 154px;
  height: 154px;
  border-radius: 999px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 60%),
    conic-gradient(var(--green) 13%, #ece6db 0);
}

.score-ring span {
  font-size: 30px;
  font-weight: 950;
}

.score-ring small {
  color: var(--muted);
  font-weight: 800;
}

.side-panel ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.side-panel li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.side-panel li.is-active,
.side-panel li.is-done {
  color: var(--ink);
}

.side-panel li::before {
  content: attr(data-step);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eee6da;
  color: var(--ink);
  font-size: 12px;
  flex: 0 0 auto;
}

.side-panel li.is-done::before {
  content: "✓";
  background: #dff5e8;
  color: var(--green);
}

.side-help-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #fffaf2, #fff);
}

.side-help-card strong {
  font-size: 17px;
}

.side-help-card span {
  color: var(--muted);
  line-height: 1.45;
}

.side-help-card a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--ink);
  text-decoration: none;
  font-weight: 950;
}

.result-section {
  display: grid;
  gap: 24px;
}

.result-section[hidden] {
  display: none;
}

.result-hero {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.result-hero img {
  width: 160px;
}

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

.result-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  display: grid;
  gap: 8px;
}

.result-grid span,
.result-grid small {
  color: var(--muted);
  font-weight: 800;
}

.result-grid strong {
  font-size: 34px;
  color: var(--green);
}

.result-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.email-result-card {
  padding: 20px;
  border: 1px solid #d8eadf;
  border-radius: 18px;
  background: linear-gradient(135deg, #f1fbf5, #fffdf9);
  display: grid;
  gap: 16px;
}

.email-result-card > div:first-child {
  display: grid;
  gap: 5px;
}

.email-result-card strong {
  font-size: 20px;
}

.email-result-card span,
.email-result-status {
  color: var(--muted);
  line-height: 1.55;
}

.email-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.email-result-row input {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
}

.email-result-status {
  min-height: 24px;
  margin: 0;
  font-size: 16px;
  font-weight: 850;
}

.email-result-status[data-status="success"] {
  color: var(--green);
}

.email-result-status[data-status="error"] {
  color: #b54708;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.breakdown-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  background: #fff;
}

.breakdown-card summary {
  cursor: pointer;
  font-weight: 950;
}

#breakdown-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee7dc;
}

.breakdown-row:last-child {
  border-bottom: 0;
}

.seo-body {
  background:
    radial-gradient(circle at top right, rgba(200, 161, 91, .16), transparent 36%),
    linear-gradient(110deg, #ffffff 0%, #f8f5ee 62%, #f1e8d9 100%);
}

.seo-header,
.seo-hero,
.seo-content-grid,
.seo-tool-band,
.seo-faq,
.seo-cluster,
.seo-footer {
  width: min(1180px, calc(100vw - 48px));
  margin-left: auto;
  margin-right: auto;
}

.seo-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 0;
}

.seo-header img {
  width: 154px;
  height: auto;
  display: block;
}

.seo-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 900;
}

.seo-header nav a {
  text-decoration: none;
}

.seo-header nav a:hover {
  color: var(--ink);
}

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: stretch;
  padding: 42px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.seo-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.seo-hero-copy h1 {
  max-width: 760px;
  font-size: 52px;
  line-height: 1.02;
}

.seo-hero-copy p {
  max-width: 740px;
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.seo-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-proof span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.seo-check-card {
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: start;
  background: linear-gradient(180deg, #fefaf2, #fff);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.seo-check-card img {
  width: 210px;
  justify-self: center;
}

.seo-check-card strong {
  font-size: 25px;
  line-height: 1.15;
}

.seo-check-card p {
  font-size: 16px;
}

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

.seo-content-grid article,
.seo-tool-band,
.seo-faq,
.seo-cluster {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(13, 27, 51, .08);
}

.seo-content-grid article {
  padding: 26px;
}

.seo-content-grid h2 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.15;
}

.seo-content-grid p {
  font-size: 17px;
}

.seo-tool-band {
  margin-top: 28px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background:
    linear-gradient(100deg, rgba(7, 29, 56, .96), rgba(13, 43, 77, .94)),
    #071d38;
  color: #fff;
}

.seo-tool-band p,
.seo-tool-band .eyebrow {
  color: rgba(255, 255, 255, .78);
}

.seo-tool-band h2 {
  margin: 8px 0;
  font-size: 32px;
}

.seo-tool-band .btn-primary {
  background: var(--gold-soft);
  color: var(--ink);
  flex: 0 0 auto;
}

.seo-faq,
.seo-cluster {
  margin-top: 28px;
  padding: 30px;
}

.seo-faq h2,
.seo-cluster h2 {
  margin: 8px 0 18px;
  font-size: 32px;
}

.seo-faq details {
  border-top: 1px solid #eee7dc;
  padding: 18px 0;
}

.seo-faq details:last-child {
  border-bottom: 1px solid #eee7dc;
}

.seo-faq summary {
  cursor: pointer;
  font-size: 19px;
  font-weight: 950;
}

.seo-faq details p {
  margin-top: 10px;
  font-size: 17px;
}

.seo-cluster div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.seo-cluster a {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-weight: 900;
}

.seo-cluster a:hover {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.seo-footer {
  padding: 34px 0 46px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 900;
}

.seo-footer a {
  color: var(--ink);
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .sidebar nav,
  .help-card {
    display: none;
  }

  .logo {
    width: 126px;
  }

  .main {
    width: 100%;
    padding: 22px 16px 42px;
  }

  .topbar {
    align-items: flex-start;
    display: grid;
  }

  .topbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .language-toggle {
    flex: 1;
  }

  .language-toggle button {
    flex: 1;
  }

  h1 {
    font-size: 34px;
  }

  h2,
  .step-pane h2 {
    font-size: 28px;
  }

  p {
    font-size: 16px;
  }

  .hero-card,
  .check-layout,
  .result-hero,
  .result-grid,
  .field-grid,
  .lookup-grid,
  .choices.is-two {
    grid-template-columns: 1fr;
  }

  .desktop-stepper {
    display: none;
  }

  .hero-card {
    padding: 24px;
  }

  .hero-card img {
    width: 210px;
    justify-self: center;
  }

  .wizard-card {
    min-height: 0;
    padding: 22px;
  }

  .step-topline {
    justify-items: center;
    text-align: center;
  }

  .step-pane {
    text-align: center;
  }

  .choice {
    text-align: left;
  }

  .side-panel {
    display: none;
  }

  .button-row,
  .result-actions,
  .email-result-row {
    flex-direction: column;
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn,
  .portal-link,
  .email-result-row input {
    width: 100%;
  }

  .seo-header,
  .seo-hero,
  .seo-content-grid,
  .seo-tool-band,
  .seo-faq,
  .seo-cluster,
  .seo-footer {
    width: min(100% - 28px, 720px);
  }

  .seo-header {
    min-height: 78px;
    padding: 16px 0;
  }

  .seo-header nav {
    display: none;
  }

  .seo-header img {
    width: 126px;
  }

  .seo-header .btn {
    width: auto;
    min-height: 44px;
    padding: 0 16px;
  }

  .seo-hero,
  .seo-content-grid {
    grid-template-columns: 1fr;
  }

  .seo-hero {
    padding: 24px;
  }

  .seo-hero-copy h1 {
    font-size: 34px;
  }

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

  .seo-check-card img {
    width: 180px;
  }

  .seo-tool-band {
    display: grid;
    padding: 24px;
  }

  .seo-tool-band .btn {
    width: 100%;
  }

  .seo-tool-band h2,
  .seo-faq h2,
  .seo-cluster h2 {
    font-size: 27px;
  }

  .seo-faq,
  .seo-cluster {
    padding: 24px;
  }
}

@media (max-width: 980px) {
  html.is-portal-embed,
  html.is-portal-embed body {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  html.is-portal-embed .app-shell {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  html.is-portal-embed .sidebar {
    display: none;
    position: static;
    height: 60px;
    min-height: 0;
    padding: 10px 14px;
    flex-direction: row;
    align-items: center;
    border-bottom: 1px solid rgba(228, 220, 207, .72);
  }

  html.is-portal-embed .logo {
    width: 118px;
  }

  html.is-portal-embed .main {
    height: 100%;
    min-height: 0;
    align-content: start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
  }

  html.is-portal-embed .check-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    min-height: 100%;
    height: auto;
    gap: 0;
    align-content: start;
    overflow: visible;
  }

  html.is-portal-embed .wizard-card {
    min-height: calc(100dvh - 24px);
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 16px;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(13, 27, 51, .08);
  }

  html.is-portal-embed .progress-row {
    font-size: 14px;
    padding-right: 54px;
  }

  html.is-portal-embed .progress-track {
    margin-bottom: 14px;
  }

  html.is-portal-embed .step-topline {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 7px;
    text-align: center;
  }

  html.is-portal-embed .step-hero-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  html.is-portal-embed .step-pane {
    gap: 12px;
    text-align: center;
  }

  html.is-portal-embed .step-pane h2 {
    font-size: 25px;
  }

  html.is-portal-embed p {
    font-size: 15px;
    line-height: 1.45;
  }

  html.is-portal-embed .choice {
    min-height: 58px;
    padding: 12px 44px 12px 12px;
  }

  html.is-portal-embed .choice strong {
    font-size: 15px;
  }

  html.is-portal-embed .field-grid,
  html.is-portal-embed .lookup-grid,
  html.is-portal-embed .choices.is-two {
    grid-template-columns: 1fr;
  }

  html.is-portal-embed .field input,
  html.is-portal-embed .field select {
    min-height: 48px;
  }

  html.is-portal-embed .button-row {
    position: sticky;
    bottom: 0;
    z-index: 2;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px -16px -16px;
    padding: 12px 16px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .72), #fff 34%);
    border-top: 1px solid rgba(228, 220, 207, .72);
  }

  html.is-portal-embed .btn {
    min-height: 48px;
    width: 100%;
    padding: 0 14px;
  }
}
