/* Partner landing page. Builds on site.css (tokens, header, buttons). */

.partner main {
  padding: var(--header-h) var(--pad) 0;
}

/* Intro: the 16:9 loop fills the hero height behind everything. The clip is
   composed with its subject centered; CSS places it. --subject-x is where
   the subject sits across the source (0.5 = centered) and --place-x is where
   it lands on desktop (left of the copy). The clip's side edges, and the
   hero's left and right edges, fade out to the page grey. */
.fr-hero {
  --subject-x: 0.5; /* the clip's subject is centered */
  --place-x: 0.27;
  position: relative;
  height: max(520px, calc(100svh - var(--header-h) - var(--about-h)));
  margin: 0 calc(-1 * var(--pad));
  padding: 0 var(--pad);
}
/* Like the home page: the hero stays put under the header while the
   sections below scroll up over it. Each section brings an opaque sheet,
   and the offset shadows cover the side gutters (--pad). */
.fr-hero { position: sticky; top: var(--header-h); z-index: 1; }
.fr-section {
  position: relative; z-index: 2;
  background: var(--bg);
  box-shadow: var(--pad) 0 0 var(--bg), calc(-1 * var(--pad)) 0 0 var(--bg);
}
.fr-visual { position: absolute; z-index: 0; inset: 0; overflow: hidden; }
.fr-visual .hero-loop {
  inset: 0; top: 0; left: 0; right: 0; width: 100%; height: 100%;
  max-width: none; aspect-ratio: auto; transform: none;
  /* Left and right fades out to the page grey behind */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mix-blend-mode: normal; /* full color clip */
}
.fr-visual .hero-loop video,
.fr-visual .hero-loop img {
  position: absolute; top: 0; left: calc(var(--place-x) * 100%);
  height: 100%; width: auto; max-width: none; aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: translateX(calc(var(--subject-x) * -100%));
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 55%, transparent 92%);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 55%, transparent 92%);
}
.fr-hero-copy {
  position: relative; z-index: 1;
  height: 100%; width: 50%; margin-left: auto;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
  text-align: right;
}
/* Availability section: the slot count, big. The box sits in the right
   column, the count large on top, the label, then one wide cell per slot. */
.fr-slots {
  display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 22px);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--ink);
}
.fr-slots-count {
  font-size: clamp(80px, 10vw, 168px); font-weight: 300; line-height: 1; letter-spacing: -0.04em;
  white-space: nowrap;
}
/* Vertical ticker for the open count (built by slots.js) */
.fr-ticker {
  display: inline-block; vertical-align: top;
  height: 1em; overflow: hidden;
}
.fr-ticker-reel { display: flex; flex-direction: column; }
.fr-ticker-reel span { display: block; height: 1em; line-height: 1em; }
.fr-slots-label {
  font-size: clamp(13px, 1.1vw, 16px); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.fr-slots-cells {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1vw, 14px); margin-top: clamp(4px, 1vw, 12px);
}
.fr-slots-cells li {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: clamp(52px, 6vw, 96px);
  border: 1px solid var(--ink);
}
.fr-slots-cells li.is-taken::before {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
}
.fr-slots-cells .icon {
  position: relative; width: clamp(22px, 2.6vw, 40px); height: clamp(22px, 2.6vw, 40px);
  stroke-width: 1.5; color: var(--bg);
}
/* Taken slots fill in one after another, then the check draws, once the
   box scrolls into view (slots.js adds .is-in) */
@media (prefers-reduced-motion: no-preference) {
  .fr-slots-cells li.is-taken::before { transform-origin: left center; transform: scaleX(0); }
  .fr-slots-cells li.is-taken .icon { stroke-dasharray: 24; stroke-dashoffset: 24; }
  .fr-slots.is-in .fr-slots-cells li.is-taken::before {
    animation: slot-fill 0.5s cubic-bezier(0.65, 0, 0.35, 1) both;
    animation-delay: calc(0.3s + var(--i, 0) * 0.35s);
  }
  .fr-slots.is-in .fr-slots-cells li.is-taken .icon {
    animation: slot-check 0.35s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    animation-delay: calc(0.75s + var(--i, 0) * 0.35s);
  }
}
@keyframes slot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes slot-check { to { stroke-dashoffset: 0; } }
/* Same type as the home hero (.hero-headline and .hero-sub in site.css) */
.fr-title {
  font-size: clamp(34px, min(4.8vw, 7.6svh), 88px);
  font-weight: 300; line-height: 1.06; letter-spacing: -0.03em;
  text-wrap: balance;
}
.fr-lede {
  margin-top: clamp(16px, 2.6svh, 32px);
  font-size: clamp(19px, min(2vw, 3.2svh), 34px); font-weight: 300; line-height: 1.2; letter-spacing: -0.015em;
  text-wrap: balance;
}
.fr-ctas { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 36px; }
.fr-btn-lg { height: 52px; padding: 0 24px; font-size: 17px; }

/* Sections: 40/60 like the projects, heading left, content right */
.fr-section {
  display: grid; grid-template-columns: 2fr 3fr; column-gap: 64px;
  padding: clamp(56px, 9svh, 112px) 0;
  border-top: 1px solid var(--ink);
}
.fr-section-head { align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.fr-eyebrow {
  margin-bottom: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.fr-h2 {
  font-size: clamp(30px, 3vw, 52px);
  font-weight: 300; line-height: 1.05; letter-spacing: -0.03em;
  text-wrap: balance;
}
.fr-head-note { margin-top: 20px; font-size: 16px; }
/* Shown only when fully booked (js/slots.js adds .slots-full) */
.fr-waitlist-note { display: none; margin-top: 20px; font-size: 18px; line-height: 1.35; }
.slots-full .fr-waitlist-note { display: block; }
.fr-head-note a, .fr-faq a { text-underline-offset: 3px; }
.fr-h3 { font-size: 22px; font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; }

/* Cards */
.fr-tracks, .fr-packages { display: grid; gap: 20px; }
.fr-tracks { grid-template-columns: 1fr 1fr; }
.fr-card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px;
  border: 1px solid var(--ink);
  font-size: 16.5px; line-height: 1.4;
}
.fr-num { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.fr-list { list-style: none; border-top: 1px solid var(--rule); }
.fr-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.fr-list li:last-child { border-bottom: 0; } /* no rule after a list's last item */

.fr-packages { grid-template-columns: repeat(3, 1fr); }
.fr-package { gap: 10px; }
.fr-package .fr-list { margin-top: 8px; }
.fr-package-line { min-height: 2.8em; }
.fr-price { margin-top: 6px; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.fr-terms { font-size: 14px; color: var(--muted); }
.fr-fit { margin-top: auto; padding-top: 10px; font-size: 14.5px; color: var(--muted); }
.fr-package.is-featured { background: var(--date-bg); color: var(--date-ink); border-color: var(--date-bg); }
.fr-package.is-featured .fr-terms,
.fr-package.is-featured .fr-fit { color: color-mix(in srgb, var(--date-ink) 70%, var(--date-bg)); }
.fr-package.is-featured .fr-list,
.fr-package.is-featured .fr-list li { border-color: var(--date-ink); }
.fr-badge {
  position: absolute; top: -13px; left: 28px;
  padding: 6px 10px 5px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--ink);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
}
.fr-note { grid-column: 2; margin-top: 20px; font-size: 15px; color: var(--muted); }

/* Points and steps */
.fr-points, .fr-steps {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px;
}
.fr-points li, .fr-steps li { border-top: 1px solid var(--ink); padding-top: 18px; font-size: 16.5px; line-height: 1.4; }
.fr-points p, .fr-steps p { margin-top: 8px; }
.fr-steps { counter-reset: step; }
.fr-steps li { counter-increment: step; }
.fr-steps li::before {
  content: "0" counter(step);
  display: block; margin-bottom: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted);
}

/* Timelines */
.fr-timeline { border-top: 1px solid var(--ink); }
.fr-timeline div {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
  font-size: clamp(17px, 1.4vw, 21px);
}
.fr-timeline div:last-child { border-bottom: 0; }
.fr-timeline dd { font-weight: 500; white-space: nowrap; }

/* Form */
/* The form and its success panel share one column; only one shows at a time */
.fr-form-wrap { min-width: 0; }
.fr-form { display: flex; flex-direction: column; gap: 22px; }
.fr-form[hidden] { display: none; }
.fr-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fr-field { display: flex; flex-direction: column; gap: 8px; border: 0; min-width: 0; }
.fr-field > span, .fr-field legend {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.fr-field legend { margin-bottom: 8px; }
.fr-field input, .fr-field select, .fr-field textarea {
  width: 100%;
  padding: 14px 0 12px;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 18px;
  -webkit-appearance: none; appearance: none;
}
.fr-field select {
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 2px center / 14px no-repeat;
  padding-right: 24px;
}
.fr-field textarea { resize: vertical; min-height: 120px; }
.fr-field input:focus, .fr-field select:focus, .fr-field textarea:focus { outline: none; border-bottom-width: 3px; padding-bottom: 10px; }
.fr-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.fr-chip { position: relative; cursor: pointer; }
.fr-chip input { position: absolute; opacity: 0; pointer-events: none; }
.fr-chip span {
  display: inline-flex; align-items: center; height: 42px; padding: 0 16px;
  border: 1px solid var(--ink);
  font-size: 15px; font-weight: 460;
  transition: background-color 0.2s, color 0.2s;
}
.fr-chip input:checked + span { background: var(--ink); color: var(--bg); }
.fr-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.fr-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
/* Errors: red, field by field plus a banner by the Send button (partner.js) */
.fr-form { --error: #b3261e; }
.fr-field.is-invalid > span:first-child { color: var(--error); }
.fr-field.is-invalid input, .fr-field.is-invalid textarea { border-bottom: 2px solid var(--error); padding-bottom: 11px; }
.fr-field > .fr-field-error { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--error); }
.fr-form-error {
  padding: 12px 16px;
  border-left: 3px solid var(--error);
  background: color-mix(in srgb, var(--error) 9%, transparent);
  color: var(--error); font-size: 15px; font-weight: 500; line-height: 1.4;
}
.fr-form-error a { color: inherit; text-underline-offset: 2px; }
.fr-form button[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.fr-turnstile:empty { display: none; }
/* Success: replaces the form */
.fr-success {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 32px; border: 1px solid var(--ink);
}
.fr-success[hidden] { display: none; }
.fr-success:focus { outline: none; }
.fr-success-title { font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; }
.fr-success-text { font-size: 17px; line-height: 1.45; max-width: 46ch; }
.fr-success .btn { margin-top: 8px; }
/* Bot trap field (partner.js): off-screen, never shown */
.fr-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.fr-faq { border-top: 1px solid var(--ink); }
.fr-faq details { border-bottom: 1px solid var(--rule); }
.fr-faq details:last-child { border-bottom: 0; }
.fr-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0;
  font-size: clamp(17px, 1.4vw, 21px); font-weight: 500;
  cursor: pointer; list-style: none;
}
.fr-faq summary::-webkit-details-marker { display: none; }
.fr-faq summary::after { content: "+"; font-size: 24px; font-weight: 300; line-height: 1; }
.fr-faq details[open] summary::after { content: "–"; }
.fr-faq details p { padding: 0 0 20px; max-width: 640px; font-size: 16.5px; line-height: 1.45; }

/* Tablet: single column sections */
@media (max-width: 1199px) {
  .fr-title { font-size: clamp(30px, min(5.8vw, 7svh), 64px); }
  .fr-section { grid-template-columns: 1fr; row-gap: 32px; }
  .fr-section-head { position: static; }
  .fr-note { grid-column: 1; }
  .fr-packages { grid-template-columns: 1fr; }
  .fr-package-line { min-height: 0; }
}

/* Phones: the loop as a full-width band on top (subject centered), copy and
   badge below */
@media (max-width: 809px) {
  /* Like the home page on phones: the copy at the top, the loop filling
     the rest of the hero below it (header to about bar), fading in at its
     top edge and at both sides */
  .fr-hero {
    height: max(500px, calc(100svh - var(--header-h) - var(--about-h)));
    display: flex; flex-direction: column;
  }
  .fr-hero-copy {
    order: 0; height: auto; width: auto; margin-top: 24px;
    align-items: flex-start; text-align: left;
  }
  .fr-visual {
    order: 1; position: relative; inset: auto;
    flex: 1 1 auto; min-height: 180px;
    margin: 8px calc(-1 * var(--pad)) 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%);
            mask-image: linear-gradient(to bottom, transparent, #000 22%);
  }
  .fr-visual .hero-loop video,
  .fr-visual .hero-loop img {
    top: 0; left: 0; width: 100%; height: 100%;
    aspect-ratio: auto; transform: none;
    -webkit-mask-image: none; mask-image: none;
  }
  .fr-title { font-size: clamp(30px, 8.8vw, 44px); line-height: 1.08; }
  .fr-lede { margin-top: 14px; font-size: clamp(18px, 5vw, 22px); }
  .fr-ctas { margin-top: 24px; justify-content: flex-start; }
  .fr-btn-lg { height: 48px; padding: 0 20px; font-size: 16px; }
  .fr-tracks, .fr-points, .fr-steps, .fr-field-row { grid-template-columns: 1fr; }
  .fr-card { padding: 22px; }
}

/* Packages get the full width: heading on top, three cards across */
.fr-section-wide { grid-template-columns: 1fr; row-gap: 40px; }
.fr-section-wide .fr-section-head { position: static; }
.fr-section-wide .fr-note { grid-column: 1; margin-top: 0; }




