:root {
  --navy: #0f1d33;
  --navy-light: #17294a;
  --navy-soft: #233a62;
  --gold: #b9935a;
  --gold-light: #d7b174;
  --background: #fafaf8;
  --surface: #ffffff;
  --text: #172033;
  --muted: #677184;
  --border: rgba(15, 29, 51, 0.12);
  --success: #17633a;
  --warning: #7a5315;
  --shadow: 0 18px 60px rgba(15, 29, 51, 0.1);
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
p,
summary {
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--navy);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.page-hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(215, 177, 116, 0.14), transparent 30%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
}

.site-nav {
  position: relative;
  z-index: 20;
  max-width: var(--content);
  margin: 0 auto;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-symbol {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 177, 116, 0.55);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 1.3rem;
}

.brand-name > span,
.footer-brand span {
  color: var(--gold-light);
}

.brand-name {
  color: #fff;
}

.nav-toggle {
  display: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link,
.help-menu > summary {
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  display: inline-flex;
  align-items: center;
  border-radius: 0.55rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.help-menu > summary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-link[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  text-decoration-thickness: 2px;
}

.nav-cta {
  margin-left: 0.4rem;
  background: var(--gold);
  color: var(--navy);
}

.nav-cta:hover {
  background: var(--gold-light);
  color: var(--navy);
}

.help-menu {
  position: relative;
}

.help-menu > summary {
  list-style: none;
}

.help-menu > summary::-webkit-details-marker {
  display: none;
}

.help-menu > summary::after {
  content: "⌄";
  margin-left: 0.4rem;
  color: var(--gold-light);
}

.help-menu[open] > summary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.help-menu-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(19rem, calc(100vw - 2rem));
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.help-menu-panel a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
}

.help-menu-panel a:hover,
.help-menu-panel a:focus-visible {
  background: rgba(185, 147, 90, 0.12);
}

.hero-inner,
.page-hero-inner,
.section,
.content-layout {
  max-width: var(--content);
  margin: 0 auto;
}

.hero-inner {
  padding: clamp(4rem, 9vw, 7rem) 1.75rem clamp(5rem, 10vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 5rem);
}

.eyebrow,
.section-label {
  color: var(--gold-light);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section-title {
  margin: 1rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero h1 {
  max-width: 45rem;
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.hero h1 strong {
  color: var(--gold-light);
  font-weight: inherit;
}

.hero-description,
.page-hero p {
  max-width: 45rem;
  margin: 1.75rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
}

.hero-actions,
.action-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: var(--navy);
}

.button-primary:hover {
  background: var(--gold-light);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.product-preview {
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.27);
}

.window {
  min-height: 21rem;
  overflow: hidden;
  border-radius: 0.85rem;
  background: #f7f7f5;
}

.window-bar {
  height: 2.7rem;
  padding: 0 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid #e6e7ea;
  background: #fff;
}

.window-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #d8d9dc;
}

.window-body {
  min-height: 18.3rem;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
}

.mock-sidebar {
  padding: 1.4rem 0.75rem;
  background: var(--navy);
}

.mock-logo {
  width: 2.15rem;
  height: 2.15rem;
  margin: 0 auto 1.7rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 177, 116, 0.45);
  border-radius: 0.55rem;
  color: var(--gold-light);
  font-family: Georgia, serif;
}

.mock-menu {
  height: 0.45rem;
  margin: 0.75rem 0.3rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.13);
}

.mock-menu.active {
  background: var(--gold);
}

.mock-content {
  padding: 2rem 1.7rem;
}

.mock-heading,
.mock-subtitle,
.mock-line {
  height: 0.48rem;
  border-radius: 1rem;
  background: #d9dce1;
}

.mock-heading {
  width: 54%;
  height: 0.8rem;
  margin-bottom: 0.7rem;
  background: #26364e;
}

.mock-subtitle {
  width: 72%;
  margin-bottom: 1.8rem;
}

.mock-card {
  margin-bottom: 0.75rem;
  padding: 1.1rem;
  border: 1px solid #e2e4e8;
  border-radius: 0.7rem;
  background: #fff;
}

.mock-line {
  margin-bottom: 0.5rem;
}

.mock-line.short {
  width: 60%;
}

.section {
  padding: clamp(4.5rem, 9vw, 6.5rem) 1.75rem;
}

.section-label {
  color: var(--gold);
}

.section-title {
  max-width: 49rem;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.section-intro {
  max-width: 47rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.features,
.card-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.feature-card,
.info-card,
.download-card,
.support-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  background: var(--surface);
  box-shadow: 0 0 0 rgba(15, 29, 51, 0);
}

.feature-card h3,
.info-card h2,
.support-card h2 {
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-size: 1.08rem;
}

.feature-card p,
.info-card p,
.support-card p {
  margin: 0;
  color: var(--muted);
}

.feature-number {
  margin-bottom: 1.6rem;
  color: var(--gold);
  font-family: Georgia, serif;
}

.statement {
  max-width: calc(var(--content) - 3.5rem);
  margin: 0 auto 5rem;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: 1.2rem;
  background: radial-gradient(circle at 95% 5%, rgba(215, 177, 116, 0.14), transparent 35%), var(--navy);
  color: #fff;
}

.statement blockquote {
  max-width: 52rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3.3vw, 3rem);
  line-height: 1.25;
}

.statement strong {
  color: var(--gold-light);
  font-weight: inherit;
}

.statement p {
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.page-hero-inner {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.75rem clamp(4rem, 9vw, 6rem);
}

.page-hero h1 {
  max-width: 47rem;
  font-size: clamp(2.7rem, 6vw, 4.7rem);
}

.content-layout {
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.75rem;
}

.search-box {
  max-width: 46rem;
  margin-bottom: 3.5rem;
}

.search-box label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--navy);
  font-weight: 750;
}

.search-box input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid #aeb7c5;
  border-radius: 0.7rem;
  background: var(--surface);
  color: var(--text);
}

.search-status {
  min-height: 1.5rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.faq-category {
  max-width: 54rem;
  margin: 0 0 3.5rem;
  scroll-margin-top: 1rem;
}

.faq-category h2 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
}

.faq-item {
  border-top: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  list-style: none;
  color: var(--navy);
  font-weight: 750;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  max-width: 48rem;
  padding: 0 2.5rem 1.3rem 0;
  color: var(--muted);
}

.faq-answer p {
  margin: 0 0 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-item[hidden],
.faq-category[hidden] {
  display: none;
}

.support-card {
  max-width: 54rem;
  scroll-margin-top: 1rem;
}

.support-card a {
  color: #234f9d;
  font-weight: 700;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}

.download-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.release-state {
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--warning);
  font-size: 0.87rem;
  font-weight: 800;
}

.release-state::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}

.release-state.available {
  color: var(--success);
}

.download-card h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
}

.download-card > p {
  color: var(--muted);
}

.download-action {
  width: 100%;
  margin-top: 1rem;
}

.download-action[aria-disabled="true"] {
  background: #d6d8da;
  color: #5e6570;
  cursor: not-allowed;
  transform: none;
}

.availability-note {
  min-height: 1.6rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.release-metadata {
  margin: 1.75rem 0 0;
}

.metadata-row {
  padding: 0.8rem 0;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border);
}

.metadata-row dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.metadata-row dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 650;
}

.integrity-panel[hidden] {
  display: none;
}

.integrity-panel code {
  display: block;
  margin-top: 0.4rem;
  padding: 0.75rem;
  border-radius: 0.55rem;
  background: #f1f3f6;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.checklist {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.checklist li + li {
  margin-top: 0.7rem;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 2rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
}

.footer-brand {
  color: #fff;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% - 0.4rem);
    right: 1rem;
    left: 1rem;
    padding: 0.75rem;
    display: none;
    align-items: stretch;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.9rem;
    background: var(--navy-light);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link,
  .help-menu > summary {
    width: 100%;
  }

  .nav-cta {
    margin: 0.35rem 0 0;
  }

  .help-menu-panel {
    position: static;
    width: 100%;
    margin-top: 0.25rem;
    box-shadow: none;
  }

  .hero-inner,
  .download-layout {
    grid-template-columns: 1fr;
  }

  .product-preview {
    max-width: 38rem;
  }

  .features,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-nav,
  .hero-inner,
  .page-hero-inner,
  .section,
  .content-layout,
  .footer-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 3.6rem);
  }

  .page-hero h1 {
    font-size: clamp(2.4rem, 12vw, 3rem);
  }

  .hero-actions,
  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .features,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .statement {
    margin-right: 1.25rem;
    margin-left: 1.25rem;
  }

  .window-body {
    grid-template-columns: 4.5rem 1fr;
  }

  .mock-content {
    padding: 1.5rem 1rem;
  }

  .metadata-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Guia de compatibilidade: íntegro sem imagens; figuras reais opcionais. */
.compatibility-guide { max-width: 64rem; }
.compatibility-guide > section, .compatibility-guide > aside { margin-bottom: 2rem; }
.compatibility-guide .guide-warning { border-left: 4px solid var(--gold); }
.compatibility-guide .info-card p + p { margin-top: 1rem; }
.compatibility-guide .guide-steps { padding-left: 1.5rem; }
.compatibility-guide .guide-steps > li { padding: 0.8rem 0; }
.compatibility-guide .guide-steps h3 { margin: 0 0 0.5rem; color: var(--navy); font-size: 1.08rem; }
.compatibility-guide .guide-steps p { margin: 0; }
.compatibility-guide .guide-steps figure { margin: 1rem 0 0; min-width: 0; }
.compatibility-guide .guide-steps figure img { display: block; max-width: 100%; height: auto; border-radius: 0.65rem; }
.compatibility-guide .guide-steps figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.88rem; }
@media (min-width: 901px) {
  .compatibility-guide .guide-steps > li:has(figure) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
}

/* Shared forms and Referral: same navy/gold identity as the public site. */
[hidden] { display: none !important; }
.referral-layout { max-width: 850px; }
.referral-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: clamp(1rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.referral-card h1 { line-height: 1.25; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.referral-form { display: grid; gap: .8rem; margin: 1.4rem 0; }
.referral-form label { font-weight: 600; }
.referral-form input { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: .8rem; background: var(--surface); color: var(--text); }
.referral-form button { justify-self: start; cursor: pointer; }
.referral-card .button { border: 0; cursor: pointer; }
.referral-card .button-secondary { background: var(--navy); color: white; }
.referral-code { font-family: ui-monospace, monospace; letter-spacing: .14em; font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 700; color: var(--navy); }
.referral-link { overflow-wrap: anywhere; font-family: ui-monospace, monospace; }
.referral-help { font-size: .95rem; color: var(--muted); }
.submitted-email { font-size: 1.3rem; font-weight: 600; overflow-wrap: anywhere; }
.referral-support { font-size: .78rem; color: var(--muted); margin: .4rem 0; }
.referral-result { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 1rem; }
.notice { padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 620px) { .referral-form button { width: 100%; } .referral-layout { padding-top: 1.5rem; padding-bottom: 1.5rem; } }
/* Portal components scoped so public pages retain their existing composition.
   Shared tokens/body/focus are authoritative; no parallel theme file. */
.portal-shell header{background:var(--navy);color:#fff;border-bottom:4px solid var(--gold);padding:.85rem max(1rem,calc((100% - 64rem)/2))}
.portal-shell .brand{font-size:1.3rem;font-weight:750}
.portal-shell header p{margin:0;color:#dce5fa;font-size:.88rem}
.portal-shell .back{color:#fff;display:inline-block;margin-top:.25rem}
.portal-shell main{max-width:64rem;margin:.9rem auto;padding:0 1rem}
.portal-shell h1{font-size:clamp(1.7rem,5vw,2.2rem);margin:0 0 .45rem}
.portal-shell h2{font-size:1.1rem;margin:0 0 .55rem}
.portal-shell h3{font-size:1rem;margin:0 0 .35rem}
.portal-shell section{background:#fff;border:1px solid var(--border);border-radius:13px;padding:1rem;margin:.7rem 0;box-shadow:0 4px 18px var(--navy)08}
.portal-shell .account-status{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin:0 0 .65rem;padding:.5rem .7rem;border:1px solid #dce3ed;border-radius:9px;background:#fff;color:var(--muted);font-size:.9rem}
.portal-shell .account-status.is-active{border-color:#b7dfc5;background:#eff9f2;color:#17623a}
.portal-shell .status-mark{font-weight:800}
.portal-shell .account-email{margin-left:auto;color:var(--muted);font-size:.85rem}
.portal-shell .tabs{display:flex;gap:.45rem;flex-wrap:wrap;margin:.5rem 0}
.portal-shell .tabs button{background:var(--background);color:var(--navy)}
.portal-shell .tabs button[aria-selected="true"]{background:var(--gold);color:#fff}
.portal-shell [data-tab-panel][hidden],.portal-shell [data-subscription-details][hidden]{display:none}
.portal-shell .subscription-summary,.portal-shell .subscription-missing{display:flex;align-items:center;justify-content:space-between;gap:.75rem;border:1px solid var(--border);border-radius:10px;padding:.7rem .8rem;margin:.6rem 0;background:var(--background)}
.portal-shell .subscription-summary ul,.portal-shell .subscription-missing ul{margin:.2rem 0 0;padding-left:1.1rem}
.portal-shell .checklist{display:flex;gap:.25rem 1.2rem;flex-wrap:wrap;font-size:.9rem}
.portal-shell .compact-action{white-space:nowrap}
.portal-shell .field-grid{display:grid;gap:0 1rem}
.portal-shell .full{grid-column:1/-1}
.portal-shell label{display:block;margin:.4rem 0}
.portal-shell input,.portal-shell select{font:inherit;width:100%;padding:.55rem .6rem;margin-top:.15rem;border:1px solid #94a3b8;border-radius:6px;background:#fff}
.portal-shell input[readonly],.portal-shell input:disabled{background:#f3f5f9}
.portal-shell input[type=checkbox]{width:1.1rem;margin-right:.5rem}
.portal-shell button{font:inherit;font-weight:600;background:var(--navy);color:#fff;border:0;border-radius:8px;padding:.62rem .95rem;margin:.25rem 0;cursor:pointer}
.portal-shell button:disabled{opacity:.55;cursor:not-allowed}
.portal-shell .secondary{background:var(--muted)}
.portal-shell .note{font-size:.86rem;color:var(--muted);margin:.3rem 0}
.portal-shell .field-error{min-height:.8em;margin:.1rem 0 0;color:#b42318;font-size:.84rem}
.portal-shell .error,.portal-shell .ok{border-radius:8px;padding:.7rem .85rem;border:1px solid;margin:.45rem 0}
.portal-shell .error{color:#912018;background:#fff0ed}
.portal-shell .ok{color:#17623a;background:#eff9f2;border-color:#b7dfc5}
.portal-shell .plan-card{border:1px solid var(--border);border-radius:12px;padding:.9rem 1rem;margin:.4rem 0 .75rem;background:var(--background)}
.portal-shell .plan-card.is-active{border-color:#a9d8b8;background:linear-gradient(135deg,#f0faf3,#fff 70%)}
.portal-shell .plan-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.portal-shell .eyebrow{font-size:.7rem;letter-spacing:.08em;font-weight:750;color:var(--muted);margin:0 0 .1rem}
.portal-shell .plan-heading h3{font-size:1.15rem;margin:0}
.portal-shell .plan-price{margin:.15rem 0 0;color:var(--muted);font-size:.9rem}
.portal-shell .status-pill{display:inline-flex;align-items:center;border-radius:999px;background:#dff3e5;color:#17623a;padding:.32rem .65rem;font-size:.82rem;font-weight:700;white-space:nowrap}
.portal-shell .plan-validity{margin:.55rem 0;color:#17623a}
.portal-shell .plan-action{margin:.45rem 0 0}
.portal-shell .plan-action button{background:#17623a}
.portal-shell .subscription-details h3{margin:.65rem 0 .2rem}
.portal-shell p{margin:.4rem 0}
.portal-shell .logout{margin:.55rem 0}
.portal-shell .logout button{margin:0}
.portal-shell footer{max-width:64rem;margin:1rem auto;padding:0 1rem 1.5rem;color:var(--muted);font-size:.83rem}
@media(min-width:700px){.portal-shell .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){.portal-shell .account-email{width:100%;margin-left:1.45rem}
.portal-shell .checklist{display:block}
.portal-shell .subscription-summary,.portal-shell .subscription-missing{align-items:flex-start;flex-direction:column}
.portal-shell .compact-action{width:auto}
.portal-shell .plan-heading{align-items:flex-start;flex-direction:column}
.portal-shell .tabs button,.portal-shell button{width:100%}
.portal-shell .compact-action{width:auto}
}
.portal-shell .security-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));align-items:end;gap:.5rem 1rem}
.portal-shell .security-actions form{margin:0}
.portal-shell .security-verification h2{margin-bottom:.25rem}
.portal-shell .subscription-details>p{max-width:58rem}

/* Download overrides consolidated from its former inline block. */
.download-card .button-secondary { color: var(--navy); border-color: var(--border); background: var(--surface); }
    .download-card .button-secondary:hover { background: var(--gold-light); }

/* Legal text remains at least the visual equivalent of 12pt (16px). */
.legal-document { font-size: max(16px, 1rem); max-width: 960px; line-height: 1.75; }
.legal-document p, .legal-document li, .legal-version { font-size: max(16px, 1rem); }
.legal-document h1 { line-height: 1.25; }
.legal-document section { margin: 2rem 0; }
.legal-highlight { border-left: 5px solid var(--gold); background: var(--surface); padding: 1.2rem; border-radius: 8px; }
.legal-index { margin: 1.5rem 0; }
.referral-program { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1rem; font-size: .95rem; color: var(--muted); }
.referral-program h2 { font-size: 1.1rem; color: var(--navy); }
.download-review-notice { margin: 1.5rem 0; border-left: 4px solid var(--gold); padding: 1rem; background: var(--background); }
.download-ack { display: flex; gap: .7rem; align-items: flex-start; }
.download-ack input { width: 1.2rem; height: 1.2rem; flex-shrink: 0; margin-top: .3rem; }
[data-download-ack][aria-disabled="true"] { opacity: .65; }
