/* ============================================
   Page-Specific Styles
   ============================================ */

/* ============================================
   HOME — HERO
   ============================================ */
.hero {
  background: var(--gradient-hero);
  padding: var(--space-2xl) 0 0;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 4vw + 0.5rem, 3.5rem);
  margin-bottom: var(--space-md);
  max-width: 700px;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  color: var(--golden-hour);
  font-size: clamp(0.7rem, 0.8vw + 0.4rem, 0.85rem);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 var(--space-md);
  line-height: var(--line-height-normal);
}

.hero p {
  color: var(--white);
  font-size: clamp(1rem, 1vw + 0.5rem, 1.25rem);
  margin: 0 0 var(--space-lg);
  line-height: var(--line-height-relaxed);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-content {
  align-self: center;
}

.hero-photo {
  justify-self: center;
  align-self: end;
  width: 60%;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-watermark {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 350px;
  height: 350px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  filter: brightness(0) invert(1);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

/* ============================================
   HOME — HOW IT WORKS
   ============================================ */
.how-it-works .steps {
  position: relative;
}

/* ============================================
   HOME — MEMBERSHIP PREVIEW
   ============================================ */
.membership-preview .simple-table {
  margin-bottom: var(--space-lg);
}

.membership-preview .pricing-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   HOME — TRUST SECTION
   ============================================ */
.trust-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.trust-photo {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
}

.trust-photo-initials {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: rgba(255, 255, 255, 0.3);
}

.trust-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-text h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
}

.trust-text p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
}

/* ============================================
   HOME — BOTTOM CTA BAR
   ============================================ */
.cta-bar {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.cta-bar .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.cta-bar h2 {
  color: var(--white);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-lg);
}

/* ============================================
   WHAT IS DPC — COMPARISON
   ============================================ */
.dpc-explanation p {
  color: var(--text-secondary);
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  max-width: 800px;
}

/* Mobile comparison cards (replaces table on small screens) */
.comparison-cards {
  display: none;
}

.comparison-card-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.comparison-card-item h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--deep-anchor);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--deeper-water);
}

.comparison-row {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  align-items: baseline;
}

.comparison-row .label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  word-break: keep-all;
}

.comparison-row .value {
  font-size: var(--font-size-sm);
  border-left: 2px solid var(--deeper-water);
  padding-left: var(--space-sm);
}

.comparison-row .value.highlight {
  color: var(--deeper-water);
  font-weight: var(--font-weight-semibold);
}

/* ============================================
   MEMBERSHIP — INCLUDED / NOT INCLUDED
   ============================================ */
.included-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.included-section h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.included-section h3 .icon-check {
  color: var(--deeper-water);
}

.included-section h3 .icon-info {
  color: var(--text-secondary);
}

/* Not included items with explanations */
.not-included-item {
  margin-bottom: var(--space-lg);
}

.not-included-item h4 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}

.not-included-item p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   MEMBERSHIP — EMPLOYER
   ============================================ */
.employer-section {
  text-align: center;
}

.employer-section p {
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   SERVICES — GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.service-card {
  background: var(--beach-beige);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  border-left: 4px solid var(--deeper-water);
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.service-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  color: var(--deep-anchor);
}

.service-card p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   ENROLL — SIMPLIFIED LAYOUT
   ============================================ */
.enroll-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height-mobile);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.enroll-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.enroll-header .back-link {
  font-size: var(--font-size-sm);
  color: var(--deeper-water);
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.enroll-header .back-link:hover {
  color: var(--deep-anchor);
}

.enroll-content {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--container-padding);
  text-align: center;
}

.enroll-content h1 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
}

.enroll-content .enroll-summary {
  color: var(--text-secondary);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-2xl);
  line-height: var(--line-height-relaxed);
}

.enroll-embed {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-3xl) var(--space-xl);
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.enroll-embed p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-lg);
}

.enroll-after h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
}

.enroll-after p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.enroll-powered-by {
  margin-top: var(--space-md);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

.enroll-medicare {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-light);
  margin-bottom: var(--space-2xl);
}

.enroll-medicare h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
}

.enroll-medicare p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
}

.enroll-footer {
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-3xl) var(--container-padding);
}

.legal-content h2 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.legal-content ul li {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-sm);
  list-style: disc;
}

.legal-notice {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  border-left: 4px solid var(--golden-hour);
}

.legal-notice p {
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.legal-updated {
  margin-top: var(--space-xl);
  font-style: italic;
}

/* ============================================
   WHAT IS DPC — COST COMPARISON
   ============================================ */

/* Side-by-side cost example cards */
.cost-example {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.cost-example-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  border-top: 4px solid var(--border-light);
}

.cost-example-card--traditional {
  border-top-color: #9EAEB0;
}

.cost-example-card--dpc {
  border-top-color: var(--deeper-water);
}

.cost-example-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.cost-breakdown {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
}

.cost-breakdown li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.cost-breakdown li:last-child {
  border-bottom: none;
}

.cost-breakdown li span:last-child {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  margin-left: var(--space-md);
}

.cost-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-md) 0 0;
  border-top: 2px solid var(--border-light);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  color: var(--text-primary);
}

.cost-footnote {
  margin-top: var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  font-style: italic;
}

.cost-disclaimer {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-2xl);
}

/* Interactive calculator */
.calculator {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  border-top: 4px solid var(--golden-hour);
  margin-bottom: var(--space-xl);
}

.calculator h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.calculator > p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-xl);
}

.calculator-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.calc-field label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.calc-field input,
.calc-field select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--deeper-water);
  box-shadow: 0 0 0 3px rgba(26, 138, 145, 0.15);
}

.input-with-prefix {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  pointer-events: none;
}

.input-with-prefix input {
  padding-left: calc(var(--space-md) + 1em);
}

.calc-hint {
  display: block;
  margin-top: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
}

/* Calculator results panel */
.calculator-results {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.calc-result-value {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  margin-left: var(--space-md);
}

.calc-result-values {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  white-space: nowrap;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-left: var(--space-md);
}

.calc-result-sep {
  color: var(--text-secondary);
  opacity: 0.5;
}

.calc-result-highlight {
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 2px solid var(--border-light);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  color: var(--text-primary);
}

.calc-result-highlight .calc-result-value {
  font-size: var(--font-size-lg);
}

.calc-result-highlight.calc-saves {
  color: var(--success);
}

.calc-result-highlight.calc-saves .calc-result-value {
  color: var(--success);
}

.calc-result-highlight.calc-costs-more,
.calc-result-highlight.calc-even {
  color: var(--deeper-water);
}

.calc-result-highlight.calc-costs-more .calc-result-value,
.calc-result-highlight.calc-even .calc-result-value {
  color: var(--deeper-water);
}

.calc-wholesale-note {
  margin-top: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  opacity: 0.8;
}

/* ============================================
   BENEFITS REVIEW
   ============================================ */
.benefits-intro {
  max-width: 700px;
  margin-bottom: var(--space-2xl);
}

.benefits-intro p {
  color: var(--text-secondary);
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
}

.benefits-form-wrapper {
  max-width: 700px;
}

.benefits-form-wrapper h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--deeper-water);
}

/* CTA callout variant */
.callout--cta {
  text-align: center;
}

.callout--cta h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.callout--cta p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
