:root {
  color-scheme: dark;

  --bg: #070b14;
  --bg-2: #0b1220;
  --card: rgba(15, 23, 42, 0.78);
  --card-strong: rgba(15, 23, 42, 0.94);
  --card-soft: rgba(255, 255, 255, 0.045);
  --ink: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(16, 163, 127, 0.34);

  --green: #10a37f;
  --green-2: #0f766e;
  --green-soft: rgba(16, 163, 127, 0.14);
  --blue: #38bdf8;
  --blue-2: #2563eb;
  --blue-soft: rgba(56, 189, 248, 0.14);
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, 0.14);
  --red: #fb7185;
  --red-soft: rgba(251, 113, 133, 0.13);
  --amber: #facc15;
  --amber-soft: rgba(250, 204, 21, 0.13);
  --orange: #d97757;
  --orange-soft: rgba(217, 119, 87, 0.16);

  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --ease: 180ms ease;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(16, 163, 127, 0.24), transparent 30rem),
    radial-gradient(circle at 100% 24%, rgba(56, 189, 248, 0.16), transparent 32rem),
    radial-gradient(circle at 52% 110%, rgba(250, 204, 21, 0.09), transparent 30rem),
    linear-gradient(135deg, #030712 0%, #07111f 52%, #0a101c 100%);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    "Noto Sans",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0) 0%, rgba(7, 11, 20, 0.38) 100%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 28rem);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-shell {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 24px 0 48px;
}

.brand-card,
.hero-card,
.workflow-card,
.support-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.022)),
    var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 15px 18px;
  border-radius: 999px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(16, 163, 127, 0.32), rgba(56, 189, 248, 0.14));
  font-size: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.brand-text {
  display: grid;
  min-width: 0;
}

.brand-text strong {
  font-size: 1.02rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.brand-text small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.brand-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(16, 163, 127, 0.34);
  border-radius: 999px;
  color: #d1fae5;
  background: var(--green-soft);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-pill.claude {
  border-color: rgba(217, 119, 87, 0.42);
  color: #fed7aa;
  background: var(--orange-soft);
}

.brand-pill.muted {
  border-color: rgba(255, 255, 255, 0.11);
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.7);
}

.hero-card,
.workflow-card,
.support-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hero-card::before,
.workflow-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 18% 0%, rgba(16, 163, 127, 0.22), transparent 21rem),
    radial-gradient(circle at 100% 18%, rgba(56, 189, 248, 0.14), transparent 19rem);
}

.hero-card > *,
.workflow-card > *,
.support-card > * {
  position: relative;
  z-index: 1;
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  margin-bottom: 22px;
  padding: 30px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 999px;
  color: #fef3c7;
  background: var(--amber-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 14px;
  padding: 7px 12px;
}

.hero-card h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.05rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-card p {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.7);
  font-size: 0.9rem;
  font-weight: 750;
}

.hero-status {
  align-self: stretch;
  padding: 18px;
  border: 1px solid rgba(16, 163, 127, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 0%, rgba(16, 163, 127, 0.22), transparent 12rem),
    rgba(2, 6, 23, 0.28);
}

.status-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.12);
}

.hero-status-label {
  color: #d1fae5;
  font-size: 0.85rem;
  font-weight: 850;
}

.hero-status strong {
  display: block;
  margin-top: 14px;
  font-size: 1.5rem;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-status p {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.workflow-card {
  padding: 26px;
}

.page-view {
  margin-top: 22px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-kicker {
  margin-bottom: 9px;
  padding: 6px 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.section-heading p {
  max-width: 410px;
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.55;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(2, 6, 23, 0.32);
}

.step::after {
  position: absolute;
  top: 50%;
  right: -14px;
  z-index: 0;
  width: 16px;
  height: 2px;
  content: "";
  background: rgba(255, 255, 255, 0.12);
}

.step:last-child::after {
  display: none;
}

.step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.92rem;
  font-weight: 900;
}

.step-label {
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.step.active {
  border-color: var(--line-strong);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(16, 163, 127, 0.19), rgba(56, 189, 248, 0.06)),
    rgba(2, 6, 23, 0.38);
  box-shadow: 0 14px 38px rgba(16, 163, 127, 0.12);
}

.step.active .step-number {
  border-color: rgba(16, 163, 127, 0.45);
  color: #ecfdf5;
  background: linear-gradient(135deg, var(--green), var(--green-2));
}

.step.done {
  border-color: rgba(52, 211, 153, 0.23);
  color: #d1fae5;
  background: rgba(16, 163, 127, 0.1);
}

.step.done .step-number {
  border-color: rgba(52, 211, 153, 0.38);
  color: #052e25;
  background: #34d399;
}

.activation-form {
  display: grid;
  gap: 16px;
}

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

.field span {
  color: var(--muted-strong);
  font-size: 0.95rem;
  font-weight: 800;
}

.field b {
  margin-right: 6px;
  color: var(--amber);
}

.field em,
.token-step-copy em {
  color: var(--amber);
  font-style: normal;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  outline: none;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    rgba(15, 23, 42, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 32px rgba(0, 0, 0, 0.18);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.field input {
  min-height: 58px;
  padding: 0 18px;
  font-size: 1rem;
}

.field textarea {
  min-height: 196px;
  resize: vertical;
  padding: 16px 18px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(16, 163, 127, 0.56);
  box-shadow:
    0 0 0 4px rgba(16, 163, 127, 0.14),
    0 18px 36px rgba(0, 0, 0, 0.22);
}

.primary,
.secondary,
.token-action,
.support-link {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform var(--ease),
    border-color var(--ease),
    background var(--ease),
    box-shadow var(--ease),
    opacity var(--ease),
    filter var(--ease);
}

.primary {
  width: 100%;
  padding: 0 20px;
  color: #ecfdf5;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow:
    0 18px 38px rgba(16, 163, 127, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.primary:hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
  box-shadow:
    0 22px 46px rgba(16, 163, 127, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.secondary {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.72);
}

.secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ink);
  background: rgba(30, 41, 59, 0.78);
}

.primary:active,
.secondary:active,
.token-action:active,
.support-link:active {
  transform: translateY(0);
}

.primary:disabled,
.secondary:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) 1fr;
  gap: 12px;
}

.inline-response {
  min-height: 1.35rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.inline-response:empty {
  display: none;
}

.inline-response.neutral {
  color: var(--muted);
}

.inline-response.success {
  color: #86efac;
}

.inline-response.warning {
  color: #fde68a;
}

.inline-response.error,
.task-message.error {
  color: #fecdd3;
}

.session-summary,
.validation-box,
.token-warning,
.token-step,
.task-message,
.technical-details,
.status-card,
.service-notice,
.cdk-recovery,
.new-code-box,
.task-queue {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(2, 6, 23, 0.28);
}

.service-notice {
  margin: 0 0 18px;
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
  white-space: pre-line;
}

.cdk-recovery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  border-radius: 18px;
  padding: 16px;
}

.cdk-recovery p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.task-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.task-actions button {
  align-self: flex-start;
}

.task-queue {
  margin: 0 0 14px;
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.new-code-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 16px;
  border-color: rgba(134, 239, 172, 0.35);
  padding: 14px 16px;
}

.new-code-box span {
  color: #86efac;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.new-code-box strong {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 1.02rem;
  user-select: all;
}

.new-code-box button {
  align-self: flex-start;
}

.session-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 18px;
  padding: 14px 16px;
}

.session-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.session-summary strong {
  overflow: hidden;
  max-width: 68%;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-form {
  gap: 18px;
}

.token-steps {
  display: grid;
  gap: 12px;
}

.token-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
}

.token-step.input-step {
  grid-template-columns: auto minmax(0, 1fr);
}

.token-step-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
}

.token-step-icon.green {
  color: #d1fae5;
  background: var(--green-soft);
}

.token-step-icon.blue {
  color: #e0f2fe;
  background: var(--blue-soft);
}

.token-step-icon.violet {
  color: #ede9fe;
  background: var(--violet-soft);
}

.token-step-copy {
  display: grid;
  gap: 3px;
}

.token-step-copy strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.token-step-copy span {
  color: var(--muted-strong);
  line-height: 1.45;
}

.token-action {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
  white-space: nowrap;
}

.token-action.green {
  color: #d1fae5;
  background: rgba(16, 163, 127, 0.18);
}

.token-action.green:hover {
  border-color: rgba(16, 163, 127, 0.42);
  background: rgba(16, 163, 127, 0.26);
}

.token-action.blue {
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.14);
}

.token-action.blue:hover {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(56, 189, 248, 0.22);
}

.token-warning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 14px;
  border-color: rgba(250, 204, 21, 0.24);
  border-radius: 18px;
  color: #fef3c7;
  background: var(--amber-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.token-warning svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--amber);
}

.validation-box {
  margin: 0;
  border-radius: 16px;
  padding: 13px 15px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.validation-box.neutral {
  color: var(--muted);
}

.validation-box.success {
  border-color: rgba(52, 211, 153, 0.3);
  color: #d1fae5;
  background: rgba(16, 163, 127, 0.12);
}

.validation-box.warning {
  border-color: rgba(250, 204, 21, 0.3);
  color: #fef3c7;
  background: var(--amber-soft);
}

.validation-box.error {
  border-color: rgba(251, 113, 133, 0.34);
  color: #ffe4e6;
  background: var(--red-soft);
}

.task-panel {
  display: grid;
  gap: 18px;
}

.status-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(16, 163, 127, 0.25);
  border-radius: 20px;
  background: rgba(16, 163, 127, 0.1);
}

.status-card.succeeded {
  border-color: rgba(52, 211, 153, 0.36);
  background: rgba(16, 163, 127, 0.16);
}

.status-card.failed {
  border-color: rgba(251, 113, 133, 0.34);
  background: rgba(127, 29, 29, 0.18);
}

.status-card.failed .status-dot {
  background: #fb7185;
  box-shadow: 0 0 0 6px rgba(251, 113, 133, 0.14);
}

.status-card.failed strong {
  color: #ffe4e6;
}

.status-card .status-dot {
  margin: 6px 0 0;
  flex: 0 0 auto;
}

.status-card strong {
  display: block;
  color: #d1fae5;
}

.status-card p {
  margin: 4px 0 0;
  color: var(--muted-strong);
  line-height: 1.5;
}

.task-meter {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.task-meter span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  box-shadow: 0 0 24px rgba(16, 163, 127, 0.35);
  animation: task-progress 1.4s ease-in-out infinite alternate;
}

.task-meter.succeeded span {
  width: 100%;
  animation: none;
  background: #34d399;
}

.task-meter.failed span {
  width: 100%;
  animation: none;
  background: var(--red);
}

.task-message {
  margin: 0;
  padding: 15px 16px;
  border-radius: 18px;
  color: var(--muted-strong);
  line-height: 1.55;
}

.technical-details {
  border-radius: 20px;
}

.technical-details summary {
  padding: 15px 16px;
  color: var(--muted-strong);
  font-weight: 850;
  cursor: pointer;
}

.task-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.task-facts div {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: rgba(15, 23, 42, 0.56);
}

.task-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.task-facts strong {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  color: var(--ink);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.09), rgba(16, 163, 127, 0.08)),
    rgba(15, 23, 42, 0.72);
}

.support-card strong {
  display: block;
  font-size: 1rem;
}

.support-card p {
  margin: 5px 0 0;
  color: var(--muted-strong);
  line-height: 1.5;
}

.support-link {
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(250, 204, 21, 0.26);
  color: #fef3c7;
  background: rgba(250, 204, 21, 0.1);
  white-space: nowrap;
}

.support-link:hover {
  border-color: rgba(250, 204, 21, 0.42);
  background: rgba(250, 204, 21, 0.16);
}

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

@keyframes task-progress {
  from {
    transform: translateX(-20%);
  }

  to {
    transform: translateX(170%);
  }
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 24px, 720px);
    padding-top: 18px;
  }

  .brand-card {
    border-radius: 24px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .hero-status {
    min-width: 0;
  }

  .workflow-card {
    padding: 20px;
  }

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

  .section-heading p {
    max-width: none;
  }

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

  .step {
    min-height: 62px;
  }

  .step::after {
    top: auto;
    right: auto;
    bottom: -13px;
    left: 32px;
    width: 2px;
    height: 14px;
  }

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

  .token-step,
  .token-step.input-step {
    grid-template-columns: auto 1fr;
  }

  .token-action {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .support-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-link {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .app-shell {
    width: min(100% - 20px, 440px);
  }

  .brand-card {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 22px;
  }

  .brand-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .brand-pill {
    flex: 1;
  }

  .hero-card h1 {
    letter-spacing: -0.055em;
  }

  .trust-row span {
    width: 100%;
  }

  .session-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .session-summary strong {
    max-width: 100%;
    text-align: left;
    white-space: normal;
  }

  .task-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
