/* partners.html only, on top of the homepage's styles. The page keeps
   the homepage's look (cream sections, the same buttons and type); the
   hero is the exception, black with the pitch on the left and a photo
   of add-ons being suggested on the right. Every line is set in
   Manrope: no Soyuz Grotesk here, for a plainer, professional feel. */

:root { --b2b-bg: #0E0F0C; }

/* ---------------------------------------------------------------
   Nav: the wordmark on the left, the dog-parent site on the right.
   main.js still darkens it once it is past the hero.
   --------------------------------------------------------------- */

.site-nav--b2b {
  left: 0;
  right: 0;
  transform: none;
  justify-content: space-between;
  padding: 10px clamp(20px, 3.5vw, 48px);
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-nav--b2b.is-past-hero {
  top: 0;
  padding-top: clamp(14px, 3vw, 28px);
  border-radius: 0;
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 6px 24px rgba(50, 48, 49, 0.08);
}
.site-nav__logo { display: block; line-height: 0; }
.site-nav__logo img { height: 22px; width: auto; }
.site-nav__logo-dark { display: none; }
.site-nav--b2b.is-past-hero .site-nav__logo-light { display: none; }
.site-nav--b2b.is-past-hero .site-nav__logo-dark { display: block; }

.site-nav__link {
  font-family: var(--body-font);
  font-size: var(--type-small);
  font-weight: 600;
  color: #F7F5F0;
  transition: color 120ms var(--ease);
}
.site-nav--b2b.is-past-hero .site-nav__link { color: var(--ink); }

/* ---------------------------------------------------------------
   Buttons: the homepage's pill. White on the black sections, ink on
   the cream ones.
   --------------------------------------------------------------- */

.b2b-cta { text-align: center; }
.on-dark .b2b-cta,
.sticky-cta--b2b .b2b-cta { background: #FFFFFF; color: var(--ink); }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

.hero--b2b {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(16px, 2vw, 32px);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(76px, 9vh, 96px) clamp(16px, 2vw, 28px) clamp(16px, 2vw, 28px);
  background: var(--b2b-bg);
  color: #F7F5F0;
}

.b2b-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(20px, 2.6vw, 30px);
  padding: 24px clamp(8px, 3vw, 48px);
}
.hero--b2b .hero-title {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: var(--type-display);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.hero--b2b .hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  max-width: 44ch;
  text-wrap: balance;
}

/* The panels: one photo at a time, rounded like the phone frame, with
   the add-ons Etho suggests for that service floating on glass across
   its lower left. The active one fades in, then its title and cards
   come up in turn. */
.b2b-panels {
  position: relative;
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  background: #1C1E1A;
}
.b2b-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}
.b2b-panel.is-active { opacity: 1; }
.b2b-panel__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 6s linear;
}
.b2b-panel.is-active .b2b-panel__photo { transform: none; }
.b2b-panel--groom .b2b-panel__photo { object-position: 30% 55%; }
.b2b-panel--stay .b2b-panel__photo { object-position: 50% 45%; }
.b2b-panel--hydro .b2b-panel__photo { object-position: 45% 35%; }
.b2b-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 15, 12, 0) 35%, rgba(14, 15, 12, 0.55) 100%);
}

.b2b-panel__ui {
  position: absolute;
  z-index: 1;
  left: clamp(16px, 2.4vw, 36px);
  right: clamp(16px, 2.4vw, 36px);
  bottom: clamp(16px, 2.4vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.b2b-panel__title {
  margin-bottom: 4px;
  font-family: var(--body-font);
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.b2b-addon {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(380px, 100%);
  padding: 12px;
  border-radius: 20px;
  background: rgba(30, 30, 28, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: #FFFFFF;
  font-family: var(--body-font);
}
.b2b-addon img {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
}
.b2b-addon > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.b2b-addon__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 500;
}
.b2b-addon__tag svg { width: 11px; height: 11px; fill: #FFFFFF; }
.b2b-addon b { font-size: 17px; font-weight: 600; }
.b2b-addon__price { font-size: 14px; color: rgba(255, 255, 255, 0.86); }

.b2b-panel__title,
.b2b-addon {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out);
}
.b2b-panel.is-active .b2b-panel__title,
.b2b-panel.is-active .b2b-addon { opacity: 1; transform: none; }
.b2b-panel.is-active .b2b-panel__title { transition-delay: 350ms; }
.b2b-panel.is-active .b2b-addon { transition-delay: 600ms; }
.b2b-panel.is-active .b2b-addon + .b2b-addon { transition-delay: 800ms; }

@media (prefers-reduced-motion: reduce) {
  .b2b-panel,
  .b2b-panel__photo,
  .b2b-panel__title,
  .b2b-addon { transition: none; }
}

/* Stacked on a phone: the pitch, then the panel. */
@media (max-width: 900px) {
  /* The hero fills the screen: the pitch on top, the storefront
     taking the rest of the height (never shorter than it needs). */
  .hero--b2b {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 88px;
  }
  .b2b-hero__copy { padding: 24px 4px 16px; }
  .b2b-panels { flex: 1 1 auto; min-height: max(100vw, 360px); border-radius: 22px; }
  .b2b-addon img { width: 56px; height: 56px; }
}

/* ---------------------------------------------------------------
   Positioning: one line, large, under the hero
   --------------------------------------------------------------- */

.b2b-intro {
  width: 100%;
  padding: clamp(120px, 18vw, 240px) clamp(20px, 8.4vw, 160px) clamp(96px, 14vw, 200px);
  text-align: center;
}
/* The three capabilities in the line, picked out in the brand's
   pastel yellow behind dark ink: yellow type on cream would not read. */
.b2b-intro__line mark {
  padding: 0.04em 0.28em;
  border-radius: 0.35em;
  /* The brand's pastel yellow: a soft pill behind the words. */
  background: var(--accent2);
  color: var(--ink);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
.b2b-intro__line {
  /* Set as the homepage's story line (.story__copy in home.css), but
     narrower, so it runs to three lines and the reveal has room. */
  width: min(100%, 24em);
  margin: 0 auto;
  font-family: var(--body-font);
  font-size: var(--type-lead-lg);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: left;
}
/* Lit word by word on scroll (partners.js), as on the homepage. */
.b2b-intro__line .story__word {
  color: rgba(50, 48, 49, 0.16);
  transition: color 260ms var(--ease);
}
.b2b-intro__line .story__word.is-lit { color: var(--ink); }
/* Each yellow pill fills in as its first word lights. */
.b2b-intro__line[data-scroll-words] mark { background: rgba(255, 246, 196, 0.35); transition: background 400ms var(--ease); }
.b2b-intro__line[data-scroll-words] mark:has(.is-lit) { background: var(--accent2); }

/* ---------------------------------------------------------------
   Value points: large blocks, text on one side and an animation on
   the other, alternating down the page
   --------------------------------------------------------------- */

.b2b-features {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
  padding: clamp(40px, 6vw, 96px) clamp(16px, 4vw, 64px) clamp(80px, 10vw, 140px);
}
/* After me&u: each value is a large white card that pins below the
   nav as it reaches the top, so the next one slides up over it.
   partners.js shrinks and dims a card as the next covers it (--cover,
   0 to 1). Each pins a little lower than the last, so the edges of the
   ones beneath show above it. */
.b2b-feature {
  position: sticky;
  top: calc(84px + var(--i, 0) * 14px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  min-height: min(76vh, 680px);
  padding: clamp(28px, 4vw, 64px);
  border-radius: 36px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(14, 15, 12, 0.04), 0 -12px 40px rgba(14, 15, 12, 0.06);
  transform: scale(calc(1 - var(--cover, 0) * 0.05));
  transform-origin: 50% 0;
  filter: brightness(calc(1 - var(--cover, 0) * 0.04));
  will-change: transform;
}
.b2b-feature:nth-child(2) { --i: 1; }
.b2b-feature:nth-child(3) { --i: 2; }
.b2b-feature:nth-child(4) { --i: 3; }
.b2b-feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.b2b-feature--flip .b2b-feature__text { order: 2; }

.b2b-feature__text h3 {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--type-title);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.b2b-feature__text p {
  margin: 14px 0 0;
  max-width: 32ch;
  font-family: var(--body-font);
  font-size: var(--type-lead);
  font-weight: var(--body-weight);
  line-height: 1.35;
  color: var(--ink);
}
.b2b-feature__text p.b2b-feature__desc {
  margin-top: 12px;
  max-width: 40ch;
  font-size: var(--type-body);
  line-height: 1.55;
  color: var(--muted);
}
.b2b-feature__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.b2b-feature__tags li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--page);
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

/* The animation's frame. Until each one is built it is a quiet panel
   that holds its place, sized as the finished animation will be. */
.b2b-feature__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, #EDE8DF 0%, #E4DDD1 100%);
  box-shadow: inset 0 0 0 1px rgba(14, 15, 12, 0.05);
}
.b2b-feature__media > span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 900px) {
  .b2b-feature,
  .b2b-feature--flip { grid-template-columns: 1fr; gap: 24px; min-height: 0; top: calc(72px + var(--i, 0) * 10px); border-radius: 28px; }
  .b2b-feature { padding: 48px 22px 40px; }
  .b2b-feature--flip .b2b-feature__text { order: 0; }
}

/* ---------------------------------------------------------------
   Frequently asked questions: an accordion of native <details>
   --------------------------------------------------------------- */

.b2b-faq {
  width: 100%;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 8.4vw, 160px) clamp(80px, 10vw, 140px);
  text-align: center;
}
.b2b-faq__list {
  max-width: 820px;
  margin: clamp(32px, 4vw, 56px) auto 0;
  text-align: left;
}
.b2b-faq__item { border-bottom: 1px solid var(--rule); }
.b2b-faq__item:first-child { border-top: 1px solid var(--rule); }
.b2b-faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--body-font);
  font-size: var(--type-lead);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
}
.b2b-faq__item summary::-webkit-details-marker { display: none; }
/* A plus that turns into a minus when open. */
.b2b-faq__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(14, 15, 12, 0.06);
}
.b2b-faq__icon::before,
.b2b-faq__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.6px;
  margin: -0.8px 0 0 -6px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 300ms var(--ease-out);
}
.b2b-faq__icon::after { transform: rotate(90deg); }
.b2b-faq__item[open] .b2b-faq__icon::after { transform: rotate(0); }
.b2b-faq__item p {
  max-width: 92ch;
  margin: -6px 0 0;
  padding: 0 56px 26px 0;
  font-family: var(--body-font);
  font-size: var(--type-body);
  line-height: 1.6;
  color: var(--muted);
}
@media (max-width: 600px) {
  .b2b-faq__item p { padding-right: 0; }
}

/* ---------------------------------------------------------------
   Footer, after me&u's: one dark rounded block with the call to
   action across the top, a rule, then the links in columns
   --------------------------------------------------------------- */

/* A generic footer rule in styles.css lays footers out as a row (and
   centres them on a phone); this one is a block. */
.b2b-foot {
  display: block;
  text-align: left;
  width: calc(100% - 2 * clamp(8px, 1.2vw, 16px));
  margin: 0 auto clamp(8px, 1.2vw, 16px);
  padding: clamp(48px, 6vw, 88px) clamp(24px, 5vw, 80px) clamp(40px, 5vw, 64px);
  border-radius: 36px;
  background: var(--b2b-bg);
  color: #F7F5F0;
  font-family: var(--body-font);
}
.b2b-foot__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(247, 245, 240, 0.14);
}
.b2b-foot__cta h2 {
  margin: 0;
  font-size: var(--type-title);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.b2b-foot__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-top: clamp(36px, 4vw, 56px);
}
.b2b-foot__brand img { height: 26px; width: auto; }
.b2b-foot__brand p { margin-top: 14px; font-size: 15px; color: rgba(247, 245, 240, 0.7); }
.b2b-foot nav > p { margin-bottom: 16px; font-size: 17px; font-weight: 600; }
.b2b-foot ul { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.b2b-foot li,
.b2b-foot li a,
.b2b-foot .consent-link {
  font-size: 15px;
  color: rgba(247, 245, 240, 0.72);
}
.b2b-foot li a:hover,
.b2b-foot .consent-link:hover { color: #F7F5F0; }
.b2b-foot .consent-link { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
@media (max-width: 900px) {
  .b2b-foot { display: block; text-align: left; gap: 0; padding: 48px 24px 40px; }
  .b2b-foot__cols { grid-template-columns: 1fr 1fr; }
  .b2b-foot__brand { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------
   The pinned bar: the same button, on every screen size
   --------------------------------------------------------------- */

.sticky-cta--b2b {
  display: flex;
  justify-content: center;
  padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
  background: none;
}
.sticky-cta--b2b .b2b-cta {
  width: min(340px, 100%);
  /* Frosted glass, as the cookie banner: it floats over dark and cream
     sections alike, so a pale tint keeps the ink label readable. */
  background: rgba(247, 245, 240, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
          backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 40px rgba(14, 15, 12, 0.18);
}

/* "Grow with us" in the footer: clear glass on the dark block, light label. */
.b2b-foot .b2b-cta {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 30px rgba(0, 0, 0, 0.25);
  color: #F7F5F0;
  transition: background 200ms var(--ease);
}
.b2b-foot .b2b-cta:hover { background: rgba(255, 255, 255, 0.2); }

/* Without blur the pinned button's tint would let the page read through. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sticky-cta--b2b .b2b-cta { background: #F7F5F0; }
}

/* ---------------------------------------------------------------
   Reach: a centred title and line, before How it works
   --------------------------------------------------------------- */

.b2b-reach {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* Same side padding as .b2b-intro, so the line wraps to its width on phones too. */
  padding: clamp(80px, 10vw, 140px) clamp(20px, 8.4vw, 160px) 0;
  text-align: center;
}
/* Always one line: the full 24px where it fits, scaled down with the
   screen below that (the line runs about 22.2em wide; the side
   padding takes 16.8vw). */
.b2b-reach .b2b-section__title {
  margin: 0 auto;
  white-space: nowrap;
  font-size: min(24px, 3.6vw);
}
/* On phones it wraps to two even lines at full size instead. */
@media (max-width: 600px) {
  .b2b-reach .b2b-section__title {
    white-space: normal;
    font-size: min(24px, 6.6vw);
    text-wrap: balance;
  }
}
.b2b-reach__sub {
  margin: 18px auto 0;
  /* As wide as the positioning line further down (.b2b-intro__line):
     the same 624px box, and a touch of its tight tracking so the
     longest line runs to about the same 610px. */
  max-width: 624px;
  letter-spacing: -0.01em;
  font-family: var(--body-font);
  font-size: var(--type-lead);
  font-weight: var(--body-weight);
  line-height: 1.4;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   The demo: the parent's side of Etho, playing in a phone (p-demo in
   partners.js), beside a short line and the three steps it shows.
   The step being played is the one in ink.
   --------------------------------------------------------------- */

.b2b-demo {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 7vw, 120px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) clamp(20px, 6vw, 80px) clamp(40px, 6vw, 80px);
}
.b2b-demo .b2b-section__title { margin: 0; text-align: left; max-width: 14ch; }
.b2b-demo__sub {
  margin: 18px 0 0;
  max-width: 34ch;
  font-family: var(--body-font);
  font-size: var(--type-lead);
  font-weight: var(--body-weight);
  line-height: 1.4;
  color: var(--muted);
}
.b2b-demo__steps {
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  max-width: 34ch;
}
.b2b-demo__steps li {
  padding: 12px 0 12px 20px;
  border-left: 2px solid rgba(50, 48, 49, 0.12);
  font-family: var(--body-font);
  font-size: var(--type-body);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(50, 48, 49, 0.4);
  transition: color 400ms var(--ease-out), border-color 400ms var(--ease-out);
}
.b2b-demo:has(.pd.s-app:not(.s-sheet)) [data-demo-step="1"],
.b2b-demo:has(.pd.s-sheet:not(.s-store)) [data-demo-step="2"],
.b2b-demo:has(.pd.s-store) [data-demo-step="3"] {
  color: var(--ink);
  border-left-color: var(--ink);
}

.b2b-demo__phone {
  --phone-h: clamp(520px, min(78vh, 100vh - 120px), 700px);
  position: relative;
  height: var(--phone-h);
  aspect-ratio: 1 / 2;
  border-radius: calc(var(--phone-h) * 0.063);
  overflow: hidden;
  background: linear-gradient(180deg, #E6E5E3 0%, #FBFBFB 23.5%, #FCFCFC 100%);
  box-shadow: 0 0 0 1px rgba(50, 48, 49, 0.12), 0 30px 60px rgba(14, 15, 12, 0.12);
  isolation: isolate;
  transform: translateZ(0);
}

@media (max-width: 900px) {
  .b2b-demo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .b2b-demo .b2b-section__title { text-align: center; margin: 0 auto; }
  .b2b-demo__sub { margin-left: auto; margin-right: auto; }
  .b2b-demo__steps { display: none; }
  .b2b-demo__phone { --phone-h: clamp(460px, 74svh, 620px); }
}
