/* The pricing (./plans.ts): hero 13's two plans
   (Product/components/landing-v4/brand/Plans.tsx, plans.css) on the moving
   page's white, in the story's pixels. The pieces every version shares are
   in ./plans-parts.css, the versions after the first in
   ./plans-versions.css and version 1's five other pairs of pictures in
   ./plans-art.css; all come in here, so a page that links this one file
   can show any version. This file has version 1, the two cards.

   A plate is the story's (./story.css .story-paper): a frame cut in nine
   (./pixels.ts plate) laid as the box's border, `--cell` a cell of it, and
   a hard shadow two cells down and to the right. */

@import url('./plans-parts.css');
@import url('./plans-versions.css');
@import url('./plans-art.css');

/* ------------------------------------------------- 1 · the two cards */

/* on a desk the two cards share their rows, so each row stands beside its twin */
.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 36px;
  max-width: 1120px;
  margin: 48px auto 0;
}
.plan-card {
  --cell: 3px;
  display: grid;
  grid-row: span 9;
  grid-template-rows: subgrid;
  padding: 14px 18px 18px;
}
.plan-card + .plan-card {
  margin-top: 40px;
}

/* the head: the picture standing on the card's own white, its chip over it at the top left */
.plan-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 232px;
  padding-bottom: 18px;
}
.plan-head > .plan-art[data-art='crowd'] {
  width: 60%;
}
.plan-head > .plan-art[data-art='bus'] {
  width: 96%;
  margin-bottom: 14px;
}
.plan-chip {
  position: absolute;
  z-index: 5;
  top: 2px;
  left: 0;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* the worked month at the card's foot, plain on the card's own white (Sergei 2026-11-27: "dont add so
   accent style here"): only its title, its rows and the dotted rule over the total */
.plan-card .plan-month {
  align-self: end;
}

/* the product's landing breakpoint */
@media (min-width: 680px) {
  .plan {
    padding: 144px 32px 160px;
  }
  .plan-title {
    font-size: clamp(52px, 4.9vw, 72px);
  }
  .plan-grid {
    margin-top: 64px;
  }
  .plan-card {
    padding: 16px 22px 22px;
  }
  .plan-head {
    height: 260px;
  }
}
/* a desk: the two side by side */
@media (min-width: 960px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-card + .plan-card {
    margin-top: 0;
  }
}
/* a phone: less white over the title and under the cards, where the closing's seam brings its own, and each card's
   two keys one over the other at the card's width, as the managed card's already fall, so both cards end alike */
@media (max-width: 679px) {
  .plan {
    padding: 80px 16px 40px;
  }
  .plan-card .plan-keys {
    flex-direction: column;
  }
}
