/* =========================================================
   Petrus Medical — Rath Design System
   Light Mode · Source Serif 4 + Source Sans 3
   Teal Primary · Navy Headings · Professional Serif
   ========================================================= */

:root {
  /* -- Palette -- */
  --navy: #1B2A4A;
  --navy-dark: #141f38;
  --navy-light: #2a3d65;
  --white: #ffffff;
  --off-white: #F8F7F4;
  --light-grey: #F0F0F0;
  --border: #E5E3DE;
  --teal: #01696F;
  --teal-dark: #015258;
  --teal-light: #028a92;
  --gold: #C4983C;
  --gold-dark: #a57f2d;
  --gold-light: #d9b055;
  --burgundy: #8B2332;
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --muted: #6b6b6b;
  --muted-light: #9a9a9a;
  --success: #3a7d44;

  /* -- Fonts -- */
  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* -- Radius -- */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;

  /* -- Shadows -- */
  --shadow-sm: 0 1px 2px rgba(20, 31, 56, 0.04);
  --shadow: 0 4px 16px rgba(20, 31, 56, 0.06);
  --shadow-lg: 0 12px 40px rgba(20, 31, 56, 0.10);

  /* -- Layout -- */
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--ink-soft); }

/* ===== UTILITY ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section, .section { padding: 96px 0; }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: inline-flex; } }

.eyebrow {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--teal);
  vertical-align: middle;
  margin-right: 10px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(1, 105, 111, 0.25);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header.scrolled {
  box-shadow: 0 2px 16px rgba(20, 31, 56, 0.06);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 34px;
  height: 34px;
  color: var(--teal);
}
.logo-text {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.logo-text small {
  display: block;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 1px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--teal);
  transition: width 0.25s var(--ease);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 78px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  z-index: 99;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .btn { width: 100%; justify-content: center; margin-top: 18px; }

@media (max-width: 980px) {
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .hamburger { display: flex; }
}

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(196, 152, 60, 0.08), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(1, 105, 111, 0.12), transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero-eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  color: var(--white);
  margin-bottom: 28px;
  font-weight: 500;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}
.hero-sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-ctas .btn-outline {
  color: var(--gold);
  border-color: var(--gold);
  background: transparent;
}
.hero-ctas .btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}
.hero-note {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}
.hero-note em {
  color: var(--gold-light);
  font-style: normal;
  font-weight: 500;
}
.hero-note-arrow {
  color: var(--teal-light);
  margin-right: 6px;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .hero { padding: 130px 0 70px; }
  .hero-sub { font-size: 1.05rem; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  .trust-bar { gap: 16px 28px; }
}

/* ===== STATISTICS BAR ===== */
.stats {
  background: var(--white);
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat {
  text-align: center;
  padding: 0 12px;
  position: relative;
}
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: var(--border);
}
.stat-num {
  font-family: var(--f-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}
.stats-source {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted-light);
  margin-top: 32px;
  font-style: italic;
}
@media (max-width: 780px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .stat:not(:last-child)::after { display: none; }
  .stat:nth-child(odd)::after {
    content: "";
    display: block;
    position: absolute;
    right: 0; top: 15%; bottom: 15%;
    width: 1px;
    background: var(--border);
  }
}

/* ===== SECTION COMMONS ===== */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin: 0 auto; }

.section-alt {
  background: var(--off-white);
}

/* ===== STEPS / ABLAUF ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background-image: linear-gradient(to right, var(--teal) 50%, transparent 50%);
  background-size: 14px 2px;
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--f-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(1, 105, 111, 0.25);
  border: 4px solid var(--white);
}
.step h3 { margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 0.98rem; max-width: 280px; margin: 0 auto; }
.step-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(1, 105, 111, 0.08);
  color: var(--teal);
}
.pill-free {
  background: rgba(58, 125, 68, 0.1);
  color: var(--success);
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
}

/* ===== KOSTENRECHNER ===== */
.calc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 880px;
  margin: 0 auto;
}
.calc-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.calc-field select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 13px 40px 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.calc-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(1, 105, 111, 0.1);
}
.calc-submit { align-self: flex-start; }
@media (max-width: 700px) {
  .calc { padding: 24px; }
  .calc-row { grid-template-columns: 1fr; gap: 18px; }
}

/* Result */
.calc-result {
  margin-top: 40px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  background: var(--white);
  border: 1px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 40px;
  animation: slideDown 520ms var(--ease);
  box-shadow: var(--shadow-lg);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}
.result-head { margin-bottom: 24px; }
.result-badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(1, 105, 111, 0.08);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
  font-weight: 600;
}
.result-title {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}
.result-highlight {
  color: var(--success);
  font-weight: 700;
}
.result-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.result-list li {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.5;
}
.result-list li svg {
  flex-shrink: 0;
  color: var(--teal);
  margin-top: 2px;
}
.result-list li strong { color: var(--navy); }
.result-footline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(1, 105, 111, 0.05);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}
.result-footline svg { color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.result-footline strong { color: var(--navy); }
.result-cta { display: block; text-align: center; }

/* ===== TEASER ===== */
.section-teaser {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.teaser-grid {
  display: grid;
  gap: 64px;
  align-items: center;
}
@media (min-width: 900px) {
  .teaser-grid { grid-template-columns: 1.2fr 1fr; }
}
.teaser-text h2 { margin-bottom: 20px; }
.teaser-text h2 em {
  font-style: italic;
  color: var(--teal);
  font-weight: 400;
}
.teaser-text > p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
  line-height: 1.6;
}
.teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.teaser-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.teaser-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}
.teaser-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.teaser-dot-off { background: var(--muted-light); }
.teaser-dot-on {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(58, 125, 68, 0.2);
}
.teaser-row-label { flex: 1; }
.teaser-row-value { color: var(--ink); font-weight: 600; }
.teaser-divider { height: 1px; background: var(--border); }
.teaser-card-row-good .teaser-row-value { color: var(--success); }
.teaser-card-row-good { color: var(--ink); }

/* ===== COMPARE ===== */
.compare {
  display: grid;
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-col {
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  background: var(--white);
}
.compare-col-bad {
  background: linear-gradient(180deg, rgba(139, 35, 50, 0.04) 0%, var(--white) 100%);
  border-color: rgba(139, 35, 50, 0.2);
}
.compare-col-good {
  background: linear-gradient(180deg, rgba(58, 125, 68, 0.05) 0%, var(--white) 100%);
  border-color: rgba(58, 125, 68, 0.25);
}
.compare-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.compare-col-bad .compare-head svg { color: var(--burgundy); }
.compare-col-good .compare-head svg { color: var(--success); }

.compare-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}
.compare-col li {
  position: relative;
  padding-left: 20px;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.compare-col li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 10px; height: 2px;
  border-radius: 1px;
}
.compare-col-bad li::before { background: var(--burgundy); }
.compare-col-good li::before { background: var(--success); }

/* ===== FAQ ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: all 0.25s var(--ease);
  overflow: hidden;
}
.faq-item.open {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(1, 105, 111, 0.08);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 28px;
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-q .ico {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(1, 105, 111, 0.08);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  font-size: 1.1rem;
  font-weight: 400;
}
.faq-item.open .faq-q .ico {
  transform: rotate(45deg);
  background: var(--teal);
  color: var(--white);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-a-inner {
  padding: 0 28px 24px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 1rem;
}

/* ===== STORY ===== */
.section-story {
  background: var(--white);
  border-top: 1px solid var(--border);
}
.story-inner {
  max-width: 780px;
  margin: 0 auto;
}
.story-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 36px;
}
.story-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.story-body p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.story-close {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.story-close em {
  font-family: var(--f-serif);
  font-size: 1.35rem;
  color: var(--teal);
  font-style: italic;
  font-weight: 500;
}

/* ===== PARTNER ===== */
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.partner-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.partner-mark {
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 105, 111, 0.08);
  color: var(--teal);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.partner-name {
  font-family: var(--f-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
}
.partner-role {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2px;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.partner-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.partner-stat strong {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-sub {
  font-size: 0.5em;
  color: var(--muted);
  font-weight: 400;
}
.partner-stat span {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.partner-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  list-style: none;
}
.partner-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.partner-points li svg {
  flex-shrink: 0;
  color: var(--success);
  margin-top: 4px;
}
.partner-note {
  font-size: 0.82rem;
  color: var(--muted-light);
  font-style: italic;
}

/* ===== CLOSE / CTA ===== */
.section-cta {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.section-cta h2 {
  color: var(--white);
  font-weight: 500;
}
.section-cta h2 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}
.cta-lede {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.cta-actions .btn-outline {
  color: var(--gold);
  border-color: var(--gold);
}
.cta-actions .btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}
.cta-foot {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 52ch;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 32px;
  position: relative;
}
.footer-top {
  height: 3px;
  background: linear-gradient(to right, var(--teal), var(--gold), var(--teal));
  position: absolute;
  top: 0; left: 0; right: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-brand svg { color: var(--teal-light); flex-shrink: 0; margin-top: 2px; }
.footer-name {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
}
.footer-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--f-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-col a {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-memorial {
  font-family: var(--f-serif);
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== CHAT WIDGET ===== */
.chat {
  position: fixed;
  right: clamp(16px, 2vw, 24px);
  bottom: clamp(16px, 2vw, 24px);
  z-index: 60;
  pointer-events: none;
}
.chat > * { pointer-events: auto; }
.chat-panel[hidden] { display: none !important; }

.chat-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 56px;
  min-width: 56px;
  background: var(--teal);
  color: var(--white);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(1, 105, 111, 0.4), 0 2px 6px rgba(0,0,0,0.15);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}
.chat-launcher:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(1, 105, 111, 0.5), 0 2px 6px rgba(0,0,0,0.2);
}
.chat-launcher-icon { flex-shrink: 0; }
.chat-icon-close { display: none; }
.chat.is-open .chat-icon-open { display: none; }
.chat.is-open .chat-icon-close { display: block; }
.chat-launcher-label { display: inline; }
@media (max-width: 480px) {
  .chat-launcher-label { display: none; }
  .chat-launcher { padding: 0; min-width: 56px; width: 56px; height: 56px; }
}
.chat.is-open .chat-launcher-label { display: none; }
.chat.is-open .chat-launcher { padding: 0; width: 52px; height: 52px; min-width: 52px; min-height: 52px; }

.chat-launcher-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--teal);
  opacity: 0;
  z-index: -1;
  animation: chatPulse 2.4s var(--ease) infinite;
}
.chat.is-open .chat-launcher-pulse { display: none; }
@keyframes chatPulse {
  0% { opacity: 0.5; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(1.5); }
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(380px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-origin: bottom right;
  animation: chatIn 320ms var(--ease);
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
}
.chat-head-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.chat-head-text { flex: 1; line-height: 1.2; }
.chat-head-name {
  font-family: var(--f-serif);
  font-size: 1rem;
  font-weight: 600;
}
.chat-head-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  opacity: 0.9;
  margin-top: 2px;
}
.chat-status-dot {
  width: 8px; height: 8px;
  background: #7EE3A3;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(126, 227, 163, 0.25);
}
.chat-close {
  width: 32px; height: 32px;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-close:hover { background: rgba(255, 255, 255, 0.15); }

.chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--off-white);
  scroll-behavior: smooth;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 86%;
  animation: msgIn 260ms var(--ease);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.chat-msg-bot { align-self: flex-start; }
.chat-msg-user { align-self: flex-end; align-items: flex-end; }

.chat-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}
.chat-msg-bot .chat-bubble {
  background: var(--white);
  border: 1px solid var(--border);
  border-bottom-left-radius: var(--radius-sm);
}
.chat-msg-user .chat-bubble {
  background: var(--teal);
  color: var(--white);
  border-bottom-right-radius: var(--radius-sm);
}
.chat-meta {
  font-size: 10px;
  color: var(--muted-light);
  letter-spacing: 0.02em;
  padding-inline: 8px;
}

.chat-quick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0 8px;
}
.chat-quick-btn {
  text-align: left;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
  line-height: 1.35;
}
.chat-quick-btn:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateX(2px);
}

.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-sm);
  width: fit-content;
}
.chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted-light);
  animation: typing 1.2s infinite ease-in-out both;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 20px;
  background: var(--teal);
  color: var(--white) !important;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  align-self: flex-start;
  text-decoration: none;
}
.chat-cta:hover { background: var(--teal-dark); }

.chat-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--white);
  font-size: 0.78rem;
  color: var(--muted);
}
.chat-foot svg { margin-right: 6px; vertical-align: middle; color: var(--teal); }

/* ===== MOBILE ===== */
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .section-cta { padding-bottom: 120px; }
}

/* ===== PRINT ===== */
@media print {
  .header, .chat, .footer-bottom { display: none; }
  body { background: white; color: black; }
}