:root {
  color-scheme: light;
  --ink: #132042;
  --muted: #52617a;
  --brand: #3041ce;
  --brand-dark: #2434ae;
  --navy: #101932;
  --navy-deep: #0c142b;
  --line: #dce3f0;
  --pale: #f3f6fb;
  --white: #fff;
  --good: #0b7159;
  --alert: #963e06;
  --error: #a22c26;
  --shadow: 0 24px 60px -32px #162d6a4a, 0 2px 7px #14244f09;
  --gutter: clamp(17px, 4.5vw, 58px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-width: 300px; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--white); color: var(--ink);
  font: 16px/1.65 "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 750; line-height: 1.2; }
h1 { font-size: clamp(36px, 5.6vw, 74px); letter-spacing: -.045em; }
h2 { font-size: clamp(26px, 3.2vw, 42px); letter-spacing: -.035em; }
h3 { font-size: 20px; letter-spacing: -.02em; }
::selection { background: #cad3fd; color: #152573; }
:focus-visible { outline: 3px solid #6d82f2; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2 * var(--gutter), 1220px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: var(--gutter); background: #fff; padding: 8px 14px; transform: translateY(-140%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { width: 125px; }
.brand span { border-left: 1px solid var(--line); padding-left: 14px; font-size: 13px; font-weight: 700; }
.site-nav { display: flex; align-items: center; margin-inline: auto 0; gap: clamp(16px, 2vw, 34px); }
.site-nav a { color: #384861; font-size: 14px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }
.site-nav .web-entry-link { color: var(--brand); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 45px; max-width: 100%; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px;
  cursor: pointer; color: #fff; background: var(--brand); font: inherit; font-size: 14px; font-weight: 700; line-height: 1.35;
  text-decoration: none; text-align: center;
}
.button:hover { background: var(--brand-dark); }
.button.small { min-height: 39px; padding: 8px 13px; }
.button.light { background: #fff; border-color: var(--line); color: var(--ink); }
.button.light:hover { background: #f4f6ff; color: var(--brand-dark); border-color: #ccd4fa; }
.button.solid-white { background: #fff; color: #243484; }
.button.solid-white:hover { background: #ebefff; }
.button.on-dark { border-color: #8292c3; color: #fff; background: transparent; }
.button.on-dark:hover { background: #ffffff20; }
.button.danger { background: #fff; color: var(--error); border-color: #efd3cf; }
.button.danger:hover { background: #fff3ed; }
.button[disabled] { opacity: .58; cursor: wait; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero {
  color: #fff;
  background: radial-gradient(ellipse at 80% 25%, #34468d 0%, #1c2a57 37%, transparent 67%), linear-gradient(145deg, var(--navy-deep), #152145 88%);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(28px, 6vw, 84px); padding-block: clamp(62px, 8vw, 110px); }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(38px, 4.35vw, 66px); }
.hero h1 span { color: #c7d4ff; }
.hero-copy > p { max-width: 430px; margin-top: 22px; color: #cbd5f2; font-size: clamp(15px, 1.4vw, 18px); }
.hero .action-row { margin-top: 29px; }
.hero-figure { position: relative; min-height: clamp(265px, 33vw, 420px); isolation: isolate; display: flex; align-items: center; }
.hero-figure::before {
  content: ""; position: absolute; z-index: -1; inset: -30% -26% -34% -18%; opacity: .32;
  background: repeating-linear-gradient(90deg, transparent 0 63px, #7d9feb50 64px 65px), repeating-linear-gradient(0deg, transparent 0 41px, #7d9feb41 42px 43px);
  mask-image: radial-gradient(ellipse, #000, transparent 72%);
}
.screen {
  position: relative; overflow: hidden; background: #fff; color: var(--ink); border: 1px solid #d4def5; border-radius: 12px; box-shadow: var(--shadow);
}
.screen img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.screen figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; padding: 9px 13px; font-size: 12px; color: #526179; }
.screen-title { color: var(--ink); font-weight: 750; }
.screen-fallback {
  min-height: 120px; aspect-ratio: 16 / 9; padding: 18px; display: grid; align-content: center; gap: 4px; border-bottom: 1px solid #dce5fa;
  background: linear-gradient(135deg, #f9fbff, #dce8fd); color: var(--ink);
}
.screen-fallback strong { font-size: clamp(16px, 2vw, 26px); }
.screen-fallback span { color: #4d5c7a; font-size: 12px; }
.hero-figure .screen { box-shadow: 0 20px 45px #060e29bc; }
.hero-figure .screen:first-child { width: 88%; position: absolute; top: 2%; left: 0; }
.hero-figure .screen:nth-child(2) { width: 62%; position: absolute; right: -3%; bottom: -2%; transform: rotate(1.2deg); }
.section { padding-block: clamp(52px, 7vw, 92px); }
.section.tight { padding-block: clamp(36px, 5vw, 68px); }
.section-soft { background: var(--pale); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; gap: 20px; }
.section-heading p { color: var(--muted); max-width: 530px; margin-top: 10px; }
.product-grid, .columns-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 5px 16px #162d6a08; display: flex; flex-direction: column; background: #fff; }
.product-card .screen { border-radius: 0; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); }
.product-card .screen img { object-fit: cover; }
.product-body { padding: clamp(19px, 3vw, 29px); flex: 1; }
.product-body p { margin: 10px 0 14px; color: var(--muted); }
.product-body .action-row { margin-top: 20px; }
.label-strip { display: flex; gap: 8px; list-style-type: none; padding: 0; margin: 0; flex-wrap: wrap; }
.label-strip li { background: #edf1fc; color: #2e4088; padding: 3px 9px; border-radius: 5px; font-size: 13px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.steps li { padding: 20px 24px 6px 0; }
.steps li + li { border-left: 1px solid var(--line); padding-left: 22px; }
.steps p { color: var(--muted); margin-top: 6px; }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: #eaf0ff; border: 1px solid #dbe4fb; border-radius: 14px; padding: clamp(24px, 4vw, 38px); }
.callout h2 { font-size: clamp(23px, 3vw, 34px); }
.callout p { color: var(--muted); margin-top: 8px; }
.route-intro { padding-block: clamp(38px, 6vw, 75px) clamp(27px, 4vw, 45px); }
.route-intro h1 { font-size: clamp(35px, 5vw, 58px); }
.route-intro p { color: var(--muted); margin-top: 10px; }
.breadcrumb { margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.breadcrumb a { text-decoration: none; }
.detail-top { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 7vw, 92px); background: #f1f5ff; border-radius: 18px; padding: clamp(24px, 4vw, 48px); }
.detail-top .action-row { margin-top: 22px; }
.detail-top h1 { font-size: clamp(33px, 4.7vw, 58px); }
.detail-top p { color: var(--muted); margin-top: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature-grid article { border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.feature-grid p { color: var(--muted); margin-top: 6px; }
.narrow { max-width: 620px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.auth-side h1 { font-size: clamp(36px, 5vw, 58px); }
.auth-side p { max-width: 410px; color: var(--muted); margin-top: 14px; }
.panel { min-width: 0; padding: clamp(17px, 3vw, 30px); border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.panel.flat { box-shadow: none; }
.panel > h2, .panel > h3 { font-size: 22px; }
.panel > p { color: var(--muted); }
.panel > h2 + p, .panel > h3 + p { margin-top: 8px; }
.panel > form, .panel > .action-row, .panel > .account-meta { margin-top: 18px; }
.form-grid { display: grid; gap: 14px; }
.form-grid.double { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; align-content: start; gap: 4px; min-width: 0; }
.field > span, fieldset legend { font-size: 14px; font-weight: 700; }
.field small, .subtle { color: var(--muted); font-size: 13px; }
.field.full, .form-grid > .full { grid-column: 1 / -1; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset legend { margin-bottom: 8px; }
.choice-list { display: grid; gap: 8px; }
.choice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; background: #fff; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.choice:has(input:checked) { border-color: #9aa9ee; background: #f0f3ff; }
.choice input { accent-color: var(--brand); }
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  width: 100%; color: var(--ink); background: #fff; border: 1px solid #bcc9df;
  min-height: 42px; padding: 7px 11px; border-radius: 6px; font: inherit;
}
input[readonly] { background: #f3f6fb; }
textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
p.note { margin: 0; padding: 10px 13px; border-radius: 7px; color: #3e527b; background: #ecf2fe; }
p.note.error { color: var(--error); background: #fff0ee; }
p.note.ok { color: var(--good); background: #e5f6ef; }
p.note.warn { color: var(--alert); background: #fff1dc; }
.account-meta { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.account-meta dl { margin: 0; }
.account-meta dt { font-size: 13px; color: var(--muted); }
.account-meta dd { margin: 3px 0 0; font-weight: 700; }
.state { display: inline-flex; font-size: 12px; border-radius: 5px; padding: 3px 8px; color: #334276; background: #eaf0fc; font-weight: 700; white-space: nowrap; }
.state.good { background: #e2f4ec; color: var(--good); }
.state.warn { background: #fff0dd; color: var(--alert); }
.state.off { color: #52617a; background: #edf0f5; }
.content-offset { margin-top: 28px; }
.account-cards h2 { font-size: 24px; }
.account-cards p { padding-top: 8px; }
.box-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; }
.price { font-size: 27px; display: block; margin-top: 5px; font-weight: 750; color: var(--ink); }
.payment-qr { width: min(208px, 100%); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; margin: 14px 0; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 700; background: #f0f4fb; white-space: nowrap; }
td, th { padding: 10px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td .action-row { gap: 6px; }
.table-empty { padding: 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; }
.admin-grid { display: grid; grid-template-columns: 206px minmax(0, 1fr); align-items: start; gap: 20px; padding-bottom: 40px; }
.admin-nav { display: grid; gap: 3px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.admin-nav button {
  color: #364866; border: 0; background: transparent; text-align: left; border-radius: 5px; min-height: 40px; padding: 6px 10px; font: inherit; cursor: pointer;
}
.admin-nav button:hover, .admin-nav button[aria-current="true"] { color: var(--brand-dark); background: #edf2ff; font-weight: 700; }
.admin-box { min-width: 0; }
.admin-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; }
.admin-box .panel { margin-bottom: 15px; }
.admin-box .panel * + .form-grid { margin-top: 13px; }
.admin-box .table-wrap + h3 { margin-top: 20px; }
.admin-filter { max-width: 290px; margin-bottom: 14px; }
.faq { display: grid; gap: 9px; max-width: 890px; }
.faq details { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { padding: 8px 0 3px; color: var(--muted); }
.loading { color: var(--muted); padding-block: 60px; }
.site-footer { margin-top: auto; background: var(--navy-deep); color: #d9e4ff; }
.footer-inner { padding-block: 31px; display: flex; justify-content: space-between; align-items: start; gap: 22px; }
.footer-brand { color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; }
.footer-inner p { margin-top: 5px; color: #adbadb; font-size: 13px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 13px; }
.footer-inner nav a { color: #dce7ff; font-size: 14px; text-decoration: none; }
.footer-inner nav a:hover { text-decoration: underline; }
.no-script { color: var(--error); background: #fff1ef; padding: 12px var(--gutter); }
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; gap: 0 14px; padding-top: 7px; }
  .brand { min-height: 50px; }
  .header-actions { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin: 0; overflow: auto; gap: 18px; scrollbar-width: thin; }
  .site-nav a { padding: 9px 0; }
  .hero-inner { gap: 23px; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .hero-figure { min-height: 235px; }
  .admin-grid { grid-template-columns: 158px minmax(0, 1fr); gap: 13px; }
}
@media (max-width: 640px) {
  .hero-inner, .product-grid, .columns-two, .detail-top, .auth-grid, .box-grid, .admin-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 41px 34px; gap: 30px; }
  .hero-figure { min-height: 0; aspect-ratio: 1.55; }
  .hero-figure .screen:nth-child(2) { right: 0; bottom: 0; }
  .hero h1 { font-size: clamp(37px, 9vw, 54px); }
  .hero-copy > p { margin-top: 13px; }
  .hero .action-row { margin-top: 21px; }
  .section-heading, .callout, .footer-inner { align-items: start; flex-direction: column; gap: 11px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .steps li { padding: 11px 0; }
  .steps li + li { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
  .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-nav button { min-height: 44px; }
  .route-intro { padding-top: 30px; }
  .button.small { min-height: 42px; }
  .form-grid.double { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .brand { gap: 8px; }
  .brand img { width: 88px; }
  .brand span { padding-left: 8px; font-size: 12px; }
  .header-actions { gap: 4px; }
  .header-actions .button { padding-inline: 8px; }
  .site-nav { gap: 13px; }
  .site-nav a { font-size: 13px; }
  .hero-figure figcaption { padding: 5px 7px; }
  .hero-figure .screen figcaption span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.confirm-dialog { width: min(calc(100% - 30px), 460px); max-height: calc(100vh - 30px); overflow: auto; color: var(--ink); }
.confirm-dialog::backdrop { background: #10193290; }
#admin-invite:not(:empty) { margin-block: 13px; }
#admin-invite .field { flex: 1; }
#admin-note:not([hidden]) { margin-bottom: 10px; }
.account-cards p.note:not([hidden]) { margin-top: 13px; }
body:is([data-view="account"], [data-view="admin"], [data-view="checkout"], [data-view="download"], [data-view="trial"], [data-view="invite"]) .route-intro {
  padding-block: clamp(27px, 4.4vw, 52px) clamp(15px, 2.8vw, 29px);
}
body:is([data-view="account"], [data-view="admin"], [data-view="checkout"], [data-view="download"], [data-view="trial"], [data-view="invite"]) .route-intro h1 {
  font-size: clamp(30px, 4vw, 46px);
}
body:is([data-view="account"], [data-view="checkout"], [data-view="download"], [data-view="trial"], [data-view="invite"]) .route-intro + .section {
  padding-top: 0;
}
body[data-view="account"] .section-heading h2, .admin-heading h2 { font-size: clamp(24px, 3vw, 29px); }
.route-intro > p { overflow-wrap: anywhere; }
@media (max-width: 435px) {
  .header-inner:has([data-logout]) .brand { gap: 8px; }
  .header-inner:has([data-logout]) .brand img { width: 91px; }
  .header-inner:has([data-logout]) .brand span { padding-left: 8px; font-size: 12px; }
  .header-inner:has([data-logout]) .header-actions { gap: 4px; }
  .header-inner:has([data-logout]) .header-actions .button { padding-inline: 7px; }
}
.admin-box .sale-product, .admin-box .sales-instructions { margin: 0; }
.offer-list { display: grid; gap: 10px; margin: 12px 0; }
.offer-row { display: grid; grid-template-columns: minmax(75px, 1fr) minmax(70px, 1fr) auto; gap: 8px; align-items: end; }
.offer-row:has(button[hidden]) { grid-template-columns: 1fr 1fr; }
.offer-row button { margin-bottom: 1px; }
.sales-instructions h3 { margin-bottom: 13px; }
.sales-instructions > p { margin-top: 8px; }
@media (max-width: 375px) {
  .offer-row { grid-template-columns: 1fr 1fr; }
  .offer-row button { justify-self: start; grid-column: 1 / -1; }
}

.payment-instructions { white-space: pre-wrap; overflow-wrap: anywhere; }
