/* CrewBook paid-traffic page. It intentionally has no navigation or light theme. */

.crewbook-page {
  min-width: 20rem;
  overflow-x: hidden;
  background:
    radial-gradient(90% 38rem at 50% 18rem, rgba(212, 162, 74, 0.09), transparent 70%),
    var(--deep);
}

.crewbook-shell {
  width: min(calc(100% - 3rem), 70rem);
  margin-inline: auto;
}

.crewbook-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  padding-block: 1.75rem;
}

.crewbook-header img {
  width: 12.75rem;
  height: auto;
}

.crewbook-hero {
  position: relative;
  min-height: 47rem;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 8.5rem 0 5rem;
  background:
    radial-gradient(100% 72% at 50% 106%, rgba(240, 196, 107, 0.2), rgba(212, 162, 74, 0.04) 38%, transparent 67%),
    linear-gradient(180deg, #050d16 0%, #071523 56%, #0a1c2c 100%);
  border-bottom: 1px solid var(--line-2);
}

.crewbook-hero::before {
  position: absolute;
  inset: 0 0 34%;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 14% 27%, #cfe0f0, transparent),
    radial-gradient(1px 1px at 33% 12%, #bcd0e6, transparent),
    radial-gradient(1px 1px at 62% 32%, #e6eef8, transparent),
    radial-gradient(1px 1px at 78% 17%, #aac2dc, transparent),
    radial-gradient(1px 1px at 91% 43%, #cfe0f0, transparent);
  content: "";
}

.crewbook-hero::after {
  position: absolute;
  right: 0;
  bottom: 14%;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 196, 107, 0.62), transparent);
  content: "";
}

.crewbook-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(21rem, 0.96fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.crewbook-hero-copy h1 {
  max-width: 10.5ch;
  font-size: clamp(3.25rem, 6.6vw, 5.7rem);
}

.crewbook-hero-copy > p {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--slate);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.app-store-link {
  width: fit-content;
  margin-top: 2rem;
  display: inline-block;
  border-radius: 0.55rem;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.app-store-link img {
  width: 11.25rem;
  height: auto;
}

.app-store-link:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.crewbook-globe {
  position: relative;
  aspect-ratio: 1;
}

.crewbook-globe::before {
  position: absolute;
  z-index: -1;
  inset: 7%;
  background: rgba(240, 196, 107, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 8rem rgba(212, 162, 74, 0.24);
  content: "";
}

.crewbook-globe img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 2.5rem 2.75rem rgba(1, 5, 10, 0.72));
}

.crewbook-demo-band {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}

.crewbook-demo-grid {
  display: grid;
  justify-items: center;
}

.crewbook-demo {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 2rem;
}

.crewbook-demo video {
  width: min(100%, 25rem);
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #02070c;
  border: 1px solid var(--line-2);
  border-radius: 1.6rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.34);
}

.crewbook-demo figcaption {
  max-width: 25ch;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}

.crewbook-oooi {
  position: relative;
  scroll-margin-top: 2rem;
  overflow: hidden;
  padding: clamp(5.5rem, 10vw, 8.5rem) 0;
  background:
    radial-gradient(70% 110% at 82% 48%, rgba(212, 162, 74, 0.1), transparent 65%),
    linear-gradient(135deg, #06101a 0%, var(--navy) 48%, #0a1927 100%);
  border-bottom: 1px solid var(--line);
}

.crewbook-oooi::before {
  position: absolute;
  top: 0;
  right: -12rem;
  width: 36rem;
  height: 36rem;
  border: 1px solid rgba(212, 162, 74, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 6rem rgba(212, 162, 74, 0.025),
    0 0 0 12rem rgba(212, 162, 74, 0.018);
  content: "";
  pointer-events: none;
}

.crewbook-oooi-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(15rem, 0.78fr) minmax(30rem, 1.22fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.crewbook-oooi-kicker {
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-transform: uppercase;
}

.crewbook-oooi-copy h2 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 5.1vw, 4.4rem);
}

.crewbook-oooi-workflow {
  margin: 0;
  padding: clamp(1.15rem, 2.6vw, 1.75rem);
  background: rgba(3, 10, 17, 0.68);
  border: 1px solid var(--line-2);
  border-radius: 1.8rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.3);
}

.crewbook-oooi-steps {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.crewbook-oooi-step {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
}

.crewbook-oooi-step:not(:last-child)::after {
  width: 1px;
  height: 0.75rem;
  position: absolute;
  top: 100%;
  left: 1rem;
  background: linear-gradient(var(--gold), rgba(212, 162, 74, 0.14));
  content: "";
}

.crewbook-oooi-step-number {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  background: rgba(212, 162, 74, 0.08);
  border: 1px solid rgba(212, 162, 74, 0.3);
  border-radius: 50%;
  font-family: var(--font-display);
  font-style: italic;
}

.crewbook-oooi-step-compact {
  min-height: 4.25rem;
  padding: 0.7rem 1rem 0.7rem 0;
  color: var(--ink);
  background: rgba(14, 32, 50, 0.72);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.crewbook-oooi-step-compact .crewbook-oooi-step-number {
  margin-left: -0.02rem;
}

.crewbook-oooi-action,
.crewbook-oooi-reading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.crewbook-oooi-camera {
  width: 1.25rem;
  height: 0.9rem;
  position: relative;
  flex: 0 0 auto;
  border: 1.5px solid var(--gold-bright);
  border-radius: 0.22rem;
}

.crewbook-oooi-camera::before {
  width: 0.45rem;
  height: 0.45rem;
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1.5px solid var(--gold-bright);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.crewbook-oooi-camera::after {
  width: 0.5rem;
  height: 0.18rem;
  position: absolute;
  top: -0.28rem;
  left: 0.16rem;
  background: var(--gold-bright);
  border-radius: 0.1rem 0.1rem 0 0;
  content: "";
}

.crewbook-oooi-progress {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  border: 2px solid rgba(147, 168, 191, 0.28);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
}

.crewbook-oooi-step-review {
  align-items: start;
}

.crewbook-oooi-step-review > .crewbook-oooi-step-number {
  margin-top: 1rem;
}

.crewbook-oooi-draft {
  min-width: 0;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  background: linear-gradient(150deg, rgba(14, 32, 50, 0.96), rgba(8, 19, 31, 0.96));
  border: 1px solid var(--line-2);
  border-radius: 1.2rem;
}

.crewbook-oooi-draft > p {
  margin-bottom: 1.25rem;
  color: var(--slate);
  font-size: 0.78rem;
  line-height: 1.55;
}

.crewbook-oooi-flight,
.crewbook-oooi-times {
  margin: 0;
  display: grid;
}

.crewbook-oooi-flight {
  grid-template-columns: 0.8fr 0.8fr 1.4fr;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.crewbook-oooi-times {
  margin-top: 0.7rem;
  grid-template-columns: repeat(6, 1fr);
  border-block: 1px solid var(--line);
}

.crewbook-oooi-flight > div,
.crewbook-oooi-times > div {
  min-width: 0;
  padding: 0.7rem;
  border-right: 1px solid var(--line);
}

.crewbook-oooi-flight > div:last-child,
.crewbook-oooi-times > div:last-child {
  border-right: 0;
}

.crewbook-oooi-flight dt,
.crewbook-oooi-times dt {
  color: var(--dim);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.crewbook-oooi-flight dd,
.crewbook-oooi-times dd {
  margin: 0.3rem 0 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}

.crewbook-oooi-flight dd {
  font-size: 1.05rem;
}

.crewbook-oooi-times dd {
  font-size: clamp(0.73rem, 1.35vw, 0.86rem);
}

.crewbook-oooi-route dd {
  color: var(--gold-bright);
}

.crewbook-oooi-save {
  width: fit-content;
  min-width: 5rem;
  margin: 1.2rem 0 0 auto;
  padding: 0.55rem 1.15rem;
  display: block;
  color: var(--gold-ink);
  background: var(--gold-bright);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.crewbook-switch {
  scroll-margin-top: 2rem;
  padding: clamp(5.5rem, 11vw, 9rem) 0;
  background:
    radial-gradient(70% 150% at 50% 100%, rgba(212, 162, 74, 0.12), transparent 62%),
    var(--deep);
  border-bottom: 1px solid var(--line);
}

.crewbook-switch h2 {
  max-width: 24ch;
  margin-inline: auto;
  font-size: clamp(2.35rem, 5.2vw, 4.5rem);
  text-align: center;
}

.crewbook-feature-band {
  padding: 1.7rem 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line-2);
}

.crewbook-features {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  list-style: none;
}

.crewbook-features li {
  padding: 0.25rem 1rem;
  color: var(--slate);
  border-right: 1px solid var(--line-2);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.crewbook-features li:last-child {
  border-right: 0;
}

.crewbook-trust {
  padding: clamp(5.5rem, 11vw, 9rem) 0;
  background:
    radial-gradient(75% 75% at 50% 100%, rgba(240, 196, 107, 0.14), transparent 68%),
    linear-gradient(180deg, var(--navy), var(--deep));
}

.crewbook-trust-inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.crewbook-trust p {
  max-width: 36ch;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.7vw, 3rem);
  line-height: 1.25;
  text-wrap: balance;
}

.crewbook-footer {
  padding: 2.75rem 0;
  color: var(--slate);
  background: #030910;
  border-top: 1px solid var(--line-2);
}

.crewbook-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.crewbook-footer p {
  color: var(--ink);
}

.crewbook-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.crewbook-footer a {
  text-decoration-color: rgba(212, 162, 74, 0.55);
}

.crewbook-footer a:hover {
  color: var(--ink);
}

@media (max-width: 800px) {
  .crewbook-shell {
    width: min(calc(100% - 2rem), 70rem);
  }

  .crewbook-header {
    padding-block: 1.35rem;
  }

  .crewbook-header img {
    width: 11rem;
  }

  .crewbook-hero {
    min-height: auto;
    padding: 7.5rem 0 4.5rem;
  }

  .crewbook-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .crewbook-hero-copy {
    text-align: center;
  }

  .crewbook-hero-copy h1,
  .crewbook-hero-copy > p {
    margin-inline: auto;
  }

  .crewbook-hero-copy .app-store-link {
    margin-inline: auto;
  }

  .crewbook-globe {
    width: min(100%, 32rem);
    margin-inline: auto;
  }

  .crewbook-oooi-grid {
    grid-template-columns: 1fr;
  }

  .crewbook-oooi-copy {
    max-width: 38rem;
    text-align: center;
    margin-inline: auto;
  }

  .crewbook-oooi-copy h2 {
    max-width: 17ch;
  }

  .crewbook-oooi-workflow {
    width: min(100%, 39rem);
    margin-inline: auto;
  }

  .crewbook-features {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1rem;
  }

  .crewbook-features li:nth-child(2) {
    border-right: 0;
  }

  .crewbook-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .crewbook-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .crewbook-hero-copy h1 {
    font-size: clamp(2.85rem, 14vw, 4rem);
  }

  .crewbook-features {
    grid-template-columns: 1fr;
  }

  .crewbook-features li,
  .crewbook-features li:nth-child(2) {
    border-right: 0;
  }

  .crewbook-demo video {
    border-radius: 1.1rem;
  }

  .crewbook-oooi {
    padding-block: 4.75rem;
  }

  .crewbook-oooi-workflow {
    margin-inline: -0.15rem;
    padding: 0.75rem;
    border-radius: 1.25rem;
  }

  .crewbook-oooi-step {
    grid-template-columns: 1.75rem minmax(0, 1fr);
    gap: 0.55rem;
  }

  .crewbook-oooi-step-number {
    width: 1.75rem;
    height: 1.75rem;
  }

  .crewbook-oooi-step:not(:last-child)::after {
    left: 0.875rem;
  }

  .crewbook-oooi-step-compact {
    padding-right: 0.65rem;
  }

  .crewbook-oooi-draft {
    padding: 0.9rem;
  }

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

  .crewbook-oooi-flight > div:nth-child(2) {
    border-right: 0;
  }

  .crewbook-oooi-route {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

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

  .crewbook-oooi-times > div:nth-child(3) {
    border-right: 0;
  }

  .crewbook-oooi-times > div:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .crewbook-oooi-times dd {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-store-link {
    transition: none;
  }
}
