/* Pricing (/pricing): the page's own layout, from docs/design/website/export/round3/pricing.html. */
/* hero + plans above the fold */
.hero {
  position: relative;
  padding: 34px 0 60px;
}
.p-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
.p-head-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* the plan cards: Pricing's fuller version of components/PlanCards.astro (tag, tax line, body); the ticks are components/Ticks.astro */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.plan {
  border-radius: 24px;
  padding: 28px;
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.plan.feat {
  box-shadow: inset 0 0 0 2px var(--ink);
}
/* out of the card's flow, so Free's heading lines up with the others (the export's sat 16px lower) */
.plan-note-d {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.price {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price small {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
}
.tax-line {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.plan-fine {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.plan-cta {
  margin-top: auto;
  padding-top: 8px;
}
.plans-foot {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-link {
  font-weight: 600;
  color: var(--ink);
}

/* 60 free minutes band */
.mins-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
}
.mins-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mins-list li {
  border-radius: 20px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}
.mins-list img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.mins-list b {
  display: block;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 2px;
}
.mins-art {
  position: relative;
  border-radius: 26px;
  overflow: clip; /* not hidden: a scroll container would freeze the scroll-driven effects inside it */
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.mins-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* comparison table: one tbody per group, each row headed by its feature */
.cmp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 28px;
}
.cmp-head .note-wrap {
  padding-bottom: 6px;
}
.cmp-wrap {
  border-radius: 24px;
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line);
  overflow: hidden;
}
.cmp {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.cmp th,
.cmp td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.38;
  vertical-align: middle;
}
.cmp tbody th {
  font-weight: 400;
}
.cmp tbody:last-child tr:last-child > * {
  border-bottom: 0;
}
.cmp thead th {
  background: var(--soft);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding: 16px 18px;
}
.cmp thead th small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}
.cmp th.col-feat {
  width: 46%;
}
.cmp th.col-plan,
.cmp td.col-plan {
  width: 18%;
  text-align: center;
}
.cmp th.col-pro,
.cmp td.col-pro {
  background: var(--soft);
}
.cmp tr.cmp-group th {
  background: var(--band);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 18px;
}
.cmp .f-name {
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.cmp .f-sub {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.cmp .yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #9df27d;
  color: #1d1a17;
  font-weight: 700;
  font-size: 13px;
}
.cmp .no {
  color: var(--muted);
  font-weight: 500;
}
.cmp .val {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

/* two-modes dark band (staging only; see content/pricing.ts) */
.modes-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 44px;
  align-items: center;
}
.mode-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.mode-mini {
  border-radius: 20px;
  background: var(--stage-surface);
  box-shadow: inset 0 0 0 1px var(--stage-line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mode-mini h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--stage-ink);
  letter-spacing: -0.02em;
}
.mode-mini p {
  margin: 0;
  font-size: 14px;
  line-height: 1.48;
  color: var(--stage-muted);
}
.modes-art {
  position: relative;
  padding-top: 64px;
}
.modes-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* plan faq */
.pfaq-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.pfaq-more {
  padding-top: 4px;
}

@container sw (max-width: 900px) {
  .hero {
    padding: 20px 0 40px;
  }
  .p-head {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 26px;
  }
  .plans {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .plan {
    padding: 22px;
    gap: 12px;
  }
  .price {
    font-size: 40px;
  }
  .plan-note-d {
    display: none;
  }
  .mins-grid,
  .modes-split,
  .pfaq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .mins-list {
    margin-top: 12px;
    gap: 10px;
  }
  .mins-list li {
    padding: 13px 14px;
    grid-template-columns: 36px 1fr;
    gap: 10px;
  }
  .mins-list img {
    width: 36px;
    height: 36px;
  }
  .mins-list b {
    font-size: 15px;
  }

  .cmp-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
  }
  .cmp-head .note-wrap {
    display: none;
  }
  .cmp-wrap {
    border-radius: 18px;
  }
  .cmp th,
  .cmp td {
    padding: 11px 6px;
    font-size: 12px;
  }
  .cmp thead th {
    padding: 12px 6px;
    font-size: 12px;
  }
  .cmp thead th small {
    font-size: 10px;
  }
  .cmp th.col-feat {
    width: 43%;
    padding-left: 12px;
  }
  .cmp tbody th {
    padding-left: 12px;
  }
  .cmp tr.cmp-group th {
    padding: 8px 12px;
    font-size: 10px;
  }
  .cmp th.col-plan,
  .cmp td.col-plan {
    width: 19%;
  }
  .cmp .f-sub {
    display: none;
  }
  .cmp .yes {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .cmp .val {
    font-size: 11px;
  }

  .mode-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mode-mini {
    padding: 16px;
  }
  .modes-art {
    padding-top: 50px;
  }
  .modes-art .note {
    left: 4px !important;
    top: 0 !important;
    font-size: 21px;
  }
  .modes-art .pen {
    left: 208px !important;
    top: 24px !important;
    width: 48px !important;
    height: 30px !important;
  }
}

/* tablet: the phone layout with room to spare, so the table keeps its sub-lines */
@container sw (min-width: 721px) and (max-width: 900px) {
  .cmp th,
  .cmp td {
    padding: 13px 12px;
    font-size: 14px;
  }
  .cmp th.col-feat,
  .cmp tbody th {
    padding-left: 18px;
  }
  .cmp .f-sub {
    display: block;
  }
  .cmp .val {
    font-size: 13px;
  }
}
