/* Pricing: the site's cream, ink and type (the same system as Support, Privacy and Terms). Every
   rule starts at .pp (or a pp- class) so nothing leaks into the site's chrome. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/newsreader-400.ttf) format("truetype"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/newsreader-400-italic.ttf) format("truetype"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/geist-400.ttf) format("truetype"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/geist-500.ttf) format("truetype"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/geist-600.ttf) format("truetype"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-400.ttf) format("truetype"); }

.pp {
  --pp-bg: #f7f0e1;
  --pp-bg-deep: #ede1ca;
  --pp-surface: #fffdf8;
  --pp-text: #211a10;
  --pp-body: #3d3325;
  --pp-muted: #6e6350;
  --pp-border: #e9dec7;
  --pp-border-strong: #d8cbaa;
  --pp-ink: #2b231b;
  --pp-cream: #fff8ee;
  --pp-cream-body: #e9dfcd;
  --pp-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --pp-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pp-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --pp-gutter: clamp(16px, 5vw, 64px);
  margin: 0;
  background: var(--pp-bg);
  color: var(--pp-text);
  font: 400 17px/1.65 var(--pp-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.pp *, .pp *::before, .pp *::after { box-sizing: border-box; }
.pp :is(h1, h2, h3) { font-family: var(--pp-display); font-weight: 400; margin: 0; color: var(--pp-text); }
.pp :is(h1, h2) em { font-style: italic; color: var(--pp-ink); }
.pp :is(h1, h2) { text-wrap: balance; }
.pp :is(p, li, dd) { text-wrap: pretty; }
.pp a { color: var(--pp-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pp a:hover { text-decoration-thickness: 2px; }
.pp :focus-visible { outline: 2px solid var(--pp-ink); outline-offset: 3px; border-radius: 4px; }
.pp-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--pp-gutter); }
.pp-skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--pp-surface); border-radius: 8px; z-index: 10; }
.pp-skip:focus { top: 12px; }

/* ── Opening ─────────────────────────────────────────────────────────── */
.pp-hero { padding: clamp(48px, 9vh, 104px) 0 clamp(28px, 4vh, 44px); }
.pp h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.035em; }
.pp-lede { margin: 22px 0 0; max-width: 28em; font: 400 clamp(20px, 2.1vw, 26px)/1.4 var(--pp-display); color: var(--pp-body); }

/* ── The three plans: Free, Pro (the best choice, in ink) and Max ───── */
.pp-plans { display: grid; gap: 18px; padding-bottom: clamp(48px, 8vh, 88px); border-bottom: 1px solid var(--pp-border-strong); }
.pp-plan { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 34px); border-radius: 24px; background: var(--pp-surface); border: 1px solid var(--pp-border-strong); }
.pp-plan--best { background: var(--pp-ink); border-color: var(--pp-ink); color: var(--pp-cream); }
.pp-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.pp-plan h2 { font-size: clamp(30px, 3vw, 38px); line-height: 1.06; letter-spacing: -0.025em; }
.pp-plan--best h2 { color: var(--pp-cream); }
.pp-badge { flex: none; padding: 6px 11px; border-radius: 999px; background: var(--pp-bg-deep); color: var(--pp-ink); font: 500 13px/1.2 var(--pp-sans); }
.pp-badge--cream { background: var(--pp-cream); }
.pp-fit { margin: 10px 0 0; font: 400 clamp(19px, 1.7vw, 21px)/1.35 var(--pp-display); color: var(--pp-body); }
.pp-plan--best .pp-fit { color: var(--pp-cream-body); }
.pp-plan-label { margin: 0; font: 500 14px/1.4 var(--pp-sans); color: var(--pp-muted); }
.pp-price { margin: 22px 0 0; display: flex; align-items: baseline; gap: 10px; }
.pp-amount { font: 400 clamp(56px, 5.6vw, 76px)/1 var(--pp-display); letter-spacing: -0.03em; }
.pp-per { font: 400 17px/1.3 var(--pp-sans); color: var(--pp-muted); }
.pp-plan--best .pp-per { color: var(--pp-cream-body); }
.pp-plan .pp-cta { margin-top: 22px; }
.pp-plan ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.pp-plan li { position: relative; padding-left: 28px; color: var(--pp-body); }
.pp-plan--best li { color: var(--pp-cream-body); }
.pp-plan li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.pp-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; border-radius: 999px; font: 500 18px/1.2 var(--pp-sans); text-decoration: none !important; transition: transform 200ms ease; }
.pp-cta:hover { transform: translateY(-1px); }
.pp-cta--ink { background: var(--pp-ink); color: var(--pp-cream) !important; }
.pp-cta--cream { background: var(--pp-cream); color: var(--pp-ink) !important; }
.pp-close .pp-cta:focus-visible, .pp-plan--best .pp-cta:focus-visible { outline-color: var(--pp-cream); }

.pp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pp-section-lede { margin: 14px 0 0; max-width: 38em; font: 400 clamp(19px, 1.8vw, 22px)/1.4 var(--pp-display); color: var(--pp-body); }

/* ── What every plan gets ────────────────────────────────────────────── */
.pp-included { padding: clamp(48px, 8vh, 88px) 0; border-bottom: 1px solid var(--pp-border-strong); }
.pp-included > h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.025em; }
.pp-included-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.pp-included-list li { padding: 22px 24px; background: var(--pp-surface); border: 1px solid var(--pp-border-strong); border-radius: 20px; }
.pp-included-list h3 { font-size: clamp(23px, 2.2vw, 27px); line-height: 1.15; letter-spacing: -0.015em; }
.pp-included-list p { margin: 8px 0 0; color: var(--pp-body); }

/* ── Teams and companies ─────────────────────────────────────────────── */
.pp-groups { padding: clamp(48px, 8vh, 88px) 0; border-bottom: 1px solid var(--pp-border-strong); }
.pp-groups > h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.025em; }
.pp-group-cards { display: grid; gap: 16px; margin-top: 28px; }
.pp-group { display: flex; flex-direction: column; padding: 24px; background: var(--pp-surface); border: 1px solid var(--pp-border-strong); border-radius: 20px; }
.pp-group h3 { margin-top: 6px; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -0.015em; }
.pp-group .pp-price { margin-top: 12px; }
.pp-group > p:not(.pp-plan-label):not(.pp-price) { margin: 12px 0 22px; max-width: 62ch; color: var(--pp-body); }
.pp-amount--small { font-size: clamp(40px, 4.2vw, 52px); }
.pp-group-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
/* the button alone fills the card, like the plan buttons above */
.pp-group-actions .pp-cta { flex: 1; }

/* ── How paying works ────────────────────────────────────────────────── */
.pp-steps { padding: clamp(48px, 8vh, 88px) 0; border-bottom: 1px solid var(--pp-border-strong); }
.pp-steps > h2, .pp-faq > h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.025em; }
.pp-steps ol { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: pp-step; }
.pp-steps li { counter-increment: pp-step; padding: 22px 24px; background: var(--pp-surface); border: 1px solid var(--pp-border-strong); border-radius: 20px; }
.pp-steps li::before { content: counter(pp-step); display: block; margin-bottom: 8px; font: 500 14px/1.4 var(--pp-sans); color: var(--pp-muted); }
.pp-steps h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.015em; }
.pp-steps p { margin: 8px 0 0; color: var(--pp-body); }

/* ── Questions ───────────────────────────────────────────────────────── */
.pp-faq { padding: clamp(48px, 8vh, 88px) 0; }
.pp-faq dl { margin: 24px 0 0; max-width: 820px; border-top: 1px solid var(--pp-border-strong); }
.pp-faq dl > div { padding: 20px 0; border-bottom: 1px solid var(--pp-border); }
.pp-faq dt { font: 400 clamp(21px, 2vw, 25px)/1.25 var(--pp-display); color: var(--pp-text); }
.pp-faq dd { margin: 8px 0 0; max-width: 62ch; color: var(--pp-body); }

/* ── Compare plans: the last thing before the close ───────────────────── */
.pp-compare { padding: clamp(48px, 8vh, 88px) 0; border-top: 1px solid var(--pp-border-strong); }
.pp-compare > h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.025em; }
.pp-table-wrap { margin-top: 28px; background: var(--pp-surface); border: 1px solid var(--pp-border-strong); border-radius: 20px; overflow: hidden; }
.pp-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pp-table thead td { width: 40%; }
.pp-table :is(th, td) { padding: 15px 18px; border-bottom: 1px solid var(--pp-border); text-align: center; vertical-align: middle; }
.pp-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.pp-table thead th { padding-top: 22px; font: 400 clamp(22px, 2.2vw, 28px)/1.1 var(--pp-display); letter-spacing: -0.015em; color: var(--pp-text); }
.pp-table thead th.pp-col-best { background: var(--pp-ink); color: var(--pp-cream); }
.pp-table tbody th { text-align: left; font-weight: 400; color: var(--pp-body); }
.pp-table tbody td { color: var(--pp-text); font-weight: 500; }
.pp-table .pp-col-best { background: var(--pp-bg); }
.pp-yes { display: inline-block; width: 14px; height: 8px; border-left: 2px solid var(--pp-ink); border-bottom: 2px solid var(--pp-ink); transform: translateY(-3px) rotate(-45deg); }
.pp-compare-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0 40%; padding-inline: 10px; }
.pp-compare-note { margin: 18px 0 0; max-width: 62ch; font-size: 16px; color: var(--pp-muted); }

/* ── Closing ─────────────────────────────────────────────────────────── */
.pp-close { display: grid; gap: 18px 48px; align-items: center; margin: 0 0 clamp(64px, 10vh, 120px); padding: clamp(24px, 3.4vw, 40px); background: var(--pp-ink); color: var(--pp-cream); border-radius: 24px; }
.pp-close h2 { color: var(--pp-cream); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.06; letter-spacing: -0.025em; }
.pp-close p { margin: 12px 0 0; color: var(--pp-cream-body); max-width: 34em; }

@media (min-width: 1000px) {
  .pp-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-included-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 999px) {
  .pp-included-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .pp-group-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-close { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 560px) {
  .pp { font-size: 16.5px; }
  .pp-cta { width: 100%; }
  .pp-compare-actions { grid-template-columns: 1fr; margin-left: 0; padding-inline: 0; }
  .pp-table :is(th, td) { padding: 13px 6px; font-size: 15px; line-height: 1.35; }
  .pp-table tbody th { padding-left: 14px; font-size: 14px; }
  .pp-table thead th { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-cta { transition: none; }
  .pp-cta:hover { transform: none; }
}
