:root {
  --navy-950: #071a2b;
  --navy-900: #102a43;
  --navy-800: #173f5f;
  --navy-700: #25516f;
  --teal-700: #087a82;
  --teal-600: #0f8f98;
  --teal-500: #0f9da6;
  --teal-100: #dff5f5;
  --blue-100: #e9f4fa;
  --surface: #ffffff;
  --background: #f4f7f9;
  --background-deep: #eaf1f5;
  --border: #d9e3e9;
  --border-strong: #b8c9d3;
  --text: #263b4a;
  --muted: #617584;
  --green: #207a55;
  --green-bg: #e4f4ec;
  --yellow: #8a6200;
  --yellow-bg: #fff3cb;
  --orange: #a94713;
  --orange-bg: #ffeadb;
  --red: #963838;
  --red-bg: #fae7e7;
  --shadow-sm: 0 7px 20px rgba(16, 42, 67, 0.08);
  --shadow-md: 0 18px 48px rgba(16, 42, 67, 0.12);
  --shadow-lg: 0 32px 80px rgba(7, 26, 43, 0.18);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --max-width: 1180px;
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--teal-700);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--navy-900);
}

button {
  color: inherit;
}

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

h1,
h2,
h3 {
  color: var(--navy-900);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.45rem, 5.2vw, 4.75rem);
  line-height: 1.04;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.15rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

:focus-visible {
  outline: 3px solid #17aab4;
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--navy-950);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform var(--transition);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section-tight {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--teal-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow > span {
  margin-right: 0.35rem;
  color: var(--teal-500);
  font-size: 0.6rem;
}

.eyebrow.light {
  color: #a8f1ef;
}

.section-heading {
  max-width: 730px;
  margin-bottom: 2.7rem;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 1.8rem;
}

.section-heading.compact h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  color: #fff;
  background: var(--teal-700);
  box-shadow: 0 8px 20px rgba(8, 122, 130, 0.22);
}

.button-primary:hover {
  color: #fff;
  background: #066970;
  box-shadow: 0 12px 28px rgba(8, 122, 130, 0.3);
}

.button-secondary {
  color: var(--navy-900);
  background: #fff;
  border-color: var(--border-strong);
}

.button-secondary:hover,
.button-ghost:hover {
  color: var(--navy-900);
  background: var(--blue-100);
  border-color: #8eb2c3;
}

.button-ghost {
  color: var(--navy-700);
  background: transparent;
  border-color: var(--border);
}

.button-light {
  color: var(--navy-950);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.button-light:hover {
  color: var(--navy-950);
  background: #eafafa;
}

.button-small {
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.35rem;
  color: var(--teal-700);
  font-weight: 750;
  text-decoration: none;
}

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

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 227, 233, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy-900);
  text-decoration: none;
}

.brand:hover {
  color: var(--navy-900);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--teal-500), var(--teal-700));
  border-radius: 12px 12px 16px 16px;
  box-shadow: 0 6px 16px rgba(15, 157, 166, 0.28);
  clip-path: polygon(50% 0, 94% 16%, 88% 72%, 50% 100%, 12% 72%, 6% 16%);
}

.brand-mark span {
  transform: translateY(-1px);
  font-weight: 900;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-copy strong {
  font-size: 0.96rem;
  letter-spacing: -0.015em;
}

.brand-copy small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.55rem 0.72rem;
  color: var(--navy-700);
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--navy-900);
  background: var(--background);
}

.site-nav a:nth-child(2) {
  margin-left: 0.3rem;
  color: #fff;
  background: var(--navy-900);
}

.site-nav a:nth-child(2):hover {
  background: var(--teal-700);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--navy-900);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4.5rem, 9vw, 8.5rem);
  background:
    linear-gradient(135deg, rgba(233, 244, 250, 0.72), rgba(255, 255, 255, 0.25) 45%),
    #fff;
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16, 42, 67, 0.026) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 42, 67, 0.026) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: clamp(3rem, 7vw, 6.5rem);
}

.hero h1 span {
  color: var(--teal-700);
}

.hero-lead {
  max-width: 710px;
  margin-bottom: 1.8rem;
  color: #4d6575;
  font-size: clamp(1.06rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  margin: 1.7rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
  list-style: none;
}

.trust-list span {
  display: inline-grid;
  width: 19px;
  height: 19px;
  margin-right: 0.4rem;
  place-items: center;
  color: var(--green);
  background: var(--green-bg);
  border-radius: 50%;
  font-size: 0.7rem;
}

.hero-panel {
  position: relative;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(184, 201, 211, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(1deg);
}

.hero-panel::before {
  position: absolute;
  z-index: -1;
  inset: 18px -20px -18px 25px;
  background: linear-gradient(150deg, #d9f2f2, #e8f2f7);
  border-radius: var(--radius-lg);
  content: "";
}

.hero-panel-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.45rem 0.35rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.hero-panel-head > div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.hero-panel-head strong {
  color: var(--navy-900);
}

.hero-panel-head small {
  color: var(--muted);
}

.mini-shield {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--teal-700);
  border-radius: 12px;
  font-weight: 900;
}

.topic-grid {
  display: grid;
  margin-block: 1.1rem;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.topic-grid article {
  display: grid;
  min-height: 112px;
  align-content: center;
  padding: 1rem;
  background: var(--background);
  border: 1px solid #e3ebf0;
  border-radius: 14px;
}

.topic-grid article > span {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 0.55rem;
  place-items: center;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.topic-grid strong {
  color: var(--navy-900);
  font-size: 0.83rem;
  line-height: 1.3;
}

.topic-grid small {
  color: var(--muted);
  font-size: 0.72rem;
}

.panel-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  color: #31536a;
  background: #edf8f5;
  border-radius: 12px;
  font-size: 0.78rem;
}

.panel-status > span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: #2c9c71;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(44, 156, 113, 0.14);
}

.panel-status p {
  margin: 0;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  background: rgba(15, 157, 166, 0.12);
  border-radius: 50%;
  filter: blur(80px);
}

.hero-glow-one {
  top: 10%;
  right: -180px;
}

.hero-glow-two {
  bottom: -250px;
  left: -150px;
}

/* Notice and benefits */
.notice-section {
  background: var(--background);
}

.notice-card {
  display: grid;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid #bcd6df;
  border-left: 5px solid var(--teal-700);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
}

.notice-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.notice-content > p:not(.eyebrow) {
  max-width: 960px;
  color: #4d6575;
}

.notice-columns {
  display: grid;
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.notice-columns h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
}

.notice-columns ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.notice-content .source-links {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}

.source-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-inline: 0.25rem;
  color: var(--teal-800);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.good-dot,
.neutral-dot {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
}

.good-dot {
  color: var(--green);
  background: var(--green-bg);
}

.neutral-dot {
  color: var(--navy-700);
  background: var(--blue-100);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.benefit-grid article {
  padding: 1.65rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.benefit-grid article:hover {
  border-color: #a7c8d2;
  box-shadow: var(--shadow-sm);
}

.benefit-grid p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  display: grid;
  width: 43px;
  height: 43px;
  margin-bottom: 1.2rem;
  place-items: center;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

.local-privacy {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 1.25rem 1.5rem;
  color: #365468;
  background: #f1f8f8;
  border: 1px solid #cfe6e5;
  border-radius: var(--radius-md);
}

.local-privacy p {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
}

.privacy-lock {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--teal-700);
  border-radius: 12px;
  font-weight: 900;
}

.privacy-badge,
.local-chip {
  margin-left: auto;
  padding: 0.35rem 0.65rem;
  color: var(--green);
  background: var(--green-bg);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Wizard */
.wizard-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(15, 157, 166, 0.08), transparent 28rem),
    linear-gradient(180deg, var(--background), #edf3f6);
}

.wizard-shell {
  max-width: 980px;
}

.wizard-intro {
  margin-bottom: 2rem;
}

.resume-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  background: var(--yellow-bg);
  border: 1px solid #e8ca70;
  border-radius: 14px;
}

.resume-banner p {
  margin: 0.1rem 0 0;
  color: #6f5a22;
  font-size: 0.88rem;
}

.resume-actions {
  display: flex;
  gap: 0.6rem;
}

.wizard-card {
  overflow: hidden;
  padding: clamp(1.25rem, 4.5vw, 3rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.wizard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.step-meta {
  display: flex;
  flex-direction: column;
}

.step-meta span {
  color: var(--teal-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-meta strong {
  color: var(--navy-900);
  font-size: 0.96rem;
}

.progress-value {
  color: var(--navy-700);
  font-size: 0.82rem;
  font-weight: 800;
}

.progress-value span {
  font-size: 1.05rem;
}

.progress-track {
  height: 8px;
  margin-top: 0.75rem;
  overflow: hidden;
  background: #e3eaee;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 10%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal-700), #38b7b9);
  border-radius: inherit;
  transition: width 260ms ease;
}

.storage-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--background);
  border-radius: 12px;
}

.storage-control > div {
  display: flex;
  flex-direction: column;
}

.storage-control strong {
  color: var(--navy-900);
  font-size: 0.85rem;
}

.storage-control small {
  color: var(--muted);
  font-size: 0.72rem;
}

.switch {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  cursor: pointer;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch > span[aria-hidden] {
  position: relative;
  display: block;
  width: 50px;
  height: 28px;
  background: #aebdc6;
  border-radius: 999px;
  transition: background var(--transition);
  pointer-events: none;
}

.switch > span[aria-hidden]::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  content: "";
  transition: transform var(--transition);
}

.switch input:checked + span {
  background: var(--teal-700);
}

.switch input:checked + span::after {
  transform: translateX(22px);
}

.switch input:focus-visible + span {
  outline: 3px solid #17aab4;
  outline-offset: 3px;
}

.step-container {
  min-height: 420px;
  padding-block: clamp(2rem, 5vw, 3.25rem) 1.8rem;
}

.step-head {
  max-width: 720px;
  margin-bottom: 2rem;
}

.step-head h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
}

.step-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.step-intro {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  color: #36566a !important;
  background: var(--blue-100);
  border-left: 3px solid var(--teal-700);
  border-radius: 10px;
  font-size: 0.9rem;
}

.question-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.question-group + .question-group {
  margin-top: 2.3rem;
  padding-top: 2.3rem;
  border-top: 1px solid var(--border);
}

.question-group legend {
  width: 100%;
  margin-bottom: 0.25rem;
  color: var(--navy-900);
  font-size: 1.07rem;
  font-weight: 800;
  line-height: 1.4;
}

.required-mark {
  color: var(--red);
}

.question-hint {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.option-card {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.option-card:hover {
  background: #f7fbfb;
  border-color: #8bbdc0;
  transform: translateY(-1px);
}

.option-card:has(input:checked) {
  background: #edf9f8;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 1px var(--teal-700);
}

.option-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.option-card:has(input:focus-visible) {
  outline: 3px solid #17aab4;
  outline-offset: 2px;
}

.option-control {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  background: #fff;
  border: 1.5px solid #9cafba;
  border-radius: 50%;
}

.option-card.checkbox .option-control {
  border-radius: 6px;
}

.option-control::after {
  width: 10px;
  height: 10px;
  background: var(--teal-700);
  border-radius: 50%;
  content: "";
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--transition), transform var(--transition);
}

.option-card.checkbox .option-control::after {
  width: 10px;
  height: 6px;
  background: transparent;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  border-radius: 0;
  transform: rotate(-45deg) translateY(-1px) scale(0.6);
}

.option-card:has(input:checked) .option-control {
  background: var(--teal-700);
  border-color: var(--teal-700);
}

.option-card:has(input:checked) .option-control::after {
  opacity: 1;
  transform: scale(1);
}

.option-card.checkbox:has(input:checked) .option-control::after {
  transform: rotate(-45deg) translateY(-1px) scale(1);
}

.option-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: #334c5d;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
}

.option-copy small {
  color: var(--muted);
  font-weight: 500;
}

.error-summary {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  color: #702c2c;
  background: var(--red-bg);
  border: 1px solid #ddaaaa;
  border-radius: 10px;
  font-size: 0.9rem;
}

.error-summary ul {
  margin-block: 0.45rem 0;
}

.error-summary a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: inherit;
  font-weight: 750;
}

.question-group.has-error .option-grid {
  padding: 0.35rem;
  border: 2px solid #c65a5a;
  border-radius: 14px;
}

.question-group[aria-invalid="true"]:focus {
  outline: 3px solid #c65a5a;
  outline-offset: 4px;
}

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

.wizard-utilities {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.utility-button {
  min-height: 44px;
  padding: 0.45rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.utility-button:hover {
  color: var(--navy-900);
}

.utility-button.danger:hover {
  color: var(--red);
}

.save-status {
  min-height: 1.5rem;
  margin: 0.25rem 0 0;
  color: var(--green);
  font-size: 0.78rem;
  text-align: center;
}

.wizard-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.wizard-disclaimer span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  background: #dfe8ed;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 800;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.summary-card {
  padding: 1.1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.summary-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.summary-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.edit-step {
  min-width: 44px;
  min-height: 44px;
  padding: 0.3rem;
  color: var(--teal-700);
  background: transparent;
  border: 0;
  font-size: 0.75rem;
  font-weight: 750;
  text-decoration: underline;
  cursor: pointer;
}

/* Results */
.results-section {
  background: #fff;
}

.results-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.results-kicker span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
}

.result-hero {
  display: grid;
  overflow: hidden;
  padding: clamp(1.6rem, 5vw, 3rem);
  color: #fff;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 5vw, 3rem);
}

.result-hero.status-green { background: linear-gradient(135deg, #174f40, #207a55); }
.result-hero.status-yellow { background: linear-gradient(135deg, #5e4813, #89620b); }
.result-hero.status-orange { background: linear-gradient(135deg, #79320e, #a94713); }
.result-hero.status-red { background: linear-gradient(135deg, #6f2929, #963838); }

.score-ring {
  --score: 0;
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  background: conic-gradient(#fff calc(var(--score) * 1%), rgba(255,255,255,.22) 0);
  border-radius: 50%;
}

.score-ring::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 122px;
  height: 122px;
  background: rgba(0, 0, 0, 0.24);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.score-ring-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  color: #fff;
  text-align: center;
}

.score-ring-inner strong {
  font-size: 2.2rem;
  line-height: 1;
}

.score-ring-inner small {
  max-width: 108px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.result-hero-copy {
  align-self: center;
}

.result-status-badge {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.65rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.result-hero h1,
.result-hero h2 {
  margin-bottom: 0.8rem;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.result-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
}

.result-hero .result-disclaimer {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

.result-toolbar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.result-block {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.priority-grid,
.split-guidance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.priority-panel {
  padding: clamp(1.35rem, 4vw, 2rem);
  background: #fff8f4;
  border: 1px solid #efd4c4;
  border-radius: var(--radius-md);
}

.priority-panel.next {
  background: #f0f8f7;
  border-color: #c9e3e0;
}

.priority-list {
  display: grid;
  margin: 1.25rem 0 0;
  padding: 0;
  counter-reset: priorities;
  list-style: none;
  gap: 0.8rem;
}

.priority-list li {
  display: grid;
  align-items: start;
  color: #415a69;
  font-size: 0.9rem;
  grid-template-columns: 32px 1fr;
  gap: 0.65rem;
}

.priority-list li::before {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--orange);
  background: var(--orange-bg);
  border-radius: 8px;
  content: counter(priorities);
  counter-increment: priorities;
  font-size: 0.75rem;
  font-weight: 900;
}

.priority-panel.next li::before {
  color: var(--green);
  background: var(--green-bg);
}

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

.category-card {
  min-width: 0;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--status-color, var(--border-strong));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.category-card.status-green { --status-color: var(--green); }
.category-card.status-yellow { --status-color: var(--yellow); }
.category-card.status-orange { --status-color: var(--orange); }
.category-card.status-red { --status-color: var(--red); }
.category-card.status-na { --status-color: var(--border-strong); }

.category-head {
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.category-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--navy-700);
  background: var(--background);
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 900;
}

.category-title h3 {
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.category-score {
  color: var(--navy-900);
  font-size: 1.12rem;
  font-weight: 900;
}

.category-score small {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.27rem 0.55rem;
  color: var(--status-text, var(--navy-700));
  background: var(--status-bg, var(--background));
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
}

.status-green .status-badge { --status-text: var(--green); --status-bg: var(--green-bg); }
.status-yellow .status-badge { --status-text: var(--yellow); --status-bg: var(--yellow-bg); }
.status-orange .status-badge { --status-text: var(--orange); --status-bg: var(--orange-bg); }
.status-red .status-badge { --status-text: var(--red); --status-bg: var(--red-bg); }

.category-card > p {
  margin: 0.9rem 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.category-card details {
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.category-card summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--teal-700);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.category-card details ul {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.todo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.todo-column {
  padding: 1.4rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.todo-column.urgent { background: #fff5f0; border-color: #efd0bd; }
.todo-column.before { background: #fffaf0; border-color: #ebdcaa; }
.todo-column.after { background: #f0f8f7; border-color: #c9e3e0; }

.todo-column h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.todo-column h3 span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  font-size: 0.72rem;
}

.todo-column ul,
.check-list {
  display: grid;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  gap: 0.7rem;
}

.todo-column li,
.check-list li {
  position: relative;
  padding-left: 1.35rem;
  color: #4d6575;
  font-size: 0.86rem;
}

.todo-column li::before,
.check-list li::before {
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--teal-700);
  border-radius: 50%;
  content: "";
}

.urgent li::before { background: var(--orange); }
.before li::before { background: var(--yellow); }
.after li::before { background: var(--green); }

.guidance-card {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.2rem);
  border-radius: var(--radius-md);
}

.legal-guidance {
  background: #f6f3fb;
  border: 1px solid #dcd2ea;
}

.technical-guidance {
  background: #edf8f7;
  border: 1px solid #c4e3df;
}

.technical-guidance.is-priority {
  border: 2px solid var(--teal-700);
  box-shadow: 0 15px 40px rgba(8, 122, 130, 0.14);
}

.technical-guidance.is-priority::before {
  position: absolute;
  top: -13px;
  right: 20px;
  padding: 0.28rem 0.65rem;
  color: #fff;
  background: var(--teal-700);
  border-radius: 999px;
  content: "Passend zu Ihren Angaben";
  font-size: 0.68rem;
  font-weight: 850;
}

.guidance-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  place-items: center;
  color: var(--navy-700);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  font-weight: 900;
}

.guidance-card h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.guidance-card > p:not(.eyebrow) {
  color: var(--muted);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.bfsg-card {
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: #f2f7fb;
  border: 1px solid #cbdde8;
  border-radius: var(--radius-md);
}

.bfsg-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.bfsg-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.bfsg-card p {
  color: #4b6474;
}

.bfsg-note {
  padding: 1rem;
  color: #4b6474;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.82rem;
}

.report-card {
  padding: clamp(1.4rem, 5vw, 2.5rem);
  background: var(--navy-950);
  border-radius: var(--radius-lg);
}

.report-head {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.report-head h2,
.report-head p {
  color: #fff;
}

.report-head > div > p:last-child {
  color: #b9c8d1;
}

.report-card pre {
  max-height: 540px;
  margin: 1.2rem 0;
  padding: 1.25rem;
  overflow: auto;
  color: #dce9ee;
  background: #0c2234;
  border: 1px solid #2d4b60;
  border-radius: 13px;
  font: 0.78rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.report-card .button-secondary,
.report-card .button-ghost {
  color: #fff;
  background: transparent;
  border-color: #557083;
}

.report-card .button-secondary:hover,
.report-card .button-ghost:hover {
  background: #19394f;
}

.report-card .text-link {
  color: #9ee6e3;
}

.report-card .save-status {
  color: #9ee6e3;
  text-align: left;
}

/* CTA, FAQ, footer */
.agency-cta {
  color: #fff;
  background:
    radial-gradient(circle at 90% 0, rgba(56, 183, 185, 0.28), transparent 35rem),
    var(--navy-900);
}

.agency-cta-inner {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 8vw, 6rem);
}

.agency-cta h2 {
  color: #fff;
}

.agency-cta p:not(.eyebrow) {
  max-width: 790px;
  margin-bottom: 0;
  color: #c7d5de;
}

.agency-actions {
  display: flex;
  min-width: 245px;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  text-align: center;
}

.agency-actions > a:not(.button) {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: #a8f1ef;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.faq-section {
  background: var(--background);
}

.faq-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 7vw, 6rem);
}

.faq-heading {
  position: sticky;
  top: 110px;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
}

.faq-item[open] {
  border-color: #a9cbd3;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  position: relative;
  min-height: 58px;
  padding: 1rem 3.2rem 1rem 1.1rem;
  color: var(--navy-900);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: 8px;
  content: "+";
  font-size: 1.2rem;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.1rem 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.faq-answer p {
  margin-bottom: 0.65rem;
}

.faq-answer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 750;
}

.site-footer {
  padding-top: 4.5rem;
  color: #aebfca;
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  padding-bottom: 3rem;
  grid-template-columns: 1.5fr 0.7fr 0.8fr;
  gap: 3rem;
}

.footer-brand {
  margin-bottom: 1rem;
  color: #fff;
}

.footer-brand:hover {
  color: #fff;
}

.footer-brand .brand-copy small {
  color: #9eb0bc;
}

.footer-grid p {
  max-width: 480px;
  font-size: 0.85rem;
}

.footer-grid h2 {
  margin-bottom: 0.8rem;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.footer-grid > div:not(:first-child) a {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: #b9c8d1;
  font-size: 0.84rem;
  text-decoration: none;
}

.footer-grid a:hover {
  color: #a8f1ef !important;
}

.footer-bottom {
  display: flex;
  padding-block: 1.2rem;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #284254;
  font-size: 0.75rem;
}

.noscript {
  position: fixed;
  z-index: 9999;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 1rem;
  color: #fff;
  background: var(--red);
  border-radius: 10px;
  text-align: center;
}

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

  .site-nav {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    padding: 1rem;
    overflow: auto;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a,
  .site-nav a:nth-child(2) {
    margin: 0;
    padding: 0.8rem 1rem;
  }

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

  .hero-copy {
    max-width: 800px;
  }

  .hero-panel {
    width: min(100%, 650px);
    margin-inline: auto;
    transform: none;
  }

  .agency-cta-inner,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-heading {
    position: static;
  }

  .agency-actions {
    width: min(100%, 380px);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .brand-copy strong {
    max-width: 215px;
    font-size: 0.82rem;
  }

  .brand-copy small {
    font-size: 0.62rem;
  }

  .notice-columns,
  .benefit-grid,
  .priority-grid,
  .split-guidance,
  .category-grid,
  .todo-grid,
  .bfsg-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .local-privacy {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .privacy-badge {
    margin-left: 58px;
  }

  .option-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .result-hero {
    justify-items: center;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .result-hero-copy p {
    margin-inline: auto;
  }

  .result-toolbar,
  .report-actions,
  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .report-actions .text-link,
  .card-actions .text-link {
    justify-content: center;
  }

  .resume-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .resume-actions .button {
    flex: 1;
  }

  .footer-grid {
    gap: 1.8rem;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.25rem;
  }

  .section {
    padding-block: 4.2rem;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 37px;
    height: 41px;
  }

  .brand-copy strong {
    max-width: 190px;
  }

  .brand-copy small {
    display: none;
  }

  .site-nav {
    top: 68px;
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
  }

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

  .topic-grid article {
    min-height: 92px;
  }

  .wizard-card {
    padding-inline: 1rem;
    border-radius: 18px;
  }

  .storage-control {
    align-items: flex-start;
  }

  .wizard-actions .button {
    flex: 1;
    padding-inline: 0.75rem;
  }

  .wizard-utilities {
    gap: 0.25rem;
  }

  .result-hero,
  .report-card {
    border-radius: 18px;
  }

  .score-ring {
    width: 132px;
    height: 132px;
  }

  .score-ring::before {
    width: 106px;
    height: 106px;
  }

  .report-head {
    flex-direction: column;
  }

  .local-chip {
    margin-left: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

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

@media print {
  @page {
    margin: 14mm;
  }

  body {
    color: #111;
    background: #fff;
    font-size: 10pt;
  }

  [data-print-hide],
  .wizard-section,
  .benefits,
  .notice-section,
  .faq-section,
  .agency-cta,
  .results-kicker {
    display: none !important;
  }

  .hero {
    display: none;
  }

  .results-section[hidden] {
    display: none !important;
  }

  .results-section {
    display: block !important;
    padding: 0;
  }

  .container {
    width: 100%;
    max-width: none;
  }

  .result-hero {
    padding: 14pt;
    color: #111;
    background: #f0f2f3 !important;
    border: 1px solid #bbb;
    box-shadow: none;
    print-color-adjust: exact;
  }

  .result-hero h2,
  .result-hero p,
  .result-hero .result-disclaimer,
  .score-ring-inner {
    color: #111;
  }

  .score-ring {
    background: #fff;
    border: 5px solid #333;
  }

  .score-ring::before {
    display: none;
  }

  .result-block {
    margin-top: 20pt;
  }

  .category-grid,
  .todo-grid,
  .priority-grid,
  .split-guidance,
  .bfsg-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .category-card,
  .priority-panel,
  .todo-column,
  .guidance-card,
  .bfsg-card,
  .report-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .report-card {
    color: #111;
    background: #fff;
    border: 1px solid #aaa;
  }

  .report-head h2,
  .report-head p,
  .report-card pre {
    color: #111 !important;
  }

  .report-card pre {
    max-height: none;
    overflow: visible;
    background: #fff;
    border-color: #bbb;
    white-space: pre-wrap;
  }

  details {
    display: block;
  }

  details > * {
    display: block;
  }

  details summary {
    display: none;
  }
}
