:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --ink: #112544;
  --muted: #5d6f8d;
  --line: rgba(17, 37, 68, 0.12);
  --primary: #1e63d0;
  --primary-strong: #0f3f97;
  --accent: #f4b41c;
  --accent-strong: #b67d00;
  --ok: #198754;
  --danger: #b42318;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 22px 70px rgba(17, 37, 68, 0.12);
  --shadow-card: 0 16px 42px rgba(17, 37, 68, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(30, 99, 208, 0.16), transparent 34%),
    radial-gradient(circle at 90% 14%, rgba(244, 180, 28, 0.18), transparent 22%),
    linear-gradient(180deg, #f6f9ff 0%, #edf2fa 100%);
}

body.theme-authority {
  --primary: #1e63d0;
  --primary-strong: #0f3f97;
  --accent: #f4b41c;
  --accent-strong: #b67d00;
}

body.theme-painter {
  --primary: #2563eb;
  --primary-strong: #17429f;
  --accent: #f2a900;
  --accent-strong: #b17500;
}

body.theme-stgeorge {
  --primary: #b51b1b;
  --primary-strong: #6c1020;
  --accent: #ed9b14;
  --accent-strong: #9b5f00;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #061120;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(8, 21, 40, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(15, 63, 151, 0.28);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 28px;
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
}

.brand-tag {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.header-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.header-links a:hover,
.header-links a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.header-links .cta-link {
  background: linear-gradient(135deg, var(--accent), #ffd574);
  color: #071221;
}

.page-main {
  padding: 44px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.hero-card,
.content-card,
.tool-card,
.policy-card,
.offer-card,
.package-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  padding: 38px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.58), transparent 48%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.34), transparent 26%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(30, 99, 208, 0.1);
  color: var(--primary-strong);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.eyebrow .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ffdc84);
}

.display-title {
  margin: 18px 0 14px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(46px, 6vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.display-title .accent {
  color: var(--primary);
}

.hero-lead,
.body-copy,
.muted-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(17, 37, 68, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #ffd574);
  color: #081426;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-strong);
  border: 1px solid rgba(17, 37, 68, 0.12);
}

.hero-aside,
.package-aside {
  display: grid;
  gap: 18px;
}

.offer-card {
  display: flex;
  flex-direction: column;
}

.offer-card .button-row,
.offer-card > .btn {
  margin-top: auto;
}

.offer-card,
.tool-card,
.content-card,
.policy-card,
.package-card,
.detail-card {
  padding: 28px;
}

.stat-value,
.price-card strong {
  display: block;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 58px;
  line-height: 0.9;
  color: var(--primary-strong);
  text-transform: uppercase;
}

.stat-label,
.price-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.price-card {
  background: linear-gradient(160deg, rgba(30, 99, 208, 0.1), rgba(255, 255, 255, 0.94));
}

.section {
  margin-top: 28px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-header h2,
.content-card h2,
.policy-card h2,
.package-card h2,
.detail-card h2,
.tool-card h2 {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.subhead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 68ch;
}

.offer-grid,
.package-grid,
.feature-grid,
.standards-grid,
.tools-grid {
  display: grid;
  gap: 18px;
}

.detail-band {
  margin-top: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.detail-band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.detail-band .callout {
  margin-top: 24px;
}

.offer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.package-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.card-media {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(17, 37, 68, 0.08);
  background: #e8eef8;
}

.card-media img {
  width: 100%;
}

.package-card h3,
.offer-card h3,
.detail-card h3,
.tool-card h3,
.detail-band h3 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 28px;
  line-height: 0.98;
  text-transform: uppercase;
}

.offer-card p,
.package-card p,
.detail-card p,
.tool-card p,
.content-card p,
.policy-card p,
.detail-band p {
  color: var(--muted);
  line-height: 1.7;
}

.list-clean,
.site-list,
.chip-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.list-clean li,
.site-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.65;
}

.list-clean li::before,
.site-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.chip-list {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.chip-list li {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

.eyebrow-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 37, 68, 0.06);
  color: var(--primary-strong);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.package-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.package-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.package-form input,
.package-form textarea,
.package-form select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(17, 37, 68, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

.package-form textarea {
  min-height: 130px;
  resize: vertical;
}

.package-form input:focus,
.package-form textarea:focus,
.package-form select:focus {
  outline: 3px solid rgba(30, 99, 208, 0.15);
  border-color: rgba(30, 99, 208, 0.42);
}

.form-status {
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
  border: 1px solid rgba(180, 35, 24, 0.18);
}

.form-status.is-success {
  background: rgba(25, 135, 84, 0.08);
  color: var(--ok);
  border: 1px solid rgba(25, 135, 84, 0.18);
}

.fine-print {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.callout {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(30, 99, 208, 0.08), rgba(255, 255, 255, 0.75));
  border: 1px solid rgba(30, 99, 208, 0.12);
}

.callout strong {
  color: var(--primary-strong);
}

.quote-box {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(17, 37, 68, 0.96), rgba(15, 63, 151, 0.92));
  color: rgba(255, 255, 255, 0.9);
}

.quote-box .eyebrow-note {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-box p {
  color: rgba(255, 255, 255, 0.84);
}

.site-footer {
  margin-top: 40px;
  padding: 26px 0 40px;
  color: #57698b;
  font-size: 14px;
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--primary-strong);
}

@media (max-width: 1024px) {
  .hero-grid,
  .package-grid,
  .offer-grid,
  .feature-grid,
  .standards-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .display-title {
    font-size: clamp(42px, 11vw, 76px);
  }
}

@media (max-width: 720px) {
  .site-header .shell {
    align-items: start;
    flex-direction: column;
  }

  .hero-card,
  .offer-card,
  .tool-card,
  .content-card,
  .policy-card,
  .package-card,
  .detail-card,
  .detail-band {
    padding: 22px;
  }

  .header-links {
    justify-content: start;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .stat-value,
  .price-card strong {
    font-size: 48px;
  }

  .hero-lead,
  .body-copy,
  .muted-copy {
    font-size: 16px;
  }
}
