/* Pricing and checkout pages. */
.plans-header { min-height: 78px; padding: 12px 6.5%; border-bottom-color: transparent; }
.plans-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.plans-brand strong { font-size: 20px; }
.plans-brand .brand-mark { width: 28px; height: 28px; flex-basis: 28px; }
.plans-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.plans-nav > a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.plans-nav > a:hover { text-decoration: underline; }
.plans-nav > a[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent-ink); }
.plans-main { max-width: 1120px; margin: 0 auto; padding: 40px 40px 72px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero: headline left, plan card right. */
.plan-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 400px); gap: 72px; align-items: center; padding: 28px 0 64px; }
.plan-hero h1 { font-size: 56px; line-height: 1.06; letter-spacing: -2px; max-width: 13ch; }
.plan-lede { margin: 24px 0 30px; max-width: 52ch; color: var(--muted); font-size: 17px; line-height: 1.6; }
.plan-hero-copy .button-link { min-width: 190px; min-height: 52px; border-radius: 10px; }

/* The plan card carries the brand fold in its corner. */
.plan-card { position: relative; padding: 32px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--paper);
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); }
.plan-card::after { content: ''; position: absolute; top: 0; right: 0; width: 44px; height: 44px; background: var(--accent);
  clip-path: polygon(0 0, 0 100%, 100% 100%); box-shadow: inset 1.5px -1.5px 0 var(--ink); }
.plan-card::before { content: ''; position: absolute; top: -1px; right: -1px; width: 63px; height: 1.5px; background: var(--ink);
  transform-origin: right top; transform: translate(-0.5px, 0) rotate(45deg); }
.plan-card h2 { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 10px 0 22px; color: var(--muted); font-size: 14px; }
.plan-price strong { flex-shrink: 0; white-space: nowrap; color: var(--ink); font-size: 56px; letter-spacing: 0; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-meter { margin-bottom: 22px; }
.plan-points { display: grid; gap: 10px; margin: 0 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14px; line-height: 1.45; }
.plan-points li { padding-left: 18px; position: relative; }
.plan-points li::before { content: ''; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-ink); }
.plan-cta { width: 100%; min-height: 50px; border-radius: 10px; }
.plan-cta.is-disabled { background: var(--surface); color: var(--muted); border-color: var(--line); cursor: default; }
.plan-fine { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }

/* Sections. */
.plan-section { padding: 52px 0; border-top: 1px solid var(--line); }
.plan-section h2 { font-size: 28px; letter-spacing: -.7px; margin-bottom: 26px; }
.plan-compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.plan-compare thead th { padding: 0 16px 14px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; width: 18%; }
.plan-compare thead th:first-child { width: auto; }
.plan-compare thead th:last-child { color: var(--ink); }
.plan-compare tbody th { padding: 15px 16px 15px 0; text-align: left; font-weight: 500; border-top: 1px solid var(--line); }
.plan-compare td { padding: 15px 16px; text-align: center; border-top: 1px solid var(--line); }
.plan-compare td:last-child { background: var(--lime-wash); }
.mark { display: inline-block; width: 22px; height: 22px; overflow: hidden; color: transparent; vertical-align: middle; border-radius: 50%; }
.mark-yes { background: var(--ink); mask: url('/icons/check.svg') center / 14px no-repeat, linear-gradient(#000 0 0); mask-composite: exclude; }
.mark-no { width: 14px; height: 2px; border-radius: 1px; background: var(--border); }
.plan-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.plan-steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--ink); }
.plan-steps li::before { content: counter(step); display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.plan-steps h3 { font-size: 18px; margin-bottom: 8px; }
.plan-steps p { margin: 0; color: var(--muted); font-size: 15px; }
.plan-questions dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 56px; margin: 0; }
.plan-questions dt { font-weight: 600; font-size: 16px; margin-bottom: 8px; line-height: 1.4; color: var(--ink); }
.plan-questions dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.plans-footer { width: min(1040px, calc(100% - 80px)); margin: 0 auto; padding: 26px 0 36px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--muted); font-size: 12px; }
.plans-footer nav { display: flex; gap: 20px; }
.plans-footer a { color: var(--muted); }

/* Checkout. */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 64px; align-items: start; padding: 24px 0 40px; }
.checkout-detail h1 { font-size: 40px; line-height: 1.1; letter-spacing: -1.4px; }
.checkout-detail > p { margin: 14px 0 28px; color: var(--muted); font-size: 16px; max-width: 54ch; }
.checkout-detail .plan-facts { border-top: 1.5px solid var(--ink); }
.checkout-detail .plan-facts > div:first-child { border-top: 0; }
.checkout-aside { display: grid; gap: 20px; }
.checkout-card .plan-price { margin-bottom: 18px; }
.checkout-card .gate-actions { display: grid; gap: 12px; }
.checkout-card .gate-actions > * { width: 100%; }
.checkout-card .gate-actions .plain-link { justify-self: center; width: auto; font-size: 14px; }
.checkout-card .button-link, .checkout-card button { min-height: 50px; border-radius: 10px; }
.checkout-status { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.checkout-status::before { content: ''; width: 16px; height: 16px; flex: 0 0 16px; border: 2px solid var(--accent-ink); border-right-color: transparent; border-radius: 50%; animation: billing-spin .9s linear infinite; }
.checkout-handoff { margin: 0; padding: 14px 16px; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 13px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .checkout-status::before { animation: none; } }

@media (max-width: 900px) {
  .plan-hero, .checkout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .plan-hero h1 { font-size: 44px; max-width: 16ch; }
  .plan-card, .checkout-aside { max-width: 480px; }
  .plan-steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .plan-questions dl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .plans-header { padding: 12px 20px; display: flex; }
  .plans-nav { gap: 16px; font-size: 13px; }
  .plans-nav > a:first-child { display: none; }
  .plans-nav #sign-in { font-size: 13px; padding: 8px 10px; min-width: 0; }
  .plans-main { padding: 16px 20px 56px; }
  .plan-hero { padding: 14px 0 44px; }
  .plan-hero h1 { font-size: 36px; letter-spacing: -1.2px; }
  .plan-lede { font-size: 16px; }
  .plan-hero-copy .button-link { width: 100%; }
  .plan-card { padding: 26px 22px; }
  .plan-price strong { font-size: 48px; }
  .plan-section { padding: 40px 0; }
  .plan-section h2 { font-size: 24px; }
  .plan-compare { font-size: 14px; }
  .plan-compare thead th { padding: 0 6px 12px; width: 22%; font-size: 12px; }
  .plan-compare tbody th { padding-right: 8px; }
  .plan-compare td { padding: 14px 6px; }
  .checkout-detail h1 { font-size: 32px; }
  .plans-footer { width: calc(100% - 40px); padding: 24px 0 32px; }
}

#checkout-title:focus { outline: none; }

/* Shown only when app tracking is open; it reads as a plan fact, not an upsell. */
.plan-tracking:not([hidden]) { animation: field-in .3s ease-out; }
@keyframes field-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .plan-tracking:not([hidden]) { animation: none; } }

.plan-example-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.plan-example-note a { color: var(--ink); font-weight: 600; }
