/* Cookbook landing page: standalone bar/footer plus cookbook-specific blocks.
   The shared studio components come from /assets/styles.css. */

.lp-body {
  background: var(--white);
}

/* slim top bar (no site nav: this is an ad landing page) */
.lp-bar {
  background: var(--navy-2);
  color: #fff;
}

.lp-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.4rem;
  padding: .9rem 0;
}

.lp-logo img {
  width: 170px;
  height: auto;
}

.lp-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.lp-bar-mail,
.lp-bar-call {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--pill);
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

.lp-bar-mail:hover,
.lp-bar-call:hover {
  border-color: var(--teal);
  background: rgba(78, 216, 200, .14);
}

.lp-bar-call {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
}

.lp-bar-call:hover {
  background: #fff;
  border-color: #fff;
}

@media (max-width: 560px) {
  .lp-bar-mail span {
    display: none;
  }
}

/* hero extras */
.cb-hero h1 {
  max-width: 18ch;
}

.cb-hero-uses {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.4rem;
}

.cb-hero-uses span {
  padding: .3rem .8rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--pill);
  color: #C9D6E8;
  font-size: .8rem;
  font-weight: 600;
}

.cb-form {
  margin-top: 0;
}

/* sample spread */
.cb-sample-sec {
  background:
    radial-gradient(900px 500px at 50% 0, rgba(255, 255, 255, .9), transparent 70%),
    linear-gradient(180deg, #F2EDE4, #EAF1F0);
}

.cb-spread {
  margin-top: 2rem;
}

.cb-spread .fm-spread {
  max-width: 900px;
}

.cb-spread-notes {
  display: grid;
  gap: .8rem;
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .cb-spread-notes {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cb-spread-notes li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: .92rem;
}

.cb-spread-notes b {
  color: var(--navy);
}

.cb-spread-notes svg {
  flex: none;
  margin-top: .25rem;
  color: var(--teal-2);
}

.cb-sample-sec .il-note {
  margin-top: 1.6rem;
  text-align: center;
}

/* portfolio marquee */
.cb-folio-sec {
  overflow: hidden;
  padding: clamp(3rem, 5.6vw, 4.8rem) 0;
  background: var(--navy);
  color: #fff;
}

.cb-folio-sec .il-head h2 {
  color: #fff;
}

.cb-folio-sec .il-head .lede {
  color: #C9D6E8;
}

.cb-folio {
  margin-top: 2.2rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.cb-folio-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: cbSlide 48s linear infinite;
}

.cb-folio-track:hover {
  animation-play-state: paused;
}

.cb-folio-track img {
  width: 190px;
  height: 266px;
  object-fit: cover;
  border-radius: 4px 8px 8px 4px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .45);
}

@keyframes cbSlide {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .cb-folio-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}

/* uses */
.cb-uses {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

@media (min-width: 620px) {
  .cb-uses {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .cb-uses {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cb-uses article {
  padding: 1.7rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.cb-uses article:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh);
}

.cb-use-ic {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: var(--navy);
}

.cb-uses h3 {
  margin: 1rem 0 .5rem;
  font-size: 1.15rem;
}

.cb-uses p {
  color: var(--muted);
  font-size: .93rem;
}

/* why us */
.cb-why-sec {
  background: var(--mint);
}

.cb-why {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

@media (min-width: 820px) {
  .cb-why {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cb-why article {
  padding: 1.8rem 1.6rem;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--sh-sm);
}

.cb-why h3 {
  margin: 0 0 .6rem;
  font-size: 1.2rem;
}

.cb-why p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

/* closing quote block */
.cb-quote-sec {
  color: #fff;
  background:
    radial-gradient(700px 400px at 12% 0, rgba(78, 216, 200, .16), transparent 70%),
    linear-gradient(160deg, #0F2340, #132B4E);
}

.cb-quote {
  display: grid;
  gap: 2.6rem;
  align-items: center;
}

@media (min-width: 900px) {
  .cb-quote {
    grid-template-columns: 1.05fr .95fr;
  }
}

.cb-quote h2 {
  color: #fff;
}

.cb-quote .lede {
  color: #C9D6E8;
}

.cb-quote-points {
  display: grid;
  gap: .7rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.cb-quote-points li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  color: #E8EDF5;
  font-size: .95rem;
}

.cb-quote-points svg {
  flex: none;
  margin-top: .25rem;
  color: var(--teal);
}

.cb-quote-contact {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.6rem;
}

.cb-quote-contact a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--pill);
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
}

.cb-quote-contact a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.cb-quote .il-form {
  margin-top: 0;
}

/* footer */
.lp-foot {
  padding: 2.4rem 0;
  background: var(--navy-2);
  color: #B4C3D6;
  font-size: .88rem;
}

.lp-foot .wrap {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 760px) {
  .lp-foot .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.lp-foot img {
  width: 160px;
  height: auto;
  margin-bottom: .7rem;
}

.lp-foot p {
  margin: 0;
  line-height: 1.6;
}

.lp-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
}

.lp-foot nav a {
  color: #fff;
  font-weight: 600;
}

.lp-foot nav a:hover {
  color: var(--teal);
}

.lp-foot-legal {
  grid-column: 1 / -1;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #8FA3B8;
  font-size: .8rem;
}

/* phones: swipe between the sample pages, as on the formatting page */
@media (max-width: 699px) {
  .cb-spread .fm-spread {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    filter: none;
  }

  .cb-spread .fm-page {
    flex: 0 0 84%;
    scroll-snap-align: center;
    border-radius: 6px;
    transform: none;
    box-shadow: 0 14px 26px rgba(19, 43, 78, .2);
  }

  .cb-spread::after {
    content: "Swipe to turn the page \2192";
    display: block;
    margin-top: .6rem;
    color: var(--muted);
    font-size: .8rem;
    text-align: center;
  }
}

/* long-form prose blocks */
.cb-prose-sec--alt {
  background: var(--cream-2);
}

.cb-prose {
  display: grid;
  gap: 2.4rem;
  align-items: start;
}

@media (min-width: 900px) {
  .cb-prose {
    grid-template-columns: 1.25fr .75fr;
  }

  .cb-prose--rev {
    grid-template-columns: 1.15fr .85fr;
  }
}

.cb-prose h2 {
  margin-bottom: 1rem;
}

.cb-prose h3 {
  margin: 1.8rem 0 .6rem;
  font-size: 1.15rem;
}

.cb-prose p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.cb-prose p strong {
  color: var(--navy);
}

.cb-prose-card {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--sh-sm);
}

.cb-prose-card > b {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.cb-prose-card ul {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.cb-prose-card li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px dotted var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.cb-prose-card i {
  flex: none;
  color: var(--navy);
  font-style: normal;
  font-weight: 700;
}

.cb-prose-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}

.cb-prose-card > a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--teal-2);
  font-size: .86rem;
  font-weight: 700;
}

/* detail card grids */
.cb-detail {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .cb-detail {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1050px) {
  .cb-detail {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cb-detail--3 article {
  padding: 1.8rem 1.6rem;
}

.cb-detail article {
  padding: 1.5rem 1.4rem;
  border-left: 3px solid var(--teal);
  border-radius: 0 18px 18px 0;
  background: #fff;
  box-shadow: var(--sh-sm);
}

.cb-detail h3 {
  margin: 0 0 .5rem;
  font-size: 1.08rem;
}

.cb-detail p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.65;
}

/* binding list */
.cb-bindings {
  display: grid;
  gap: .7rem;
}

.cb-bindings div {
  display: grid;
  gap: .15rem;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.cb-bindings b {
  color: var(--navy);
  font-size: .95rem;
}

.cb-bindings span {
  color: var(--muted);
  font-size: .85rem;
}

/* Progressive enhancement: content is visible without JS. A script in the
   head adds .js-reveal to <html> before the first paint, which arms the
   scroll animation; a failsafe removes it again if the observer never starts. */
.reveal,
.reveal-l {
  opacity: 1;
  transform: none;
}

.js-reveal .reveal:not(.in) {
  opacity: 0;
  transform: translateY(26px);
}

.js-reveal .reveal-l:not(.in) {
  opacity: 0;
  transform: translateX(-30px);
}