/* Shared components and design tokens for the public pages, in the visual
   language of the API page (api-product.css). Loaded by public_site before
   public-presentation.css, so token rules use `main.public-page` to outrank
   the older shell rules. Two breakpoints: 960px and 640px.

   Tokens
   - Radii: 6 buttons, inputs, tags · 10 cards, panels, tiles, code · 999 pills.
   - Borders: #dce6e0 components · #e3eee8 dividers and band edges ·
     #9fd0b6 accent (outline buttons, emphasised pill).
   - Type: eyebrow 13/700 · h1 clamp(32–44) · section h2 26 (23 ≤640) ·
     panel title 20 · card title 18 · lead 18 (17 ≤640) · body 16 ·
     card body 15 · small 14 · fine print 13 · micro label 12/700 caps.
   - Section padding 64 / 56 (≤960) / 44 (≤640). Card padding 24 (20 ≤640).
   - Buttons 48px, 12px 24px, 16/600; the home search button is 56px. */

.public-page { --pv-border: #dce6e0; --pv-divider: #e3eee8; --pv-accent: #9fd0b6; --pv-green: #146c43; --pv-text: #1d2723; --pv-muted: #4d5c55; --pv-tint: #f6faf8; }

/* Sections and containers. */
.public-page .pv-section { padding: 64px 0; background: #fff; }
.public-page .pv-band { background: var(--pv-tint); border-top: 1px solid var(--pv-divider); border-bottom: 1px solid var(--pv-divider); }
.public-page .pv-container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Type. */
main.public-page p.public-eyebrow, main.public-page p.pv-eyebrow { margin: 0 0 8px; color: var(--pv-green); font-size: 13px !important; font-weight: 700 !important; letter-spacing: .08em; line-height: 1.4 !important; text-transform: uppercase; }
main.public-page h1.h1-xlarge { font-size: clamp(32px, 4vw, 44px) !important; letter-spacing: -.025em; }
main.public-page .pv-section h2, main.public-page .pv-cta-band h2 { margin: 0 0 12px; color: var(--pv-text); font-size: 26px !important; font-weight: 650 !important; line-height: 1.25; letter-spacing: -.01em; }
main.public-page p.pv-lead { max-width: 720px; color: var(--pv-muted); font-size: 18px !important; }

/* Two-column splits start at the top. */
main.public-page .public-split { align-items: start; gap: 48px; }

/* Facts strip: open, ruled above and below. */
.public-page .pv-facts { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--pv-border); border-bottom: 1px solid var(--pv-border); }
.public-page .pv-facts li { flex: 1 1 0; min-width: 160px; padding: 16px 20px; color: var(--pv-muted); font-size: 15px; line-height: 1.4; }
.public-page .pv-facts li + li { border-left: 1px solid var(--pv-border); }
.public-page .pv-facts strong { display: block; color: var(--pv-green); font-size: clamp(20px, 2.6vw, 24px); font-weight: 700; line-height: 1.2; white-space: nowrap; }

/* Buttons. */
.public-page a.pv-button, main.public-page .btn.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px !important; border: 1px solid #168354 !important; border-radius: 6px; background: #168354 !important; color: #fff; font-size: 16px !important; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; }
.public-page a.pv-button:hover, main.public-page .btn.btn-primary:hover { background: #11683f !important; border-color: #11683f !important; }
.public-page a.pv-button--outline { background: #fff !important; color: var(--pv-green); border-color: var(--pv-accent) !important; }
.public-page a.pv-button--outline:hover { background: #eef7f2 !important; color: #11683f; border-color: var(--pv-green) !important; }

/* Arrow link: inline, so it wraps like text; the arrow never breaks off. */
.public-page a.pv-arrow, .public-page .pv-arrow { display: inline; padding-block: 12px; color: var(--pv-green); font-size: 15px; font-weight: 600; text-wrap: balance; }
.public-page .pv-arrow::after { content: "\00a0→"; }
.public-page p.pv-arrow-line { margin: 2px 0 24px; font-size: 15px !important; line-height: 1.5 !important; }
.public-page p:has(+ p.pv-arrow-line) { margin-bottom: 0; }
.public-page p.pv-arrow-line:last-child { margin-bottom: 0; }
.public-page .pv-link-card .pv-arrow { padding: 0; text-decoration: none; }

/* Link pills (navigation) and tags (static labels). */
.public-page .pv-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.public-page .pv-pills li { margin: 0; }
.public-page .pv-pills a, .public-page a.pv-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--pv-border); border-radius: 999px; background: #fff; color: #2c3a33; font-size: 15px; text-decoration: none; }
.public-page .pv-pills a:hover, .public-page a.pv-pill:hover { border-color: var(--pv-accent); color: var(--pv-green); }
.public-page a.pv-pill--emphasis { border-color: var(--pv-accent); color: var(--pv-green); font-weight: 600; }
.public-page .pv-tag { display: inline-block; padding: 2px 8px; border: 0; border-radius: 6px; background: #eef7f2; color: var(--pv-green); font-size: 13px; font-weight: 600; }

/* Cards. */
.public-page .pv-card { padding: 24px; border: 1px solid var(--pv-border); border-radius: 10px; background: #fff; }
.public-page .pv-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.public-page a.pv-link-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--pv-border); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.public-page a.pv-link-card:hover { border-color: var(--pv-accent); box-shadow: 0 10px 24px -18px rgba(20, 108, 67, .6); }
.public-page .pv-link-card h3, .public-page .pv-card h3 { margin: 0; color: var(--pv-text); font-size: 18px !important; font-weight: 600; line-height: 1.35; }
.public-page .pv-link-card p { margin: 0; flex: 1; font-size: 15px !important; }
.public-page .pv-checks { margin: 0; padding: 0; list-style: none; }
.public-page .pv-checks li { position: relative; padding: 0 0 16px 36px; color: var(--pv-muted); font-size: 15px; line-height: 1.5; }
.public-page .pv-checks li:last-child { padding-bottom: 0; }
.public-page .pv-checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--pv-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.public-page .pv-checks strong, .public-page .pv-checks h3 { display: block; margin: 0; color: var(--pv-text); font-size: 16px !important; font-weight: 600; line-height: 1.5; }
.public-page .pv-checks p { margin: 0; font-size: 14px !important; line-height: 1.5 !important; }

/* Dark code panel. */
.public-page .pv-code { min-width: 0; border-radius: 10px; background: #111816; color: #e6efe9; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(17, 24, 22, .55); }
.public-page p.pv-code-label { margin: 0; padding: 14px 18px 0; color: #9fb2a9; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .04em; line-height: 1.5 !important; text-transform: uppercase; }
.public-page p.pv-endpoint { margin: 0; padding: 10px 18px 12px; border-bottom: 1px solid #26332e; color: #cfe3d8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px !important; line-height: 1.5 !important; white-space: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.public-page .pv-endpoint span { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: #1d4d36; color: #7ee2a8; font-size: 12px; font-weight: 700; }
.public-page .pv-code pre { margin: 0; padding: 14px 18px 18px; border: 0; background: transparent; color: #e6efe9; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; white-space: pre; overflow-x: auto; }
.public-page .pv-code .tok-key { color: #9fd8ff; }
.public-page .pv-code .tok-str { color: #f2d58a; }
.public-page .pv-code .tok-lit { color: #7ee2a8; }

/* Closing band. */
.public-page .pv-cta-band { padding: 64px 0; border-top: 1px solid var(--pv-divider); background: #eaf5ef; text-align: center; }
main.public-page .pv-cta-band h2 { text-align: center !important; }
.public-page .pv-cta-band p { max-width: 640px; margin-left: auto; margin-right: auto; color: #3f5a4c; text-align: center !important; }
.public-page .pv-cta-band .pv-actions { justify-content: center; }
.public-page .pv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 24px 0 0; }
.public-page .pv-actions > a:not(.pv-button) { display: inline-flex; align-items: center; min-height: 44px; }
.public-page:has(.pv-ends-in-band) + #footer.public-site-footer { margin-top: 0; }

/* Volume tiers: batch size to price. */
.public-page .pv-tiers { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.public-page .pv-tiers th { padding: 0 0 8px; color: #58665f; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.public-page .pv-tiers th:last-child, .public-page .pv-tiers td:last-child { text-align: right; }
.public-page .pv-tiers td { padding: 10px 0; border-top: 1px solid var(--pv-divider); color: var(--pv-text); }
.public-page .pv-tiers td:last-child { font-weight: 600; white-space: nowrap; }
.public-page .pv-tiers td span { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #eef7f2; color: var(--pv-green); font-size: 12px; font-weight: 600; }
.public-page p.pv-tiers-note { margin: 8px 0 0; color: #58665f; font-size: 13px !important; }

/* Fine print under a divider. */
.public-page .pv-notes { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--pv-divider); }
.public-page .pv-notes p { max-width: 820px; margin: 0 0 10px; color: #58665f; font-size: 13px !important; line-height: 1.6 !important; }

.public-page .pv-section a:focus-visible, .public-page .pv-cta-band a:focus-visible { outline: 2px solid var(--pv-green); outline-offset: 3px; }
.public-page .pv-code a:focus-visible { outline-color: #7ee2a8; }

@media (max-width: 1100px) {
  .public-page .pv-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .public-page .pv-section, .public-page .pv-cta-band { padding: 56px 0; }
  main.public-page .public-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .public-page .pv-facts li { flex-basis: 50%; min-width: 0; }
  .public-page .pv-facts li:nth-child(odd) { border-left: 0; }
  .public-page .pv-facts li:nth-child(n + 3) { border-top: 1px solid var(--pv-border); }
}
@media (max-width: 640px) {
  .public-page .pv-section, .public-page .pv-cta-band { padding: 44px 0; }
  .public-page .pv-container { padding: 0 20px; }
  main.public-page .pv-section h2, main.public-page .pv-cta-band h2 { font-size: 23px !important; }
  main.public-page p.pv-lead { font-size: 17px !important; }
  .public-page .pv-facts li { flex-basis: 50%; min-width: 0; padding: 12px 14px; }
  .public-page .pv-facts li + li { border-left: 0; }
  .public-page .pv-facts li:nth-child(even) { border-left: 1px solid var(--pv-border); }
  .public-page .pv-facts li:nth-child(n + 3) { border-top: 1px solid var(--pv-border); }
  .public-page .pv-facts strong { font-size: 20px; }
  .public-page .pv-card-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .public-page .pv-card, .public-page a.pv-link-card { padding: 20px; }
  .public-page .pv-card a.pv-button, .public-page .pv-cta-band .pv-actions a.pv-button { width: 100%; }
}
@media print {
  .public-page .pv-noprint { display: none !important; }
}
