/* APPLE preset (layout language inspired by apple.com) */

:root {
  --apple-ink: #1d1d1f;
  --apple-muted: #6e6e73;
  --apple-bg: #ffffff;
  --apple-panel: #f5f5f7;
  --apple-panel-soft: #fbfbfd;
  --apple-border: #d2d2d7;
  --apple-blue: #0071e3;
  --apple-blue-hover: #0066cc;
}

body {
  background: var(--apple-bg);
  color: var(--apple-ink);
}

body,
button,
input,
textarea,
select {
  font-family: "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4 {
  font-family: "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.02em;
}

.container {
  width: min(1520px, 95vw);
}

.site-header--apple {
  background: rgba(251, 251, 253, 0.84);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
}

.header-inner--apple {
  min-height: 52px;
  padding: 10px 0;
}

.brand--apple {
  gap: 10px;
}

.brand--apple .brand-logo {
  height: 22px;
  width: auto;
}

.brand--apple .brand-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--apple-ink);
  letter-spacing: -0.01em;
}

.site-nav--apple ul {
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav--apple a {
  color: var(--apple-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-nav--apple a:hover {
  color: var(--apple-ink);
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
}

.site-nav--apple a[aria-current="page"] {
  color: var(--apple-ink);
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.05);
}

.section {
  padding: 70px 0;
}

.section-header {
  text-align: left;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--apple-muted);
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
}

.lead,
.muted,
.item__meta {
  color: var(--apple-muted);
}

.button {
  border-radius: 999px;
  border: 1px solid var(--apple-blue);
  background: var(--apple-blue);
  color: #ffffff;
  box-shadow: none;
  font-weight: 600;
}

.button:hover {
  background: var(--apple-blue-hover);
  border-color: var(--apple-blue-hover);
}

.button.ghost {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--apple-border);
  color: var(--apple-ink);
}

.card {
  background: var(--apple-panel-soft);
  border: 1px solid var(--apple-border);
  border-radius: 24px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--apple-blue);
  font-weight: 600;
}

.inline-link:hover {
  text-decoration: underline;
}

.badge {
  background: rgba(0, 113, 227, 0.12);
  border: 1px solid rgba(0, 113, 227, 0.2);
  color: #0059b3;
}

.icon {
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.11);
  color: #0059b3;
}

.hero--apple {
  padding: 14px 0 34px;
}

.hero--apple .apple-hero-stage {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  border-radius: 34px;
  background: #090a0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero--apple .apple-hero-stage.is-compact {
  min-height: 660px;
  border-radius: 28px;
}

.hero--apple .apple-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.02);
}

.hero--apple .apple-hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 16, 0.30) 0%, rgba(8, 10, 16, 0.62) 62%, rgba(8, 10, 16, 0.84) 100%);
}

.hero--apple .apple-hero-copy {
  position: relative;
  z-index: 1;
  width: min(820px, 92%);
  text-align: center;
  margin: 0;
  color: #f5f5f7;
  display: grid;
  gap: 12px;
}

.hero--apple .apple-hero-stage {
  justify-items: center;
}

.hero--apple .apple-hero-copy,
.hero--apple .apple-hero-copy * {
  text-align: center;
}

.hero--apple .apple-hero-copy {
  margin-left: auto;
  margin-right: auto;
}

.hero--apple .apple-hero-copy h1 {
  margin-left: auto;
  margin-right: auto;
}

.hero--apple .apple-hero-media {
  margin-top: 24px;
  width: min(980px, 92%);
}

.hero--apple .apple-hero-copy.is-compact {
  width: min(680px, 88%);
  margin-top: clamp(36px, 6vw, 72px);
  gap: 10px;
}

.hero--apple .apple-hero-copy .eyebrow,
.hero--apple .apple-hero-copy .lead {
  color: rgba(245, 245, 247, 0.86);
}

.hero--apple .apple-hero-copy h1,
.hero--apple .apple-hero-copy h2 {
  margin: 0;
  font-size: clamp(42px, 4vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero--apple .apple-hero-copy h1.is-compact,
.hero--apple .apple-hero-copy h2.is-compact {
  font-size: clamp(36px, 3.2vw, 64px);
}

.hero--apple .apple-hero-copy .eyebrow.is-subtle {
  color: rgba(245, 245, 247, 0.7);
}

.hero--apple .apple-hero-copy .cta-row {
  margin-top: 8px;
  justify-content: center;
}

.hero--apple .apple-hero-copy .button {
  background: transparent;
  color: #8ec5ff;
  border: 1px solid rgba(142, 197, 255, 0.44);
}

.hero--apple .apple-hero-copy .button:hover {
  background: rgba(142, 197, 255, 0.12);
}

.hero--apple .apple-hero-copy .button.ghost {
  color: #f5f5f7;
  border-color: rgba(245, 245, 247, 0.44);
  background: rgba(245, 245, 247, 0.08);
}

.hero--apple .apple-hero-placeholder {
  position: relative;
  z-index: 1;
  min-height: 760px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 245, 247, 0.62);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.hero--apple .apple-hero-placeholder.is-compact {
  min-height: 660px;
}

.grid.cols-3,
.apple-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid--apple .card,
.services--apple .card {
  padding: 0;
  overflow: hidden;
}

.feature-grid--apple .card-media,
.services--apple .card-media {
  background: #ececf0;
  border-bottom: 1px solid var(--apple-border);
}

.feature-grid--apple .card-body,
.services--apple .card-body {
  padding: 16px 18px 20px;
}

.feature-grid--apple.apple-module--story-grid .apple-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid--apple.apple-module--story-grid .apple-story-shell {
  display: grid;
  gap: 18px;
}

.feature-grid--apple.apple-module--story-grid .apple-story-intro {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 6px;
}

.feature-grid--apple.apple-module--story-grid .apple-story-lead {
  grid-row: span 2;
  background: #111217;
  color: #f5f5f7;
  border-color: #20222b;
}

.feature-grid--apple.apple-module--story-grid .apple-story-lead .card-media {
  height: 520px;
}

.feature-grid--apple.apple-module--story-grid .apple-story-cards {
  display: grid;
  gap: 16px;
}

.feature-grid--apple.apple-module--story-grid .apple-story-card {
  min-height: 100%;
}

.feature-grid--apple.apple-module--story-grid .apple-story-card .card-media {
  height: 250px;
}

.feature-grid--apple.apple-module--story-grid .apple-story-lead p {
  color: rgba(245, 245, 247, 0.8);
}

.services--apple.apple-module--product-tile-grid .apple-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.services--apple.apple-module--product-tile-grid .apple-product-shell {
  display: grid;
  gap: 18px;
}

.services--apple.apple-module--product-tile-grid .apple-product-intro {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 6px;
}

.services--apple.apple-module--product-tile-grid .apple-product-card {
  min-height: 100%;
}

.services--apple.apple-module--product-tile-grid .apple-product-card .card-media {
  height: 290px;
}

.services--apple.apple-module--product-tile-grid .apple-product-card h3 {
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.services--apple.apple-module--product-tile-grid .apple-product-card--dark {
  background: #0f1116;
  border-color: #20232d;
  color: #f5f5f7;
}

.services--apple.apple-module--product-tile-grid .apple-product-card--dark p {
  color: rgba(245, 245, 247, 0.78);
}

.services--apple.apple-module--product-tile-grid .apple-product-card--dark .inline-link {
  color: #8ec5ff;
}

.services--apple.apple-module--product-tile-grid .apple-product-card--dark .card-media {
  border-bottom-color: #1a1d25;
  background: #0a0b10;
}

.services--apple.apple-module--product-tile-grid .apple-product-card--dark .badge {
  color: #8ec5ff;
  background: rgba(142, 197, 255, 0.12);
  border-color: rgba(142, 197, 255, 0.26);
}

.testimonials--apple.apple-module--press-strip .apple-press-shell {
  display: grid;
  gap: 14px;
}

.testimonials--apple.apple-module--press-strip .apple-press-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 6px;
}

.testimonials--apple.apple-module--press-strip .apple-press-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(340px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scroll-snap-type: x mandatory;
}

.testimonials--apple.apple-module--press-strip .apple-press-item {
  min-height: 220px;
  padding: 22px;
  border-radius: 24px;
  background: var(--apple-panel);
  scroll-snap-align: start;
}

.testimonials--apple.apple-module--press-strip .apple-press-item:nth-child(odd) {
  background: #111217;
  border-color: #20222b;
  color: #f5f5f7;
}

.testimonials--apple.apple-module--press-strip .apple-press-item:nth-child(odd) .muted {
  color: rgba(245, 245, 247, 0.76);
}

.testimonials--apple .quote {
  margin: 0 0 14px;
  font-size: clamp(20px, 1.8vw, 30px);
  line-height: 1.25;
}

.faq--apple details {
  background: #ffffff;
  border: 1px solid var(--apple-border);
  border-radius: 18px;
}

.faq--apple summary {
  font-weight: 600;
}

.faq--apple.apple-module--support-columns .apple-faq-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.faq--apple.apple-module--support-columns .apple-faq-aside {
  border: 1px solid var(--apple-border);
  border-radius: 24px;
  padding: 22px;
  background: var(--apple-panel);
  display: grid;
  gap: 10px;
}

.cta--apple.apple-module--buy-band .apple-cta-band {
  border-radius: 28px;
  border: 1px solid #131419;
  background: linear-gradient(130deg, #111217, #1b1d25);
  color: #f5f5f7;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: center;
}

.cta--apple.apple-module--buy-band .apple-cta-band.is-compact {
  border-radius: 24px;
  padding: 22px;
  gap: 14px;
}

.cta--apple.apple-module--buy-band .eyebrow,
.cta--apple.apple-module--buy-band .lead {
  color: rgba(245, 245, 247, 0.74);
}

.cta--apple.apple-module--buy-band .eyebrow.is-subtle {
  color: rgba(245, 245, 247, 0.62);
}

.cta--apple.apple-module--buy-band .button.ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #f5f5f7;
}

.contacts--apple.apple-module--store-grid .apple-contacts-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.contacts--apple.apple-module--store-grid .apple-contact-card {
  border: 1px solid var(--apple-border);
  border-radius: 24px;
  padding: 16px;
  background: #ffffff;
}

.contacts--apple.apple-module--store-grid .apple-contact-form-wrap .contact-form {
  border: 1px solid var(--apple-border);
  border-radius: 24px;
  background: var(--apple-panel-soft);
}

.contact-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.social-link {
  background: #ffffff;
  border: 1px solid var(--apple-border);
}

.social-icon {
  background: rgba(0, 113, 227, 0.12);
  color: #0059b3;
  border-radius: 999px;
}

.site-footer {
  background: #f5f5f7;
  border-top: 1px solid var(--apple-border);
}

.footer-meta {
  color: var(--apple-muted);
}

@media (max-width: 1200px) {
  .hero--apple .apple-hero-stage,
  .feature-grid--apple.apple-module--story-grid .apple-story-grid,
  .services--apple.apple-module--product-tile-grid .apple-product-grid,
  .faq--apple.apple-module--support-columns .apple-faq-shell,
  .cta--apple.apple-module--buy-band .apple-cta-band,
  .contacts--apple.apple-module--store-grid .apple-contacts-grid {
    grid-template-columns: 1fr;
  }
  .hero--apple .apple-hero-stage,
  .hero--apple .apple-hero-placeholder {
    min-height: 460px;
  }
  .feature-grid--apple.apple-module--story-grid .apple-story-lead .card-media {
    height: 340px;
  }
}

@media (max-width: 760px) {
  .grid.cols-3,
  .apple-card-grid {
    grid-template-columns: 1fr;
  }
  .hero--apple .apple-hero-stage,
  .hero--apple .apple-hero-placeholder {
    min-height: 340px;
  }
  .feature-grid--apple.apple-module--story-grid .apple-story-grid,
  .services--apple.apple-module--product-tile-grid .apple-product-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid--apple.apple-module--story-grid .apple-story-lead {
    grid-row: auto;
  }
  .feature-grid--apple.apple-module--story-grid .apple-story-lead .card-media,
  .feature-grid--apple.apple-module--story-grid .apple-story-card .card-media,
  .services--apple.apple-module--product-tile-grid .apple-product-card .card-media {
    height: 240px;
  }
}

/* Hard overrides for NudgeFlow build: no donor logo + centered hero copy */
.brand--apple::before,
.brand--apple::after,
.brand--apple .brand-logo,
.brand--apple [class*="logo"],
.brand--apple [class*="icon"] {
  content: none !important;
  display: none !important;
}

.brand--apple {
  gap: 0 !important;
}

.hero--apple .apple-hero-stage {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero--apple .apple-hero-copy {
  width: min(860px, 92%) !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  justify-self: center !important;
  align-self: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.hero--apple .apple-hero-copy,
.hero--apple .apple-hero-copy * {
  text-align: center !important;
}

.hero--apple .apple-hero-media {
  width: min(980px, 92%) !important;
  margin: 24px auto 0 !important;
  justify-self: center !important;
  align-self: center !important;
}
