/*
 * The pricing page (/pricing/) and the account page (/account/), on top of home.css. Buying is green, as on the
 * plan page the checkout opens with (RevenueCat's paywall); the landing page keeps its own buttons.
 */
.page { max-width: 1080px; margin: 0 auto; padding: 28px 32px 72px; display: flex; flex-direction: column; gap: 40px; }
.page-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.page-head h1 { font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -.02em; }
.links a[aria-current="page"] { color: var(--primary); }

.go { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.go:hover { background: #003D2D; color: #FFFFFF; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 82, 61, .22); }
.go:disabled, button:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }

.card { background: var(--card); border-radius: 24px; padding: 26px; box-shadow: 0 20px 50px rgba(0, 50, 36, .07); display: flex; flex-direction: column; gap: 16px; }
.card.quiet { background: var(--surface-low); box-shadow: none; }
.card h2 { font-size: 20px; line-height: 28px; font-weight: 700; }
.card h3 { font-size: 16px; font-weight: 700; }

/* ------------------------------------------------------------------ pricing */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 10px; font-size: 15px; line-height: 22px; }
.ticks li::before {
  content: ""; width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; background: var(--primary);
  -webkit-mask: var(--check) center / 16px no-repeat; mask: var(--check) center / 16px no-repeat;
}
.ticks strong { display: block; }
.ticks span { color: var(--muted); font-size: 14px; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan { position: relative; background: var(--card); border: 1.5px solid var(--surface-variant); border-radius: 20px; padding: 22px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.plan.best { border: 2px solid #3FA37E; background: #E3F7EE; }
.plan .tag { position: absolute; top: -12px; right: 14px; background: var(--primary-fixed); color: var(--on-primary-fixed); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan .name { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plan .price { font-size: 30px; line-height: 38px; font-weight: 800; letter-spacing: -.02em; }
.plan .per { font-size: 14px; color: var(--muted); }
.plan .each { font-size: 13px; font-weight: 600; color: var(--primary); margin-top: 6px; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.faq .card { gap: 8px; }
.faq p, .card p { font-size: 15px; line-height: 23px; color: var(--muted); }

/* ------------------------------------------------------------------ account */
button.text.danger { color: var(--error); padding: 0 12px; }
button.text.danger:disabled { color: var(--outline); }
.button.danger { background: var(--error); border-color: var(--error); color: #FFFFFF; }
.button.danger:hover { background: #93000A; color: #FFFFFF; }
dialog.modal { border: 0; border-radius: 24px; padding: 26px; width: min(460px, calc(100% - 32px)); background: var(--card); color: var(--fg); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
dialog.modal::backdrop { background: rgba(27, 28, 25, .45); }
dialog.modal h2 { font-size: 20px; line-height: 28px; font-weight: 700; }
dialog.modal p { font-size: 15px; line-height: 23px; color: var(--muted); }
.narrow { max-width: 560px; width: 100%; }
form.stack, .stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input {
  font: inherit; font-weight: 500; font-size: 16px; min-height: 48px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--outline); background: var(--card); color: var(--fg);
}
.field input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field .hint { font-weight: 500; font-size: 13px; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--surface-variant); }
.switch { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.switch button { min-height: 32px; padding: 0; border: 0; color: var(--primary); }
.switch button:hover { background: none; text-decoration: underline; }
.message { border-radius: 14px; padding: 12px 16px; font-size: 14px; line-height: 20px; background: var(--surface-low); color: var(--muted); }
.message.error { background: var(--accent-fixed); color: var(--accent-ink); }
.status { display: flex; flex-direction: column; gap: 4px; }
.status .big { font-size: 26px; line-height: 34px; font-weight: 800; letter-spacing: -.01em; }
.status .big.pro { color: var(--primary); }
.who { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .page { padding: 20px 16px 56px; gap: 32px; }
  .page-head h1 { font-size: 32px; line-height: 40px; }
  .tiers, .faq { grid-template-columns: minmax(0, 1fr); }
  .bar { padding: 18px 16px 4px; }
  .links { gap: 14px; }
}
