/* =====================================================================
   Information pages + home page sections  (prefix pg-)
   Uses the frontend.css design tokens (--ux-*), so light / dark mode just works.
   ===================================================================== */

.pg { --pg-gap: 20px; --pg-r: 14px; color: var(--ux-text); font-family: var(--ux-font); }
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg a { color: var(--ux-link); }
.pg a:hover { color: var(--ux-link-hover); }
.pg h1, .pg h2, .pg h3 { color: var(--ux-text); letter-spacing: -.01em; }
.pg p { line-height: 1.65; }
.pg-muted { color: var(--ux-muted); }
.pg-sec { margin: 0 0 36px; }
.pg-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.pg-sec__head h2 { margin: 0; font-size: 24px; font-weight: 800; }
.pg-sec__head p { margin: 4px 0 0; color: var(--ux-muted); max-width: 640px; }
.pg-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ux-orange); margin-bottom: 8px; }

/* ---------- buttons ---------- */
.pg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none !important; border: 1px solid transparent; transition: transform .15s var(--ux-ease), box-shadow .15s, background .15s; line-height: 1.2; cursor: pointer; }
.pg-btn:hover { transform: translateY(-1px); }
.pg-btn--primary { background: var(--ux-amber); color: #111 !important; box-shadow: 0 6px 18px rgba(254,189,105,.35); }
.pg-btn--primary:hover { background: var(--ux-orange); color: #111 !important; }
.pg-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.45); }
.pg-btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff !important; }
.pg-btn--line { background: var(--ux-panel-bg); color: var(--ux-text) !important; border-color: var(--ux-border); }
.pg-btn--line:hover { border-color: var(--ux-orange); color: var(--ux-text) !important; }
.pg-btn--sm { padding: 7px 14px; font-size: 13px; }

/* ---------- page hero (inner pages) ---------- */
.pg-hero { position: relative; overflow: hidden; border-radius: var(--pg-r); padding: 42px 36px; margin: 6px 0 28px;
  background: radial-gradient(1200px 400px at 85% -20%, rgba(254,189,105,.22), transparent 60%), linear-gradient(135deg, #131921 0%, #232f3e 60%, #37475a 100%); color: #fff; }
.pg-hero h1 { color: #fff; font-family: var(--ux-heading-font); font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin: 0 0 10px; line-height: 1.15; }
.pg-hero p { color: rgba(255,255,255,.85); font-size: 17px; max-width: 720px; margin: 0; }
.pg-hero .pg-kicker { color: var(--ux-amber); }
.pg-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- home hero ---------- */
.pg-home-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center;
  border-radius: 18px; padding: 48px 40px; margin: 6px 0 22px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(900px 420px at 100% 0%, rgba(254,189,105,.25), transparent 60%),
              radial-gradient(700px 380px at 0% 110%, rgba(0,113,133,.35), transparent 60%),
              linear-gradient(135deg, #0f141b 0%, #1b2532 55%, #2c3a4c 100%); }
.pg-home-hero::after { content: ""; position: absolute; inset: auto -80px -120px auto; width: 340px; height: 340px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.08); pointer-events: none; }
.pg-home-hero h1 { color: #fff; font-family: var(--ux-heading-font); font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; margin: 0 0 14px; font-weight: 700; }
.pg-home-hero h1 em { font-style: normal; color: var(--ux-amber); }
.pg-home-hero__sub { font-size: 17px; color: rgba(255,255,255,.86); max-width: 560px; margin: 0 0 24px; line-height: 1.6; }
.pg-home-hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-home-hero__trust { display: flex; flex-wrap: wrap; gap: 18px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 13px; color: rgba(255,255,255,.75); }
.pg-home-hero__trust li { display: flex; align-items: center; gap: 7px; }
.pg-home-hero__trust .fa { color: var(--ux-amber); }

/* mock scorecard (hero visual - plain HTML, no image request) */
.pg-mock { background: rgba(255,255,255,.96); color: #0f1111; border-radius: 16px; padding: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.35);
  transform: rotate(-1.2deg); max-width: 380px; margin-left: auto; position: relative; z-index: 1; }
html[data-theme="dark"] .pg-mock { background: #161b22; color: #c9d1d9; }
.pg-mock__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #565959; margin-bottom: 12px; }
html[data-theme="dark"] .pg-mock__top { color: #8b949e; }
.pg-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #cc0c39; font-size: 11px; letter-spacing: .08em; }
.pg-live i { width: 8px; height: 8px; border-radius: 50%; background: #cc0c39; animation: pgPulse 1.4s infinite; }
@keyframes pgPulse { 0% { box-shadow: 0 0 0 0 rgba(204,12,57,.6); } 70% { box-shadow: 0 0 0 8px rgba(204,12,57,0); } 100% { box-shadow: 0 0 0 0 rgba(204,12,57,0); } }
.pg-mock__row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; }
.pg-mock__team { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pg-mock__flag { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.pg-mock__score { font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.pg-mock__score small { font-size: 12px; font-weight: 600; color: #565959; margin-left: 4px; }
.pg-mock__balls { display: flex; gap: 6px; margin: 12px 0 8px; }
.pg-mock__balls span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: #f0f2f2; color: #0f1111; }
.pg-mock__balls .b4 { background: #067d62; color: #fff; } .pg-mock__balls .b6 { background: #7c5cff; color: #fff; } .pg-mock__balls .bw { background: #cc0c39; color: #fff; }
.pg-mock__note { font-size: 12px; color: #565959; border-top: 1px dashed #e3e6e6; padding-top: 10px; }
html[data-theme="dark"] .pg-mock__balls span { background: #21262d; color: #c9d1d9; }
html[data-theme="dark"] .pg-mock__note { border-color: #30363d; color: #8b949e; }
.pg-mock__tag { position: absolute; left: -16px; bottom: -14px; background: var(--ux-amber); color: #111; font-size: 12px; font-weight: 800;
  padding: 7px 12px; border-radius: 999px; box-shadow: 0 10px 20px rgba(0,0,0,.25); transform: rotate(1.2deg); }

/* ---------- cards / grids ---------- */
.pg-grid { display: grid; gap: var(--pg-gap); }
.pg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-card { background: var(--ux-panel-bg); border: 1px solid var(--ux-border); border-radius: var(--pg-r); padding: 22px; box-shadow: 0 1px 2px rgba(15,17,17,.04); }
.pg-card h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.pg-card p { margin: 0; color: var(--ux-muted); font-size: 14.5px; }
.pg-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--ux-orange) 14%, transparent); color: var(--ux-orange); }
.pg-ico--teal { background: color-mix(in srgb, #007185 14%, transparent); color: #007185; }
.pg-ico--violet { background: color-mix(in srgb, #7c5cff 14%, transparent); color: #7c5cff; }
.pg-ico--green { background: color-mix(in srgb, #067d62 14%, transparent); color: #067d62; }
html[data-theme="dark"] .pg-ico--teal { color: #58a6ff; }

/* steps */
.pg-steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pg-gap); }
.pg-step { position: relative; padding: 22px 20px 20px; background: var(--ux-panel-bg); border: 1px solid var(--ux-border); border-radius: var(--pg-r); }
.pg-step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 18px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ux-ink); color: var(--ux-amber); font-weight: 800; display: grid; place-items: center; font-size: 14px; border: 2px solid var(--ux-amber); }
.pg-step h3 { font-size: 16px; font-weight: 800; margin: 6px 0 6px; }
.pg-step p { margin: 0; font-size: 14px; color: var(--ux-muted); }

/* pricing */
.pg-price { display: flex; flex-direction: column; }
.pg-price--hot { border: 2px solid var(--ux-orange); box-shadow: 0 16px 40px rgba(255,153,0,.15); position: relative; }
.pg-price--hot::before { content: "Most popular"; position: absolute; top: -12px; right: 18px; background: var(--ux-orange); color: #111; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.pg-price__name { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ux-muted); }
.pg-price__amt { font-size: 34px; font-weight: 800; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.pg-price__amt small { font-size: 14px; font-weight: 600; color: var(--ux-muted); }
.pg-price__was { text-decoration: line-through; color: var(--ux-muted); font-size: 14px; margin-right: 6px; }
.pg-price ul { list-style: none; padding: 0; margin: 14px 0 18px; font-size: 14px; }
.pg-price li { padding: 5px 0 5px 24px; position: relative; }
.pg-price li::before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; color: #067d62; }
.pg-price .pg-btn { margin-top: auto; justify-content: center; }

.pg-table-wrap { overflow-x: auto; border: 1px solid var(--ux-border); border-radius: var(--pg-r); background: var(--ux-panel-bg); }
.pg-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.pg-table th, .pg-table td { padding: 10px 12px; border-bottom: 1px solid var(--ux-border); text-align: right; white-space: nowrap; }
.pg-table th:first-child, .pg-table td:first-child { text-align: left; }
.pg-table thead th { background: var(--ux-hover-bg); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ux-muted); }
.pg-table tbody tr:last-child td { border-bottom: 0; }
.pg-table .pg-off { display: block; color: #067d62; font-size: 11px; font-weight: 700; }

/* calculator */
.pg-calc { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.pg-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.pg-field input, .pg-field select, .pg-field textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--ux-border);
  background: var(--ux-panel-bg); color: var(--ux-text); font: inherit; font-size: 15px; }
.pg-field input:focus, .pg-field select:focus, .pg-field textarea:focus { outline: 2px solid color-mix(in srgb, var(--ux-orange) 55%, transparent); border-color: var(--ux-orange); }
.pg-field textarea { min-height: 140px; resize: vertical; }
.pg-field .pg-err { color: var(--ux-red); font-size: 13px; margin-top: 4px; }
.pg-calc__out { font-size: 30px; font-weight: 800; white-space: nowrap; }

/* FAQ */
.pg-faq details { background: var(--ux-panel-bg); border: 1px solid var(--ux-border); border-radius: 12px; margin-bottom: 10px; }
.pg-faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "\f107"; font-family: FontAwesome; color: var(--ux-muted); transition: transform .2s; }
.pg-faq details[open] summary::after { transform: rotate(180deg); }
.pg-faq .pg-faq__a { padding: 0 18px 16px; color: var(--ux-muted); line-height: 1.65; }
.pg-faq .pg-faq__a p { margin: 0 0 8px; }
.pg-search { display: flex; gap: 10px; max-width: 560px; margin-top: 20px; }
.pg-search input { flex: 1; padding: 13px 16px; border-radius: 999px; border: 0; font-size: 15px; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pg-chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--ux-border); background: var(--ux-panel-bg); font-size: 13px; font-weight: 700; color: var(--ux-text) !important; text-decoration: none !important; }
.pg-chip:hover, .pg-chip.is-on { border-color: var(--ux-orange); background: color-mix(in srgb, var(--ux-orange) 10%, var(--ux-panel-bg)); }

/* forms */
.pg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pg-form .pg-field--full { grid-column: 1 / -1; }
.pg-alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14.5px; }
.pg-alert--ok { background: color-mix(in srgb, #067d62 12%, var(--ux-panel-bg)); border: 1px solid color-mix(in srgb, #067d62 35%, transparent); }
.pg-alert--err { background: color-mix(in srgb, var(--ux-red) 10%, var(--ux-panel-bg)); border: 1px solid color-mix(in srgb, var(--ux-red) 35%, transparent); }
.pg-list { list-style: none; padding: 0; margin: 0; }
.pg-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ux-border); }
.pg-list li:last-child { border-bottom: 0; }
.pg-list .fa { color: var(--ux-orange); width: 18px; text-align: center; margin-top: 4px; }

/* legal / prose */
.pg-prose { background: var(--ux-panel-bg); border: 1px solid var(--ux-border); border-radius: var(--pg-r); padding: 30px 34px; max-width: 860px; }
.pg-prose h2 { font-size: 20px; font-weight: 800; margin: 26px 0 8px; }
.pg-prose h2:first-child { margin-top: 0; }
.pg-prose p, .pg-prose li { color: var(--ux-text); font-size: 15px; line-height: 1.7; }
.pg-prose ul { padding-left: 20px; }
.pg-updated { font-size: 13px; color: var(--ux-muted); margin-bottom: 18px; }

/* rankings */
.pg-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pg-rank td .pg-mv { font-size: 12px; font-weight: 700; margin-left: 6px; }
.pg-up { color: #067d62; } .pg-down { color: var(--ux-red); }

/* status */
.pg-status { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.pg-dot { width: 10px; height: 10px; border-radius: 50%; background: #067d62; }
.pg-dot--degraded, .pg-dot--polling { background: #e3a008; } .pg-dot--down { background: var(--ux-red); }

/* api */
.pg-code { background: #0d1117; color: #e6edf3; border-radius: 12px; padding: 16px 18px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; margin: 0; }
.pg-code .k { color: #ff7b72; } .pg-code .s { color: #a5d6ff; } .pg-code .c { color: #8b949e; }
.pg-method { display: inline-block; min-width: 54px; text-align: center; font: 700 11px/1 ui-monospace, monospace; padding: 5px 6px; border-radius: 6px; background: #067d62; color: #fff; }
.pg-method--POST { background: #007185; } .pg-method--DELETE { background: #cc0c39; }
.pg-ep { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--ux-border); }
.pg-ep:last-child { border-bottom: 0; }
.pg-ep code { font-size: 13.5px; font-weight: 700; color: var(--ux-text); word-break: break-all; }
.pg-ep__d { grid-column: 2; font-size: 13.5px; color: var(--ux-muted); }
.pg-ep__p { grid-column: 2; font-size: 12.5px; color: var(--ux-muted); }
.pg-ep__p code { font-weight: 600; font-size: 12px; }
.pg-toc { position: sticky; top: calc(var(--ux-head-h) + 16px); }
.pg-toc a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ux-text) !important; text-decoration: none !important; }
.pg-toc a:hover { background: var(--ux-hover-bg); }

/* CTA band */
.pg-cta { border-radius: 18px; padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 10px 0 30px;
  background: linear-gradient(120deg, #febd69 0%, #ff9900 100%); color: #111; }
.pg-cta h2 { color: #111; margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.pg-cta p { margin: 0; color: #2b2b2b; max-width: 620px; }
.pg-cta .pg-btn--dark { background: #131921; color: #fff !important; }
.pg-cta .pg-btn--dark:hover { background: #232f3e; }
.pg-cta .pg-btn--white { background: rgba(255,255,255,.75); color: #111 !important; }

.pg-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.pg-stat { font-size: 28px; font-weight: 800; }
.pg-stat small { display: block; font-size: 13px; font-weight: 600; color: var(--ux-muted); }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .pg-home-hero { grid-template-columns: 1fr; padding: 34px 24px; }
  .pg-mock { margin: 6px auto 0; transform: none; }
  .pg-grid--4, .pg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-split { grid-template-columns: 1fr; }
  .pg-toc { position: static; }
}
@media (max-width: 600px) {
  .pg-hero { padding: 30px 20px; }
  .pg-grid--2, .pg-grid--3, .pg-grid--4, .pg-steps, .pg-form { grid-template-columns: 1fr; }
  .pg-calc { grid-template-columns: 1fr 1fr; }
  .pg-calc__out { grid-column: 1 / -1; }
  .pg-prose { padding: 22px 18px; }
  .pg-cta { padding: 26px 20px; }
  .pg-home-hero h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .pg-live i { animation: none; } .pg-btn:hover { transform: none; } }
