:root {
  color-scheme: light dark;
  --page: #f6f8f7;
  --surface: #ffffff;
  --surface-soft: #eef3f1;
  --ink: #18211f;
  --ink-soft: #55615e;
  --muted: #66716d;
  --line: #dce4e0;
  --line-strong: #c8d4cf;
  --brand: #0f9f91;
  --brand-strong: #087f75;
  --brand-soft: #e5f5f1;
  --button-bg: #087f75;
  --button-hover: #076f67;
  --danger: #c74343;
  --shadow: 0 18px 50px rgba(24, 45, 40, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

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

a { color: inherit; }
.no-break { white-space: nowrap; }

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

[hidden] { display: none !important; }

.shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-180%);
}

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

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  min-height: 72px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 740;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-link img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  padding: 25px 0 23px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 580;
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-link:hover { color: var(--ink); }

.nav-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 680;
}

.nav-link[aria-current="page"]::after {
  position: absolute;
  bottom: 16px;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  content: "";
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-auth-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
}

.header-auth-link:hover { color: var(--ink); }

.signed-out-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-soft);
}

.signed-out-avatar svg { width: 19px; height: 19px; }

.account-wrap { position: relative; }

.account-trigger {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
}

.account-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.account-row {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.account-label {
  color: var(--muted);
  font-size: 12px;
}

.account-email {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-center-link {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.account-center-link:hover,
.account-center-link[aria-current="page"] { background: var(--surface-soft); }

.account-logout {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-weight: 620;
}

.account-logout:hover { background: var(--surface-soft); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.menu-toggle svg { width: 20px; height: 20px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 680;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

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

.button.primary { background: var(--button-bg); color: #fff; }
.button.primary:hover { background: var(--button-hover); }
.button.secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.button.secondary:hover { border-color: var(--ink-soft); }
.button[disabled], .button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.52; transform: none; }

.home-hero {
  padding: 104px 0 82px;
  text-align: center;
}

.hero-logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 30px;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(7, 111, 103, 0.17);
}

.home-hero h1,
.page-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.08;
  text-wrap: balance;
}

.home-hero h1 { font-size: clamp(48px, 6.2vw, 76px); }

.home-hero .lead,
.page-hero .lead {
  color: var(--ink-soft);
  line-height: 1.75;
  text-wrap: balance;
}

.home-hero .lead {
  max-width: 760px;
  margin: 25px auto 0;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.platform-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.transformation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.transform-pane {
  min-height: 230px;
  padding: clamp(28px, 4vw, 48px);
  text-align: left;
}

.transform-pane + .transform-pane { border-left: 1px solid var(--line); }
.transform-pane.after { background: var(--brand-soft); }

.pane-label {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.08em;
}

.transform-pane > p:last-child {
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.structured-output { font-size: 15px; line-height: 1.55; }
.structured-output p { margin: 0; }
.structured-output ol { display: grid; gap: 12px; margin: 14px 0; padding-left: 24px; }
.structured-output ul { display: grid; gap: 3px; margin: 6px 0 0; padding-left: 20px; color: var(--ink-soft); }
.structured-output > p:last-child { color: var(--ink-soft); }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
  padding: 92px 0;
}

.benefit-number {
  display: block;
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 760;
}

.benefit h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.benefit p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.price-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 96px;
  padding: clamp(30px, 5vw, 52px);
  border-radius: 22px;
  background: #173732;
  color: #f5fffc;
}

.price-callout p { margin: 0; color: #b8d1cb; }
.price-callout h2 { margin: 8px 0 0; font-size: clamp(27px, 3vw, 38px); letter-spacing: -0.04em; }
.price-callout .button { flex: 0 0 auto; background: #fff; color: #173732; }

.page-hero {
  padding: 94px 0 60px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(42px, 5.6vw, 64px); }
.page-hero .lead { max-width: 680px; margin: 20px auto 0; font-size: 18px; }
.pricing-hero { padding-bottom: 88px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 64px;
}

.pricing-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.pricing-card.featured { border-color: color-mix(in srgb, var(--brand) 58%, var(--line)); }

.plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-kicker { display: flex; min-height: 27px; align-items: center; margin: 0; color: var(--muted); font-size: 14px; font-weight: 680; }
.plan-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; font-weight: 720; white-space: nowrap; }
.plan-badge svg { width: 14px; height: 14px; }
.plan-price { margin: 22px 0 0; font-size: 42px; font-weight: 760; letter-spacing: -0.05em; }
.plan-price small { font-size: 16px; font-weight: 620; letter-spacing: 0; }
.plan-payment { font-size: 14px; font-weight: 590; letter-spacing: 0; white-space: nowrap; }
.plan-saving { min-height: 24px; margin: 7px 0 0; color: var(--brand-strong); font-size: 13px; font-weight: 660; }
.pricing-card.featured .plan-saving { font-weight: 740; }
.plan-rule { margin: 26px 0; border: 0; border-top: 1px solid var(--line); }
.plan-detail { display: grid; gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.plan-detail li::before { margin-right: 9px; color: var(--brand); content: "•"; }
.pricing-card .button { width: 100%; margin-top: auto; }

.addon-panel {
  margin-bottom: 92px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}

.addon-header { padding: 24px 30px; border-bottom: 1px solid var(--line); }
.addon-header h2 { margin: 0 0 5px; font-size: 21px; }
.addon-header p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.addon-row { display: grid; grid-template-columns: minmax(210px, 1.1fr) minmax(80px, 0.45fr) minmax(210px, 1fr) auto; align-items: center; gap: 24px; min-height: 96px; padding: 20px 30px; }
.addon-row + .addon-row { border-top: 1px solid var(--line); }
.addon-row h3, .addon-row p { margin: 0; }
.addon-row h3 { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.addon-icon { width: 22px; height: 22px; flex: 0 0 auto; color: var(--brand-strong); }
.addon-row strong { font-size: 22px; font-weight: 760; }
.addon-row p { color: var(--ink); font-size: 18px; font-weight: 650; }
.addon-row p span { color: var(--ink-soft); font-size: 15px; font-weight: 520; }
.addon-row .button { min-width: 96px; }

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto 104px;
}

.download-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.platform-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 38px;
  border-radius: 15px;
  background: var(--surface-soft);
  color: var(--ink);
}

.platform-mark svg { width: 29px; height: 29px; }
.platform-mark img { width: 58px; height: 58px; border-radius: 15px; }
.download-card h2 { margin: 0; font-size: 29px; letter-spacing: -0.035em; }
.download-card p { margin: 12px 0 0; color: var(--ink-soft); line-height: 1.7; }
.download-card .button { width: 100%; margin-top: auto; }
.download-meta { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }

.download-install-note {
  margin-top: 22px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.download-install-note strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.download-card .download-install-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.legal-hero {
  padding-bottom: 52px;
  text-align: center;
}

.legal-hero h1 {
  max-width: 900px;
  margin-inline: auto;
}

.legal-hero-copy {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.legal-jump {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 4px;
  margin-top: 28px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.legal-jump a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.legal-jump a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.legal-layout {
  display: block;
  max-width: 1040px;
  margin: 0 auto 112px;
}

.legal-card {
  scroll-margin-top: 96px;
  padding: clamp(36px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.legal-card + .legal-card {
  margin-top: 32px;
}

.legal-body {
  max-width: 900px;
  margin: 0 auto;
}

.legal-body > h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.legal-summary {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.legal-note {
  margin-top: 30px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.legal-note > strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.legal-note p {
  margin: 8px 0 0;
}

.legal-note-pending {
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
  background: var(--brand-soft);
}

.legal-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.legal-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.legal-card p,
.legal-card li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.legal-section p {
  margin: 16px 0 0;
}

.legal-section ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.legal-section li::marker {
  color: var(--brand-strong);
}

.legal-card strong {
  color: var(--ink);
}

.legal-card a {
  text-underline-offset: 3px;
}

.legal-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

.legal-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

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

.legal-table th {
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  border-block: 1px solid var(--line);
}

.legal-paths > div {
  padding: 22px 20px 22px 0;
}

.legal-paths > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.legal-paths p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
}

.legal-contact {
  display: grid;
  margin-top: 22px;
  border-block: 1px solid var(--line);
}

.legal-contact p {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  margin: 0;
  padding: 15px 0;
}

.legal-contact p + p {
  border-top: 1px solid var(--line);
}

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

.legal-contact strong {
  overflow-wrap: anywhere;
  font-weight: 650;
}
.auth-main { padding: 70px 0 96px; }

.auth-card {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-heading { text-align: center; }
.auth-heading img { width: 64px; height: 64px; margin: 0 auto 23px; border-radius: 17px; }
.auth-heading h1 { margin: 0; font-size: 34px; letter-spacing: -0.04em; }
.auth-heading p { margin: 11px 0 0; color: var(--ink-soft); line-height: 1.6; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 34px 0 30px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.auth-tab {
  min-height: 46px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 660;
}

.auth-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(22, 44, 39, 0.08);
}

.form-stack { display: grid; gap: 22px; }
.field { display: grid; gap: 9px; }
.field label { font-size: 14px; font-weight: 650; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.field-link { display: inline-flex; min-height: 30px; align-items: center; color: var(--brand-strong); font-size: 13px; font-weight: 640; text-underline-offset: 3px; }
.input-wrap { position: relative; }

.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  outline: 0;
  transition: border-color 130ms ease;
}

.field input::placeholder { color: color-mix(in srgb, var(--muted) 66%, transparent); }
.field input:focus { border: 2px solid var(--brand); padding-inline: 15px; }
.password-input { padding-right: 52px !important; }

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: default;
  transform: translateY(-50%);
}

.password-toggle:hover { background: var(--surface-soft); color: var(--ink); }
.password-toggle svg { width: 20px; height: 20px; }

.verification-step {
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.form-note a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.form-status:not(:empty) { padding: 11px 13px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-strong); }
.auth-submit { width: 100%; min-height: 52px; }

.resend-button {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 640;
}

.resend-button:disabled { color: var(--muted); cursor: not-allowed; }

.recovery-panel { display: grid; gap: 24px; }
.recovery-back { width: fit-content; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--brand-strong); cursor: pointer; font-weight: 640; }
.recovery-heading h2 { margin: 0; font-size: 25px; letter-spacing: -0.03em; }
.recovery-heading p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.checkout-main { padding: 32px 0 96px; }

.checkout-intro { margin-bottom: 18px; }

.checkout-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 5px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
}

.checkout-back:hover { color: var(--ink); }
.checkout-back svg { width: 20px; height: 20px; }
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
  align-items: start;
  gap: 20px;
}

.checkout-panel,
.order-summary {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.checkout-panel { padding: 32px; }
.checkout-block + .checkout-block { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }

.checkout-section-heading { margin-bottom: 18px; }
.checkout-section-heading h1,
.checkout-section-heading h2,
.order-summary h2 { margin: 0; font-size: 21px; letter-spacing: -0.025em; }
.checkout-section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.plan-choice-list {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}

.plan-choice {
  display: grid;
  width: 100%;
  min-height: 92px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background-color 150ms ease;
}

.plan-choice + .plan-choice { border-top: 1px solid var(--line); }
.plan-choice:hover { background: var(--surface-soft); }
.plan-choice[aria-checked="true"] { background: var(--brand-soft); }
.plan-choice:disabled,
.plan-choice[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.56;
}
.plan-choice:disabled:hover,
.plan-choice[aria-disabled="true"]:hover { background: var(--surface); }

.choice-indicator,
.method-indicator {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.plan-choice[aria-checked="true"] .choice-indicator { border-color: var(--brand); }
.plan-choice[aria-checked="true"] .choice-indicator::after,
.payment-method input:checked ~ .method-indicator::after {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.plan-choice-copy { display: grid; min-width: 0; gap: 7px; }
.plan-title-line { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 8px; }
.plan-title-line strong { font-size: 16px; font-weight: 720; }
.plan-choice-copy > small { color: var(--muted); font-size: 13px; }

.choice-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}

.plan-reference { display: grid; justify-items: end; gap: 6px; text-align: right; }
.plan-reference strong { display: inline-flex; align-items: flex-end; gap: 4px; font-size: 23px; font-weight: 760; letter-spacing: -0.025em; line-height: 1; white-space: nowrap; }
.plan-price-amount { line-height: 1; }
.plan-reference strong small { font-size: 13px; font-weight: 620; letter-spacing: 0; line-height: 1; }
.plan-reference > span { color: var(--muted); font-size: 12px; }

.payment-method-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.payment-method {
  position: relative;
  display: grid;
  min-height: 76px;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.payment-method:hover { border-color: var(--ink-soft); }
.payment-method:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.payment-method:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }

.payment-method input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.payment-brand {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
}

.payment-brand svg { width: 25px; height: 25px; }
.payment-brand.wechat { background: #e6f7ec; color: #139a4c; }
.payment-brand.alipay { background: #e7f2ff; color: #1677ff; }
.payment-method-copy { display: grid; min-width: 0; gap: 4px; }
.payment-method-copy strong { font-size: 14px; font-weight: 700; }
.payment-method-copy small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.payment-method input:checked ~ .method-indicator { border-color: var(--brand); }

.order-summary {
  position: sticky;
  top: 94px;
  padding: 30px;
}

.summary-account {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.summary-account span { color: var(--muted); font-size: 12px; }
.summary-account strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.summary-list { display: grid; gap: 14px; margin: 22px 0 0; }
.summary-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.summary-list dt { color: var(--muted); font-size: 13px; }
.summary-list dd { margin: 0; font-size: 14px; font-weight: 650; text-align: right; }

.summary-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.summary-total > span { padding-bottom: 5px; color: var(--ink-soft); font-size: 14px; font-weight: 630; }
.summary-total strong { color: var(--ink); font-size: 38px; font-weight: 780; letter-spacing: -0.04em; line-height: 1; }
.summary-total strong small { margin-right: 2px; font-size: 18px; font-weight: 700; }
.checkout-purchase-notes {
  display: grid;
  gap: 7px;
  margin-top: 24px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.checkout-purchase-notes strong { font-size: 13px; font-weight: 720; }
.checkout-purchase-notes p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.62; }
.checkout-purchase-notes a,
.checkout-consent a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }

.checkout-consent {
  display: grid;
  min-height: 44px;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 2px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.62;
}

.checkout-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

.checkout-consent:has(input:focus-visible) {
  border-radius: 8px;
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.checkout-consent-error {
  margin: 2px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.55;
}

.checkout-pay { width: 100%; margin-top: 14px; }

.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: checkout-spin 700ms linear infinite;
}

body.dialog-open { overflow: hidden; }

.payment-dialog {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 26px 80px rgba(13, 31, 27, 0.24);
}

.payment-dialog::backdrop { background: rgba(10, 20, 18, 0.46); backdrop-filter: blur(3px); }
.payment-dialog[open] { animation: checkout-dialog-in 200ms cubic-bezier(0.22, 1, 0.36, 1); }
.payment-dialog-content { position: relative; padding: 28px; }

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.dialog-close:hover { background: var(--surface-soft); color: var(--ink); }
.dialog-close svg { width: 20px; height: 20px; }

.dialog-heading {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 13px;
  padding-right: 48px;
}

.dialog-heading .dialog-brand { flex: 0 0 auto; }
.dialog-heading p { margin: 0 0 3px; color: var(--muted); font-size: 12px; font-weight: 650; }
.dialog-heading h2 { margin: 0; font-size: 21px; letter-spacing: -0.025em; }

.qr-stage {
  position: relative;
  display: grid;
  width: 252px;
  height: 252px;
  place-items: center;
  margin: 30px auto 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.qr-code { width: 220px; height: 220px; object-fit: contain; color: #14201d; image-rendering: pixelated; }
.qr-logo { display: none; }
.qr-logo img { width: 36px; height: 36px; border-radius: 9px; }
.qr-stage[data-expired="true"] .qr-code,
.qr-stage[data-expired="true"] .qr-logo { opacity: 0.2; }

.payment-status {
  display: flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 700;
}

.payment-status > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 14%, transparent);
  animation: checkout-status-pulse 1.8s ease-out infinite;
}

.payment-status[data-state="expired"],
.payment-status[data-state="failed"],
.payment-status[data-state="cancelled"] { color: var(--danger); }
.payment-status[data-state="expired"] > span,
.payment-status[data-state="failed"] > span,
.payment-status[data-state="cancelled"] > span { background: var(--danger); box-shadow: none; animation: none; }
.payment-status[data-state="paid"] { color: var(--brand-strong); }
.payment-status[data-state="paid"] > span { background: var(--brand); box-shadow: none; animation: none; }
.payment-countdown { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.payment-order-reference {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}
.qr-refresh,
.payment-account-link { width: 100%; margin-top: 18px; }

.dialog-change {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 14px auto -6px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 620;
}

.dialog-change:hover { color: var(--ink); }

@keyframes checkout-spin { to { transform: rotate(360deg); } }
@keyframes checkout-status-pulse { 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes checkout-dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } }

.site-footer { border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

body[data-auth-state="signed-out"] .account-wrap,
body[data-auth-state="loading"] .account-wrap,
body[data-auth-state="loading"] .header-auth-link { display: none; }
body[data-auth-state="signed-in"] .header-auth-link { display: none; }

body[data-auth-state="loading"] .header-actions::after {
  order: 2;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.checkout-feedback {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.checkout-feedback[data-tone="error"] { color: var(--danger); }

.account-main { min-height: calc(100vh - 167px); padding: 70px 0 96px; }

.account-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.account-heading h1 { margin: 0; font-family: var(--display); font-size: clamp(38px, 5vw, 56px); letter-spacing: -0.05em; }
.account-heading p { margin: 13px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.account-heading > strong { max-width: 42%; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.account-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 52px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.account-membership-copy h2,
.account-section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -0.025em; }
.account-membership-copy > p:not(.account-membership-state) { margin: 15px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.account-membership-state { display: flex; min-height: 28px; align-items: center; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.account-membership-state strong { color: var(--brand-strong); font-size: 19px; }
.account-membership-state strong[data-state="expired"] { color: var(--danger); }
.account-membership-state strong[data-state="free"] { color: var(--ink); }
.account-membership-state span { color: var(--muted); font-size: 13px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.usage-summary { align-self: stretch; padding-left: 42px; border-left: 1px solid var(--line); }
.usage-summary > div:first-child { display: grid; gap: 8px; }
.usage-summary > div:first-child span { color: var(--muted); font-size: 12px; }
.usage-summary > div:first-child strong { font-size: 30px; letter-spacing: -0.035em; }
.usage-summary progress { width: 100%; height: 8px; margin-top: 20px; overflow: hidden; border: 0; border-radius: 999px; background: var(--surface-soft); color: var(--brand); }
.usage-summary progress::-webkit-progress-bar { border-radius: 999px; background: var(--surface-soft); }
.usage-summary progress::-webkit-progress-value { border-radius: 999px; background: var(--brand); }
.usage-summary progress::-moz-progress-bar { border-radius: 999px; background: var(--brand); }
.usage-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0 0; }
.usage-summary dl div { min-width: 0; }
.usage-summary dt { color: var(--muted); font-size: 11px; }
.usage-summary dd { margin: 6px 0 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 650; }
.free-usage-line { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; line-height: 1.55; }

.account-section {
  margin-top: 22px;
  padding: 32px 38px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.account-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.account-section-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.account-section-heading > a { display: inline-flex; min-height: 44px; align-items: center; flex: 0 0 auto; color: var(--brand-strong); font-size: 13px; font-weight: 650; text-decoration: none; }
.account-section-heading > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.account-list { margin-top: 22px; border-top: 1px solid var(--line); }
.account-list-row { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 28px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.account-list-row > div:first-child { min-width: 0; }
.account-list-row h3 { margin: 0; font-size: 15px; font-weight: 690; }
.account-list-row p { margin: 7px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; line-height: 1.55; }
.account-row-trailing { display: flex; min-width: 130px; align-items: flex-end; flex: 0 0 auto; flex-direction: column; gap: 8px; text-align: right; }
.account-row-trailing > strong { font-size: 15px; }
.account-state-badge { display: inline-flex; min-height: 24px; align-items: center; padding: 3px 8px; border-radius: 999px; background: var(--surface-soft); color: var(--ink-soft); font-size: 11px; font-weight: 680; }
.account-state-badge[data-state="active"],
.account-state-badge[data-state="paid"] { background: var(--brand-soft); color: var(--brand-strong); }
.account-state-badge[data-state="failed"],
.account-state-badge[data-state="expired"] { color: var(--danger); }
.account-inline-action { min-height: 36px; padding: 0 4px; border: 0; background: transparent; color: var(--danger); cursor: pointer; font-size: 12px; font-weight: 650; }
.account-inline-action:disabled { cursor: not-allowed; opacity: 0.5; }
.account-empty { margin: 0; padding: 24px 0; color: var(--muted); font-size: 13px; }

.account-rights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.account-rights-grid > div { display: flex; min-width: 0; min-height: 220px; flex-direction: column; align-items: flex-start; padding: 28px 26px; }
.account-rights-grid > div:first-child { padding-left: 0; }
.account-rights-grid > div:last-child { padding-right: 0; }
.account-rights-grid > div + div { border-left: 1px solid var(--line); }
.account-rights-grid h3 { margin: 0; font-size: 16px; }
.account-rights-grid p { margin: 11px 0 22px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.account-rights-grid .button { width: 100%; margin-top: auto; }
.button.danger-outline { border-color: color-mix(in srgb, var(--danger) 48%, var(--line)); background: transparent; color: var(--danger); }
.button.danger-outline:hover { border-color: var(--danger); }
.button.danger { background: var(--danger); color: #fff; }
.button.danger:hover { background: #ae3535; }

.deletion-form,
.deletion-pending { margin-top: 28px; padding: 24px; border: 1px solid color-mix(in srgb, var(--danger) 38%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--danger) 4%, var(--surface)); }
.deletion-form { display: grid; gap: 12px; }
.deletion-form > label:first-child { color: var(--ink); font-size: 13px; font-weight: 650; }
.deletion-form > input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); }
.deletion-confirm { display: flex; min-height: 44px; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.deletion-confirm input { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--brand); }
.deletion-form .account-actions { margin-top: 4px; }
.deletion-pending { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.deletion-pending p { display: grid; gap: 6px; margin: 0; }
.deletion-pending span { color: var(--muted); font-size: 13px; }
.account-feedback { min-height: 20px; margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.account-feedback[data-tone="error"] { color: var(--danger); }
.account-feedback[data-tone="success"] { color: var(--brand-strong); }

@media (prefers-color-scheme: dark) {
  :root {
    --page: #151a19;
    --surface: #1d2422;
    --surface-soft: #252e2b;
    --ink: #eef5f2;
    --ink-soft: #b8c4c0;
    --muted: #9aa8a3;
    --line: #303a37;
    --line-strong: #46534f;
    --brand: #31bfad;
    --brand-strong: #5dd7c8;
    --brand-soft: #183b35;
    --button-bg: #0b8176;
    --button-hover: #076f67;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  }

  .price-callout { background: #dff6ef; color: #14332e; }
  .price-callout p { color: #4f6b65; }
  .price-callout .button { background: #14332e; color: #f5fffc; }
  .account-trigger { background: #e9f4f0; color: #18211f; }
  body[data-auth-state="loading"] .header-actions::after { background: #e9f4f0; }
  .payment-brand.wechat { background: #193b2a; color: #49cf7d; }
  .payment-brand.alipay { background: #182f49; color: #6caaff; }
  .payment-dialog::backdrop { background: rgba(0, 0, 0, 0.62); }
}

@media (max-width: 900px) {
  .nav-shell { grid-template-columns: 1fr auto auto; }
  .brand-link { min-width: 44px; min-height: 44px; }
  .menu-toggle { order: 1; display: grid; width: 44px; height: 44px; }
  .header-auth-link, .account-wrap { order: 2; }
  .header-auth-link { min-height: 44px; }
  .account-trigger { width: 44px; height: 44px; }
  body[data-auth-state="loading"] .header-actions::after { width: 44px; height: 44px; }
  .field-link, .resend-button { min-height: 44px; }
  .primary-nav {
    position: absolute;
    top: 72px;
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-header[data-menu-open="true"] .primary-nav { display: flex; }
  .nav-link { padding: 14px 15px; border-radius: 9px; }
  .nav-link:hover { background: var(--surface-soft); }
  .nav-link[aria-current="page"]::after { display: none; }
  .benefit-grid { gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .pricing-card { min-height: 0; }
  .addon-row { grid-template-columns: minmax(170px, 1fr) 70px minmax(160px, 1fr) auto; gap: 16px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .account-overview { grid-template-columns: 1fr; gap: 30px; }
  .usage-summary { padding: 28px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .account-rights-grid { grid-template-columns: 1fr; }
  .account-rights-grid > div,
  .account-rights-grid > div:first-child,
  .account-rights-grid > div:last-child { min-height: 0; padding: 24px 0; }
  .account-rights-grid > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .account-rights-grid .button { width: auto; margin-top: 0; }
  .legal-paths { grid-template-columns: 1fr; }
  .legal-paths > div { padding: 20px 0; }
  .legal-paths > div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 32px, 1160px); }
  .brand-word { display: none; }
  .header-actions { gap: 6px; }
  .home-hero { padding: 74px 0 58px; }
  .hero-logo { width: 72px; height: 72px; border-radius: 19px; }
  .home-hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .transformation { grid-template-columns: 1fr; }
  .transform-pane { min-height: auto; }
  .transform-pane + .transform-pane { border-top: 1px solid var(--line); border-left: 0; }
  .benefit-grid { grid-template-columns: 1fr; padding: 68px 0; }
  .price-callout { align-items: stretch; flex-direction: column; margin-bottom: 70px; }
  .page-hero { padding: 70px 0 44px; }
  .pricing-hero { padding-bottom: 64px; }
  .pricing-grid { padding-bottom: 48px; }
  .download-grid { grid-template-columns: 1fr; }
  .download-grid { margin-bottom: 72px; }
  .download-card { min-height: 320px; padding: 30px; }
  .legal-hero { padding-bottom: 40px; }
  .legal-hero-copy { margin-top: 18px; font-size: 15px; }
  .legal-meta { align-items: center; flex-direction: column; gap: 5px; }
  .legal-jump { display: grid; width: 100%; margin-top: 24px; }
  .legal-layout { margin-bottom: 72px; }
  .legal-card { padding: 30px 22px; border-radius: 16px; }
  .legal-card + .legal-card { margin-top: 22px; }
  .legal-summary { font-size: 15px; }
  .legal-note { padding: 19px 18px; }
  .legal-section { margin-top: 32px; padding-top: 32px; }
  .legal-table { min-width: 660px; }
  .legal-contact p { grid-template-columns: 1fr; gap: 5px; }
  .addon-panel { margin-bottom: 72px; }
  .addon-header { padding: 22px; }
  .addon-row { grid-template-columns: 1fr auto; gap: 9px 16px; min-height: 0; padding: 22px; }
  .addon-row .button { min-width: 88px; padding-inline: 16px; }
  .auth-main { padding: 40px 0 70px; }
  .auth-card { padding: 28px 20px; }
  .checkout-main { padding: 24px 0 70px; }
  .checkout-intro { margin-bottom: 14px; }
  .checkout-panel, .order-summary { padding: 22px; border-radius: 16px; }
  .checkout-block + .checkout-block { margin-top: 28px; padding-top: 26px; }
  .plan-choice { padding-inline: 16px; }
  .payment-dialog-content { padding: 24px 20px; }
  .field-link, .resend-button { min-height: 44px; }
  .account-main { padding: 46px 0 70px; }
  .account-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 26px; }
  .account-heading > strong { max-width: 100%; }
  .account-overview,
  .account-section { padding: 24px 20px; border-radius: 16px; }
  .account-section-heading { flex-direction: column; gap: 6px; }
  .account-list-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .account-row-trailing { min-width: 0; align-items: flex-start; flex-direction: row; flex-wrap: wrap; text-align: left; }
  .usage-summary dl { grid-template-columns: 1fr 1fr; }
  .deletion-pending { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 24px 0; }
}

@media (max-width: 520px) {
  .payment-method-list { grid-template-columns: 1fr; }
  .plan-choice { min-height: 88px; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; padding: 16px 13px; }
  .choice-indicator { width: 18px; height: 18px; }
  .plan-choice[aria-checked="true"] .choice-indicator::after { inset: 3.5px; }
  .plan-reference strong { font-size: 19px; }
  .plan-reference strong small { font-size: 12px; }
  .summary-total strong { font-size: 34px; }
  .qr-stage { width: 226px; height: 226px; }
  .qr-code { width: 198px; height: 198px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-link, .button, .field input, .plan-choice, .payment-method { transition: none; }
  .payment-dialog[open], .button-spinner, .payment-status > span { animation: none; }
}
