/* ===========================================================================
   Client landing page components. Tokens only — see base.css.
   =========================================================================== */

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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 78vh; /* fallback first — 100vh jumps on iOS as the bar collapses */
  min-height: 78svh;
  padding-block: var(--s9) var(--s8);
  overflow: hidden;
  background: var(--dark-ground);
  color: var(--on-dark);
}

/* Placeholder ground. Stays visible until real media lands, and remains the
   backstop behind a poster that is still decoding. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(
      64% 48% at 50% 4%,
      color-mix(in srgb, var(--accent) 26%, transparent) 0%,
      transparent 64%
    ),
    radial-gradient(
      80% 60% at 18% 96%,
      color-mix(in srgb, var(--accent-deep) 34%, transparent) 0%,
      transparent 66%
    ),
    linear-gradient(176deg, #191412 0%, #0b0908 62%, #060404 100%);
}

.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The video sits above the poster and fades in only once it is actually
   playing, so a refused autoplay (iOS Low Power Mode) leaves the poster. */
.hero__media video {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero__media video.is-playing {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero__media video {
    transition: none;
  }
}

/* Legibility scrim. Without this, headline contrast depends on whatever
   frame the video happens to be on — which is not a contrast strategy. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(10, 8, 6, 0.55) 0%,
    rgba(10, 8, 6, 0.25) 38%,
    rgba(10, 8, 6, 0.82) 100%
  );
}

.hero__inner {
  position: relative;
  width: 100%;
}

.hero h1 {
  max-width: 14ch;
}

.hero .lede {
  margin-top: var(--s5);
  max-width: 44ch;
  color: var(--on-dark-2);
}

.hero .cta-row {
  margin-top: var(--s6);
}

.hero__reassure {
  margin-top: var(--s4);
  font-size: var(--t-sm);
  color: var(--on-dark-3);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: var(--s5);
}

.hero__eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

/* --- Promise triptych --------------------------------------------------- */

.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  margin-top: var(--s7);
}

.promise {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  text-align: center;
  align-items: center;
}

.promise h3 {
  font-size: var(--t-lg);
}

.promise p {
  color: var(--ink-2);
  font-size: var(--t-sm);
}

/* The miss-remedy is the differentiator. In the old design it was a trailing
   <span> inside the paragraph; here it is its own bordered footer. */
.promise__miss {
  margin-top: auto;
  padding-top: var(--s3);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 860px) {
  .promises {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }
  .promise {
    gap: var(--s2);
  }
  .promise__miss {
    margin-top: var(--s2);
  }
}

/* --- Guarantee + booking slip ------------------------------------------- */

.guarantee {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 27rem);
  gap: var(--s8);
  align-items: center;
}

.guarantee__terms {
  margin-top: var(--s6);
  display: grid;
  gap: var(--s4);
  padding: 0;
  list-style: none;
}

.guarantee__terms li {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s1);
  font-size: var(--t-sm);
  color: var(--ink-2);
  padding-block: var(--s3);
  border-top: 1px solid var(--line);
}

.guarantee__terms b {
  color: var(--ink);
  font-weight: 600;
}

.guarantee__terms span[aria-hidden] {
  font-family: var(--display);
  font-size: var(--t-md);
  color: var(--accent);
  line-height: 1.1;
}

/* Booking slip. The notch is cut with a radial-gradient mask rather than two
   positioned circles filled with the page background — the old version broke
   the moment the slip sat on anything but --bg, and pinned the cut at a
   magic 58%. */
.slip {
  --notch: 15px;
  --notch-y: 58%;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: var(--s6);
  box-shadow: var(--shadow);
}

.slip__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  padding-block: var(--s3);
  border-bottom: 1px dashed var(--line);
}

.slip__row dt {
  font-size: var(--t-sm);
  color: var(--ink-2);
}

.slip__row dd {
  margin: 0;
  font-family: var(--display);
  font-size: var(--t-md);
  text-align: right;
}

.slip__cut {
  height: var(--s5);
}

.slip__time {
  font-family: var(--display);
  font-size: clamp(3rem, 2rem + 4vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Scoped with :not(.gilded) — the time itself is now wrapped in a span to
   carry the champagne fill, and an unscoped rule shrank it to label size. */
.slip__time span:not(.gilded) {
  font-size: var(--t-md);
  letter-spacing: 0;
  color: var(--ink-2);
  margin-left: var(--s2);
}

.slip__promise {
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 2px solid var(--accent);
  font-family: var(--display);
  font-size: var(--t-lg);
  line-height: 1.2;
}

.slip__promise em {
  color: var(--accent);
  font-style: italic;
}

.slip__fine {
  margin-top: var(--s3);
  font-size: var(--t-xs);
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .guarantee {
    grid-template-columns: 1fr;
    gap: var(--s7);
  }
}

/* --- Film --------------------------------------------------------------- */

.film {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--dark-ground);
  aspect-ratio: 16 / 9;
  margin-top: var(--s6);
}

.film video,
.film img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: var(--s2);
  text-align: center;
  color: var(--on-dark-3);
  background: linear-gradient(150deg, #241c18, #17140f);
  font-size: var(--t-sm);
}

/* --- Steps -------------------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  margin-top: var(--s7);
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  display: grid;
  gap: var(--s3);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: var(--t-lg);
  color: var(--accent);
  line-height: 1;
}

.steps h3 {
  font-size: var(--t-md);
}

.steps p {
  color: var(--ink-2);
  font-size: var(--t-sm);
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }
}

/* --- Look grid ---------------------------------------------------------- */

.looks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  margin-top: var(--s6);
}

.look {
  margin: 0;
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bone-2);
  aspect-ratio: 4 / 5;
}

.look img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.look__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--accent) 16%, var(--bone-2)),
    var(--bone-2)
  );
}

.look figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s4) var(--s3) var(--s3);
  font-size: var(--t-sm);
  font-weight: 600;
  color: #fffdfa;
  background: linear-gradient(transparent, rgba(10, 8, 6, 0.78));
}

/* Concept-imagery disclosure lives in the DOM — not in alt text, and not in
   a CSS ::after, which is invisible to copy/paste and unreliable for AT. */
.looks__disclosure {
  margin-top: var(--s4);
  font-size: var(--t-xs);
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .looks {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- What we heard ------------------------------------------------------ */

.heard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s5) var(--s7);
  margin-top: var(--s7);
  padding: 0;
  list-style: none;
}

.heard li {
  display: grid;
  gap: var(--s2);
  padding-left: var(--s5);
  border-left: 2px solid var(--on-dark-line);
}

.heard q {
  font-family: var(--display);
  font-size: var(--t-md);
  line-height: 1.35;
  quotes: "\201C" "\201D";
}

.heard span {
  font-size: var(--t-sm);
  color: var(--on-dark-3);
}

@media (max-width: 860px) {
  .heard {
    grid-template-columns: 1fr;
  }
}

/* --- Cost --------------------------------------------------------------- */

.cost {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: start;
}

.cost__lines {
  display: grid;
  gap: 0;
  margin: 0;
}

.cost__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
}

.cost__line dt {
  font-weight: 600;
}

.cost__line dd {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--t-sm);
  text-align: right;
}

.cost__none {
  margin-top: var(--s6);
  display: grid;
  gap: var(--s3);
  padding: 0;
  list-style: none;
}

.cost__none li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: var(--s3);
  align-items: baseline;
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.cost__none span[aria-hidden] {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 900px) {
  .cost {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
}

/* --- Trust -------------------------------------------------------------- */

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s6);
  margin-top: var(--s7);
}

.trust div {
  display: grid;
  gap: var(--s2);
  align-content: start;
}

.trust dt {
  font-family: var(--display);
  font-size: var(--t-md);
}

.trust dd {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s5);
  }
}

@media (max-width: 520px) {
  .trust {
    grid-template-columns: 1fr;
  }
}

/* --- FAQ ---------------------------------------------------------------- */

.faq {
  margin-top: var(--s6);
  max-width: var(--measure-wide);
}

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

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  padding-block: var(--s5);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

/* list-style:none alone does not remove Safari's marker. */
.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent);
}

.faq summary::after {
  content: "+";
  font-family: var(--display);
  font-size: var(--t-lg);
  line-height: 1;
  color: var(--accent);
  flex: none;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details p {
  padding-bottom: var(--s5);
  color: var(--ink-2);
  max-width: var(--measure);
}

/* --- Signup ------------------------------------------------------------- */

.signup {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 25rem);
  gap: var(--s8);
  align-items: center;
}

.signup__form {
  display: grid;
  gap: var(--s3);
}

.signup__field {
  display: grid;
  gap: var(--s2);
}

.signup__field label {
  font-size: var(--t-sm);
  font-weight: 600;
}

.signup__field input {
  font: inherit;
  font-size: var(--t-body);
  padding: var(--s3) var(--s4);
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
}

.signup__field input:focus-visible {
  border-color: var(--accent);
}

.signup__divider {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--t-xs);
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.signup__divider::before,
.signup__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.signup__status {
  font-size: var(--t-sm);
  min-height: 1.5rem;
}

.signup__status[data-state="error"] {
  color: var(--accent);
}

.signup__fallback {
  font-size: var(--t-xs);
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .signup {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
}

/* --- Small shared bits -------------------------------------------------
   These exist as classes rather than inline style attributes so the design
   system stays the single source of truth for every value. */

.band__lede {
  margin-top: var(--s4);
}

.btn--on-hero {
  color: var(--on-dark);
  border-color: var(--on-dark-line);
}

.btn--on-hero:hover {
  border-color: var(--on-dark);
  color: var(--on-dark);
}

.slip__list {
  margin: 0;
}

.film__soon {
  font-size: var(--t-xs);
  color: inherit;
  opacity: 0.75;
}

.heard__cta {
  margin-top: var(--s6);
}

.heard__note {
  margin-top: var(--s3);
  font-size: var(--t-xs);
  color: var(--on-dark-3);
  max-width: var(--measure);
}

.signup__reassure {
  margin-top: var(--s5);
  font-size: var(--t-xs);
  color: var(--ink-2);
}

.signup__offline {
  margin-bottom: var(--s4);
}

.site-footer__mark {
  color: var(--ink);
}

.site-footer__blurb {
  margin-top: var(--s3);
  max-width: 26em;
}




/* --- Minimal adjustments ------------------------------------------------ */

/* Hide the decorative index numerals — they were carrying gold, and without
   it they are just noise in front of the sentence that matters. */
.guarantee__terms span[aria-hidden] {
  display: none;
}

.promise__miss {
  margin-top: var(--s2);
  padding-top: 0;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink);
}

.hero {
  min-height: 84vh;
  min-height: 84svh;
  align-items: center;
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  max-width: 16ch;
}

.hero .lede {
  max-width: 46ch;
}

.hero .cta-row {
  justify-content: center;
}

.hero__eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--t-sm);
}

.hero__eyebrow::before {
  display: none;
}

/* Steps and looks lose their dividers; the grid gap is the separation. */
.steps li::before {
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-family: var(--sans);
}

.heard li {
  border-left: 0;
  padding-left: 0;
}

.faq summary {
  padding-block: var(--s5);
  font-weight: 500;
}

.faq summary::after {
  font-family: var(--sans);
  font-size: var(--t-md);
  color: var(--ink-2);
}

/* Scroll reveal, kept because Apple uses it too — but only opacity and a
   very small rise. Native scroll timeline, so no JS and no observer. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 26%;
    }
  }
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}


/* --- Material corrections ----------------------------------------------- */

/* .slip__time now wraps a .gilded span, so the parent must stop painting its
   own gradient or the two clips fight and the label loses its colour. */
.slip__time {
  background-image: none !important;
  -webkit-text-fill-color: currentColor;
  color: var(--ink);
}

.slip__time > span:not(.gilded) {
  -webkit-text-fill-color: currentColor;
  color: var(--ink-2);
}

/* Panels carrying .material supply their own background. The compound
   selector is deliberate: home.css loads after base.css, and `.slip`'s
   `background:` shorthand would otherwise wipe the material's
   background-image entirely. */
.slip.material,
.film.material,
.saturday.material {
  background-color: transparent;
  background-image: var(--aluminium);
  background-repeat: no-repeat;
  background-size: cover;
}

.film.material .film__placeholder {
  background: transparent;
}
