/* ==========================================================================
   PomoMed — content pages (Pro, Sobre/About, Privacidade/Privacy, 404)
   Builds on /assets/css/app.css tokens. Every page-specific class is
   prefixed "pg-" so nothing here collides with the app UI.
   ========================================================================== */

body.pg {
  /* page-level tokens (light) */
  --pg-accent: #0f766e;
  --pg-accent-strong: #115e59;
  --pg-accent-contrast: #ffffff;
  --pg-soft: #f0fdfa;
  --pg-muted: var(--surface-muted, #4b5563);
  --pg-border: var(--surface-border, #e5e7eb);
  --pg-gold: #b45309;
  --pg-gold-soft: #fef3c7;
  --pg-max: 1040px;
  --pg-gutter: 16px;

  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--mode-bg, #0f766e);
  color: var(--text, #fff);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.pg[data-theme="dark"] {
  --pg-accent: #5eead4;
  --pg-accent-strong: #99f6e4;
  --pg-accent-contrast: #042f2e;
  --pg-soft: #0b2b2a;
  --pg-gold: #fbbf24;
  --pg-gold-soft: #3a2a08;
}

body.pg *,
body.pg *::before,
body.pg *::after { box-sizing: border-box; }

body.pg img,
body.pg svg { max-width: 100%; }

/* ---------- Header/footer: widen the shared .container on content pages ---------- */
body.pg .site-header .container,
body.pg .site-footer .container { max-width: var(--pg-max); }
body.pg .btn.btn-pro[aria-current="page"] { box-shadow: 0 0 0 2px #fff, 0 2px 0 rgba(120, 53, 15, .35); }
body.pg .site-footer { margin-top: auto; }
body.pg .site-footer a[aria-current="page"] { text-decoration: underline; }

/* ---------- Layout ---------- */
.pg-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--pg-max);
  margin-inline: auto;
  padding: 0 var(--pg-gutter) 56px;
}
.pg-main:focus { outline: none; }

.pg-section { margin-block: 56px; scroll-margin-top: 24px; }
.pg-section__head { text-align: center; max-width: 680px; margin: 0 auto 28px; }
.pg-section__head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.pg-section__head p { margin: 0; opacity: .92; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.pg-hero {
  text-align: center;
  padding: clamp(32px, 7vw, 72px) 0 clamp(16px, 4vw, 32px);
  max-width: 760px;
  margin-inline: auto;
}
.pg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.pg-eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fde047;
  box-shadow: 0 0 0 0 rgba(253, 224, 71, .7);
  animation: pg-pulse 1.6s ease-out infinite;
}
@keyframes pg-pulse {
  0% { box-shadow: 0 0 0 0 rgba(253, 224, 71, .7); }
  70% { box-shadow: 0 0 0 10px rgba(253, 224, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(253, 224, 71, 0); }
}
.pg-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 1.2rem + 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
  text-wrap: balance;
}
.pg-hero h1 em { font-style: normal; color: #fde68a; }
.pg-lead {
  margin: 0 auto 28px;
  max-width: 620px;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem);
  opacity: .95;
  text-wrap: pretty;
}
.pg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pg-hero__note { margin: 18px 0 0; font-size: .92rem; opacity: .92; }
.pg-hero__note strong { color: #fde68a; }

/* Hero ECG ornament */
.pg-hero-ecg { display: block; width: 100%; max-width: 520px; height: 44px; margin: 0 auto 8px; overflow: visible; }
.pg-hero-ecg path {
  fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  animation: pg-draw 2.4s ease-out .2s forwards;
}
@keyframes pg-draw { to { stroke-dashoffset: 0; } }

/* ---------- Buttons (page-specific variants on top of .btn) ---------- */
.btn.pg-cta,
.pg-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s ease;
}
.btn.pg-cta--light,
.pg-cta--light {
  background: #fff;
  color: var(--mode-bg, #0f766e);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .18);
}
.btn.pg-cta--light:active,
.pg-cta--light:active { transform: translateY(6px); box-shadow: 0 0 0 rgba(0, 0, 0, .18); }
.btn.pg-cta--outline,
.pg-cta--outline {
  background: transparent;
  color: inherit;
  border: 2px solid rgba(255, 255, 255, .6);
}
.btn.pg-cta--outline:hover,
.pg-cta--outline:hover { background: rgba(255, 255, 255, .12); }
.btn.pg-cta--solid,
.pg-cta--solid {
  background: var(--pg-accent);
  color: var(--pg-accent-contrast);
  box-shadow: 0 5px 0 var(--pg-accent-strong);
}
body.pg[data-theme="dark"] .pg-cta--solid { box-shadow: 0 5px 0 #0d9488; }
.btn.pg-cta--solid:active,
.pg-cta--solid:active { transform: translateY(5px); box-shadow: 0 0 0 transparent; }
.btn.pg-cta--quiet,
.pg-cta--quiet {
  background: var(--pg-soft);
  color: var(--pg-accent);
  border: 2px solid currentColor;
}
.pg-cta[disabled],
.pg-cta[aria-busy="true"] { opacity: .7; cursor: progress; transform: none; }
.pg-cta svg { width: 18px; height: 18px; flex: none; }
.pg-cta--block { width: 100%; min-width: 0; white-space: normal; text-align: center; }

/* ---------- Panels (light surface on top of mode color) ---------- */
.pg-panel {
  background: var(--surface, #fff);
  color: var(--surface-text, #111827);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 44px);
  box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, .18));
}
.pg-panel + .pg-panel { margin-top: 20px; }

/* ---------- Prose ---------- */
.pg-prose { max-width: 72ch; margin-inline: auto; font-size: 1.02rem; }
.pg-prose > :first-child { margin-top: 0; }
.pg-prose h2 {
  margin: 2.2em 0 .6em;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -.015em;
  scroll-margin-top: 24px;
}
.pg-prose h3 { margin: 1.6em 0 .4em; font-size: 1.12rem; line-height: 1.3; }
.pg-prose p, .pg-prose ul, .pg-prose ol { margin: 0 0 1em; }
.pg-prose ul, .pg-prose ol { padding-left: 1.3em; }
.pg-prose li { margin-bottom: .45em; }
.pg-prose li::marker { color: var(--pg-accent); font-weight: 700; }
.pg-prose a { color: var(--pg-accent); font-weight: 600; text-underline-offset: 3px; }
.pg-prose a:hover { text-decoration-thickness: 2px; }
.pg-prose strong { font-weight: 700; }
.pg-prose kbd {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--pg-border);
  border-bottom-width: 3px;
  border-radius: 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .85em;
  background: var(--pg-soft);
}
.pg-prose hr { border: 0; border-top: 1px solid var(--pg-border); margin: 2em 0; }
.pg-meta { color: var(--pg-muted); font-size: .92rem; margin: 0 0 1.5em; }

.pg-callout {
  margin: 1.4em 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--pg-soft);
  border-left: 4px solid var(--pg-accent);
}
.pg-callout > :last-child { margin-bottom: 0; }
.pg-callout__title { display: block; font-weight: 800; margin-bottom: 4px; }

.pg-toc {
  margin: 0 0 2em;
  padding: 16px 18px;
  border: 1px solid var(--pg-border);
  border-radius: 14px;
}
.pg-toc h2 { margin: 0 0 .5em !important; font-size: .95rem !important; text-transform: uppercase; letter-spacing: .06em; color: var(--pg-muted); }
.pg-toc ol { margin: 0; columns: 2 220px; column-gap: 24px; }
.pg-toc li { break-inside: avoid; }

/* ---------- Preset cards (Sobre/About) ---------- */
.pg-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 1.2em 0 1.6em;
  padding: 0;
  list-style: none;
}
.pg-preset {
  margin: 0 !important;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--pg-border);
  background: var(--pg-soft);
}
.pg-preset__name { display: block; font-weight: 800; font-size: 1.05rem; }
.pg-preset__time {
  display: block;
  margin: 4px 0 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: .9rem;
  color: var(--pg-accent);
  font-weight: 700;
}
.pg-preset p { margin: 0; font-size: .95rem; }

.pg-steps { counter-reset: pg-step; list-style: none; padding-left: 0 !important; }
.pg-steps > li {
  counter-increment: pg-step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 1em;
  min-height: 32px;
}
.pg-steps > li::before {
  content: counter(pg-step);
  position: absolute;
  left: 0; top: -2px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--pg-accent);
  color: var(--pg-accent-contrast);
  font-weight: 800;
  font-size: .95rem;
}

/* ---------- Feature grid (Pro) ---------- */
.pg-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pg-feature {
  padding: 20px;
  border-radius: 16px;
  background: var(--card-bg, rgba(255, 255, 255, .1));
  border: 1px solid rgba(255, 255, 255, .18);
}
.pg-feature__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .18);
}
.pg-feature__icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.pg-feature h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.3; }
.pg-feature p { margin: 0; font-size: .95rem; opacity: .92; }

/* ---------- Comparison table ---------- */
.pg-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--pg-border);
}
.pg-compare {
  width: 100%;
  min-width: 300px;
  border-collapse: collapse;
  font-size: .97rem;
}
.pg-compare caption { text-align: left; padding: 0 0 12px; font-weight: 700; color: var(--pg-muted); }
.pg-compare th,
.pg-compare td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--pg-border); }
.pg-compare tbody tr:last-child > * { border-bottom: 0; }
.pg-compare thead th {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pg-muted);
  background: var(--pg-soft);
}
.pg-compare thead th.pg-col-pro { color: var(--pg-accent); }
.pg-compare td { text-align: center; width: 92px; white-space: nowrap; }
.pg-compare td.pg-col-pro { background: color-mix(in srgb, var(--pg-accent) 7%, transparent); font-weight: 700; }
.pg-compare thead th:not(:first-child) { text-align: center; }
.pg-compare tbody th { font-weight: 500; }
.pg-compare tbody th small { display: block; color: var(--pg-muted); font-size: .85rem; }
.pg-compare .pg-group th {
  background: transparent;
  padding-top: 18px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pg-muted);
  font-weight: 800;
}
.pg-yes, .pg-no { display: inline-block; width: 22px; height: 22px; vertical-align: middle; }
.pg-yes { fill: none; stroke: var(--pg-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pg-no { fill: none; stroke: var(--pg-muted); stroke-width: 2.5; stroke-linecap: round; opacity: .6; }

/* ---------- Pricing ---------- */
.pg-pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: stretch;
}
.pg-pricing { max-width: 760px; margin-inline: auto; }
@media (min-width: 700px) {
  .pg-pricing { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
.pg-price {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  border-radius: 20px;
  background: var(--surface, #fff);
  color: var(--surface-text, #111827);
  box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, .18));
  border: 3px solid transparent;
  transition: border-color .2s ease, transform .2s ease;
}
.pg-price.is-featured { border-color: #fde047; }
.pg-price.is-featured { padding-top: 34px; }
.pg-price.is-selected { border-color: var(--pg-accent); }
.pg-price.is-featured.is-selected { border-color: #fde047; box-shadow: 0 0 0 4px var(--pg-accent), var(--shadow, 0 10px 30px rgba(0, 0, 0, .18)); }
.pg-price__badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: #fde047;
  color: #422006;
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: .01em;
}
.pg-price__name { margin: 0 0 4px; font-size: 1.15rem; font-weight: 800; }
.pg-price__desc { margin: 0 0 16px; color: var(--pg-muted); font-size: .93rem; }
.pg-price__amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.pg-price__currency { font-size: 1.1rem; font-weight: 700; }
.pg-price__value { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.pg-price__period { font-size: .95rem; color: var(--pg-muted); font-weight: 600; }
.pg-price__sub { margin: 6px 0 0; font-size: .9rem; color: var(--pg-muted); }
.pg-price__save {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pg-gold-soft);
  color: var(--pg-gold);
  font-weight: 800;
  font-size: .82rem;
}
.pg-price__launch {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--pg-soft);
  font-size: .9rem;
}
.pg-price__launch strong { color: var(--pg-accent); }
.pg-price__list { list-style: none; margin: 18px 0 22px; padding: 0; font-size: .95rem; flex: 1 0 auto; }
.pg-price__list li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.pg-price__list svg { width: 18px; height: 18px; margin-top: 3px; flex: none; fill: none; stroke: var(--pg-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pg-pricing-note { margin: 20px auto 0; text-align: center; font-size: .92rem; opacity: .92; max-width: 640px; }

/* ---------- Waitlist ---------- */
.pg-waitlist {
  display: grid;
  /* minmax(0, …): the column must not grow to the CTA's min-content width (reflow at 320px). */
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
@media (min-width: 860px) {
  .pg-waitlist { grid-template-columns: 1fr 1.1fr; gap: 48px; }
}
.pg-waitlist__pitch h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.1rem); line-height: 1.2; letter-spacing: -.02em; }
.pg-waitlist__pitch p { margin: 0 0 14px; }
.pg-perks { list-style: none; margin: 0; padding: 0; }
.pg-perks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.pg-perks svg { width: 20px; height: 20px; margin-top: 2px; flex: none; fill: none; stroke: var(--pg-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pg-discount {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: var(--pg-gold-soft);
  color: var(--pg-gold);
  font-weight: 800;
  font-size: .92rem;
}
.pg-discount b {
  display: grid; place-items: center;
  min-width: 44px; height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fde047;
  color: #422006;
}

.pg-form { display: grid; gap: 18px; }
.pg-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.pg-form legend,
.pg-form__label { display: block; margin-bottom: 8px; font-weight: 700; font-size: .95rem; padding: 0; }
.pg-seg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: var(--pg-soft);
  border: 1px solid var(--pg-border);
}
.pg-seg label { position: relative; display: block; cursor: pointer; }
.pg-seg input {
  position: absolute; inset: 0;
  opacity: 0; margin: 0; cursor: pointer;
}
.pg-seg span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 6px 4px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.2;
  transition: background-color .15s ease, color .15s ease;
}
.pg-seg small { display: block; font-weight: 600; font-size: .75rem; opacity: .8; font-variant-numeric: tabular-nums; }
.pg-seg input:checked + span { background: var(--pg-accent); color: var(--pg-accent-contrast); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.pg-seg input:focus-visible + span { outline: 3px solid var(--pg-accent); outline-offset: 2px; }
.pg-seg label:hover input:not(:checked) + span { background: color-mix(in srgb, var(--pg-accent) 10%, transparent); }
/* Waitlist discount tag on the yearly option (same yellow as the .pg-discount badge). */
.pg-seg__tag {
  position: absolute;
  top: -9px; right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fde047;
  color: #422006;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.pg-input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid var(--surface-field-border, #7b8794);
  border-radius: 12px;
  background: var(--surface, #fff);
  color: var(--surface-text, #111827);
  font: inherit;
  font-size: 1rem;
  transition: border-color .15s ease;
}
.pg-input::placeholder { color: var(--pg-muted); opacity: .8; }
.pg-input:focus { border-color: var(--pg-accent); outline: none; }
.pg-input[aria-invalid="true"] { border-color: #dc2626; }
body.pg[data-theme="dark"] .pg-input[aria-invalid="true"] { border-color: #f87171; }

.pg-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.pg-form__status { margin: 0; min-height: 1.5em; font-weight: 600; font-size: .95rem; }
.pg-form__status[data-state="error"] { color: #b91c1c; }
body.pg[data-theme="dark"] .pg-form__status[data-state="error"] { color: #fca5a5; }
.pg-form__status[data-state="ok"] { color: var(--pg-accent); }
.pg-form__legal { margin: 0; font-size: .85rem; color: var(--pg-muted); }
.pg-form__legal a { color: var(--pg-accent); font-weight: 600; }

.pg-success {
  text-align: center;
  padding: 18px 8px;
}
.pg-success:focus { outline: none; }
.pg-success__icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--pg-soft);
}
.pg-success__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--pg-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pg-success h3 { margin: 0 0 8px; font-size: 1.35rem; }
.pg-success p { margin: 0 0 6px; color: var(--pg-muted); }

/* ---------- FAQ ---------- */
.pg-faq { max-width: 760px; margin-inline: auto; display: grid; gap: 10px; }
.pg-faq details {
  border-radius: 14px;
  background: var(--surface, #fff);
  color: var(--surface-text, #111827);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.pg-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  border-radius: 14px;
}
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2.5px solid var(--pg-accent);
  border-bottom: 2.5px solid var(--pg-accent);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}
.pg-faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.pg-faq details > div { padding: 0 18px 18px; color: var(--pg-muted); }
.pg-faq details > div p { margin: 0 0 .7em; }
.pg-faq details > div p:last-child { margin-bottom: 0; }
.pg-faq a { color: var(--pg-accent); font-weight: 600; }

/* ---------- Final CTA band ---------- */
.pg-band {
  text-align: center;
  padding: clamp(28px, 5vw, 48px) 20px;
  border-radius: 20px;
  background: var(--card-bg, rgba(255, 255, 255, .1));
  border: 1px solid rgba(255, 255, 255, .2);
}
.pg-band h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem); letter-spacing: -.02em; }
.pg-band p { margin: 0 auto 20px; max-width: 560px; opacity: .95; }

/* ---------- 404 ---------- */
.pg-404 {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(40px, 10vw, 96px) 0 24px;
}
.pg-404__code {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(4.5rem, 3rem + 10vw, 8rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.pg-404__monitor {
  margin: 20px auto 24px;
  padding: 14px 12px;
  max-width: 460px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .15);
}
.pg-404__monitor svg { display: block; width: 100%; height: 70px; }
.pg-404__line {
  fill: none; stroke: #4ade80; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 900; stroke-dashoffset: 900;
  /* Two sweeps (under 5 s), then it stays drawn: no endless motion (WCAG 2.2.2). */
  animation: pg-draw 2.4s linear 2 forwards;
  filter: drop-shadow(0 0 4px rgba(74, 222, 128, .7));
}
.pg-404__readout {
  display: flex; justify-content: space-between;
  margin-top: 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .8rem;
  color: #4ade80;
  letter-spacing: .04em;
}
.pg-404 h1 { margin: 0 0 10px; font-size: clamp(1.5rem, 1.1rem + 2vw, 2.2rem); line-height: 1.2; letter-spacing: -.02em; }
.pg-404 p { margin: 0 auto 24px; max-width: 480px; opacity: .95; }

/* ---------- Utilities ---------- */
.pg-center { text-align: center; }
.pg-mt-0 { margin-top: 0 !important; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pg-eyebrow__dot,
  .pg-hero-ecg path,
  .pg-404__line { animation: none !important; stroke-dashoffset: 0 !important; }
  .pg-price, .pg-cta, .pg-faq summary::after, .pg-seg span { transition: none !important; }
  html { scroll-behavior: auto !important; }
}

/* ---------- Print (privacy policy etc.) ---------- */
@media print {
  body.pg { background: #fff !important; color: #000 !important; }
  .site-header, .site-footer, .skip-link, .pg-actions { display: none !important; }
  .pg-panel { box-shadow: none; padding: 0; }
}

/* Fallback in case app.css is cached/older */
body.pg .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

body.pg [hidden] { display: none !important; }

.pg-prose code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--pg-soft);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .88em;
  overflow-wrap: anywhere;
}

/* Small screens: keep the comparison table inside the viewport */
@media (max-width: 520px) {
  .pg-panel { padding: 18px 14px; border-radius: 16px; }
  .pg-compare { font-size: .9rem; min-width: 0; }
  .pg-compare th,
  .pg-compare td { padding: 10px 8px; }
  .pg-compare td { width: 1%; white-space: normal; font-size: .85rem; }
  .pg-compare tbody th small { font-size: .78rem; }
}

/* Contrast (WCAG AA): full-strength white text over the light teal/glass panels. */
.pg-section__head p,
.pg-hero__note,
.pg-feature p,
.pg-pricing-note,
.pg-band p,
.pg-404 p,
.pg-seg small { opacity: 1; }
.pg-eyebrow { background: rgba(0, 0, 0, .16); }
.pg-hero__note strong { color: #fef3c7; }

/* ==========================================================================
   v3 — "Veja o Pro em ação" / "See Pro in action"
   ========================================================================== */

/* Specialty skins (tokens come from themes.css): keep the 3D edge of solid CTAs on-skin in dark mode. */
body.pg[data-skin][data-theme="dark"]:not([data-skin="pomomed"]) .pg-cta--solid { box-shadow: 0 5px 0 color-mix(in srgb, var(--light-focus, #5eead4) 55%, #000); }

body.pg {
  --pg-before: #7b8a9e;      /* "before" bars: 3:1+ on light and dark surfaces */
  --pg-chip-cli: #0f766e;
  --pg-chip-cir: #dc2626;
  --pg-chip-ped: #d97706;
  --pg-chip-go: #c026d3;
  --pg-chip-pre: #2563eb;
  --pg-chip-sim: #475569;
  --pg-chip-rev: #94a3b8;
}
body.pg[data-theme="dark"] {
  --pg-chip-cli: #2dd4bf;
  --pg-chip-cir: #f87171;
  --pg-chip-ped: #fbbf24;
  --pg-chip-go: #e879f9;
  --pg-chip-pre: #60a5fa;
  --pg-chip-sim: #94a3b8;
  --pg-chip-rev: #64748b;
}

.pg-demo { padding-top: clamp(16px, 3vw, 28px); }
.pg-demo h3 { margin: 0 0 6px; font-size: clamp(1.15rem, 1rem + .6vw, 1.35rem); line-height: 1.25; letter-spacing: -.01em; }
.pg-demo__intro { max-width: 640px; margin-bottom: 18px; }
.pg-demo__intro p { margin: 0; color: var(--pg-muted); }

/* Tabs: horizontal scroll-snap strip on small screens */
.pg-demo__tabs {
  display: flex;
  gap: 8px;
  margin: 0 calc(-1 * clamp(4px, 1vw, 8px)) 4px;
  padding: 4px clamp(4px, 1vw, 8px) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.pg-demo:not(.is-ready) .pg-demo__tabs { display: none; }
.pg-demo__tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--pg-border);
  border-radius: 999px;
  background: var(--pg-soft);
  color: var(--surface-text, #16202c);
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pg-demo__tab:hover { border-color: var(--pg-accent); }
.pg-demo__tab[aria-selected="true"] {
  background: var(--pg-accent);
  border-color: var(--pg-accent);
  color: var(--pg-accent-contrast);
  box-shadow: 0 3px 0 var(--pg-accent-strong);
}
.pg-demo__tab:focus-visible { outline: 3px solid var(--pg-accent); outline-offset: 2px; }
.pg-demo__tab-icon { font-size: 1.1em; line-height: 1; }
@media (min-width: 760px) {
  .pg-demo__tabs { justify-content: center; flex-wrap: wrap; overflow: visible; }
}

.pg-demo__panel { padding-top: 18px; border-radius: 12px; }
.pg-demo__panel:focus { outline: none; }
.pg-demo__panel:focus-visible { outline: 3px solid var(--pg-accent); outline-offset: 6px; }
.pg-demo:not(.is-ready) .pg-demo__panel + .pg-demo__panel { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--pg-border); }
.pg-demo.is-ready .pg-demo__panel.is-entering { animation: pg-fade-in .28s ease-out; }
@keyframes pg-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pg-demo__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-top: 20px;
}
.pg-demo__foot .pg-note { flex: 1 1 260px; margin: 0; }
.pg-note { color: var(--pg-muted); font-size: .92rem; margin: 0; }
.pg-note a { color: var(--pg-accent); font-weight: 700; }
.pg-note strong { color: var(--surface-text, #16202c); }

.pg-sample {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--pg-gold-soft);
  color: var(--pg-gold);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* ---- Themes try-on ---- */
.pg-skins {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pg-skins > li { display: flex; }
.pg-skin {
  --sk: var(--solid-focus, #0f766e);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  padding: 6px;
  border: 2px solid var(--pg-border);
  border-radius: 16px;
  background: var(--surface, #fff);
  color: var(--surface-text, #16202c);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pg-skin:hover { transform: translateY(-2px); border-color: var(--sk); }
.pg-skin:focus-visible { outline: 3px solid var(--pg-accent); outline-offset: 3px; }
.pg-skin[aria-pressed="true"] { border-color: var(--sk); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sk) 35%, transparent); }
.pg-skin[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: -8px; right: -8px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sk);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  box-shadow: 0 0 0 3px var(--surface, #fff);
}
.pg-skin__shot {
  position: relative;
  display: grid;
  place-items: center;
  height: 92px;
  border-radius: 11px;
  overflow: hidden;
  color: #fff;
  background-color: var(--c-focus, var(--sk));
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(0, 0, 0, .12));
  isolation: isolate;
}
.pg-skin__shot::before { /* the skin's own line-art pattern (from themes.css), very faint */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--skin-pattern, none);
  background-size: var(--skin-pattern-mini, 72px);
  opacity: .28;
}
.pg-skin__emoji { position: absolute; top: 6px; left: 8px; font-size: 1.05rem; line-height: 1; }
.pg-skin__time { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; line-height: 1; margin-top: -8px; }
.pg-skin__go { position: absolute; bottom: 10px; left: 50%; width: 46%; height: 12px; transform: translateX(-50%); border-radius: 6px; background: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.pg-skin__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 4px 2px; min-height: 32px; }
.pg-skin__name { font-weight: 800; font-size: .95rem; }
.pg-skin__lock { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--pg-gold-soft); color: var(--pg-gold); font-size: .72rem; font-weight: 800; }

/* ---- Charts (rendered as SVG by pages.js) ---- */
.pg-charts { display: grid; gap: 16px; }
@media (min-width: 860px) { .pg-charts { grid-template-columns: 1.25fr 1fr; } }
.pg-chart {
  margin: 0;
  min-width: 0;
  padding: 16px clamp(10px, 2vw, 18px) 12px;
  border: 1px solid var(--pg-border);
  border-radius: 16px;
}
.pg-chart__cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 10px; }
.pg-chart__cap strong { font-size: 1rem; }
.pg-chart__cap span { color: var(--pg-muted); font-size: .85rem; }
.pg-chart__plot { position: relative; min-height: 220px; }
.pg-chart__plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.pg-chart__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; padding: 0; list-style: none; font-size: .85rem; color: var(--pg-muted); }
.pg-chart__legend li { display: inline-flex; align-items: center; gap: 6px; }
.pg-chart__legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--pg-accent); }
.pg-chart__legend i.is-before { background: var(--pg-before); }
.pg-ch-grid { stroke: var(--pg-border); stroke-width: 1; }
.pg-ch-base { stroke: var(--pg-muted); stroke-width: 1; opacity: .5; }
.pg-ch-tick { fill: var(--pg-muted); font-size: 11px; font-family: inherit; }
.pg-ch-label { fill: var(--surface-text, #16202c); font-size: 13px; font-weight: 600; font-family: inherit; }
.pg-ch-val { fill: var(--surface-text, #16202c); font-size: 11.5px; font-weight: 700; font-family: inherit; font-variant-numeric: tabular-nums; }
.pg-ch-delta { fill: var(--pg-accent); font-size: 12px; font-weight: 800; font-family: inherit; }
.pg-ch-bar { fill: var(--pg-accent); transition: opacity .15s ease; }
.pg-ch-bar.is-before { fill: var(--pg-before); }
.pg-ch-hit { fill: transparent; cursor: default; }
.pg-chart__plot.is-hovering .pg-ch-bar:not(.is-hot) { opacity: .45; }
.pg-ch-tip {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface-text, #16202c);
  color: var(--surface, #fff);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 8px));
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

/* Disabled-looking CSV button with a Pro tooltip */
.pg-tipwrap { position: relative; display: inline-flex; }
.pg-csv[aria-disabled="true"] { opacity: .62; cursor: not-allowed; }
.pg-csv[aria-disabled="true"]:active { transform: none; }
.pg-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--surface-text, #16202c);
  color: var(--surface, #fff);
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.pg-tip::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--surface-text, #16202c);
}
.pg-tipwrap:hover .pg-tip,
.pg-tipwrap.is-open .pg-tip,
.pg-csv:focus-visible + .pg-tip { opacity: 1; visibility: visible; transform: translateX(-50%); }

/* ---- Music catalog ---- */
.pg-tracks { display: grid; gap: 18px; }
@media (min-width: 760px) { .pg-tracks { grid-template-columns: 1fr 1fr; gap: 18px 24px; } }
.pg-genre h4 {
  margin: 0 0 8px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pg-muted);
}
.pg-genre ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pg-track {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--pg-border);
  border-radius: 14px;
  background: var(--surface, #fff);
}
.pg-track.is-playing { border-color: var(--pg-accent); background: var(--pg-soft); }
.pg-track__play,
.pg-track__free {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.pg-track__play {
  border: 0;
  background: var(--pg-accent);
  color: var(--pg-accent-contrast);
  cursor: pointer;
  box-shadow: 0 3px 0 var(--pg-accent-strong);
  transition: transform .12s ease, box-shadow .12s ease;
}
.pg-track__play:active { transform: translateY(3px); box-shadow: none; }
.pg-track__play:focus-visible { outline: 3px solid var(--pg-accent); outline-offset: 3px; }
.pg-track__play svg { width: 18px; height: 18px; fill: currentColor; }
.pg-track__free { background: var(--pg-soft); color: var(--pg-accent); border: 1px solid var(--pg-border); }
.pg-track__free svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg-track__body { min-width: 0; flex: 1; }
.pg-track__title { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 800; line-height: 1.3; }
.pg-track__badge { padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .02em; }
.pg-track__badge.is-pro { background: var(--pg-gold-soft); color: var(--pg-gold); }
.pg-track__badge.is-free { background: var(--pg-soft); color: var(--pg-accent); border: 1px solid var(--pg-border); }
.pg-track__meta { margin: 2px 0 0; color: var(--pg-muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.pg-track__credit { margin: 4px 0 0; color: var(--pg-muted); font-size: .78rem; line-height: 1.45; overflow-wrap: anywhere; }
.pg-track__credit a { color: var(--pg-accent); font-weight: 700; }
.pg-track__prog { display: block; height: 4px; margin-top: 8px; border-radius: 4px; background: var(--pg-border); overflow: hidden; }
.pg-track__prog i { display: block; height: 100%; width: 100%; background: var(--pg-accent); transform-origin: left center; transform: scaleX(0); }
.pg-track:not(.is-playing):not(.is-paused) .pg-track__prog { visibility: hidden; height: 0; margin-top: 0; }
.pg-tracks__credit { margin-top: 16px; }

/* ---- Sync animation ---- */
.pg-sync {
  --sync-t: 7s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: clamp(14px, 3vw, 26px) clamp(6px, 2vw, 20px);
  border-radius: 18px;
  background: var(--pg-soft);
  border: 1px solid var(--pg-border);
}
.pg-sync__laptop { flex: 0 1 230px; min-width: 132px; }
.pg-sync__screen,
.pg-sync__phscreen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fff;
  background-color: var(--mode-bg, #0f766e);
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .14));
}
.pg-sync__screen {
  aspect-ratio: 16 / 10;
  border: 6px solid #1f2937;
  border-bottom-width: 8px;
  border-radius: 10px 10px 4px 4px;
}
.pg-sync__base { height: 9px; margin: 0 -10%; border-radius: 0 0 10px 10px; background: linear-gradient(#cbd5e1, #94a3b8); }
body.pg[data-theme="dark"] .pg-sync__base { background: linear-gradient(#475569, #334155); }
.pg-sync__chip { padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: .66rem; font-weight: 800; }
.pg-sync__time { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 800; font-size: clamp(1.1rem, .8rem + 1.6vw, 1.7rem); line-height: 1; }
.pg-sync__btn { padding: 2px 10px; border-radius: 6px; background: #fff; color: var(--mode-bg, #0f766e); font-size: .6rem; font-weight: 800; box-shadow: 0 2px 0 rgba(0, 0, 0, .2); animation: pg-sync-press var(--sync-t) ease-in-out infinite; }
.pg-sync__bar { position: absolute; left: 10%; right: 10%; bottom: 7px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.pg-sync__bar i { display: block; height: 100%; background: #fff; transform-origin: left center; transform: scaleX(.35); animation: pg-sync-bar var(--sync-t) linear infinite; }

.pg-sync__wire { position: relative; flex: 1 1 120px; min-width: 56px; max-width: 220px; height: 64px; }
.pg-sync__wire::before {
  content: "";
  position: absolute;
  left: 6px; right: 6px; top: 50%;
  border-top: 2px dashed color-mix(in srgb, var(--pg-accent) 55%, transparent);
}
.pg-sync__cloud {
  position: absolute;
  left: 50%; top: 50%;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface, #fff);
  border: 2px solid var(--pg-accent);
  color: var(--pg-accent);
  animation: pg-sync-cloud var(--sync-t) ease-in-out infinite;
}
.pg-sync__cloud svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.pg-sync__packet {
  position: absolute;
  top: 50%;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--pg-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pg-accent) 25%, transparent);
  opacity: 0;
}
.pg-sync__packet--a { left: 6px; animation: pg-sync-a var(--sync-t) ease-in-out infinite; }
.pg-sync__packet--b { left: 50%; animation: pg-sync-b var(--sync-t) ease-in-out infinite; }

.pg-sync__phone {
  flex: 0 0 auto;
  width: clamp(70px, 16vw, 104px);
  padding: 7px 5px;
  border-radius: 16px;
  background: #1f2937;
}
.pg-sync__phscreen { aspect-ratio: 9 / 17; border-radius: 10px; overflow: hidden; }
.pg-sync__phscreen::before { /* "screen off" layer that lifts when the session arrives */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #0b1220;
  animation: pg-sync-wake var(--sync-t) ease-in-out infinite;
}
.pg-sync__phscreen .pg-sync__time { font-size: clamp(.95rem, .7rem + 1vw, 1.25rem); }
.pg-sync__music { font-size: .58rem; font-weight: 700; opacity: .95; }

@keyframes pg-sync-press { 0%, 3% { transform: none; } 5% { transform: translateY(2px) scale(.94); box-shadow: none; } 8%, 100% { transform: none; } }
@keyframes pg-sync-bar { 0%, 6% { transform: scaleX(.02); } 100% { transform: scaleX(.4); } }
@keyframes pg-sync-a { 0%, 9% { left: 6px; opacity: 0; } 11% { opacity: 1; } 34% { left: 50%; opacity: 1; } 36%, 100% { left: 50%; opacity: 0; } }
@keyframes pg-sync-cloud { 0%, 32% { transform: none; } 38% { transform: scale(1.12); box-shadow: 0 0 0 8px color-mix(in srgb, var(--pg-accent) 18%, transparent); } 46%, 100% { transform: none; box-shadow: none; } }
@keyframes pg-sync-b { 0%, 40% { left: 50%; opacity: 0; } 42% { opacity: 1; } 62% { left: calc(100% - 6px); opacity: 1; } 64%, 100% { left: calc(100% - 6px); opacity: 0; } }
@keyframes pg-sync-wake { 0%, 62% { opacity: 1; } 68%, 94% { opacity: 0; } 100% { opacity: 1; } }

.pg-sync__steps { margin: 18px 0 0; padding-left: 1.3em; display: grid; gap: 6px; }
.pg-sync__steps li::marker { color: var(--pg-accent); font-weight: 800; }
@media (min-width: 760px) {
  .pg-sync__steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* ---- Planner week ---- */
.pg-week__head { margin: 0 0 10px; font-weight: 800; font-size: .95rem; }
.pg-week-wrap {
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  padding-bottom: 4px;
}
.pg-week-wrap:focus-visible { outline: 3px solid var(--pg-accent); outline-offset: 3px; }
.pg-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pg-day {
  scroll-snap-align: start;
  padding: 10px 8px;
  border: 1px solid var(--pg-border);
  border-radius: 14px;
  background: var(--pg-soft);
}
.pg-day__name { display: block; margin-bottom: 8px; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pg-muted); }
.pg-day__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pg-chip {
  --c: var(--pg-chip-cli);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 34px;
  padding: 5px 8px;
  border-radius: 9px;
  border-left: 4px solid var(--c);
  background: color-mix(in srgb, var(--c) 13%, var(--surface, #fff));
  color: var(--surface-text, #16202c);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
}
.pg-chip b { flex: none; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .78rem; font-variant-numeric: tabular-nums; }
.pg-chip--cir { --c: var(--pg-chip-cir); }
.pg-chip--ped { --c: var(--pg-chip-ped); }
.pg-chip--go  { --c: var(--pg-chip-go); }
.pg-chip--pre { --c: var(--pg-chip-pre); }
.pg-chip--sim { --c: var(--pg-chip-sim); }
.pg-chip--rev { --c: var(--pg-chip-rev); }
body.pg[data-theme="dark"] .pg-chip { background: color-mix(in srgb, var(--c) 20%, var(--surface, #111827)); }
.pg-planner-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--pg-gold-soft);
  color: var(--surface-text, #16202c);
  font-size: .95rem;
}
body.pg[data-theme="dark"] .pg-planner-note { color: #fde68a; }

@media (max-width: 520px) {
  .pg-demo__foot { flex-direction: column; align-items: stretch; }
  .pg-demo__foot .pg-note { flex: none; }
  .pg-demo__foot .pg-cta, .pg-tipwrap, .pg-tipwrap .pg-cta { width: 100%; }
  .pg-skins { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pg-skin__shot { height: 80px; }
  .pg-sync__chip { font-size: .58rem; }
  .pg-sync__btn { font-size: .52rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-sync__btn, .pg-sync__bar i, .pg-sync__cloud, .pg-sync__packet, .pg-sync__phscreen::before,
  .pg-demo.is-ready .pg-demo__panel.is-entering { animation: none !important; }
  .pg-sync__phscreen::before { opacity: 0; }
  .pg-sync__packet { opacity: 0 !important; }
  .pg-skin, .pg-demo__tab, .pg-tip, .pg-ch-bar, .pg-track__play { transition: none !important; }
  .pg-skin:hover { transform: none; }
}

/* ==========================================================================
   v1.0 — copy/legal revision: line icons, pricing notice, terms page bits
   ========================================================================== */

/* Thin-stroke line icons (replace emoji in page chrome) */
.pg-demo__tab-icon,
.pg-inline-icon,
.pg-sync__note,
.pg-notice__icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pg-demo__tab-icon { width: 18px; height: 18px; font-size: inherit; }
.pg-inline-icon { display: inline-block; width: 1.15em; height: 1.15em; margin-right: .4em; vertical-align: -.2em; }
.pg-week__head .pg-inline-icon { color: var(--pg-accent); }
.pg-planner-note .pg-inline-icon { color: var(--pg-gold); }
.pg-sync__music { display: inline-flex; align-items: center; gap: 3px; }
.pg-sync__note { width: 10px; height: 10px; stroke-width: 2.4; }

/* Comparison table: cells with longer text may wrap */
.pg-compare td.pg-wrap { white-space: normal; width: auto; min-width: 104px; max-width: 180px; line-height: 1.35; font-size: .92rem; }

/* Pricing: waitlist line reads as a two-part statement */
.pg-price__launch { line-height: 1.45; }
.pg-price__launch strong { white-space: nowrap; }

/* "Recursos e valores previstos…" notice — glass strip on the mode background */
.pg-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 760px;
  margin: 22px auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 14px;
  background: rgba(0, 0, 0, .2);
  color: #fff;
  font-size: .95rem;
  line-height: 1.5;
}
.pg-notice p { margin: 0; }
.pg-notice strong { color: #fff; }
.pg-notice__icon { width: 22px; height: 22px; margin-top: 1px; }
.pg-pricing-note a,
.pg-band a:not(.btn),
.pg-hero__note a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Prose helpers used by the privacy policy and the terms of use */
.pg-prose .pg-callout ul,
.pg-prose .pg-callout ol { margin-bottom: 0; }
.pg-prose dl { margin: 0 0 1em; }
.pg-prose dt { font-weight: 800; margin-top: .6em; }
.pg-prose dd { margin: .15em 0 0; }
.pg-channel {
  display: grid;
  gap: 10px;
  margin: 0 0 1em;
  padding: 16px 18px;
  border: 1px solid var(--pg-border);
  border-radius: 14px;
  background: var(--pg-soft);
}
.pg-channel > :last-child { margin-bottom: 0; }
.pg-channel ol { margin: 0; }
.pg-channel .pg-cta { justify-self: start; text-decoration: none; }
.pg-prose .pg-channel .pg-cta { color: var(--pg-accent-contrast); }

/* Footer version ("© 2026 PomoMed · v1.0.0") */
.site-footer__ver { font-variant-numeric: tabular-nums; }

/* Keyboard focus: a soft glow ring around the usual outline */
body.pg a:focus-visible,
body.pg button:focus-visible,
body.pg summary:focus-visible {
  outline: 3px solid var(--pg-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--pg-accent) 22%, transparent);
}
body.pg .pg-hero a:focus-visible,
body.pg .pg-band a:focus-visible,
body.pg .pg-pricing-note a:focus-visible,
body.pg .pg-actions a:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); }

@media (max-width: 520px) {
  .pg-notice { padding: 12px 14px; font-size: .92rem; }
  .pg-compare td.pg-wrap { min-width: 84px; font-size: .82rem; }
}

/* Privacy page: statistics on/off switch (pages.js initAnalyticsOptOut). */
.analytics-optout:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }

/* ---------- Countdown pages (/contagem/, contagem.js) ---------- */
.cd { margin: 8px auto 22px; }
.cd__cells { display: flex; justify-content: center; gap: clamp(8px, 2.5vw, 16px); }
.cd__cells[hidden] { display: none; }
.cd__cell {
  display: grid;
  justify-items: center;
  min-width: clamp(78px, 22vw, 120px);
  padding: 14px 10px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
}
.cd__num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(2rem, 1.2rem + 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd__label { margin-top: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.cd__done { margin: 0; font-weight: 700; }

.pg-facts { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 8px 18px; margin: 0 0 1.2em; }
.pg-facts dt { margin: 0; font-weight: 700; }
.pg-facts dd { margin: 0; }
@media (max-width: 560px) {
  .pg-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pg-facts dd { margin-bottom: 10px; }
}

.cd-calc { margin: 0 0 1em; padding: 16px 18px; border-radius: 14px; background: var(--pg-soft); border-left: 4px solid var(--pg-accent); }
.cd-calc label { display: block; font-weight: 700; margin-bottom: 8px; }
.cd-calc input {
  width: 10em;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--pg-border);
  border-radius: 10px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.cd-calc__out { margin: 10px 0 0; font-weight: 600; }

.pg-exams { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pg-prose .pg-exams { padding: 0; }
.pg-prose .pg-exams li { margin: 0; }
.pg-exam__link {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--pg-border);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}
.pg-prose .pg-exam__link { color: inherit; font-weight: 400; }
.pg-exam__link:hover { border-color: var(--pg-accent); }
.pg-exam__name { font-weight: 800; font-size: 1.05rem; }
.pg-exam__date { color: var(--pg-muted); font-size: .92rem; }
.pg-exam__left { color: var(--pg-accent); font-weight: 700; }
.pg-exam--waiting .pg-exam__link { border-style: dashed; }
