/* Pricing and legal pages. Loaded after styles.css and features.css. */

.p-hero { text-align: center; padding-bottom: 40px; }
.p-hero .crumbs { justify-content: center; }
.p-hero .cta-row { justify-content: center; }
.p-hero h1 {
  margin: 24px auto 0; max-width: 18em; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.12;
  letter-spacing: -.03em; font-weight: 700; color: var(--navy); text-wrap: balance;
}
html[data-lang="zh"] .p-hero h1 { letter-spacing: 0; line-height: 1.3; font-size: clamp(30px, 3.6vw, 46px); }
.p-hero h1 em { font-style: normal; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-hero .lede { margin: 18px auto 0; }

.p-tiers { padding-top: 24px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.p-tiers .tier { padding: 28px 22px; }
.tier {
  position: relative; display: flex; flex-direction: column; padding: 30px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
}
.tier.popular { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--brand-grad) border-box; box-shadow: var(--shadow-lg); }
.tier-badge {
  position: absolute; top: -13px; left: 28px; font-size: 12px; font-weight: 700; color: #fff;
  padding: 4px 12px; border-radius: 999px; background: var(--brand-grad);
}
.tier h3 { font-size: 22px; font-weight: 700; color: var(--navy); }
.tier-for { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); min-height: 3em; }
.tier-price { display: flex; align-items: baseline; gap: 4px; margin-top: 20px; color: var(--ink); }
.tier-price .cur { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.tier-price b { font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tier-price.custom b { font-size: 34px; letter-spacing: -.02em; }
.tier-price .per { font-size: 14px; color: var(--muted); margin-left: 4px; }
.tier-bill { margin-top: 6px; font-size: 13px; color: var(--muted); }
.tier-seats { margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.tier-ai {
  display: flex; align-items: center; gap: 10px; margin: 16px 0 20px; padding: 10px 12px;
  border-radius: 10px; background: #f3efff; font-size: 13.5px; color: var(--ink-2);
}
.tier-ai .ai-dot { width: 26px; height: 26px; font-size: 10px; flex: none; }
.tier-ai b { color: var(--brand-3); font-size: 15px; }
.tier-lead { margin-top: 24px; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
html[data-lang="zh"] .tier-lead { letter-spacing: .06em; }
.tier .ticks { margin-top: 12px; }
.p-note { margin-top: 24px; text-align: center; font-size: 13.5px; color: var(--muted); }

.tier-price .from { font-size: 14px; color: var(--muted); margin-right: 2px; }
.tier-specs { margin-top: 18px; border-top: 1px solid var(--line); }
.tier-specs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tier-specs dt { color: var(--ink-2); }
.tier-specs dd { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.tier-specs dd small { margin-left: 3px; font-size: 12px; font-weight: 500; color: var(--muted); }
.tier-specs dd small.sub, .p-cmp-table td small.sub { display: block; margin-left: 0; }
.p-plus {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
  margin-top: 20px; padding: 26px 32px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
}
.p-plus h3 { margin-top: 6px; font-size: 20px; font-weight: 700; color: var(--navy); }
.p-plus p { margin-top: 6px; max-width: 48em; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.tier .ticks a { color: var(--primary); font-weight: 600; }
@media (min-width: 1181px) {
  .p-tiers .tier-price b { font-size: 38px; }
  .p-tiers .tier-price.custom b { font-size: 32px; }
  .p-tiers .tier-ai { font-size: 13px; }
  .p-tiers .tiers { row-gap: 0; }
  .p-tiers .tier { display: grid; grid-row: span 9; grid-template-rows: subgrid; align-content: start; }
  .p-tiers .tier .btn { align-self: end; }
  .p-tiers .tier .ticks { align-content: start; }
}

/* Basic modules band */
.p-base {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; align-items: center;
  margin-top: 40px; padding: 36px 40px; border-radius: 20px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #2d3db0 0%, #18216b 55%, #111850 100%);
}
.p-base-head h3 { margin-top: 8px; font-size: 24px; line-height: 1.3; font-weight: 700; }
.p-base-head p { margin-top: 8px; font-size: 15px; color: #cdd5fb; }
.p-base-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.p-base-list li {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 14.5px; font-weight: 500;
}
.p-base-list li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--brand-grad);
}

/* How usage works */
.p-how { background: var(--bg-soft); }
.p-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p-how-grid article { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; scroll-margin-top: 96px; }
.p-how-num {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #fff; background: var(--brand-grad);
}
.p-how-grid h3 { margin-top: 14px; font-size: 18px; font-weight: 700; color: var(--navy); }
.p-how-grid p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.p-more { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.p-more-item { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 28px; border-radius: 18px; background: #f3efff; border: 1px solid #e3dcff; }
.p-more-item h3 { font-size: 17px; font-weight: 700; color: var(--navy); }
.p-more-item p { margin: 6px 0 18px; font-size: 14.5px; color: var(--ink-2); }
.p-more-item .btn { margin-top: auto; }

/* Plan comparison table */
.p-cmp { padding-top: 24px; }
.p-cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.p-cmp-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; }
.p-cmp-table th, .p-cmp-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.p-cmp-table tbody tr:last-child > * { border-bottom: 0; }
.p-cmp-table thead th { padding: 18px 16px; font-size: 16px; font-weight: 700; color: var(--navy); }
.p-cmp-table th[scope="row"] { text-align: left; font-weight: 500; color: var(--ink-2); width: 30%; }
.p-cmp-table td { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.p-cmp-table td small { margin-left: 3px; font-size: 12px; font-weight: 500; color: var(--muted); }
.p-cmp-table .grp th { padding: 10px 16px; text-align: left; background: var(--bg-soft); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
html[data-lang="zh"] .p-cmp-table .grp th { letter-spacing: .06em; }
.p-cmp-table .hl { background: #f8f6ff; }
.p-cmp-table thead .hl { color: var(--brand-3); }
.p-cmp-table .y { color: var(--success); font-weight: 700; }
.p-cmp-table .n { color: var(--muted); font-weight: 500; }
@media (max-width: 860px) {
  .p-cmp-table th[scope="row"] { position: sticky; left: 0; z-index: 1; background: #fff; }
  .p-cmp-table th, .p-cmp-table td { padding: 10px 12px; }
}
@media (max-width: 600px) {
  .p-cmp-table { min-width: 600px; font-size: 13px; }
  .p-cmp-table th[scope="row"] { width: 120px; min-width: 120px; }
  .p-cmp-table thead th { font-size: 14px; }
  .p-cmp-table td small { display: block; margin-left: 0; }
}

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

/* Legal pages */
.legal-hero { padding-bottom: 40px; }
.legal-hero h1 { margin-top: 20px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
html[data-lang="zh"] .legal-hero h1 { letter-spacing: 0; }
.legal-meta { margin-top: 12px; font-size: 14px; color: var(--muted); }
.legal { padding: 56px 0 96px; }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 88px; font-size: 14px; }
.legal-toc b { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.legal-toc ol { list-style: none; display: grid; gap: 2px; }
.legal-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); }
.legal-toc a:hover { background: var(--bg-soft); color: var(--primary); }
.legal-body { max-width: 760px; font-size: 15.5px; color: var(--ink-2); }
.legal-body section { padding-top: 8px; margin-bottom: 36px; scroll-margin-top: 88px; }
.legal-body h2 { font-size: 21px; font-weight: 700; color: var(--navy); margin-bottom: 12px; letter-spacing: -.01em; }
.legal-body h3 { font-size: 16px; font-weight: 650; color: var(--ink); margin: 18px 0 6px; }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p { margin-top: 10px; }
.legal-body ul { padding-left: 20px; display: grid; gap: 6px; }
.legal-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-body .callout { padding: 18px 20px; border-radius: 12px; background: #f3efff; border: 1px solid #e0d6ff; color: var(--ink); }
.legal-body .pics-box { padding: 22px 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); }
.fill { background: #fff4c2; color: #6b4e00; padding: 0 4px; border-radius: 4px; font-style: normal; }

@media (max-width: 900px) {
  .tiers { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; row-gap: 20px; }
  .p-plus { grid-template-columns: 1fr; gap: 18px; padding: 24px 22px; }
}
@media (max-width: 1080px) {
  .tier-for { min-height: 0; }
  .p-base { grid-template-columns: 1fr; gap: 28px; }
  .legal-grid { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
  .legal-toc ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .p-how-grid, .p-more { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .p-base { padding: 28px 22px; }
  .p-base-list { grid-template-columns: 1fr; }
  .p-how-grid article, .p-more-item { padding: 24px 20px; }
  .tier { padding: 26px 22px; }
  .tier-price b { font-size: 40px; }
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal { padding: 40px 0 72px; }
}

/* All features (all-features.html) */
.af-jump { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.af-jump a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: border-color .15s, color .15s; }
.af-jump a:hover { border-color: var(--primary); color: var(--primary); }
.af-list { padding-top: 24px; }
.af-mod { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.af-mod:first-child { border-top: 0; padding-top: 16px; }
.af-mod-head { position: sticky; top: 96px; align-self: start; }
.af-mod-head .pillar-icon { width: 44px; height: 44px; }
.af-mod-head h2 { margin-top: 14px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
html[data-lang="zh"] .af-mod-head h2 { letter-spacing: 0; }
.af-mod-head p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.af-feats { display: grid; gap: 16px; }
.af-feat { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.af-feat h3 { font-size: 17px; font-weight: 650; }
.af-feat h3 a { color: var(--primary); }
.af-feat h3 a:hover { text-decoration: underline; }
.af-ticks { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.compare { background: var(--bg-soft); }

/* Deployment & security (deployment.html) */
.dp-deploy { padding-top: 24px; }
.dp-control { background: linear-gradient(135deg, #eef3ff, #f3efff); }
.dp-control-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.dp-list { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.dp-list li { position: relative; padding-left: 30px; }
.dp-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #e6efff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230176d3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.dp-list b { display: block; font-size: 16px; color: var(--navy); }
.dp-list span span { font-size: 15px; color: var(--ink-2); }
.dp-visual .use-frame { border: 0; border-radius: 0; }
.trust h2.trust-sub { margin: 0 0 20px; font-size: clamp(22px, 2.4vw, 28px); }

/* Use-case pages (use-cases/*.html) */
.ux-hero { padding-bottom: 72px; }
.ux-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; margin-top: 24px; }
.ux-team { display: inline-block; padding: 3px 10px; border-radius: 6px; background: #e6efff; color: var(--primary); font-size: 12.5px; font-weight: 700; }
.ux-hero h1 { margin-top: 14px; }
.ux-fit { display: grid; gap: 14px; margin-top: 24px; }
.ux-fit dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ux-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ux-chips li { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink-2); }
.ux-chips-on li { border-color: transparent; background: var(--navy); color: #fff; font-weight: 600; }
.ux-hero-shot .browser { transform: perspective(1800px) rotateY(-4deg) rotateX(1deg); transform-origin: left center; }
.ux-hero-shot img, .ux-step-shot img, .ux-alt-shot img { display: block; width: 100%; height: auto; }
.ux-phone { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #f4f2ff; }
.ux-steps { list-style: none; display: grid; gap: 72px; }
.ux-step { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.ux-step:nth-child(even) .ux-step-text { order: 2; }
.ux-step-text { position: relative; }
.ux-num { display: block; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.03em; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.ux-who { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-3); }
.ux-step h3 { margin-top: 6px; font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
html[data-lang="zh"] .ux-step h3 { letter-spacing: 0; }
.ux-step-text > p { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.ux-step-text > p.ux-demo { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #f3efff; font-size: 14.5px; color: var(--ink); }
.ux-demo b { margin-right: 6px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-3); }
.ux-mods { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ux-mods a { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid #d9d2ff; background: #fff; font-size: 13px; font-weight: 600; color: var(--primary); transition: border-color .15s, background .15s; }
.ux-mods a:hover { border-color: var(--primary); background: #f5f9ff; }
.ux-alt { background: var(--bg-soft); }
.ux-alt-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.ux-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.ux-more { padding-top: 88px; }
.ux-used { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; margin-bottom: 72px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.ux-used h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: 0; }
.ux-used .ux-mods { margin-top: 0; justify-content: center; }
.more-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1080px) {
  .af-mod { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .af-mod-head { position: static; }
  .dp-control-grid, .ux-hero-grid, .ux-step, .ux-alt-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ux-step:nth-child(even) .ux-step-text { order: 0; }
  .ux-hero-shot .browser { transform: none; }
  .ux-hero-shot, .ux-step-shot, .ux-alt-shot, .dp-visual { max-width: 760px; }
  .ux-steps { gap: 56px; }
}
@media (max-width: 600px) {
  .af-ticks { grid-template-columns: 1fr; }
  .af-feat { padding: 18px; }
  .ux-num { font-size: 36px; }
  .ux-step h3 { font-size: 21px; }
}
