/*
 * The public plans page, and only that page.
 *
 * It wears the landing page's classes and loads landing.css first, so the
 * ground, the type, the buttons, the bands, the figure tiles and the closer
 * are the landing page's own. This file is only what /plans has that the
 * landing page does not: the plan card with its list, the steps beside it,
 * the policy card and the captioned photograph.
 *
 * Loaded before shell.css like landing.css, so rules on a shared class carry
 * a `.pl` prefix to win on specificity.
 */

.pl-hero { display: grid; gap: 18px; padding: 64px 0 44px; max-width: 760px; }
.pl-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 66px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.pl-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: stretch;
  padding-bottom: 104px;
}

/* ------------------------------------------------------------- the plan */

.pl-card {
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface-2);
  box-shadow: var(--shadow-float);
}
.pl-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pl .pl-badge {
  border-color: var(--line-strong);
  background: var(--surface-1);
  color: var(--ink-2);
}
.pl-held { font-size: 12.5px; color: var(--good); font-weight: 600; }

.pl-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 4px 0 0; }
.pl-amount {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 88px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.pl-per { font-size: 14px; color: var(--ink-3); }
.pl-summary { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); }
.pl-after { margin: 0; font-size: 13.5px; color: var(--ink-3); }

.pl-list-head { margin-top: 8px; }
.pl-list {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
}
.pl-list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 9px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.pl-list svg { margin-top: 2px; color: var(--good); }
.pl-list .is-no { color: var(--ink-3); }
.pl-list .is-no svg { color: var(--ink-4); }

.pl-act {
  display: grid;
  gap: 14px;
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pl-agree { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.pl-agree a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.pl .pl-promise { justify-self: start; margin: 0; }

/* ---------------------------------------------------------- beside it */

.pl-side { display: grid; gap: 22px; grid-template-rows: auto 1fr; }
.pl .pl-terms { margin: 0; }

.pl-next {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-1);
}
/* The steps spread down the card, so the column ends where the plan card
   beside it does rather than leaving a gap under the last one. */
.pl-next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; align-content: space-between; }
.pl-next li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
.pl-step {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--accent);
}
.pl-next h3 { margin: 4px 0 3px; font-size: 15px; font-weight: 600; color: var(--ink); }
.pl-next p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

/* -------------------------------------------------------------- policy */

/* A jump from the agreement line lands clear of the sticky header. */
.pl [id="billing"] { scroll-margin-top: 78px; }

.pl-policy-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--lp-band-card);
}
/* The partial's own heading repeats the section's, so it steps back. */
.pl .pl-policy-card [data-billing-policy] { gap: 12px; }
.pl .pl-policy-card [data-billing-policy] > .eyebrow { display: none; }
.pl .pl-policy-card .small { font-size: 14px; line-height: 1.6; }

/* ------------------------------------------------------------ the photo */

.pl-photo {
  position: relative;
  margin: 104px 0 0;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
}
.pl-photo img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.pl-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 4px;
  padding: 60px 32px 28px;
  background: linear-gradient(to top, rgba(20, 15, 8, 0.78), transparent);
  color: #fbf8f2;
}
.pl-photo figcaption b {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.pl-photo figcaption span { font-size: 14px; color: #e8e1d3; }

/* The closer follows the photo, so it needs less room above it. */
.pl .lp-closer { margin-top: 28px; }

/* -------------------------------------------------------------- narrow */

@media (max-width: 980px) {
  .pl-stage { grid-template-columns: minmax(0, 1fr); padding-bottom: 76px; }
  .pl-next ol { align-content: start; }
  .pl-hero { padding-top: 40px; }
  .pl-photo { margin-top: 76px; }
}

@media (max-width: 640px) {
  .pl-card { padding: 22px; border-radius: 22px; }
  .pl-list { grid-template-columns: minmax(0, 1fr); }
  .pl-policy-card { padding: 20px; }
  .pl-photo img { aspect-ratio: 4 / 3; }
  .pl-photo figcaption { padding: 48px 20px 20px; }
}
