/* CONTEXT
   module: websites/pgpro365
   purpose: The whole look of the PGPro365 website in one small file: colour tokens for light and dark, readable type from the system font stack (no downloads), a responsive layout, and the few components the pages use. No framework, no external requests.
   route: none   permission: none   tenant: not applicable   audience: public
   tests: lib/check.mjs (size and link checks) */

:root {
  --bg: #f8fafc; --surface: #fff; --soft: #eef6f5; --ink: #0f172a; --muted: #475569; --line: #dbe4ea;
  --brand: #0f766e; --brand-hover: #115e59; --brand-ink: #fff; --accent: #b45309; --accent-bg: #fef3c7;
  --radius: 14px; --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 8px 24px rgb(15 23 42 / .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1220; --surface: #121b2d; --soft: #0f2a2c; --ink: #e6edf5; --muted: #a3b2c4; --line: #23324a;
    --brand: #2dd4bf; --brand-hover: #5eead4; --brand-ink: #062a27; --accent: #fbbf24; --accent-bg: #3a2c08; --shadow: 0 8px 24px rgb(0 0 0 / .35); }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1rem/1.65 var(--font); color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.05rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: .5rem 1rem; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow.pill-e { padding: .35rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--brand) 14%, transparent); letter-spacing: .04em; text-transform: none; font-size: .85rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .8rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.mark-img { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: -.035em; }
.brand-name i { font-style: normal; color: var(--brand); }
.by { font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-top: .18rem; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-size: .9rem; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--brand); }
.nav .signin { color: var(--muted); }
.nav .callnum { color: var(--brand); font-weight: 750; white-space: nowrap; }
@media (min-width: 881px) and (max-width: 1180px) { .nav .callnum { display: none; } }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: .45rem .9rem; font: inherit; font-weight: 600; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 12px; border: 2px solid var(--brand); background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--soft); color: var(--brand-hover); }
.btn-sm { padding: .5rem 1rem; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 .6rem; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--soft); }
.section-head { max-width: 44rem; margin-bottom: 2.2rem; }
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); background: radial-gradient(900px 480px at 88% -8%, color-mix(in srgb, var(--brand) 22%, transparent), transparent), radial-gradient(700px 400px at -5% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent), var(--bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.fine { font-size: .9rem; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .5rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.ticks .icon { color: var(--brand); flex: none; width: 20px; height: 20px; margin-top: 3px; }

/* Cards */
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-top: .9rem; }
.card p { color: var(--muted); margin: 0; }
.card .icon { color: var(--brand); width: 30px; height: 30px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: var(--accent-bg); color: var(--accent); }
.badge.live { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.soon-card { border-style: dashed; box-shadow: none; }
.steps { counter-reset: s; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: .9rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* Product illustration (sample data, drawn in HTML) */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.mock-top { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--soft); font-size: .8rem; color: var(--muted); }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-body { padding: 1.1rem; display: grid; gap: .9rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; }
.kpi b { display: block; font-size: 1.35rem; letter-spacing: -.02em; }
.kpi span { font-size: .75rem; color: var(--muted); }
.rows { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .88rem; }
.rows div { display: flex; justify-content: space-between; gap: .6rem; padding: .6rem .8rem; border-top: 1px solid var(--line); }
.rows div:first-child { border-top: 0; background: var(--soft); font-weight: 700; }
.pill { font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.pill.due { background: var(--accent-bg); color: var(--accent); }

/* FAQ, forms, prose, footer */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .7rem; padding: 0 1.2rem; }
.faq summary { cursor: pointer; font-weight: 650; padding: 1rem 0; }
.faq details[open] summary { color: var(--brand); }
.faq p { color: var(--muted); }
.form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 650; font-size: .92rem; }
.field input, .field textarea, .field select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); border-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .ok { color: var(--brand); font-weight: 650; }
.form .warn { color: #b45309; font-weight: 650; }
.form button[disabled] { opacity: .6; cursor: progress; }
.two { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.cta { text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; background: var(--brand); color: var(--brand-ink); border-radius: 22px; }
.cta h2 { color: inherit; }
.cta a:not(.btn) { color: inherit; }
.center { text-align: center; }
.center .actions { justify-content: center; }
.center .lead { margin-inline: auto; }
.mt { margin-top: 1.5rem; }
.cta .btn { background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); }
.cta .fine { color: inherit; opacity: .85; }
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; background: var(--surface); }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .8rem; }
.foot nav a { display: block; color: var(--ink); text-decoration: none; padding: .2rem 0; }
.foot nav a:hover { color: var(--brand); }
.foot p { color: var(--muted); margin: .8rem 0 0; font-size: .95rem; }
.legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

@media (max-width: 880px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 2rem; }
  .foot { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1rem 1rem; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .8rem .2rem; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .8rem; }
  .two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
