/* Pricing 与 Cancel Subscription 页共用样式：参照 Reversly 的定价卡片、FAQ 与取消订阅卡片。
   颜色全部取自 app.css / palettes.css 的 --p-* 配色变量，跟首页配色保持一致。 */
body.new-index.pr-page { margin: 0; color: #141a2b; background: #fff !important; font-family: var(--font-family); line-height: 1.55; }
.pr-page main { display: block; max-width: none; margin: 0; padding: 0; }
.pr-page a { color: inherit; }
.pr-wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

/* Hero：从页面最顶端开始铺色，导航栏透明地压在它上面，两者没有分割线。 */
.pr-hero { position: relative; isolation: isolate; padding: 150px 0 72px; text-align: center; background:
  radial-gradient(820px 440px at 12% -6%, var(--p-hero-a), transparent 70%),
  radial-gradient(760px 420px at 90% 0%, var(--p-hero-b), transparent 70%),
  linear-gradient(180deg, var(--p-hero-top), #fff 92%); }
.pr-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(color-mix(in srgb, var(--p-primary) 14%, transparent) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, transparent 75%); opacity: .5; }
.pr-hero h1 { max-width: 820px; margin: 0 auto 14px; color: #141a2b; font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.pr-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--p-accent), var(--p-accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-hero p { max-width: 620px; margin: 0 auto; color: #4a5468; font-size: 18px; }

/* 定价卡片：彩色顶条 + 白卡 + 描边按钮 + 绿色勾选特性 */
.pr-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: min(800px, 100%); margin: 0 auto; text-align: left; }
.pr-plan { --plan: var(--p-primary); overflow: hidden; border: 1.5px solid var(--plan); border-radius: 18px; background: #fff; box-shadow: 0 18px 40px color-mix(in srgb, var(--plan) 12%, transparent); transition: transform .2s ease, box-shadow .2s ease; }
.pr-plan--rec { --plan: var(--p-accent); }
@media (hover: hover) { .pr-plan:hover { transform: translateY(-4px); box-shadow: 0 24px 50px color-mix(in srgb, var(--plan) 18%, transparent); } }
.pr-plan__flag { padding: 9px 16px; color: #fff; background: var(--plan); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.pr-plan__body { padding: 26px 28px 30px; }
.pr-plan h2 { margin: 0 0 10px; color: var(--plan); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.pr-plan__price { margin: 0 0 14px; color: #141a2b; font-size: 42px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.pr-plan__price small { margin-left: 2px; color: #6a7386; font-size: 15px; font-weight: 400; letter-spacing: 0; }
.pr-plan__desc { min-height: 48px; margin: 0 0 20px; color: #5b6477; font-size: 14.5px; }
.pr-page .pr-plan .pr-plan__cta { display: block; padding: 13px 16px; border: 1.5px solid var(--plan); border-radius: 10px; color: var(--plan); background: #fff; font-size: 15px; font-weight: 600; text-align: center; text-decoration: none; transition: background .18s ease, color .18s ease; }
.pr-page .pr-plan .pr-plan__cta:hover, .pr-page .pr-plan .pr-plan__cta:focus-visible { color: #fff; background: var(--plan); }
.pr-plan h3 { margin: 24px 0 12px; padding-top: 22px; border-top: 1px solid #edf0f4; color: #141a2b; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; }
.pr-plan ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pr-plan li { position: relative; padding-left: 28px; color: #4a5468; font-size: 14.5px; }
.pr-plan li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pr-notice { width: min(800px, 100%); margin: 26px auto 0; color: #6a7386; font-size: 13.5px; text-align: center; }

/* 区块标题 */
.pr-section { padding: 88px 0 0; text-align: center; }
.pr-section h2.pr-title { margin: 0 0 12px; color: #141a2b; font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.pr-section .pr-sub { max-width: 640px; margin: 0 auto 44px; color: #5b6477; font-size: 16.5px; }

/* 包含内容（不带价格的功能卡片，对应 Reversly 的 add-ons 区） */
.pr-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.pr-perk { padding: 30px 22px 28px; border: 1px solid #eef1f5; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(16, 24, 40, .06); text-align: center; }
.pr-perk__icon { display: grid; width: 44px; height: 44px; margin: 0 auto 18px; place-items: center; border-radius: 50%; }
.pr-perk__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pr-perk:nth-child(1) .pr-perk__icon { color: #e0352b; background: #fdeceb; }
.pr-perk:nth-child(2) .pr-perk__icon { color: #c026d3; background: #fbecfd; }
.pr-perk:nth-child(3) .pr-perk__icon { color: #b7791f; background: #fdf5dd; }
.pr-perk:nth-child(4) .pr-perk__icon { color: #16a34a; background: #e8f7ee; }
.pr-perk h3 { margin: 0 0 10px; color: #141a2b; font-size: 17px; font-weight: 700; }
.pr-perk p { margin: 0; color: #5b6477; font-size: 14.5px; }

/* FAQ：白色圆角条 + 主色圆形箭头 */
.pr-faq { display: grid; gap: 14px; width: min(860px, 100%); margin: 0 auto; text-align: left; }
.pr-faq details { border: 1px solid #eef1f5; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(16, 24, 40, .045); }
.pr-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; color: #141a2b; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-faq summary::after { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--p-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s ease; }
.pr-faq details[open] summary::after { transform: rotate(180deg); }
.pr-faq details p { margin: 0; padding: 0 22px 20px; color: #4a5468; font-size: 15px; }
.pr-faq details a { color: var(--p-primary); font-weight: 600; }
.pr-bottom-space { height: 104px; }

/* Cancel Subscription：Hero 内的白色表单卡片 */
.pr-hero--cancel { padding-bottom: 40px; }
.pr-cancel { width: min(560px, 100%); margin: 0 auto; padding: 40px 48px 34px; border: 1px solid #eef1f5; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px color-mix(in srgb, var(--p-primary) 10%, transparent); text-align: center; }
.pr-cancel h1 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 32px); }
.pr-cancel > p { margin: 0 auto 26px; color: #4a5468; font-size: 15.5px; }
.pr-cancel form { text-align: left; }
.pr-cancel label { display: block; margin-bottom: 8px; color: #141a2b; font-size: 14px; font-weight: 600; }
.pr-cancel input[type="email"] { box-sizing: border-box; width: 100%; height: 50px; padding: 0 16px; border: 1px solid #dfe4ec; border-radius: 10px; color: #141a2b; background: #f6f8fb; font: inherit; font-size: 15px; outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.pr-cancel input[type="email"]:focus { border-color: var(--p-primary); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--p-primary) 12%, transparent); }
.pr-cancel input[readonly] { color: #4a5468; }
.pr-page .pr-btn { display: flex; width: 100%; height: 50px; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; border: 1px solid transparent; border-radius: 10px; color: #fff; background: var(--p-primary); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .18s ease, opacity .18s ease; }
.pr-page .pr-btn:hover { background: var(--p-primary-hover); }
.pr-page .pr-btn[disabled] { opacity: .6; cursor: progress; }
.pr-page .pr-btn--google { color: #141a2b; background: #fff; border-color: #dfe4ec; }
.pr-page .pr-btn--google:hover { background: #f6f8fb; }
.pr-page .pr-btn--google svg { width: 18px; height: 18px; }
.pr-or { display: flex; align-items: center; gap: 14px; margin: 22px 0 8px; color: #8a93a5; font-size: 13px; }
.pr-or::before, .pr-or::after { content: ""; flex: 1; height: 1px; background: #e6eaf0; }
.pr-cancel__msg { min-height: 0; margin: 16px 0 0; padding: 0; border-radius: 10px; font-size: 14px; text-align: left; }
.pr-cancel__msg:not(:empty) { padding: 12px 14px; color: #334155; background: #f1f5f9; }
.pr-cancel__msg[data-tone="ok"] { color: #14532d; background: #e8f7ee; }
.pr-cancel__msg[data-tone="error"] { color: #8a1c1c; background: #fdeceb; }
.pr-cancel__help { margin: 22px 0 0; color: #6a7386; font-size: 14px; }
.pr-cancel__help a { color: var(--p-primary); font-weight: 600; }

/* Need help? */
.pr-help { width: min(860px, 100%); margin: 96px auto 104px; padding: 44px 32px 46px; border-radius: 18px; background: var(--p-tint); text-align: center; }
.pr-help__icon { display: grid; width: 72px; height: 72px; margin: 0 auto 18px; place-items: center; border-radius: 50%; color: var(--p-primary); background: #fff; box-shadow: 0 10px 26px color-mix(in srgb, var(--p-primary) 14%, transparent); }
.pr-help__icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pr-help h2 { margin: 0 0 10px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.pr-help p { max-width: 560px; margin: 0 auto 24px; color: #4a5468; }
.pr-page .pr-help .pr-btn { display: inline-flex; width: auto; padding: 0 28px; }

@media (max-width: 900px) { .pr-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .pr-hero { padding: 116px 0 52px; }
  .pr-hero p { font-size: 16px; }
  .pr-plans { grid-template-columns: 1fr; }
  .pr-section { padding-top: 64px; }
  .pr-cancel { padding: 30px 22px 26px; }
  .pr-help { margin: 64px auto 72px; padding: 36px 20px; }
}
@media (max-width: 480px) { .pr-perks { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pr-plan, .pr-faq summary::after { transition: none; } .pr-plan:hover { transform: none; } }
