/*
 * The guides page, `/help` (M11.4, 24 Sep 2026).
 *
 * New markup, so a first-class sheet rather than an override — there is no
 * counterpart to this page in the Laravel archive.
 *
 * It builds on `landing-v2.css`, loaded before it, which declares the
 * storefront palette on `:root`: `--cc-store-ink`, `--cc-store-paper`,
 * `--cc-store-line`, `--cc-store-muted`, `--cc-store-gold`, `--cc-store-night`.
 * Reusing them is the point — someone arrives here from the landing page or
 * from an email about their new card, and the guides should be the same
 * company. Fallbacks are given so the sheet still reads if loaded alone.
 *
 * Single-theme, like the storefront and the checkout it sits beside: a fixed
 * light composition, not a themed surface.
 *
 * ## The player's size
 *
 * The recording is a phone screen, 780×1688 — taller than any desktop viewport
 * at a width worth watching. So the video is sized from the *height* available
 * on wide screens (`min(72vh, 44rem)`, width following from the aspect ratio)
 * and from the width on phones, where a phone-shaped video filling the column
 * is exactly right. `aspect-ratio` reserves the box either way, so the page
 * does not jump when the poster loads or when the first frame replaces it.
 */

.cc-help {
  --cch-ink: var(--cc-store-ink, #0b1524);
  --cch-muted: var(--cc-store-muted, #617084);
  --cch-paper: var(--cc-store-paper, #f7f7f3);
  --cch-line: var(--cc-store-line, #d9dee4);
  --cch-gold: var(--cc-store-gold, #8b6324);
  --cch-gold-light: var(--cc-store-gold-light, #ead7aa);
  --cch-night: var(--cc-store-night, #071425);
  --cch-white: var(--cc-store-white, #fff);

  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  background: var(--cch-paper);
  color: var(--cch-ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cc-help__shell {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

/* ------------------------------------------------------------------ head -- */

.cc-help__kicker {
  margin: 0;
  color: var(--cch-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cc-help__title {
  margin: 0.75rem 0 0;
  font-family: "Manrope", "DM Sans", system-ui, sans-serif;
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.cc-help__lead {
  margin: 1rem 0 0;
  max-width: 44ch;
  color: var(--cch-muted);
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  line-height: 1.65;
}

/* --------------------------------------------------------------- feature -- */

.cc-help__feature {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--cch-line);
}

.cc-help__player {
  margin: 0;
  justify-self: center;
}

.cc-help__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 780 / 1688;
  border-radius: 1.5rem;
  background: var(--cch-night);
  box-shadow: 0 30px 70px rgb(7 20 37 / 0.28);
}

/* The fallback paragraph, for a browser that will not play the file at all. */
.cc-help__video-fallback {
  margin: 0;
  padding: 1.5rem;
  color: var(--cch-white);
}

.cc-help__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--cch-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

/*
 * The separator belongs to the item before the gap, not the one after it. As
 * a ::before on the following item it wrapped onto the next line and started
 * that line with a stray dot, which is what the 390 capture showed.
 */
.cc-help__meta li:not(:last-child)::after {
  content: "·";
  margin-left: 0.9rem;
  color: var(--cch-line);
}

.cc-help__feature-title {
  margin: 0.85rem 0 0;
  font-family: "Manrope", "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cc-help__blurb {
  margin: 0.75rem 0 0;
  max-width: 48ch;
  color: var(--cch-muted);
  line-height: 1.65;
}

/* ------------------------------------------------------------ chapters -- */

.cc-help__chapters-title {
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cch-ink);
}

.cc-help__chapters {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--cch-line);
}

.cc-help__chapter {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.15rem 0.85rem;
  padding: 0.85rem 0.5rem 0.85rem 0;
  border-bottom: 1px solid var(--cch-line);
  color: inherit;
  text-decoration: none;
}

.cc-help__chapter-at {
  grid-row: 1 / span 2;
  align-self: start;
  padding-top: 0.05rem;
  color: var(--cch-gold);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cc-help__chapter-label {
  font-weight: 700;
  line-height: 1.3;
}

.cc-help__chapter-detail {
  color: var(--cch-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/*
 * Only once `help-video-v1.js` has bound the rows do they look pressable. A
 * pointer cursor on a list that cannot seek is a promise the page cannot keep.
 */
.is-seekable .cc-help__chapter {
  cursor: pointer;
  border-radius: 0.6rem;
  padding-inline: 0.65rem;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.is-seekable .cc-help__chapter:hover,
.is-seekable .cc-help__chapter:focus-visible {
  background: var(--cch-white);
  box-shadow: 0 8px 24px rgb(7 20 37 / 0.08);
}

.cc-help__chapter.is-current {
  background: var(--cch-white);
  box-shadow: inset 0.2rem 0 0 var(--cch-gold);
}

/* ------------------------------------------------------------ transcript -- */

.cc-help__transcript {
  margin-top: 1.5rem;
  border-top: 1px solid var(--cch-line);
  padding-top: 1rem;
}

.cc-help__transcript summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--cch-gold);
}

.cc-help__transcript-body {
  margin: 1rem 0 0;
  max-height: 22rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.cc-help__line {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.85rem;
  margin: 0 0 0.7rem;
  color: var(--cch-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.cc-help__line-at {
  color: var(--cch-gold);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------- steps -- */

.cc-help__steps,
.cc-help__more {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--cch-line);
}

.cc-help__section-title {
  margin: 0;
  font-family: "Manrope", "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cc-help__section-lead {
  margin: 0.6rem 0 0;
  max-width: 52ch;
  color: var(--cch-muted);
  line-height: 1.65;
}

.cc-help__step-grid {
  display: grid;
  gap: 1rem;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
}

.cc-help__step {
  /*
   * A column, so "Needed:" sits on the floor of every card instead of wherever
   * that card's paragraph happened to end. The three bodies are different
   * lengths and the line they all share is the one being compared.
   */
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid var(--cch-line);
  border-radius: 1.1rem;
  background: var(--cch-white);
}

.cc-help__step-number {
  display: block;
  color: var(--cch-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cc-help__step-title {
  margin: 0.5rem 0 0;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cc-help__step-body {
  margin: 0.55rem 0 0;
  color: var(--cch-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.cc-help__step-note {
  margin: auto 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--cch-line);
  color: var(--cch-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ------------------------------------------------------------------ more -- */

.cc-help__links {
  display: grid;
  gap: 0.75rem;
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  padding: 0;
  list-style: none;
}

.cc-help__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--cch-line);
  border-radius: 1rem;
  background: var(--cch-white);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cc-help__link:hover,
.cc-help__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgb(7 20 37 / 0.1);
}

.cc-help__link-text {
  min-width: 0;
  flex: 1;
}

.cc-help__link-title {
  display: block;
  font-weight: 700;
}

.cc-help__link-note {
  display: block;
  margin-top: 0.15rem;
  color: var(--cch-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cc-help__link-arrow {
  color: var(--cch-gold);
  font-weight: 800;
}

/* --------------------------------------------------------------- widths -- */

@media (min-width: 56rem) {
  .cc-help__feature {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .cc-help__video {
    width: auto;
    height: min(72vh, 44rem);
  }

  .cc-help__step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .cc-help__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-help__link,
  .is-seekable .cc-help__chapter {
    transition: none;
  }

  .cc-help__link:hover,
  .cc-help__link:focus-visible {
    transform: none;
  }
}
