:root {
  --paper: #eef3f7;
  --ink: #0a0c10;
  --muted: rgba(10, 12, 16, 0.56);
  --quiet: rgba(10, 12, 16, 0.38);
  --line: rgba(10, 12, 16, 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: clip;
  background-color: var(--paper);
  background-image:
    radial-gradient(110% 70% at 0% -5%, rgba(132, 184, 224, 0.42), transparent 55%),
    radial-gradient(90% 55% at 100% 8%, rgba(168, 198, 220, 0.28), transparent 50%),
    radial-gradient(70% 45% at 50% 100%, rgba(196, 210, 222, 0.35), transparent 55%),
    linear-gradient(165deg, #e6eef5 0%, #f2f5f8 42%, #e9eef3 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0 clamp(18px, 3vw, 40px);
  overflow-x: clip;
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  font: inherit;
}

.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;
}

.captain-header,
main,
.captain-footer {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.captain-header {
  min-height: 160px;
  padding: 36px 0 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.captain-profile {
  display: flex;
  align-items: center;
  transition: color 180ms ease-out;
}

.captain-profile:hover,
.captain-profile:focus-visible {
  color: var(--muted);
}

.captain-profile:focus-visible,
.captain-cta:focus-visible,
.faq-list summary:focus-visible {
  border-radius: 6px;
  outline: 2px solid rgba(0, 0, 0, 0.82);
  outline-offset: 6px;
}

.captain-avatar {
  width: 72px;
  height: 72px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

.story {
  width: min(100%, 600px);
  margin: 0 auto 0 0;
  padding: clamp(54px, 7vw, 96px) 0 clamp(56px, 7vw, 88px);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  text-align: left;
}

.story-copy {
  margin: 0;
  color: rgba(0, 0, 0, 0.9);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: -0.014em;
}

.story-copy p {
  margin: 0;
}

.story-copy p + p {
  margin-top: 1.5em;
}

.story-action {
  margin-top: clamp(38px, 5vw, 58px);
  display: grid;
  justify-items: start;
  gap: 15px;
}

.captain-cta {
  min-height: 58px;
  padding: 0 12px 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  transition: transform 240ms var(--ease-out);
}

.captain-cta:hover,
.captain-cta:focus-visible {
  transform: translateY(-2px);
}

.cta-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 17px;
}

.captain-footer {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.faq {
  width: min(100%, 680px);
  margin: 0 auto 0 0;
  padding: clamp(40px, 5vw, 64px) 0 clamp(80px, 10vw, 128px);
}

.faq-heading {
  margin-bottom: clamp(28px, 4vw, 40px);
  text-align: left;
}

.faq-heading h2 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 92px;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary::after {
  content: "+";
  flex: none;
  color: var(--ink);
  font-size: 22px;
  font-weight: 400;
  transition: transform 220ms var(--ease-out);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 620px;
  margin: -4px 46px 36px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.captain-footer {
  min-height: 80px;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 720ms var(--ease-out),
    transform 880ms var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0) * 110ms);
}

.js [data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  .captain-header {
    min-height: 148px;
    padding: 28px 0 24px;
  }

  .captain-avatar {
    width: 64px;
    height: 64px;
  }

  .story {
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .story-copy {
    font-size: 16px;
    line-height: 1.65;
  }

  .faq {
    padding: 36px 0 96px;
  }

  .faq-list summary {
    min-height: 84px;
    padding: 24px 0;
  }
}

@media (max-width: 420px) {
  .story-action,
  .captain-cta {
    width: 100%;
  }

  .captain-cta {
    justify-content: space-between;
  }

  .faq-list details p {
    margin-right: 20px;
  }
}

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

  .captain-cta,
  .faq-list summary::after,
  .js [data-reveal] {
    transition: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
