:root {
  --white: #ffffff;
  --off-white: #f7f5f2;
  --navy: #0b1a2b;
  --navy-soft: #1e3a5f;
  --coral: #f97066;
  --coral-soft: rgba(249, 112, 102, 0.12);
  --coral-hover: #e85a4f;
  --text-muted: rgba(11, 26, 43, 0.65);
  --border: rgba(11, 26, 43, 0.08);
  --shadow: 0 4px 24px rgba(11, 26, 43, 0.06);
  --shadow-lg: 0 12px 40px rgba(11, 26, 43, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --max-width: 1120px;
  --header-height: 72px;
  --font-heading: "Nunito Sans", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--coral);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral-hover);
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
}

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

.container {
  width: min(100% - 48px, var(--max-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo-link {
  flex-shrink: 0;
  line-height: 0;
}

.logo-link img {
  width: 148px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.site-nav a:hover {
  color: var(--coral);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--coral);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--coral-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 15px;
}

.btn--ghost:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--coral);
  background: var(--coral-soft);
  border-radius: var(--radius-pill);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

/* Hero */

.hero {
  padding: 80px 0 96px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__content {
  max-width: 520px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero__lead {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__photo-frame {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  border: 0;
  outline: none;
}

.hero__pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.hero__pin-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -100%) scale(var(--scale, 1));
  z-index: 2;
}

.hero__pin-stack {
  position: relative;
  width: 36px;
  height: 44px;
  perspective: 320px;
}

.hero__pin-flip {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transform-origin: 50% 95%;
  animation: hero-pin-spin-y 5s linear infinite;
  animation-delay: var(--delay, 0s);
}

.hero__pin-icon {
  display: block;
  width: 100%;
  height: auto;
  backface-visibility: hidden;
  filter: drop-shadow(0 4px 12px rgba(11, 26, 43, 0.4));
}

.hero__halo {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2px solid rgba(249, 112, 102, 0.75);
  box-shadow: 0 0 12px rgba(249, 112, 102, 0.35);
  animation: hero-halo-pulse 3s ease-out infinite;
  animation-delay: var(--delay, 0s);
}

.hero__halo--echo {
  animation-delay: calc(var(--delay, 0s) + 1.5s);
  border-color: rgba(249, 112, 102, 0.45);
}

@keyframes hero-halo-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  70% {
    opacity: 0.35;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

@keyframes hero-pin-spin-y {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__pin-flip,
  .hero__halo {
    animation: none;
  }

  .hero__halo {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

/* Sections */

.section {
  padding: 96px 0;
}

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

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__eyebrow {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin-bottom: 12px;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.section__intro {
  color: var(--text-muted);
  margin: 0;
  font-size: 18px;
}

/* Cards */

.card-grid {
  display: grid;
  gap: 24px;
}

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

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

.card-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}

.card p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Feature carousel */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.feature-carousel {
  max-width: 880px;
  margin-inline: auto;
}

.feature-carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.feature-carousel__track {
  position: relative;
}

.feature-card {
  display: none;
  grid-template-columns: auto 1fr;
  gap: 28px 32px;
  align-items: start;
  width: 100%;
  padding: 36px 40px;
  margin: 0;
}

.feature-card.is-active {
  display: grid;
  animation: feature-fade-in 0.45s ease-out;
}

@keyframes feature-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card__icon {
  width: 48px;
  height: 48px;
}

.feature-card__body h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
}

.feature-card__body p {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 62ch;
}

.feature-card__body p:last-child {
  margin-bottom: 0;
}

.feature-card__summary,
.card__summary,
.persona-card__summary,
.moment__summary {
  margin: 16px 0 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--navy) !important;
  line-height: 1.45 !important;
  max-width: none !important;
}

.feature-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.feature-carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.feature-carousel__btn:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.feature-carousel__btn svg {
  width: 20px;
  height: 20px;
}

.feature-carousel__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(11, 26, 43, 0.2);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.feature-carousel__dot.is-active {
  background: var(--coral);
  transform: scale(1.15);
}

.feature-carousel__dot:hover {
  background: var(--coral-hover);
}

@media (prefers-reduced-motion: reduce) {
  .feature-card.is-active {
    animation: none;
  }
}

@media (max-width: 640px) {
  .feature-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 24px;
  }

  .feature-card__icon {
    width: 40px;
    height: 40px;
  }
}

/* Moment section */

.moment {
  background: var(--white);
}

.moment__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 48px;
}

.moment__content .section__eyebrow {
  display: block;
  margin-bottom: 12px;
}

.moment__content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.moment__lead {
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 16px;
  line-height: 1.6;
  max-width: 52ch;
}

.moment__body {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 52ch;
}

.moment__scenario {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.moment__step {
  flex: 1;
  text-align: center;
}

.moment__step-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.moment__step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  box-shadow: var(--shadow);
}

.moment__step-card--highlight {
  border-color: rgba(249, 112, 102, 0.35);
  background: var(--coral-soft);
}

.moment__step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  font-size: 22px;
  background: var(--white);
  border-radius: 50%;
  border: 1px solid var(--border);
}

.moment__step-card--highlight .moment__step-icon {
  border-color: rgba(249, 112, 102, 0.35);
  color: var(--coral);
}

.moment__step-name {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
}

.moment__step-detail {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.moment__arrow {
  flex-shrink: 0;
  color: var(--coral);
  opacity: 0.7;
}

.moment__arrow svg {
  width: 40px;
  height: 24px;
}

.moment__examples {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.moment__examples li {
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
  background: var(--off-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.moment__examples li p {
  margin: 0 0 10px;
}

.card-title-pin {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.card-title-pin strong {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.pin-bullet {
  flex-shrink: 0;
  width: 22px;
  height: 28px;
  display: block;
}

.card__pin-corner {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 26px;
  height: 32px;
  display: block;
  pointer-events: none;
}

.moment__examples li .card__summary {
  margin-top: 10px !important;
  font-size: 14px !important;
}

@media (max-width: 900px) {
  .moment__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 520px) {
  .moment__scenario {
    flex-direction: column;
    padding: 24px 20px;
  }

  .moment__arrow {
    transform: rotate(90deg);
  }
}

.examples-grid .example-card p:not(.card__summary) {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Example cards — legacy quote style (unused) */

.example-card {
  position: relative;
}

.example-card__title {
  display: block;
  padding-right: 40px;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.example-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--navy-soft);
}

.example-card blockquote {
  margin: 0 0 12px;
  font-size: 16px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Personas */

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.persona-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

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

.persona-card__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin: 0 0 12px;
  padding-right: 40px;
}

.persona-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.35;
  padding-right: 40px;
}

.persona-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.persona-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.persona-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0.7;
}

.persona-card li:last-child {
  margin-bottom: 0;
}

/* About */

.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__photo {
  object-position: center 35%;
}

.about__content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 24px;
  line-height: 1.2;
}

.about__content p {
  margin: 0 0 16px;
  color: var(--text-muted);
  max-width: 58ch;
  line-height: 1.65;
}

.about__content p:last-child {
  margin-bottom: 0;
}

/* CTA */

.cta {
  text-align: center;
  padding: 96px 0;
  background: var(--navy);
  color: var(--white);
}

.cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--white);
}

.cta p {
  margin: 0 auto 32px;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
}

.cta .btn--primary {
  font-size: 17px;
  padding: 16px 32px;
}

.cta a:not(.btn) {
  color: var(--white);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}

.cta a:not(.btn):hover {
  color: var(--coral);
}

/* Footer */

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--coral);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (max-width: 1024px) {
  .card-grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--5 .card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__visual {
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }

  .hero__content {
    max-width: none;
    text-align: center;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .card-grid--2,
  .card-grid--3,
  .persona-grid {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__visual {
    order: -1;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-of-type {
    border-bottom: none;
  }

  .site-nav .btn--ghost {
    margin-top: 12px;
    text-align: center;
  }

  .card-grid--5 {
    grid-template-columns: 1fr;
  }

  .card-grid--5 .card:last-child {
    max-width: none;
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 32px, var(--max-width));
  }

  .logo-link img {
    width: 120px;
  }
}
