/* TOQUIA Cinematic — Scene 08 · Planes. Warm beige room between Toki and the emerald close.
   Static composition: no pin, no scene module, no blur or filters. The only motion is the
   shared [data-reveal] fade, so the scene costs nothing on mid/low tier phones.
   Every text block sits on its own solid surface: the backdrop changes colour under the
   scene (toasted bridge on the way in, sage on the way out) and the copy must stay legible. */

.planes-scene .scene-inner { display: grid; gap: var(--space-lg); }

.plan-grid {
  display: grid;
  gap: var(--space-md);
  align-items: stretch;
}
@media (min-width: 900px) {
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.4rem, 2.2vw, 2rem);
  border-radius: 24px;
  background: var(--tq-cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  color: var(--tq-charcoal);
}
.plan-card .plan-kicker {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tq-gold-ink);
}
.plan-card h3 {
  font-size: var(--fs-h3);
  letter-spacing: .08em;
  line-height: 1.1;
}
.plan-branches { font-size: var(--fs-small); color: #5A5C58; }
.plan-price { display: flex; align-items: baseline; gap: 0.35rem; margin-top: 0.4rem; }
.plan-price strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 3.2vw + 1rem, 3.4rem);
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.plan-price span { font-size: var(--fs-small); color: #5A5C58; }
.plan-savings { display: grid; gap: 0.15rem; font-size: var(--fs-small); }
.plan-savings .compare { color: #5A5C58; }
.plan-savings .save { color: var(--tq-emerald); font-weight: 600; }

.plan-benefits {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin: 0.6rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(17,20,18,.12);
  font-size: var(--fs-small);
  line-height: 1.45;
}
.plan-benefits li { position: relative; padding-left: 1.5rem; }
.plan-benefits li::before {
  content: "";
  position: absolute;
  left: 0.15rem; top: 0.3em;
  width: 0.7rem; height: 0.38rem;
  border-left: 2px solid var(--tq-emerald);
  border-bottom: 2px solid var(--tq-emerald);
  transform: rotate(-45deg);
}
.plan-note {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 12px;
  line-height: 1.6;
  color: #5A5C58;
}
.plan-card .btn { justify-content: center; text-align: center; white-space: normal; }

/* Pro — the recommended plan carries the emerald accent. */
.plan-pro {
  background: var(--tq-emerald);
  /* Fine light edge: keeps the card's outline when the backdrop turns emerald on the way to the close. */
  border-color: rgba(242,235,221,.32);
  color: var(--tq-beige);
}
.plan-pro .plan-kicker { color: var(--tq-gold); }
.plan-pro .plan-branches,
.plan-pro .plan-price span,
.plan-pro .plan-savings .compare,
.plan-pro .plan-note { color: rgba(242,235,221,.84); }
.plan-pro .plan-savings .save { color: var(--tq-beige); }
.plan-pro .plan-benefits { border-top-color: rgba(242,235,221,.22); }
.plan-pro .plan-benefits li::before { border-color: var(--tq-gold); }
.plan-pro .btn-scene { background: var(--tq-beige); color: var(--tq-charcoal); }
.plan-pro .btn-scene:hover { background: var(--tq-cream); }
.plan-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: 0.3em 0.8em;
  border-radius: 99px;
  background: var(--tq-gold);
  color: var(--tq-charcoal);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Premier — sand surface, same structure. */
.plan-premier { background: #EFE5D2; }

/* Clarifications: one solid panel so the small print never sits on the moving backdrop. */
.plan-clarifications {
  display: grid;
  gap: 0.6rem;
  max-width: 54rem;
  margin-inline: auto;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border-radius: 20px;
  background: var(--tq-cream);
  border: 1px solid var(--line);
  color: #4A4B47;
  font-size: var(--fs-small);
  line-height: 1.6;
  text-align: center;
}
.plan-clarifications .plan-trial {
  margin-top: 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem);
  letter-spacing: -.02em;
  color: var(--tq-emerald);
}

/* Phones and narrow tablets: one compact card per plan. The plan name and its price share the
   first rows and the lists are set tighter, so the three plans read as three short blocks.
   Type sizes are the same as on desktop: only the arrangement and the spacing change. */
@media (max-width: 899px) {
  .planes-scene .scene-inner { gap: var(--space-md); }
  .plan-grid { gap: 0.875rem; }
  .plan-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "kicker   badge"
      "name     price"
      "branches price"
      "savings  savings"
      "benefits benefits"
      "note     note"
      "cta      cta";
    column-gap: 0.75rem;
    row-gap: 0.3rem;
    padding: 1.1rem 1.15rem 1.15rem;
    border-radius: 20px;
  }
  .plan-card .plan-kicker { grid-area: kicker; align-self: center; }
  .plan-badge { grid-area: badge; position: static; justify-self: end; }
  .plan-card h3 { grid-area: name; }
  .plan-branches { grid-area: branches; }
  .plan-price { grid-area: price; margin-top: 0; align-self: end; justify-self: end; }
  .plan-savings { grid-area: savings; display: flex; flex-wrap: wrap; gap: 0.1rem 0.6rem; margin-top: 0.3rem; }
  .plan-benefits { grid-area: benefits; gap: 0.3rem; margin-top: 0.4rem; padding-top: 0.7rem; line-height: 1.4; }
  .plan-note { grid-area: note; margin-top: 0.25rem; padding-top: 0; }
  .plan-card .btn { grid-area: cta; margin-top: 0.3rem; }
  .plan-clarifications { text-align: left; gap: 0.45rem; padding: 1rem 1.15rem; }
}
/* Wide phones and small tablets have room for the list in two columns. */
@media (min-width: 560px) and (max-width: 899px) {
  .plan-benefits { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
}
/* Very narrow phones: the price drops below the name instead of squeezing it. */
@media (max-width: 349px) {
  .plan-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "badge" "kicker" "name" "branches" "price" "savings" "benefits" "note" "cta";
  }
  .plan-badge, .plan-price { justify-self: start; }
}
