:root {
  --navy: #08062b;
  --teal: #00757f;
  --teal-bright: #0baeba;
  --mint: #a9ebe9;
  --mint-light: #c8f4f1;
  --periwinkle: #bfcbeb;
  --periwinkle-light: #d4dcf2;
  --border: #5f84d3;
  --white: #ffffff;
  --black: #050505;
  --max-width: 1180px;
  --font-condensed: "Arial Narrow", "Aptos Narrow", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--periwinkle);
  font-family: var(--font-condensed);
  font-size: 1rem;
  line-height: 1.45;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

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

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

:focus-visible {
  outline: 4px solid var(--navy);
  outline-offset: 4px;
}

.content-wrap,
.header-inner {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  background: linear-gradient(100deg, var(--mint-light), var(--mint));
  border-bottom: 1px solid rgba(8, 6, 43, 0.08);
}

.header-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.brand-name {
  color: var(--navy);
  font-size: clamp(2.8rem, 5vw, 4.1rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.brand-name span,
.video-brand span {
  color: var(--teal-bright);
}

.brand-tagline {
  margin-top: 0.35rem;
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  font-weight: 800;
  line-height: 1;
}

.nav-list,
.footer-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nav-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--border);
  border-radius: 0.85rem;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(8, 6, 43, 0.05);
}

a.nav-button:hover {
  background: rgba(255, 255, 255, 0.32);
}

.nav-button:disabled,
.store-badge:disabled,
.video-placeholder:disabled {
  color: inherit;
  opacity: 1;
  cursor: not-allowed;
}

.preparation-section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.25rem, 4vw, 3.5rem);
  background: linear-gradient(120deg, var(--periwinkle-light), var(--periwinkle));
}

.hero-media {
  width: min(850px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, 0.8fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  margin-inline: auto;
}

.video-placeholder {
  position: relative;
  width: 100%;
  min-height: 325px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  overflow: hidden;
  color: var(--navy);
  background: #000;
  border: 2px solid var(--border);
  border-radius: 1rem;
  object-fit: contain;
}

.video-brand {
  font-size: clamp(3.75rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.play-button {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  background: var(--white);
  border-radius: 50%;
}

.play-button span {
  width: 0;
  height: 0;
  margin-left: 0.5rem;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  border-left: 36px solid var(--navy);
}

.placeholder-label,
.image-placeholder > span {
  padding: 0.3rem 0.55rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed var(--border);
  border-radius: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.image-placeholder {
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 2px dashed var(--border);
}

.pip-guide {
  height: 300px;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.pip-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.preparation-section h1 {
  margin: clamp(2rem, 4vw, 3.5rem) 0 1.5rem;
  font-size: clamp(2.75rem, 6vw, 4.7rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  text-align: center;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.benefit-card {
  min-height: 205px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(135deg, var(--mint-light), var(--mint));
  border: 2px solid var(--border);
  border-radius: 1rem;
  text-align: center;
}

.benefit-card h2 {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.benefit-card p {
  margin: 0;
  color: var(--black);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.65;
}

.audience-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--mint-light);
}

.audience-section::before {
  position: absolute;
  z-index: 0;
  top: auto;
  height: 385px;
  right: 0;
  bottom: 0;
  width: min(100%, 882px);
  content: "";
  pointer-events: none;
  background: url("assets/images/backgrounds/care65-ladies-section-background.png") right bottom / auto 385px no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 8%);
  mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 8%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.audience-grid {
  position: relative;
  z-index: 1;
  min-height: 385px;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.6fr);
  align-items: stretch;
  gap: clamp(2rem, 5vw, 4rem);
}

.audience-section h2 {
  align-self: center;
  margin: 0;
  padding-block: 2rem;
  font-size: clamp(2rem, 4.5vw, 3.65rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.34;
}

.audience-photo {
  align-self: end;
  display: block;
  width: 100%;
  height: 385px;
  object-fit: contain;
  object-position: right bottom;
  transform: translateX(clamp(0.75rem, calc((100vw - var(--max-width)) / 2), 3rem));
}

@media (min-width: 981px) {
  .audience-section::before {
    right: max(0px, calc((100% - 1000px) / 2 - 9vw));
  }

  .audience-grid {
    width: min(100% - 3rem, 1000px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
  }

  .audience-photo {
    width: auto;
    max-width: 100%;
    object-position: center bottom;
    transform: none;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .audience-section h2 {
    text-align: center;
  }

  .audience-photo {
    width: 100%;
    object-position: center bottom;
    transform: none;
  }
}

.download-section {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 1.25rem;
  background: linear-gradient(120deg, var(--periwinkle-light), var(--periwinkle));
}

.download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-icon {
  display: block;
  width: 132px;
  max-width: 35vw;
  height: auto;
  object-fit: contain;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 16%;
  box-shadow: none;
}

.download-section h2 {
  margin: 0.8rem 0 0.6rem;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-align: center;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.35rem;
}

.store-badge {
  position: relative;
  min-width: 248px;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.8rem;
  padding: 0.5rem 1.2rem 0.9rem;
  color: var(--white);
  background: var(--black);
  border: 2px solid var(--black);
  border-radius: 0.55rem;
  font-size: 1.75rem;
  line-height: 1;
  text-align: left;
}

.store-badge small {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.store-mark {
  font-size: 2.3rem;
}

.play-store-mark {
  color: var(--teal-bright);
}

.badge-placeholder {
  position: absolute;
  right: 0.45rem;
  bottom: 0.2rem;
  color: #d6d6d6;
  font-size: 0.58rem;
  letter-spacing: 0.03em;
}

.site-footer {
  padding: 0.7rem 1.5rem;
  color: var(--navy);
  background: var(--teal-bright);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  text-align: center;
}

.footer-list {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.footer-list li {
  display: flex;
  align-items: center;
}

.footer-list li + li::before {
  content: "|";
  margin-inline: 1.15rem;
}

[aria-disabled="true"],
button:disabled {
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .header-inner {
    flex-direction: column;
    justify-content: center;
  }

  .brand {
    align-items: center;
  }

  .nav-list {
    justify-content: center;
  }

  .hero-media {
    grid-template-columns: minmax(0, 1.55fr) minmax(180px, 0.7fr);
  }

  .benefit-card p br {
    display: none;
  }
}

@media (max-width: 720px) {
  .content-wrap,
  .header-inner {
    width: min(100% - 2rem, var(--max-width));
  }

  .header-inner {
    gap: 1.25rem;
  }

  .nav-list {
    gap: 0.65rem;
  }

  .nav-list li {
    flex: 1 1 calc(50% - 0.65rem);
  }

  .nav-button {
    width: 100%;
    min-height: 50px;
    padding: 0.65rem 0.75rem;
    white-space: normal;
  }

  .hero-media,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .video-placeholder {
    min-height: 280px;
  }

  .pip-guide {
    height: 230px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: 165px;
  }

  .audience-grid {
    gap: 0;
  }

  .audience-section h2 {
    text-align: center;
  }

  .audience-section::before {
    width: 100%;
    height: 290px;
    background-size: auto 290px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 8%);
    mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 8%);
  }

  .audience-photo {
    height: 290px;
    object-position: center bottom;
    transform: none;
  }
}

@media (max-width: 460px) {
  .nav-list li {
    flex-basis: 100%;
  }

  .preparation-section h1 {
    font-size: 2.65rem;
  }

  .audience-section h2 br {
    display: none;
  }

  .store-badges,
  .store-badge {
    width: 100%;
  }

  .footer-list {
    flex-direction: column;
    gap: 0.4rem;
  }

  .footer-list li + li::before {
    content: none;
  }
}

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

/* Privacy policy: reuse the site's typography, colours and responsive shell. */
.privacy-page {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(120deg, var(--periwinkle-light), var(--periwinkle));
}

.privacy-content {
  max-width: 780px;
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.privacy-content h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 5vw, 3.65rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.privacy-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
}

.privacy-content p {
  margin: 0 0 1rem;
}

.privacy-meta p {
  margin-bottom: 0.25rem;
}

.privacy-content ul {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}

.privacy-content li + li {
  margin-top: 0.4rem;
}

.privacy-signoff {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
  text-align: center;
}

/* Provider Resources: existing Care65 palette, type and navigation buttons. */
.resources-page {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(120deg, var(--periwinkle-light), var(--periwinkle));
}

.resources-page h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 5vw, 3.65rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.resources-intro {
  max-width: 780px;
  margin-bottom: 2rem;
  font-size: 1.125rem;
  line-height: 1.7;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.resource-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(135deg, var(--mint-light), var(--mint));
  border: 2px solid var(--border);
  border-radius: 1rem;
  overflow-wrap: anywhere;
}

.resource-card h2 {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-size: 1.75rem;
  line-height: 1.2;
}

.resource-card p {
  margin: 0 0 1.5rem;
  color: var(--black);
  font-size: 1.125rem;
  line-height: 1.65;
}

.resource-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.resource-actions .nav-button {
  white-space: normal;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.resource-new-tab {
  font-size: 0.875rem;
}

.resource-card .resource-unavailable {
  margin: auto 0 0;
  font-weight: 700;
}

@media (max-width: 980px) {
  .resources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .resources-grid { grid-template-columns: 1fr; }
}

/* Consumer FAQs: native details/summary provide keyboard and expanded-state semantics. */
.faq-page {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(120deg, var(--periwinkle-light), var(--periwinkle));
}

.faq-content {
  max-width: 900px;
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.faq-content h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 5vw, 3.65rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.faq-intro { margin: 0 0 2rem; }

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: linear-gradient(135deg, var(--mint-light), var(--mint));
  border: 2px solid var(--border);
  border-radius: 1rem;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 1.25rem;
  cursor: pointer;
  list-style: none;
  border-radius: 0.85rem;
}

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

.faq-item summary:hover { background: rgba(255, 255, 255, 0.32); }

.faq-item h2,
.faq-help h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.4;
}

.faq-indicator {
  flex: 0 0 1.5rem;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.faq-indicator::before { content: "+"; }
.faq-item[open] .faq-indicator::before { content: "−"; }

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

.faq-help { margin-top: 2.5rem; }
.faq-help p { margin: 0.75rem 0 0; }

/* Support: existing Care65 typography, palette and navigation buttons. */
.support-page {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(120deg, var(--periwinkle-light), var(--periwinkle));
}

.support-content {
  max-width: 900px;
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.support-content h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 5vw, 3.65rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.support-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
}

.support-content p { margin: 0 0 1rem; }
.support-lead { font-size: 1.375rem; font-weight: 700; }
.support-section { margin-top: 2.5rem; }

.support-content ul {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.support-content li + li { margin-top: 0.4rem; }

.support-action {
  min-height: 58px;
  max-width: 100%;
  white-space: normal;
}

.support-content .support-email { margin: 0.75rem 0 0; }

.support-privacy {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(135deg, var(--mint-light), var(--mint));
  border: 2px solid var(--border);
  border-radius: 1rem;
}

.support-privacy p:last-child { margin-bottom: 0; }
.support-emergency { margin-top: 1.5rem; }

@media (max-width: 720px) {
  .support-action { width: 100%; }
}

/* Consistent home navigation below each secondary page header. */
.return-home-bar {
  padding-top: 1.5rem;
}

.return-home-link {
  width: auto;
  max-width: 100%;
  white-space: normal;
}

/* Personal letter: comfortable paragraph spacing and a quiet sign-off. */
.maker-letter p { margin-bottom: 1.5rem; }
.maker-letter .maker-signoff { margin-top: 2rem; }
.maker-caption { font-size: 1rem; }
