:root {
  --ink: #111114;
  --ink-soft: #29282d;
  --paper: #f7f3eb;
  --paper-deep: #ece6da;
  --white: #ffffff;
  --signal: #f1ff4f;
  --pink: #ef2b78;
  --blue: #8fdcff;
  --muted: #6f6b70;
  --line: rgba(17, 17, 20, 0.16);
  --line-strong: rgba(17, 17, 20, 0.3);
  --danger: #b62142;
  --success: #176c4c;
  --radius-lg: 32px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px rgba(17, 17, 20, 0.12);
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.campaign-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  display: flex;
  width: min(100% - 48px, 1240px);
  height: 86px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateX(-50%);
}

.campaign-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.campaign-brand img {
  border-radius: 9px;
}

.campaign-brand span,
.campaign-brand strong,
.campaign-brand small {
  display: block;
}

.campaign-brand strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.campaign-brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.11em;
}

.header-note {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.campaign-kicker {
  margin: 0 0 18px;
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.campaign-kicker span {
  display: inline-block;
  margin-right: 8px;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--signal);
  color: var(--ink);
}

/* Intro */

.intro-screen {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(340px, 0.8fr) minmax(460px, 1.2fr);
  align-items: center;
  gap: clamp(40px, 8vw, 130px);
  padding: 136px max(32px, calc((100vw - 1240px) / 2)) 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 28%, rgba(241, 255, 79, 0.15), transparent 25%),
    radial-gradient(circle at 18% 78%, rgba(239, 43, 120, 0.12), transparent 28%),
    var(--ink);
  color: #fff;
}

.intro-orbit {
  position: relative;
  display: grid;
  width: min(39vw, 470px);
  aspect-ratio: 1;
  place-content: center;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  text-align: center;
}

.intro-orbit::before,
.intro-orbit::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.intro-orbit::before {
  inset: 10%;
}

.intro-orbit::after {
  inset: 24%;
  background: rgba(255, 255, 255, 0.025);
}

.intro-orbit > span,
.intro-orbit > strong,
.intro-orbit > i {
  position: relative;
  z-index: 1;
}

.intro-orbit > span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
}

.intro-orbit > strong {
  margin-top: 10px;
  font-size: clamp(2.5rem, 5vw, 5.1rem);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.intro-orbit > i {
  display: block;
  width: 62%;
  height: 9px;
  margin: 30px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink) 0 58%, rgba(255, 255, 255, 0.12) 58%);
}

.intro-orbit > i::after {
  position: absolute;
  content: "58%";
  top: 18px;
  right: 19%;
  color: var(--signal);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 850;
}

.intro-copy {
  max-width: 690px;
}

.intro-copy h1 {
  margin: 0;
  font-size: clamp(3.1rem, 6.7vw, 7.2rem);
  font-weight: 950;
  letter-spacing: -0.085em;
  line-height: 0.94;
}

.intro-copy h1 em {
  color: var(--signal);
  font-style: normal;
}

.intro-statement {
  max-width: 600px;
  margin: 34px 0 0;
  border-left: 2px solid var(--pink);
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.85;
}

.intro-statement p {
  margin: 0;
}

.intro-statement p + p {
  margin-top: 7px;
}

.intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.intro-meta span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
}

.primary-action,
.next-action,
.submit-action {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  border-radius: 999px;
  padding: 12px 14px 12px 23px;
  background: var(--signal);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-action i,
.next-action i,
.submit-action i {
  display: grid;
  width: 34px;
  height: 34px;
  place-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-style: normal;
}

.primary-action:hover,
.next-action:hover,
.submit-action:hover {
  transform: translateY(-2px);
}

.intro-copy > .primary-action {
  margin-top: 32px;
}

.deadline-note {
  margin: 13px 0 0 22px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.62rem;
}

.closed-notice {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
}

/* Survey */

.survey-shell {
  width: min(100% - 36px, 940px);
  margin: 0 auto;
  padding: 34px 0 100px;
}

.survey-progress {
  position: sticky;
  z-index: 20;
  top: 12px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 17px;
  background: rgba(247, 243, 235, 0.91);
  box-shadow: 0 12px 35px rgba(17, 17, 20, 0.08);
  backdrop-filter: blur(14px);
}

.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.progress-copy span {
  color: var(--pink);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.progress-copy strong {
  font-size: 0.72rem;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.1);
}

.progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--pink);
  transition: width 260ms ease;
}

.progress-steps {
  display: none;
}

.survey-step {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 5vw, 58px);
  background: #fff;
  box-shadow: var(--shadow);
}

.step-heading {
  margin-bottom: 50px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
}

.step-heading > p {
  margin: 0 0 13px;
  color: var(--pink);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.step-heading h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  letter-spacing: -0.07em;
  line-height: 1;
}

.step-heading > span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.question-block {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
  scroll-margin-top: 110px;
}

.question-block + .question-block {
  margin-top: 62px;
  border-top: 1px solid var(--line);
  padding-top: 62px;
}

.question-block legend {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 23px;
  padding: 0;
  font-size: clamp(1.22rem, 2.5vw, 1.8rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.4;
}

.question-block legend > span {
  flex: 0 0 auto;
  margin-top: 2px;
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--ink);
  color: #fff;
  font-size: 0.58rem;
  letter-spacing: 0;
}

.question-block legend > i {
  flex: 0 0 auto;
  margin-top: 5px;
  color: var(--pink);
  font-size: 0.58rem;
  font-style: normal;
  letter-spacing: 0.05em;
}

.question-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -10px 0 14px;
  color: var(--muted);
  font-size: 0.66rem;
}

.question-hint b {
  color: var(--ink);
  font-size: 0.62rem;
}

.option-grid,
.option-stack,
.invitation-grid,
.weather-grid {
  display: grid;
  gap: 10px;
}

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

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

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

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

.option-card,
.battery-options label,
.weather-card {
  position: relative;
  cursor: pointer;
}

.option-card input,
.battery-options input,
.weather-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card > span {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 42px 12px 15px;
  background: var(--paper);
  font-size: 0.73rem;
  font-weight: 690;
  line-height: 1.45;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.option-card > span::after {
  position: absolute;
  content: "";
  top: 50%;
  right: 15px;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translateY(-50%);
}

.option-card input[type="checkbox"] + span::after {
  border-radius: 5px;
}

.option-card input:checked + span {
  border-color: var(--ink);
  background: var(--signal);
  transform: translateY(-1px);
}

.option-card input:checked + span::after {
  border: 5px solid var(--ink);
  background: #fff;
}

.option-card input[type="checkbox"]:checked + span::after {
  content: "✓";
  display: grid;
  place-content: center;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
}

.option-card input:focus-visible + span,
.battery-options input:focus-visible + span,
.weather-card input:focus-visible + span {
  outline: 3px solid rgba(239, 43, 120, 0.35);
  outline-offset: 2px;
}

.option-card-positive > span {
  border-color: rgba(23, 108, 76, 0.28);
  background: #f1fbf4;
}

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

.battery-options label > span {
  display: grid;
  min-height: 148px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  background: var(--paper);
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.battery-options strong,
.battery-options small {
  display: block;
}

.battery-options strong {
  font-size: 1.5rem;
  letter-spacing: -0.06em;
}

.battery-options small {
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.5;
}

.battery-options input:checked + span {
  border-color: var(--ink);
  background: var(--signal);
  transform: translateY(-2px);
}

.battery-options input:checked + span small {
  color: var(--ink);
}

.conditional-field {
  margin-top: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 15px;
  background: #fff;
}

.conditional-field label,
.conditional-field label small {
  display: block;
}

.conditional-field label {
  margin-bottom: 9px;
  font-size: 0.73rem;
  font-weight: 800;
}

.conditional-field label small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 500;
}

.conditional-field input,
.password-field input,
.records-filters input[type="search"],
.records-filters select {
  width: 100%;
  height: 49px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 13px;
  background: var(--paper);
  color: var(--ink);
  outline: 0;
}

.conditional-field input:focus,
.password-field input:focus,
.records-filters input:focus,
.records-filters select:focus,
.textarea-shell:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(239, 43, 120, 0.1);
}

.statement-lead {
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.75;
}

.textarea-shell {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.textarea-shell textarea {
  display: block;
  width: 100%;
  min-height: 160px;
  resize: vertical;
  border: 0;
  padding: 22px 22px 42px;
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.8;
  outline: 0;
}

.textarea-shell > span {
  position: absolute;
  right: 18px;
  bottom: 13px;
  color: var(--muted);
  font-size: 0.62rem;
}

.textarea-shell > span b {
  color: var(--ink);
}

.sentence-starters {
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}

.sentence-starters summary {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 720;
  cursor: pointer;
}

.sentence-starters[open] summary {
  margin-bottom: 11px;
}

.sentence-starters button {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 10px 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.67rem;
  text-align: left;
  cursor: pointer;
}

.sentence-starters button:hover {
  color: var(--pink);
}

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

.weather-card > span {
  display: grid;
  min-height: 104px;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--paper);
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.weather-card b {
  display: grid;
  grid-row: 1 / 3;
  width: 39px;
  height: 39px;
  place-content: center;
  align-self: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.05rem;
}

.weather-card strong,
.weather-card small {
  display: block;
}

.weather-card strong {
  align-self: end;
  font-size: 0.75rem;
}

.weather-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.61rem;
}

.weather-card input:checked + span {
  border-color: var(--ink);
  background: var(--blue);
  transform: translateY(-1px);
}

.permission-note {
  margin: -5px 0 18px;
  border-left: 3px solid var(--pink);
  padding: 12px 15px;
  background: #fff3f7;
}

.permission-note strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.68rem;
}

.permission-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.65;
}

.field-error {
  min-height: 1.1em;
  margin: 9px 0 0;
  color: var(--danger);
  font-size: 0.64rem;
}

.question-block.has-error legend {
  color: var(--danger);
}

.question-block.has-error .option-card > span,
.question-block.has-error .textarea-shell {
  border-color: rgba(182, 33, 66, 0.55);
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 62px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.back-action {
  min-height: 48px;
  border: 0;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
  cursor: pointer;
}

.next-action,
.submit-action {
  min-width: 180px;
}

.submit-action:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.submit-message,
.gate-message,
.stats-status {
  margin-top: 18px;
  border: 1px solid rgba(182, 33, 66, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #fff2f5;
  color: var(--danger);
  font-size: 0.68rem;
}

.submit-message.is-success,
.stats-status.is-success {
  border-color: rgba(23, 108, 76, 0.25);
  background: #eefaf3;
  color: var(--success);
}

.privacy-footnote {
  margin: 17px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.65;
  text-align: center;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Success */

.success-screen {
  display: grid;
  min-height: calc(100svh - 64px);
  place-content: center;
  justify-items: start;
  padding: 80px max(24px, calc((100vw - 880px) / 2));
  background:
    linear-gradient(135deg, transparent 0 70%, rgba(239, 43, 120, 0.08) 70%),
    var(--paper);
}

.success-signal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.success-signal span {
  font-size: 3.5rem;
  font-weight: 950;
  letter-spacing: -0.1em;
}

.success-signal i {
  display: grid;
  width: 44px;
  height: 44px;
  place-content: center;
  border-radius: 50%;
  background: var(--signal);
  font-style: normal;
  font-weight: 900;
}

.success-screen h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  letter-spacing: -0.08em;
  line-height: 0.98;
}

.success-copy {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.success-copy p {
  margin: 0;
}

.success-screen dl {
  display: grid;
  width: min(100%, 680px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0 0;
  background: var(--line);
}

.success-screen dl > div {
  padding: 17px;
  background: #fff;
}

.success-screen dt {
  color: var(--muted);
  font-size: 0.58rem;
}

.success-screen dd {
  margin: 7px 0 0;
  font-size: 0.78rem;
  font-weight: 850;
}

.success-screen dd a {
  color: var(--pink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.success-lottery {
  display: grid;
  width: min(100%, 680px);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  margin-top: 18px;
  border-radius: var(--radius);
  padding: 22px;
  background: var(--ink);
  color: #fff;
}

.success-lottery span,
.success-lottery strong,
.success-lottery small {
  display: block;
}

.success-lottery > div > span {
  color: var(--signal);
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.success-lottery strong {
  margin-top: 7px;
  font-size: 0.86rem;
}

.success-lottery small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.6rem;
  line-height: 1.55;
}

.lottery-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 999px;
  padding: 9px 10px 9px 18px;
  background: var(--signal);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 850;
}

.lottery-action i {
  display: grid;
  width: 32px;
  height: 32px;
  place-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-style: normal;
}

.share-lead {
  max-width: 580px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.75;
}

.success-screen .primary-action {
  margin-top: 22px;
}

.share-message {
  min-height: 1.1em;
  margin-top: 10px;
  color: var(--success);
  font-size: 0.64rem;
}

.home-link {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 720;
}

/* Public status atlas */

.atlas-page {
  background: var(--paper);
}

.atlas-skip:focus {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  border-radius: 999px;
  padding: 10px 15px;
  background: var(--signal);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 850;
}

.atlas-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  display: flex;
  width: min(100% - 48px, 1240px);
  height: 82px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateX(-50%);
}

.atlas-header-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 10px 8px 16px;
  font-size: 0.64rem;
  font-weight: 820;
}

.atlas-header-action span {
  display: grid;
  width: 25px;
  height: 25px;
  place-content: center;
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
}

.atlas-hero {
  display: grid;
  min-height: 820px;
  grid-template-columns: minmax(0, 1.15fr) minmax(400px, 0.85fr);
  align-items: center;
  gap: clamp(45px, 8vw, 120px);
  overflow: hidden;
  padding: 132px max(32px, calc((100vw - 1240px) / 2)) 74px;
  background:
    radial-gradient(circle at 72% 23%, rgba(241, 255, 79, 0.13), transparent 22%),
    radial-gradient(circle at 16% 82%, rgba(239, 43, 120, 0.14), transparent 30%),
    var(--ink);
  color: #fff;
}

.atlas-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.atlas-eyebrow {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.atlas-eyebrow span {
  margin-right: 9px;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--pink);
  color: #fff;
  font-size: 0.55rem;
}

.atlas-hero h1 {
  margin: 0;
  font-size: clamp(4rem, 7.3vw, 7.7rem);
  font-weight: 950;
  letter-spacing: -0.09em;
  line-height: 0.9;
}

.atlas-hero h1 em {
  color: var(--signal);
  font-style: normal;
}

.atlas-hero-copy > p:not(.atlas-eyebrow, .atlas-updated) {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  line-height: 1.8;
}

.atlas-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 31px;
}

.atlas-primary,
.atlas-secondary {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 999px;
  padding: 10px 12px 10px 20px;
  font-size: 0.7rem;
  font-weight: 850;
}

.atlas-primary {
  background: var(--signal);
  color: var(--ink);
}

.atlas-primary i {
  display: grid;
  width: 32px;
  height: 32px;
  place-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-style: normal;
}

.atlas-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
}

.atlas-updated {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.58rem;
}

.atlas-radar {
  position: relative;
  display: grid;
  width: min(38vw, 490px);
  aspect-ratio: 1;
  place-content: center;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.atlas-radar::before,
.atlas-radar::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.atlas-radar::before { inset: 14%; }
.atlas-radar::after { inset: 29%; }

.atlas-radar > div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.atlas-radar span {
  color: var(--pink);
  font-size: clamp(4.5rem, 8vw, 8rem);
  font-weight: 950;
  letter-spacing: -0.12em;
  line-height: 0.8;
}

.atlas-radar strong {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
}

.atlas-radar i {
  width: 68px;
  height: 8px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--signal);
}

.atlas-radar > b {
  position: absolute;
  right: 8%;
  bottom: 11%;
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.atlas-error {
  display: flex;
  width: min(100% - 40px, 1240px);
  align-items: center;
  gap: 16px;
  margin: 20px auto 0;
  border: 1px solid rgba(182, 33, 66, 0.22);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(182, 33, 66, 0.06);
  font-size: 0.68rem;
}

.atlas-error span { flex: 1; color: var(--muted); }
.atlas-error button { border: 0; border-radius: 999px; padding: 9px 13px; background: var(--ink); color: #fff; cursor: pointer; }

.atlas-snapshot {
  display: grid;
  width: min(100% - 40px, 1240px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: -32px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.atlas-snapshot article {
  position: relative;
  min-height: 180px;
  padding: 26px;
  background: #fff;
}

.atlas-snapshot article:first-child { background: var(--signal); }
.atlas-snapshot span,
.atlas-snapshot strong,
.atlas-snapshot small { display: block; }
.atlas-snapshot span { color: var(--pink); font-size: 0.55rem; font-weight: 850; letter-spacing: 0.1em; }
.atlas-snapshot strong { max-width: 340px; margin-top: 37px; font-size: clamp(1.35rem, 2.6vw, 2.5rem); letter-spacing: -0.05em; line-height: 1.12; }
.atlas-snapshot small { margin-top: 9px; color: var(--muted); font-size: 0.6rem; }

.atlas-content-section,
.atlas-voices,
.atlas-cta,
.atlas-method {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

.atlas-content-section { padding: 110px 0 90px; }

.atlas-section-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(360px, 0.9fr) minmax(260px, 0.5fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: end;
  margin-bottom: 42px;
}

.atlas-section-heading > div { align-self: start; }
.atlas-section-heading > div > span { display: grid; width: 42px; height: 42px; place-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--pink); font-size: 0.62rem; font-weight: 850; }
.atlas-section-heading > div > p { margin: 12px 0 0; color: var(--muted); font-size: 0.55rem; font-weight: 850; letter-spacing: 0.09em; }
.atlas-section-heading h2 { margin: 0; font-size: clamp(2.4rem, 4.7vw, 5rem); letter-spacing: -0.075em; line-height: 0.98; }
.atlas-section-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 0.72rem; line-height: 1.75; }

.atlas-feature-grid,
.atlas-chart-grid {
  display: grid;
  gap: 16px;
}

.atlas-feature-grid { grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr); }
.atlas-chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }

.atlas-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 27px;
  background: #fff;
}

.atlas-panel-dark { background: var(--ink); color: #fff; }

.atlas-panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.atlas-panel-dark .atlas-panel-heading { border-color: rgba(255, 255, 255, 0.13); }
.atlas-panel-heading span { color: var(--pink); font-size: 0.53rem; font-weight: 850; letter-spacing: 0.1em; }
.atlas-panel-heading h3 { margin: 8px 0 0; font-size: 1.5rem; letter-spacing: -0.045em; }
.atlas-panel-heading b { color: var(--paper-deep); font-size: 2rem; line-height: 1; }
.atlas-panel-dark .atlas-panel-heading b { color: rgba(255, 255, 255, 0.08); }

.atlas-battery-chart {
  display: grid;
  min-height: 260px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
  align-items: end;
}

.atlas-battery-column { display: grid; min-width: 0; grid-template-rows: 1fr auto auto; gap: 8px; text-align: center; }
.atlas-battery-column > div { display: flex; min-height: 200px; align-items: end; }
.atlas-battery-column i { display: block; width: 100%; min-height: 3px; border-radius: 8px 8px 2px 2px; background: var(--signal); }
.atlas-battery-column strong { font-size: 0.7rem; }
.atlas-battery-column small { overflow-wrap: anywhere; color: rgba(255, 255, 255, 0.48); font-size: 0.53rem; line-height: 1.4; }

.atlas-rank-list { display: grid; gap: 18px; }
.atlas-rank-row > div { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.atlas-rank-row span { color: var(--pink); font-size: 0.55rem; font-weight: 850; }
.atlas-rank-row strong { min-width: 0; font-size: 0.68rem; line-height: 1.45; }
.atlas-rank-row small { color: var(--muted); font-size: 0.54rem; white-space: nowrap; }
.atlas-rank-row > i { display: block; height: 6px; margin: 8px 0 0 38px; overflow: hidden; border-radius: 999px; background: var(--paper-deep); }
.atlas-rank-row > i > b { display: block; height: 100%; border-radius: inherit; background: var(--pink); }

.atlas-empty { margin: 35px 0; color: var(--muted); font-size: 0.7rem; text-align: center; }

.atlas-voices {
  width: 100%;
  padding: 105px max(20px, calc((100vw - 1240px) / 2));
  background:
    radial-gradient(circle at 87% 8%, rgba(239, 43, 120, 0.17), transparent 24%),
    var(--ink);
  color: #fff;
}

.atlas-section-heading-light > p { color: rgba(255, 255, 255, 0.58); }
.atlas-section-heading-light > div > span { border-color: rgba(255, 255, 255, 0.17); }
.atlas-section-heading-light > div > p { color: rgba(255, 255, 255, 0.45); }

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

.atlas-voice-card {
  display: grid;
  min-height: 250px;
  align-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.atlas-voice-card:nth-child(6n + 2),
.atlas-voice-card:nth-child(6n + 6) { background: var(--signal); color: var(--ink); }
.atlas-voice-card > span { color: var(--pink); font-size: 0.57rem; font-weight: 850; }
.atlas-voice-card blockquote { margin: 28px 0; font-size: clamp(1.05rem, 1.8vw, 1.45rem); font-weight: 760; letter-spacing: -0.025em; line-height: 1.55; }
.atlas-voice-card > p { margin: 0; color: rgba(255, 255, 255, 0.5); font-size: 0.6rem; }
.atlas-voice-card:nth-child(6n + 2) > p,
.atlas-voice-card:nth-child(6n + 6) > p { color: rgba(17, 17, 20, 0.55); }
.atlas-empty-light { grid-column: 1 / -1; color: rgba(255, 255, 255, 0.56); }

.atlas-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  align-items: end;
  padding: 90px 0 76px;
}

.atlas-cta p { margin: 0 0 11px; color: var(--pink); font-size: 0.56rem; font-weight: 850; letter-spacing: 0.11em; }
.atlas-cta h2 { margin: 0; font-size: clamp(2.2rem, 4.2vw, 4.4rem); letter-spacing: -0.07em; line-height: 1; }
.atlas-cta > a { display: inline-flex; min-height: 60px; align-items: center; gap: 35px; border-radius: 999px; padding: 12px 13px 12px 22px; background: var(--ink); color: #fff; font-size: 0.72rem; font-weight: 850; }
.atlas-cta > a i { display: grid; width: 36px; height: 36px; place-content: center; border-radius: 50%; background: var(--signal); color: var(--ink); font-style: normal; }

.atlas-method {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 35px;
  margin-bottom: 70px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.atlas-method strong { color: var(--pink); font-size: 0.66rem; }
.atlas-method p { max-width: 840px; margin: 0; color: var(--muted); font-size: 0.64rem; line-height: 1.8; }
.atlas-footer { width: 100%; }

.campaign-footer {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px max(24px, calc((100vw - 1240px) / 2));
  background: var(--ink);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.62rem;
}

.campaign-footer strong {
  color: var(--signal);
  font-size: 0.74rem;
}

.campaign-footer > div,
.campaign-footer > div span,
.campaign-footer > div a {
  display: inline-flex;
  align-items: center;
}

.campaign-footer > div {
  flex-wrap: wrap;
  gap: 6px 13px;
}

.campaign-footer a,
.gate-legal a,
.dashboard-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Statistics gate */

.stats-page {
  background: var(--ink);
}

.stats-gate {
  display: grid;
  min-height: 100svh;
  place-content: center;
  padding: 32px 18px;
  background:
    radial-gradient(circle at 18% 15%, rgba(239, 43, 120, 0.14), transparent 26%),
    radial-gradient(circle at 84% 82%, rgba(241, 255, 79, 0.1), transparent 28%),
    var(--ink);
}

.gate-card {
  width: min(100%, 470px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: clamp(27px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.campaign-brand-dark {
  margin-bottom: 48px;
}

.lock-mark {
  position: relative;
  width: 56px;
  height: 50px;
  margin-bottom: 26px;
}

.lock-mark span {
  position: absolute;
  top: 0;
  left: 13px;
  width: 30px;
  height: 31px;
  border: 5px solid var(--signal);
  border-bottom: 0;
  border-radius: 17px 17px 0 0;
}

.lock-mark i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30px;
  border-radius: 8px;
  background: var(--signal);
}

.gate-card h1 {
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 4.7rem);
  letter-spacing: -0.08em;
}

.gate-card > p:not(.campaign-kicker) {
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.61);
  font-size: 0.74rem;
  line-height: 1.7;
}

.gate-card form {
  margin-top: 32px;
}

.gate-card form > label {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 750;
}

.password-field {
  position: relative;
}

.password-field input {
  border-color: rgba(255, 255, 255, 0.19);
  padding-right: 65px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  border: 0;
  padding: 7px 9px;
  background: transparent;
  color: var(--signal);
  font-size: 0.62rem;
  font-weight: 760;
  cursor: pointer;
  transform: translateY(-50%);
}

.gate-card .primary-action {
  width: 100%;
  margin-top: 15px;
}

.gate-card > small {
  display: block;
  margin-top: 19px;
  color: rgba(255, 255, 255, 0.37);
  font-size: 0.57rem;
  line-height: 1.55;
}

.gate-legal {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.54rem;
}

/* Statistics dashboard */

.stats-dashboard {
  min-height: 100vh;
  padding: 0 max(24px, calc((100vw - 1400px) / 2));
  background: var(--paper);
  color: var(--ink);
}

.dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--line);
  padding: 62px 0 38px;
}

.dashboard-header h2 {
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 7.2rem);
  letter-spacing: -0.085em;
  line-height: 0.88;
}

.dashboard-header > div:first-child > p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.65rem;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-actions a,
.dashboard-actions button,
.records-pagination button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 760;
  cursor: pointer;
}

.dashboard-actions a:hover,
.dashboard-actions button:hover,
.records-pagination button:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
}

.stats-status {
  margin: 22px 0 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
}

.overview-grid article {
  min-height: 174px;
  padding: 22px;
  background: #fff;
}

.overview-grid span,
.overview-grid strong,
.overview-grid small {
  display: block;
}

.overview-grid span {
  color: var(--pink);
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.overview-grid strong {
  margin-top: 23px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.07em;
}

.overview-grid small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.61rem;
}

.featured-chart-grid,
.chart-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.featured-chart-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

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

.data-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  background: #fff;
}

.data-panel-dark {
  background: var(--ink);
  color: #fff;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}

.panel-heading p {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.panel-heading > span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 0.54rem;
}

.data-panel-dark .panel-heading > span {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.55);
}

.battery-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  align-items: end;
  min-height: 260px;
}

.battery-column {
  display: grid;
  height: 230px;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  gap: 8px;
  text-align: center;
}

.battery-column > i {
  display: block;
  width: 100%;
  min-height: 3px;
  border-radius: 8px 8px 2px 2px;
  background: var(--signal);
}

.battery-column strong {
  font-size: 0.72rem;
}

.battery-column small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.55rem;
}

.bar-list {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 1.2fr) 62px;
  gap: 12px;
  align-items: center;
}

.bar-row > span {
  overflow: hidden;
  font-size: 0.64rem;
  font-weight: 680;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-deep);
}

.bar-track i {
  display: block;
  min-width: 2px;
  height: 100%;
  border-radius: inherit;
  background: var(--pink);
}

.bar-row > small {
  color: var(--muted);
  font-size: 0.58rem;
  text-align: right;
}

.records-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
}

.records-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.records-heading p {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.records-heading h2 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.records-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.records-filters input[type="search"] {
  width: 250px;
}

.records-filters select {
  width: 170px;
}

.contact-filter {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.62rem;
  cursor: pointer;
}

.contact-filter input {
  accent-color: var(--pink);
}

.records-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  border-block: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.6rem;
}

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

table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 780;
  letter-spacing: 0.05em;
}

td {
  font-size: 0.64rem;
  line-height: 1.55;
}

td:nth-child(1) {
  width: 145px;
}

td:nth-child(2) {
  width: 31%;
  font-size: 0.72rem;
  font-weight: 720;
}

.record-code,
.record-time,
.record-meta,
.record-contact {
  display: block;
}

.record-code {
  color: var(--pink);
  font-weight: 850;
}

.record-time,
.record-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.57rem;
}

.record-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.record-tags span {
  border-radius: 999px;
  padding: 3px 6px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 0.54rem;
}

.record-contact {
  margin-top: 7px;
  color: var(--success);
  font-weight: 800;
}

.records-empty {
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.records-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.records-pagination span {
  color: var(--muted);
  font-size: 0.61rem;
}

.records-pagination button:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.dashboard-footer {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.6rem;
}

.dashboard-footer strong {
  color: var(--pink);
  font-size: 0.8rem;
}

.dashboard-footer > div span,
.dashboard-footer > div small {
  display: block;
}

.dashboard-footer > div small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.55rem;
}

@media (max-width: 1080px) {
  .intro-screen {
    grid-template-columns: minmax(300px, 0.72fr) minmax(400px, 1.28fr);
    gap: 45px;
  }

  .intro-orbit {
    width: min(38vw, 420px);
  }

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

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

  .records-heading {
    align-items: start;
    flex-direction: column;
  }

  .records-filters {
    width: 100%;
    justify-content: flex-start;
  }

  .atlas-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 40px;
  }

  .atlas-section-heading {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .atlas-section-heading > p {
    grid-column: 2;
  }

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

@media (max-width: 800px) {
  .campaign-header {
    width: calc(100% - 32px);
    height: 72px;
  }

  .header-note {
    display: none;
  }

  .intro-screen {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 52px;
    padding: 110px 22px 70px;
  }

  .intro-orbit {
    width: min(78vw, 390px);
    grid-row: 2;
  }

  .intro-copy {
    max-width: none;
  }

  .intro-copy h1 {
    font-size: clamp(3.4rem, 14vw, 6.2rem);
  }

  .survey-shell {
    width: min(100% - 24px, 940px);
    padding-top: 14px;
  }

  .survey-progress {
    top: 8px;
  }

  .survey-step {
    border-radius: 24px;
  }

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

  .battery-options label:last-child {
    grid-column: 1 / -1;
  }

  .battery-options label > span {
    min-height: 116px;
  }

  .featured-chart-grid,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    align-items: start;
    flex-direction: column;
  }

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

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

  .records-filters input[type="search"],
  .records-filters select {
    width: 100%;
  }

  .atlas-header {
    width: calc(100% - 32px);
    height: 72px;
  }

  .atlas-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 116px 22px 90px;
  }

  .atlas-radar {
    display: none;
  }

  .atlas-snapshot {
    grid-template-columns: 1fr;
    margin-top: -22px;
  }

  .atlas-snapshot article {
    min-height: 145px;
  }

  .atlas-snapshot strong {
    margin-top: 22px;
  }

  .atlas-content-section {
    padding: 82px 0 70px;
  }

  .atlas-feature-grid,
  .atlas-chart-grid {
    grid-template-columns: 1fr;
  }

  .atlas-section-heading {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 26px;
  }

  .atlas-section-heading > p {
    grid-column: 1 / -1;
  }

  .atlas-cta {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .atlas-cta > a {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  :root {
    --radius-lg: 24px;
  }

  .campaign-brand strong {
    font-size: 0.9rem;
  }

  .intro-screen {
    padding-inline: 18px;
  }

  .intro-copy h1 {
    font-size: clamp(3.25rem, 17vw, 5.3rem);
  }

  .intro-statement {
    font-size: 0.78rem;
  }

  .intro-meta span {
    font-size: 0.6rem;
  }

  .intro-copy > .primary-action {
    width: 100%;
  }

  .survey-shell {
    width: calc(100% - 16px);
    padding-bottom: 54px;
  }

  .survey-progress {
    border-radius: 14px;
    padding: 12px 13px;
  }

  .survey-step {
    padding: 25px 16px 30px;
    box-shadow: 0 15px 40px rgba(17, 17, 20, 0.08);
  }

  .step-heading {
    margin-bottom: 38px;
    padding-bottom: 25px;
  }

  .question-block + .question-block {
    margin-top: 46px;
    padding-top: 46px;
  }

  .question-block legend {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    font-size: 1.15rem;
  }

  .option-grid,
  .option-stack,
  .invitation-grid,
  .weather-grid {
    grid-template-columns: 1fr;
  }

  .option-card-wide,
  .battery-options label:last-child {
    grid-column: auto;
  }

  .battery-options {
    grid-template-columns: 1fr;
  }

  .battery-options label > span {
    min-height: 84px;
    grid-template-columns: 72px 1fr;
    align-items: center;
  }

  .battery-options small {
    text-align: right;
  }

  .weather-card > span {
    min-height: 90px;
  }

  .textarea-shell textarea {
    min-height: 150px;
    padding: 17px 16px 40px;
    font-size: 0.92rem;
  }

  .step-actions {
    margin-top: 48px;
  }

  .next-action,
  .submit-action {
    min-width: 0;
  }

  .success-screen {
    padding: 60px 20px;
  }

  .success-screen dl {
    grid-template-columns: 1fr;
  }

  .success-lottery {
    grid-template-columns: 1fr;
  }

  .lottery-action {
    width: 100%;
  }

  .success-screen .primary-action {
    width: 100%;
  }

  .campaign-footer {
    min-height: 76px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }

  .gate-card {
    border-radius: 24px;
    padding: 27px 21px;
  }

  .campaign-brand-dark {
    margin-bottom: 38px;
  }

  .stats-dashboard {
    padding-inline: 12px;
  }

  .dashboard-header {
    padding-top: 40px;
  }

  .dashboard-header h2 {
    font-size: 3.25rem;
  }

  .dashboard-actions {
    width: 100%;
  }

  .dashboard-actions a,
  .dashboard-actions button {
    flex: 1;
    justify-content: center;
  }

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

  .overview-grid article {
    min-height: 145px;
    padding: 17px;
  }

  .overview-grid article:first-child {
    grid-column: 1 / -1;
  }

  .data-panel,
  .records-panel {
    border-radius: 16px;
    padding: 18px 14px;
  }

  .battery-chart {
    gap: 5px;
  }

  .battery-column strong {
    font-size: 0.62rem;
  }

  .bar-row {
    grid-template-columns: minmax(90px, 1fr) minmax(70px, 0.8fr) 50px;
    gap: 8px;
  }

  .records-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .records-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .dashboard-footer {
    min-height: 90px;
  }

  .atlas-header-action {
    gap: 8px;
    padding-left: 12px;
    font-size: 0.58rem;
  }

  .atlas-hero {
    padding-inline: 18px;
  }

  .atlas-hero h1 {
    font-size: clamp(3.45rem, 17vw, 5.3rem);
  }

  .atlas-hero-actions {
    display: grid;
  }

  .atlas-primary,
  .atlas-secondary {
    width: 100%;
  }

  .atlas-snapshot,
  .atlas-content-section,
  .atlas-cta,
  .atlas-method,
  .atlas-error {
    width: calc(100% - 24px);
  }

  .atlas-section-heading {
    grid-template-columns: 1fr;
  }

  .atlas-section-heading > p {
    grid-column: auto;
  }

  .atlas-panel {
    border-radius: 16px;
    padding: 21px 16px;
  }

  .atlas-battery-chart {
    gap: 5px;
  }

  .atlas-battery-column > div {
    min-height: 165px;
  }

  .atlas-battery-column small {
    font-size: 0.48rem;
  }

  .atlas-rank-row > div {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .atlas-rank-row small {
    grid-column: 2;
    white-space: normal;
  }

  .atlas-rank-row > i {
    margin-left: 34px;
  }

  .atlas-voices {
    padding: 76px 12px;
  }

  .atlas-voice-grid {
    grid-template-columns: 1fr;
  }

  .atlas-voice-card {
    min-height: 220px;
  }

  .atlas-method {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .atlas-error {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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