/* /pricing. Loaded after styles.css and pricing-cards.css (the credit picker).
   Number fields keep a neutral chalk fill with no border, outline, or ring in every state. */
.pr-page main { padding-top: 0; }
.pr-page .nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow-deep);
  text-decoration-thickness: 2px; text-underline-offset: 6px; }
.pr-page .mm-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow-deep); text-decoration-thickness: 3px; text-underline-offset: 6px; }
/* On the dark header state the current link turns light, like its neighbors. */
.pr-page .site-header.on-dark .nav-link[aria-current="page"] { color: #FFFFFF; }

/* Hero */
.pr-hero { position: relative; overflow: hidden; background: var(--yellow); color: var(--ink); border-radius: 0 0 40px 40px; padding: 128px 0 168px; }
.pr-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(17,17,17,.10) 1.1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 75%); mask-image: linear-gradient(to left, #000 10%, transparent 75%); }
.pr-hero-in { position: relative; text-align: center; padding-top: 40px; }
.pr-hero h1 { margin: 0; font-size: clamp(42px, 5vw, 68px); line-height: 1; letter-spacing: -0.045em; font-weight: 700; }
.pr-hero p { margin: 18px auto 0; max-width: 34em; font-size: 19px; line-height: 1.55; color: var(--ink-2); text-wrap: balance; }
.pr-bill { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; }
.pr-billing { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.5); }
.pr-billing button { border: 0; background: transparent; min-height: 40px; padding: 0 18px; border-radius: 9px; font: 600 14.5px/1 "Geist", sans-serif; color: var(--ink-2); cursor: pointer; transition: background-color .16s var(--ease-out), color .16s var(--ease-out); }
.pr-billing button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }
.pr-billing button:focus-visible { outline: none; box-shadow: inset 0 -2px 0 0 currentColor; }
.pr-save { font-size: 12px; font-weight: 600; background: var(--ink); color: var(--yellow); padding: 5px 10px; border-radius: 999px; }

/* Picker over the hero edge */
.pr-picker { position: relative; z-index: 2; margin-top: -120px; }

/* Sections */
.pr-sec { padding-top: 112px; }
.pr-sec .split-head { margin-bottom: 40px; }
.pr-sec h2 { margin: 0; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
.pr-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }

/* Calculator: one sentence with inline fields and menus, then the total. */
.pr-ask { margin: 0; padding: 36px 40px 40px; max-width: 920px; font-size: 26px; line-height: 1.75; font-weight: 500; letter-spacing: -0.015em; color: var(--ink-2); text-wrap: pretty; }
.pr-nowrap { white-space: nowrap; }
.pr-ask .pr-pick-btn { font-size: inherit; letter-spacing: inherit; line-height: 1.4; }
.pr-num { font: inherit; font-weight: 600; letter-spacing: inherit; line-height: 1.4; color: var(--ink); caret-color: var(--ink); background: var(--chalk); border: 0; outline: none; box-shadow: none; border-radius: 10px; margin: 0;
  padding: 3px 12px; width: calc(var(--len, 2) * 1ch + 24px); text-align: center; font-variant-numeric: tabular-nums; transition: background-color .14s var(--ease-out); }
.pr-num:hover, .pr-num:focus, .pr-num:focus-visible { background: var(--chalk-2); border: 0; outline: none; box-shadow: none; }
.pr-tally { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: end; padding: 28px 40px 32px; background: var(--chalk); border-top: 1px solid var(--line); border-radius: 0 0 19px 19px; }
.pr-t-fig { display: flex; align-items: baseline; gap: 10px; color: var(--ink-3); font-size: 15px; white-space: nowrap; }
.pr-t-fig b { font-size: 56px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--ink); }
.pr-meter { height: 6px; border-radius: 3px; background: var(--chalk-2); margin-top: 20px; overflow: hidden; }
.pr-meter i { display: block; height: 100%; background: var(--ink); transform-origin: left center; transform: scaleX(0); transition: transform .26s var(--ease-out); }
.pr-t-cap { margin-top: 10px; color: var(--ink-3); font-size: 14px; }
.pr-t-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pr-t-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.pr-t-price { font-size: 17px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.pr-t-price .fig { display: inline-block; white-space: nowrap; }
.pr-t-per { color: var(--ink-3); font-weight: 400; font-size: 14px; }
.pr-t-plan .button { width: 100%; margin-top: 14px; }

/* Plans table */
.pr-table { overflow: hidden; }
.pr-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pr-table th, .pr-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.pr-table thead th { font-size: 13px; font-weight: 500; color: var(--ink-3); background: var(--chalk); }
.pr-table tbody th { font-weight: 600; }
.pr-table tr:last-child th, .pr-table tr:last-child td { border-bottom: 0; }
.pr-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.pr-table td b { font-weight: 400; }
.pr-table tbody tr { cursor: pointer; transition: background-color .14s var(--ease-out); }
.pr-table tbody tr:hover { background: var(--chalk); }
.pr-table tbody tr[aria-current="true"] { background: var(--chalk); box-shadow: inset 3px 0 0 var(--ink); }

/* Extra credits */
.pr-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pr-mini { padding: 22px 22px 24px; }
.pr-mini .fig { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.pr-mini h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.pr-mini p { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.pr-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--chalk); display: grid; place-items: center; margin-bottom: 14px; }
.pr-ico svg { width: 18px; height: 18px; }
.pr-every { margin: 18px 0 0; color: var(--ink-3); font-size: 15px; }

/* Questions and close */
.pr-tap { display: inline-block; padding: 12px 0; margin: -12px 0; }
.pr-page .faq-list summary:focus-visible { outline: none; box-shadow: inset 0 -2px 0 0 currentColor; }
.pr-close-sub { margin: 18px 0 0; color: #A3A39B; font-size: 19px; }
.pr-close-cta { margin: 0; }

@media (max-width: 1080px) {
  .pr-tally { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pr-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pr-hero { padding-bottom: 140px; border-radius: 0 0 28px 28px; }
  .pr-hero-in { padding-top: 24px; }
  .pr-hero p { font-size: 17px; }
  .pr-picker { margin-top: -100px; }
  .pr-sec { padding-top: 88px; }
  .pr-sec .split-head { margin-bottom: 28px; }
  .pr-ask { padding: 24px 20px 28px; font-size: 20px; line-height: 1.85; }
  .pr-tally { padding: 24px 20px; }
  .pr-t-fig { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pr-t-fig b { font-size: 44px; }
  .pr-grid4 { grid-template-columns: minmax(0, 1fr); }
  .pr-table thead { display: none; }
  .pr-table table, .pr-table tbody, .pr-table tr, .pr-table th, .pr-table td { display: block; }
  .pr-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .pr-table tbody tr:last-child { border-bottom: 0; }
  .pr-table tbody th, .pr-table td { padding: 0; border: 0; text-align: left; font-size: 14.5px; }
  .pr-table .n { text-align: left; }
  .pr-table td::before { content: attr(data-l); display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; }
  .pr-table tbody th { grid-column: 1 / -1; font-size: 17px; }
}
@media(max-width: 359px) {
  .pr-page .header-actions .button-small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-meter i, .pr-billing button, .pr-num, .pr-table tbody tr { transition: none; }
}

/* Rate card (/pricing#rates): AI apps in two columns, other rated uses in a band below. Logos keep their brand colors on a chalk tile. */
/* A link to /pricing#rates lands with the heading 120px from the top, not the section padding. */
#rates { scroll-margin-top: -88px; }
.pr-rates-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; padding: 28px 32px 20px; }
.pr-rates-other { padding: 24px 32px 20px; border-top: 1px solid var(--line); background: var(--chalk); border-radius: 0 0 19px 19px; }
.pr-rate-col { min-width: 0; }
.pr-rate-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-3); }
.pr-rate-list { list-style: none; margin: 0; padding: 0; }
.pr-rate { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pr-rate:last-child { border-bottom: 0; }
.pr-rate-logo { width: 40px; height: 40px; border-radius: 10px; background: var(--chalk); border: 1px solid var(--line); display: grid; place-items: center; }
.pr-rate-logo img { width: 22px; height: 22px; display: block; }
.pr-rate-who { min-width: 0; }
.pr-rate-who b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.pr-rate-who small { display: block; font-size: 13px; color: var(--ink-3); }
.pr-rate-fig { font-size: 28px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.pr-rates-other .pr-rate-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.pr-rates-other .pr-rate { grid-template-columns: minmax(0, 1fr) auto; border-bottom: 0; }
@media (max-width: 900px) {
  .pr-rates-apps, .pr-rates-other .pr-rate-list { grid-template-columns: minmax(0, 1fr); }
  .pr-rate-col + .pr-rate-col .pr-rate-head { display: none; }
  .pr-rate-col + .pr-rate-col .pr-rate:first-child { border-top: 1px solid var(--line); }
  .pr-rates-other .pr-rate { border-bottom: 1px solid var(--line); }
  .pr-rates-other .pr-rate:last-child { border-bottom: 0; }
}
@media (max-width: 720px) {
  #rates { scroll-margin-top: -64px; }
  .pr-rates-apps { padding: 20px 16px 12px; }
  .pr-rates-other { padding: 20px 16px 12px; }
  .pr-rate-fig { font-size: 24px; }
  .pr-rate { gap: 12px; }
}
