/*
 * "You're booked." pages (/en/thank-you, /en/partners/thank-you). Paper "Site ·
 * Free check + Contact", artboards "Thank you" and "Funder call booked",
 * desktop (1440) and mobile (390). Mobile rules in the max-width: 767px block.
 */

/* ── Confirmation + what happens next ─────────────────────────────── */
/* Paper: nav row (24 + 56 px) then 104 px; the nav is fixed. */
.ty-hero { padding-top: 184px; padding-bottom: 104px; }
.ty-hero__inner { display: flex; align-items: flex-start; gap: 96px; }
.ty-hero__copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.ty-hero__badge {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 64px; height: 64px; border-radius: var(--radius-pill);
  background: var(--emerald); color: var(--ink);
}
.ty-hero__badge svg { width: 30px; height: 30px; }
.ty-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: var(--lh-hero);
}
.ty-hero__sub { color: var(--text-2); font-size: 20px; line-height: 30px; }
.ty-hero__rebook { color: var(--muted); font-size: 15px; line-height: 22px; }

.ty-next { flex-shrink: 0; width: 520px; padding: 36px; border-radius: var(--radius-tile); background: var(--paper-2); }
.ty-next__title { padding-bottom: 20px; font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 36px; }
.ty-next__row { display: flex; gap: 20px; padding-block: 18px; border-top: 1px solid var(--line-input); }
.ty-next__row:last-child { padding-bottom: 0; }
.ty-next__row dt { flex-shrink: 0; width: 110px; color: var(--deep-green); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; line-height: 24px; text-transform: uppercase; }
.ty-next__row dd { flex: 1 1 0; font-size: 17px; line-height: 25px; }

/* ── From Jamal ───────────────────────────────────────────────────── */
.ty-note { padding-bottom: 112px; }
.ty-note__inner { display: flex; align-items: center; gap: 72px; }
.ty-note__photo { flex-shrink: 0; width: 400px; height: 480px; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius-tile); }
.ty-note__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 28px; margin: 0; }
.ty-note__quote { font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -0.015em; line-height: 46px; }
.ty-note__who { display: flex; flex-direction: column; gap: 4px; }
.ty-note__sign { color: var(--deep-green); font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 28px; }
.ty-note__role { color: var(--muted); font-size: 15px; line-height: 22px; }

/* ── Before the call ──────────────────────────────────────────────── */
.ty-before { padding-bottom: 112px; }
.ty-before__inner { display: flex; flex-direction: column; gap: 32px; }
.ty-before__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ty-before__title { font-family: var(--font-display); font-size: 56px; font-weight: 800; letter-spacing: -0.03em; line-height: 56px; }
.ty-before__sub { color: var(--muted); font-size: 17px; line-height: 26px; }
.ty-items { display: flex; gap: 20px; }
.ty-item {
  flex: 1 1 0; display: flex; align-items: flex-start; gap: 16px;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white);
}
.ty-item > div { display: flex; flex-direction: column; gap: 6px; }
.ty-box { flex-shrink: 0; width: 28px; height: 28px; border: 2px solid var(--emerald); border-radius: 8px; }
.ty-item__title { font-size: 18px; font-weight: 600; line-height: 26px; }
.ty-item__text { color: var(--muted); font-size: 15px; line-height: 22px; }

/* Funder board: title left, one card right */
.ty-before--one { padding-bottom: 40px; }
.ty-before--one .ty-before__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 80px; }
.ty-before--one .ty-before__head { flex-direction: column; align-items: flex-start; gap: 12px; }
.ty-before--one .ty-items { flex: 0 1 720px; }

/* ── Two common questions (dark) ──────────────────────────────────── */
.ty-qs { padding-block: 104px; }
.ty-qs__inner { display: flex; align-items: flex-start; gap: 80px; }
.ty-qs__title { flex-shrink: 0; width: 360px; color: var(--paper); font-family: var(--font-display); font-size: 48px; font-weight: 800; letter-spacing: -0.03em; line-height: 50px; }
.ty-qs__list { flex: 1 1 0; min-width: 0; display: flex; gap: 48px; }
.ty-q { flex: 1 1 0; padding-top: 20px; border-top: 2px solid var(--emerald); }
.ty-q > div { display: flex; flex-direction: column; gap: 12px; }
.ty-q__tick { display: none; flex-shrink: 0; color: var(--emerald); }
.ty-q__title { color: var(--paper); font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 30px; }
.ty-q__text { color: var(--text-on-ink); font-size: 17px; line-height: 26px; }
.ty-q__text .link { color: inherit; }

/* ── Optional next step ───────────────────────────────────────────── */
.ty-opt { padding-block: 72px; }
.ty-opt__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ty-opt__copy { display: flex; flex-direction: column; gap: 6px; }
.ty-opt__label { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; line-height: 16px; text-transform: uppercase; }
.ty-opt__title { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 34px; }
.ty-opt__btn {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  min-height: 44px; padding: 16px 26px;
  border: 1.5px solid var(--ink); border-radius: var(--radius-pill);
  color: var(--ink); font-size: 16px; font-weight: 600; line-height: 20px; text-decoration: none;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-hover) ease, color var(--dur-hover) ease;
}
.ty-opt__btn:active, .ty-opt__card:active { transform: scale(0.97); }
.ty-opt__btn svg, .ty-opt__card svg { flex-shrink: 0; transition: transform var(--dur-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .ty-opt__btn:hover { background: var(--ink); color: var(--paper); }
  .ty-opt__btn:hover svg { transform: translateX(3px); }
}

/* ── Between the boards ───────────────────────────────────────────── */
@media (max-width: 1199px) {
  .ty-hero__inner, .ty-qs__inner { flex-direction: column; gap: 48px; }
  .ty-next { width: 100%; max-width: 640px; }
  .ty-qs__title { width: auto; }
  .ty-note__inner { gap: 48px; }
  .ty-note__photo { width: 320px; height: 384px; }
  .ty-note__quote { font-size: 30px; line-height: 40px; }
  .ty-before--one .ty-before__inner { flex-direction: column; align-items: stretch; gap: 32px; }
  .ty-before--one .ty-items { flex-basis: auto; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .ty-items, .ty-qs__list { flex-direction: column; }
}

/* ── Mobile (Paper 390 boards) ────────────────────────────────────── */
@media (max-width: 767px) {
  /* nav row 64 px + 24 px */
  .ty-hero { padding: 0; }
  .ty-hero__inner { gap: 0; }
  .ty-hero__inner.wrap { padding-inline: 0; }
  .ty-hero__copy { align-items: stretch; gap: 16px; padding: 88px var(--gutter) 32px; }
  .ty-hero__badge { width: 48px; height: 48px; }
  .ty-hero__badge svg { width: 24px; height: 24px; }
  .ty-hero__title { font-size: 52px; letter-spacing: -0.035em; line-height: 50px; }
  .ty-hero__sub { color: var(--text-2); font-size: 18px; font-weight: 500; line-height: 26px; }
  .ty-hero__rebook { font-size: 14px; line-height: 20px; }

  .ty-next { width: auto; max-width: none; padding: 32px var(--gutter) 40px; border-radius: 0; }
  .ty-next__title { padding-bottom: 16px; font-size: 28px; line-height: 32px; }
  .ty-next__row { gap: 16px; padding-block: 14px; }
  .ty-next__row:last-child { padding-bottom: 14px; border-bottom: 1px solid var(--line-input); }
  .ty-next__row dt { width: 96px; font-size: 14px; }
  .ty-next__row dd { font-size: 17px; line-height: 24px; }

  .ty-note { padding-block: 40px; }
  .ty-note__body { gap: 16px; }
  .ty-note__quote {
    display: flex; flex-direction: column; gap: 12px;
    padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white);
    font-family: var(--font-sans); font-size: 17px; font-weight: 400; letter-spacing: 0; line-height: 26px;
  }
  .ty-note__quote .ty-note__sign { font-size: 17px; font-weight: 600; line-height: 24px; }
  .ty-note__who { flex-direction: row; align-items: center; gap: 14px; }
  .ty-note__avatar { flex-shrink: 0; width: 76px; height: 76px; border-radius: var(--radius-pill); object-fit: cover; object-position: 50% 40%; background: var(--paper-2); }
  .ty-note__role { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 22px; }

  .ty-before, .ty-before--one { padding-top: 8px; padding-bottom: 40px; }
  .ty-before__inner, .ty-before--one .ty-before__inner { gap: 14px; }
  .ty-before__title { font-size: 28px; letter-spacing: -0.02em; line-height: 32px; }
  .ty-items { flex-direction: column; gap: 14px; }
  .ty-item { gap: 14px; padding: 16px; border-color: var(--line-soft); border-radius: 16px; }
  .ty-item > div { gap: 2px; }
  .ty-item__title { font-size: 17px; font-weight: 500; line-height: 24px; }
  .ty-item__text { font-size: 16px; line-height: 22px; }

  .ty-qs { padding-block: 40px; }
  .ty-qs__inner { gap: 24px; }
  .ty-qs__title { font-size: 28px; letter-spacing: -0.02em; line-height: 32px; }
  .ty-qs__list { flex-direction: column; gap: 0; }
  .ty-q { display: flex; align-items: flex-start; gap: 14px; padding-top: 0; padding-bottom: 20px; border-top: 0; }
  .ty-q + .ty-q { padding-top: 20px; padding-bottom: 0; border-top: 1px solid var(--ink-line); }
  .ty-q__tick { display: block; }
  .ty-q > div { gap: 4px; }
  .ty-q__title { font-size: 20px; font-weight: 800; line-height: 24px; }
  .ty-q__text { font-size: 16px; line-height: 23px; }

  .ty-opt { padding-top: 40px; padding-bottom: 48px; }
  .ty-opt__inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .ty-opt__label { font-size: 14px; font-weight: 700; line-height: 20px; }
  .ty-opt__card {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 56px; padding-inline: 18px; border-radius: 16px; background: var(--paper-2);
    color: var(--ink); font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 24px; text-decoration: none;
    transition: transform var(--dur-press) var(--ease-out);
  }
  .ty-opt__card svg { width: 20px; height: 20px; color: var(--deep-green); }
}
