:root {
  --bg: #f7f5f0;
  --paper: #ffffff;
  --warm: #eee9df;
  --line: #ded9cf;
  --text: #1d211f;
  --muted: #68716d;
  --accent: #276983;
  --accent-dark: #1c5369;
  --success: #2f7258;
  --danger: #9a4237;
  --logo: #8a6d50;
  --shadow: 0 24px 64px rgba(38, 35, 29, 0.14);
  --soft-shadow: 0 12px 32px rgba(38, 35, 29, 0.09);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

body.dialog-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(39, 105, 131, 0.24);
  outline-offset: 3px;
}

.section-panel {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(247, 245, 240, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.scrolled {
  background: rgba(251, 250, 247, 0.95);
  border-bottom-color: rgba(222, 217, 207, 0.92);
}

.brand,
.site-nav {
  display: inline-flex;
  align-items: center;
}

.brand {
  line-height: 0;
}

.brand-logo {
  display: block;
  width: 132px;
  height: auto;
  max-height: 48px;
}

.site-nav {
  gap: 26px;
  color: rgba(29, 33, 31, 0.7);
  font-size: 14px;
}

.nav-link {
  position: relative;
  padding: 9px 0;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  transform: scaleX(1);
}

main {
  overflow: hidden;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(46px, 6.2vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  min-height: calc(100svh - 64px);
  display: grid;
  align-content: center;
  gap: 42px;
  padding: 76px 0 48px;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.section-heading > p:last-child,
.license-copy > p:last-child,
.download-copy > p:last-child,
.about-item p,
.manual-download p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 22px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 650;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.button:disabled:hover {
  transform: none;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.danger {
  background: var(--danger);
  color: #fff;
}

.button.danger:hover {
  background: #7f342c;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.button.disabled {
  border-color: #d3d6d4;
  background: #dfe1e0;
  color: #7a817d;
  cursor: not-allowed;
}

.button.disabled:hover {
  transform: none;
}

.button.full {
  width: 100%;
}

.hero-shot {
  overflow: hidden;
  border: 1px solid rgba(222, 217, 207, 0.98);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-shot {
  margin: 0;
  border-radius: 18px;
}

.hero-shot img {
  width: 100%;
}

.feature-switcher {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.6fr);
  align-items: center;
  column-gap: 44px;
  row-gap: 24px;
  padding: 42px 0 92px;
}

.feature-switch-tabs {
  display: grid;
  border-top: 1px solid var(--line);
}

.feature-switch-tab {
  min-height: 92px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 16px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
}

.feature-switch-tab:hover {
  background: rgba(255, 255, 255, 0.58);
}

.feature-switch-tab.active {
  background: var(--paper);
  color: var(--text);
}

.feature-switch-tab > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}

.feature-switch-tab strong {
  font-size: 19px;
  line-height: 1.35;
}

.feature-switch-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.feature-switch-image img,
.feature-switch-placeholder {
  width: 100%;
  height: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.feature-switch-image img {
  object-fit: cover;
}

.feature-switch-placeholder {
  display: grid;
  place-items: center;
  background: #f1f3f2;
  color: var(--muted);
}

.feature-switch-placeholder strong {
  font-size: 16px;
}

.feature-switch-image.switching > * {
  opacity: 0;
  transform: translateY(8px);
}

.feature-more-link {
  grid-column: 1 / -1;
  justify-self: center;
}

.assurance-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.assurance-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 32px 0;
}

.assurance-inner > div {
  display: grid;
  gap: 5px;
  padding: 0 34px;
  border-right: 1px solid var(--line);
}

.assurance-inner > div:first-child {
  padding-left: 0;
}

.assurance-inner > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.assurance-inner span {
  color: var(--muted);
  font-size: 14px;
}

.software-download {
  padding: 68px 0 76px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  scroll-margin-top: 92px;
}

.download-inner {
  display: block;
}

.download-copy {
  max-width: 620px;
  margin-bottom: 30px;
}

.download-copy h2 {
  margin-bottom: 12px;
}

.download-copy > p:last-child {
  margin-bottom: 0;
}

.edition-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.download-edition {
  min-width: 0;
  padding: 26px 36px 28px 0;
  border-right: 1px solid var(--line);
}

.download-edition + .download-edition {
  padding-right: 0;
  padding-left: 36px;
  border-right: 0;
}

.edition-heading h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.edition-downloads .button {
  width: 100%;
  padding-right: 16px;
  padding-left: 16px;
}

.edition-features {
  display: grid;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: edition-feature;
}

.edition-features li {
  min-height: 60px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
  counter-increment: edition-feature;
}

.edition-features li:last-child {
  border-bottom: 0;
}

.edition-features li::before {
  align-self: start;
  padding-top: 2px;
  color: var(--accent);
  content: counter(edition-feature, decimal-leading-zero);
  font-size: 11px;
  font-weight: 750;
}

.edition-features li.edition-feature-warning {
  color: var(--danger);
  font-weight: 700;
}

.edition-features li.edition-feature-warning::before {
  color: var(--danger);
}

.download-edition.professional .edition-heading h3 {
  color: var(--accent-dark);
}

.plans-section {
  padding: 108px 0 116px;
  background: #e8eff1;
  border-top: 1px solid #d5e0e3;
  border-bottom: 1px solid #d5e0e3;
  scroll-margin-top: 92px;
}

.plan-grid {
  max-width: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin: 44px auto 0;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #cad7da;
  border-radius: 8px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

.plan-card.featured {
  border: 2px solid var(--accent);
  background: #fff;
}

.recommendation {
  position: absolute;
  top: 0;
  right: 24px;
  transform: translateY(-50%);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.plan-name {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.plan-price {
  margin-bottom: 2px;
  font-size: 46px;
  font-weight: 760;
  line-height: 1;
}

.plan-price span {
  margin-right: 3px;
  font-size: 20px;
  vertical-align: 12px;
}

.plan-price b {
  font: inherit;
}

.plan-note,
.pricing-disclaimer {
  color: var(--muted);
  font-size: 13px;
}

.plan-features {
  display: grid;
  gap: 11px;
  margin: 26px 0 30px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 18px;
}

.plan-features li::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

.plan-features .plan-refund-note {
  color: #87908c;
  font-size: 13px;
}

.plan-features .plan-refund-note::before {
  background: #9da5a1;
}

.plan-card .button {
  margin-top: auto;
}

.pricing-disclaimer {
  margin: 18px 0 0;
  text-align: center;
}

.license-section {
  padding: 112px 0;
  background: #252a28;
  color: #fff;
  scroll-margin-top: 92px;
}

.license-inner {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 70px;
}

.license-copy > p:last-child {
  color: rgba(255, 255, 255, 0.66);
}

.license-console {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.07);
}

.lookup-form {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr auto;
  align-items: end;
  gap: 12px;
}

.license-recovery {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.license-recovery-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.license-recovery-heading strong {
  font-size: 16px;
}

.license-recovery-heading span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.recovery-form {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr auto;
  align-items: end;
  gap: 12px;
}

.recovery-form label {
  display: grid;
  gap: 7px;
}

.recovery-form label > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.recovery-form input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.recovery-form .button {
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
}

.recovery-result {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(143, 198, 216, 0.34);
  border-radius: 8px;
  background: rgba(143, 198, 216, 0.08);
}

.recovery-result > strong {
  display: block;
  margin-bottom: 10px;
  color: #b8e0ed;
  font-size: 14px;
}

.recovery-result ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recovery-result li {
  display: grid;
  gap: 2px;
}

.recovery-result li strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.recovery-result li span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.lookup-form label,
.contact-field {
  display: grid;
  gap: 7px;
}

.checkout-dialog .contact-field > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.checkout-dialog .contact-field input {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.renewal-field {
  margin-top: 18px;
}

.verification-pin-field {
  margin-top: 18px;
}

.field-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.existing-license-hint {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  border-left: 3px solid var(--accent);
  padding: 11px 13px;
  background: #edf4f6;
}

.existing-license-hint strong {
  color: var(--accent-dark);
  font-size: 14px;
}

.existing-license-hint span {
  color: var(--muted);
  font-size: 13px;
}

.lookup-form label > span,
.contact-field > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.lookup-form input,
.contact-field input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.license-result {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(104, 184, 143, 0.18);
  color: #a9dfc2;
  font-weight: 700;
}

.status-badge.unbound {
  background: rgba(219, 178, 91, 0.18);
  color: #eacb89;
}

.status-badge.inactive {
  background: rgba(224, 132, 116, 0.18);
  color: #efb1a6;
}

.license-details,
.success-details {
  display: grid;
  gap: 0;
  margin: 20px 0;
}

.license-details > div,
.success-details > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.license-details dt,
.success-details dt {
  color: rgba(255, 255, 255, 0.56);
}

.license-details dd,
.success-details dd {
  margin: 0;
  text-align: right;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #8fc6d8;
  cursor: pointer;
  font-weight: 650;
}

.text-button:disabled {
  color: rgba(255, 255, 255, 0.38);
  cursor: not-allowed;
}

.license-management-actions {
  display: grid;
  gap: 18px;
}

.refund-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(143, 198, 216, 0.28);
  border-radius: 8px;
  padding: 15px 16px;
  background: rgba(143, 198, 216, 0.08);
}

.refund-panel[hidden] {
  display: none;
}

.refund-panel-copy {
  min-width: 0;
}

.refund-panel-copy > strong {
  display: block;
  margin-bottom: 9px;
  color: #d5edf4;
  font-size: 14px;
}

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

.refund-meta > div {
  min-width: 0;
}

.refund-meta dt {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.refund-meta dd {
  margin: 1px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.refund-panel-copy > p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.refund-action {
  min-width: 102px;
  min-height: 40px;
  border-color: rgba(235, 173, 162, 0.38);
  background: rgba(154, 66, 55, 0.24);
  color: #f0c3bb;
}

.refund-action:not(:disabled):hover {
  background: rgba(154, 66, 55, 0.38);
}

.refund-panel[data-status="SUCCEEDED"] {
  border-color: rgba(104, 184, 143, 0.28);
  background: rgba(104, 184, 143, 0.08);
}

.about-section {
  padding: 110px 0 120px;
}

.about-grid {
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 48px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-item {
  padding: 34px 40px 38px 0;
}

.about-item + .about-item {
  border-left: 1px solid var(--line);
  padding-right: 0;
  padding-left: 40px;
}

.about-item > span,
.manual-download span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-item p,
.manual-download p {
  margin-bottom: 16px;
  font-size: 16px;
}

.about-item strong {
  color: var(--muted);
  font-size: 14px;
}

.about-details {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.about-details > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.about-details dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.65;
}

.about-details-short-label {
  width: 4em;
  display: flex;
  justify-content: space-between;
}

.about-details dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.about-details a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.about-details a:hover {
  color: var(--accent);
}

.manual-download {
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 46px auto 0;
}

.manual-download {
  scroll-margin-top: 92px;
}

.manual-download h3,
.manual-download p {
  margin-bottom: 8px;
}

.manual-download .button {
  flex: 0 0 auto;
}

.manual-page {
  min-height: 100svh;
}

.manual-page-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.manual-page-main {
  min-height: calc(100svh - 64px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.manual-placeholder-page {
  width: min(720px, 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
  text-align: center;
}

.manual-placeholder-page h1 {
  margin-bottom: 14px;
  font-size: 48px;
}

.manual-placeholder-page > p:not(.eyebrow) {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 17px;
}

.checkout-dialog {
  width: min(660px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  overflow: auto;
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  box-shadow: var(--shadow);
}

.checkout-dialog::backdrop,
.action-dialog::backdrop {
  background: rgba(24, 28, 26, 0.62);
  backdrop-filter: blur(5px);
}

.action-dialog {
  width: min(520px, calc(100% - 32px));
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  box-shadow: var(--shadow);
}

.action-dialog-shell {
  padding: 38px;
}

.action-dialog h2 {
  margin-bottom: 14px;
  font-size: 32px;
}

.action-dialog-shell > p:not(.eyebrow) {
  color: var(--muted);
}

.policy-note {
  display: grid;
  gap: 7px;
  margin: 24px 0;
  border-left: 3px solid var(--danger);
  padding: 14px 16px;
  background: #f7efed;
}

.policy-note.info {
  border-left-color: var(--accent);
  background: #edf4f6;
}

.policy-note span {
  color: var(--muted);
  font-size: 14px;
}

.refund-confirmation-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.refund-confirmation-details > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.refund-confirmation-details span {
  color: var(--muted);
  font-size: 11px;
}

.refund-confirmation-details strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}

.dialog-actions.single {
  grid-template-columns: 1fr;
}

.dialog-shell {
  position: relative;
  padding: 38px;
}

.checkout-dialog .dialog-shell {
  padding: 18px 22px 20px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--warm);
  color: var(--text);
  cursor: pointer;
  font-size: 21px;
}

.checkout-step h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.checkout-step {
  font-size: 13px;
  line-height: 1.42;
}

.checkout-step .eyebrow {
  margin-bottom: 5px;
  font-size: 11px;
}

.order-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.order-summary > div {
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  border-right: 1px solid var(--line);
}

.order-summary > div:last-child {
  border-right: 0;
}

.order-summary span {
  color: var(--muted);
  font-size: 11px;
}

.order-total strong {
  color: var(--accent);
  font-size: 17px;
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
  border: 0;
  padding: 0;
}

.payment-methods legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.payment-option {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.payment-option.selected {
  border-color: var(--accent);
  background: #eef5f7;
  color: var(--accent-dark);
  font-weight: 700;
}

.payment-option.disabled {
  border-color: #d8dcdd;
  background: #eef0f0;
  color: #9da4a5;
  cursor: not-allowed;
}

.payment-option small {
  display: inline;
  margin-left: 5px;
  font-size: 10px;
  font-weight: 400;
}

.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

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

.checkout-field-group {
  min-width: 0;
}

.checkout-dialog .contact-field {
  gap: 4px;
  margin: 0;
}

.checkout-dialog .contact-field > span {
  color: var(--muted);
  font-size: 12px;
}

.checkout-dialog .contact-field input {
  height: 40px;
  border-color: var(--line);
  background: #fff;
  color: var(--text);
  font-size: 13px;
}

.checkout-dialog .verification-pin-field {
  margin-top: 0;
}

.checkout-renewal-group {
  margin-top: 10px;
}

.checkout-dialog .renewal-field {
  margin-top: 0;
}

.demo-notice {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.renewal-success-box {
  display: grid;
  gap: 3px;
  margin: 8px 0;
  border: 1px solid #b6d1d9;
  border-radius: 8px;
  padding: 10px 12px;
  background: #edf4f6;
}

.renewal-success-box span {
  color: var(--muted);
  font-size: 13px;
}

.renewal-success-box strong {
  color: var(--accent-dark);
  font-size: 16px;
  letter-spacing: 0.06em;
}

.renewal-success-box small {
  color: var(--muted);
  font-size: 11px;
}

.credential-save-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
  border-left: 3px solid #c58e3c;
  padding: 8px 10px;
  background: #faf3e7;
}

.credential-save-notice strong {
  font-size: 12px;
}

.credential-save-notice span {
  color: var(--muted);
  font-size: 11px;
}

.credential-box {
  margin: 8px 0;
  border: 1px solid #b6d1d9;
  border-radius: 8px;
  padding: 0 12px 10px;
  background: #edf4f6;
}

.credential-box dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 10px;
}

.credential-box dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #c9dde2;
}

.credential-box dt {
  color: var(--muted);
  font-size: 11px;
}

.credential-box dd {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
}

.credential-phone {
  grid-column: 1;
  grid-row: 1;
  padding-right: 12px !important;
}

.credential-pin {
  grid-column: 2;
  grid-row: 1;
  padding-left: 12px !important;
}

.credential-license-code {
  grid-column: 1 / -1;
  grid-row: 2;
}

.credential-box .button {
  min-height: 38px;
  font-size: 13px;
}

.verification-pin-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pin-reveal-button {
  border: 0;
  border-radius: 5px;
  padding: 4px 7px;
  background: #d7e8ed;
  color: var(--accent-dark);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.payment-processing,
.success-step {
  padding: 18px 0 4px;
  text-align: center;
}

.payment-qr {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 14px auto;
  border: 1px solid var(--line);
  padding: 8px;
  background: #fff;
}

.payment-cancel {
  margin-top: 10px;
  font-size: 12px;
}

.success-step {
  padding-top: 0;
}

.success-step h2 {
  margin-bottom: 5px;
}

.payment-processing p,
.success-step > p:not(.eyebrow) {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.processing-indicator {
  width: 36px;
  height: 36px;
  margin: 14px auto 18px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.success-details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.success-details > div {
  display: grid;
  gap: 2px;
  padding: 7px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.success-details > div:last-child {
  border-right: 0;
}

.success-details dt {
  color: var(--muted);
  font-size: 10px;
}

.success-details dd {
  font-size: 12px;
}

.official-contact-qr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 10px;
  padding-top: 6px;
}

.official-contact-item {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.official-contact-item strong {
  font-size: 12px;
}

.qr-placeholder {
  width: min(96px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 3px;
  border: 1px dashed #aeb7b3;
  border-radius: 6px;
  background: #f1f3f2;
  color: var(--muted);
}

.qr-placeholder span {
  font-size: 11px;
  font-weight: 700;
}

.qr-placeholder small {
  font-size: 10px;
}

.checkout-step > .button.full {
  min-height: 40px;
  font-size: 13px;
}

#createPaymentOrder {
  margin-top: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: calc(100% - 32px);
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--soft-shadow);
  color: var(--text);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  html {
    scroll-padding-top: 112px;
  }

  .site-header {
    min-height: 70px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 20px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
    overflow-x: auto;
  }

  .brand-logo {
    width: 112px;
    max-height: 40px;
  }

  .nav-link {
    flex: 0 0 auto;
  }

  .hero {
    min-height: auto;
    padding-top: 62px;
  }

  .license-inner {
    grid-template-columns: 1fr;
  }

  .license-copy {
    max-width: 720px;
    text-align: center;
    margin: 0 auto;
  }

  .license-inner {
    gap: 38px;
  }

  .lookup-form {
    grid-template-columns: 1fr 1fr;
  }

  .recovery-form {
    grid-template-columns: 1fr 1fr;
  }

  .recovery-form .button {
    grid-column: 1 / -1;
  }

  .lookup-form .button {
    grid-column: 1 / -1;
  }

  .edition-downloads {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section-panel {
    width: min(100% - 32px, 1180px);
  }

  .hero-actions,
  .payment-methods,
  .status-line {
    flex-direction: column;
  }

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

  .feature-switcher {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-switch-tabs {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(250px, 82vw, 320px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .feature-switch-tab {
    min-width: 0;
    min-height: 92px;
    border-right: 1px solid var(--line);
    padding: 14px 16px;
    scroll-snap-align: start;
  }

  .assurance-inner,
  .edition-comparison,
  .plan-grid,
  .about-grid,
  .lookup-form,
  .recovery-form,
  .payment-methods {
    grid-template-columns: 1fr;
  }

  .assurance-inner {
    padding: 10px 0;
  }

  .assurance-inner > div,
  .assurance-inner > div:first-child,
  .assurance-inner > div:last-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .assurance-inner > div:last-child {
    border-bottom: 0;
  }

  .software-download,
  .plans-section,
  .license-section,
  .about-section {
    padding-top: 84px;
    padding-bottom: 84px;
    scroll-margin-top: 112px;
  }

  .software-download {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .download-copy {
    margin-bottom: 26px;
  }

  .download-edition,
  .download-edition + .download-edition {
    padding: 24px 0;
    border-right: 0;
  }

  .download-edition + .download-edition {
    border-top: 1px solid var(--line);
  }

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

  .about-item,
  .about-item + .about-item {
    border-left: 0;
    padding: 28px 0;
  }

  .about-item + .about-item {
    border-top: 1px solid var(--line);
  }

  .manual-download {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .manual-download .button {
    width: 100%;
  }

  .feature-more-link {
    width: 100%;
  }

  .lookup-form .button {
    grid-column: auto;
  }

  .recovery-form .button {
    grid-column: auto;
  }

  .status-line {
    align-items: flex-start;
  }

  .refund-panel,
  .refund-meta,
  .refund-confirmation-details {
    grid-template-columns: 1fr;
  }

  .refund-action {
    width: 100%;
  }

  .license-details > div,
  .success-details > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .license-details dd,
  .success-details dd {
    text-align: left;
  }

  .credential-box dl > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .dialog-shell {
    padding: 34px 22px 24px;
  }

  .checkout-dialog .dialog-shell {
    padding: 18px 20px 20px;
  }

  .action-dialog-shell {
    padding: 34px 22px 24px;
  }

  .checkout-input-grid,
  .credential-box dl,
  .success-details {
    grid-template-columns: 1fr;
  }

  .credential-phone,
  .credential-pin,
  .credential-license-code {
    grid-column: 1;
    grid-row: auto;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .credential-save-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    text-align: left;
  }

  .success-details {
    border-bottom: 0;
  }

  .success-details > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-shot {
    border-radius: 10px;
  }

  .plan-card,
  .license-console {
    padding: 22px;
  }

  .checkout-step h2 {
    font-size: 26px;
  }

  .official-contact-qr {
    grid-template-columns: 1fr;
  }

  .manual-placeholder-page h1 {
    font-size: 36px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
