/*
 * The Pricing page (`pricing.html` → /pricing/), in home.css's system and page.css's opening. This
 * file adds only what no other page draws: the minutes on their painting, the two plans (Free on
 * paper, Tailored in glass on a painting), the three costs, the comparison table and the questions
 * beside their heading.
 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ─── The opening ──────────────────────────────────────────────────────── */
.pr-hero {
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
}

.hero-shot {
  left: 56px;
  top: 48px;
  width: 800px;
}

/* ─── The two plans ────────────────────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
}

.plan {
  display: flex;
  flex-direction: column;
}

.plan-free {
  align-items: flex-start;
  padding: var(--s7);
  border-radius: var(--r-md);
  background: var(--paper);
}

.plan-co {
  padding: var(--s5);
}

.plan-glass {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--s7) var(--s6);
  border-radius: var(--r-md);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(140%);
  color: #ededef;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 14%),
    0 24px 60px rgb(0 0 0 / 30%);
}

.plan-glass .label {
  color: #b4b4bc;
}

.price {
  margin-top: var(--s2);
  font: 370 var(--display) / var(--display-lh) var(--font-display);
  letter-spacing: -0.03em;
}

.line {
  max-width: 420px;
  margin: var(--s3) 0 var(--s6);
  color: var(--text-2);
}

.plan-glass .line {
  color: #c9c9d0;
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-light:hover {
  background: #e4e4e8;
}

.plan-list {
  display: grid;
  gap: var(--s3);
  width: 100%;
  margin-top: var(--s6);
  padding-top: var(--s5);
  box-shadow: 0 -1px 0 var(--line-2);
  font-size: var(--small);
  line-height: var(--small-lh);
}

.plan-glass .plan-list {
  box-shadow: 0 -1px 0 rgb(255 255 255 / 18%);
  color: #dcdce2;
}

.plan-list li {
  position: relative;
  padding-left: var(--s5);
}

/* A tick drawn in borders, so it takes the text's own colour */
.plan-list li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid currentcolor;
  border-width: 0 2px 2px 0;
  rotate: 45deg;
  opacity: 0.7;
}

/* ─── What it costs ────────────────────────────────────────────────────── */
.costs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s6);
  margin-top: var(--s8);
}

.costs > div {
  padding-top: var(--s5);
  box-shadow: 0 -1px 0 var(--line-2);
}

.costs h3 {
  font-size: var(--h4);
  line-height: var(--h4-lh);
  letter-spacing: -0.01em;
}

.costs p {
  margin-top: var(--s3);
  color: var(--text-2);
}

.costs .icons {
  margin-top: var(--s4);
}

/* ─── Compare ──────────────────────────────────────────────────────────── */
.compare {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--small);
  line-height: var(--small-lh);
}

.compare th,
.compare td {
  padding: var(--s4) var(--s4) var(--s4) 0;
  box-shadow: 0 -1px 0 var(--line);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  padding-bottom: var(--s4);
  box-shadow: none;
  font: 370 var(--h4) / var(--h4-lh) var(--font-display);
  letter-spacing: -0.01em;
}

.compare tbody th {
  font-weight: 500;
  color: var(--text);
}

.compare td {
  color: var(--text-2);
}

.compare th:first-child {
  width: 38%;
}

.compare i {
  font-style: normal;
}

.compare .yes {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--text);
}

.compare .yes::before {
  content: '';
  width: 5px;
  height: 10px;
  margin: -3px 3px 0 1px;
  border: solid currentcolor;
  border-width: 0 2px 2px 0;
  rotate: 45deg;
}

.compare .no {
  color: var(--text-3);
}

/* ─── Questions, beside their heading ──────────────────────────────────── */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s8);
}

.faq .head + * {
  margin-top: 0;
}

.faq .qa {
  max-width: none;
}

.faq .qa a {
  color: var(--text);
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

@media (width <= 1100px) {
  .pr-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-shot {
    width: 1000px;
  }

  .costs {
    gap: var(--s5);
  }
}

@media (width <= 860px) {
  .plans,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq {
    gap: var(--s7);
  }

  .costs {
    grid-template-columns: minmax(0, 1fr);
    margin-top: var(--s7);
  }
}

@media (width <= 720px) {
  .hero-shot {
    left: 24px;
    top: 28px;
    width: 640px;
  }

  .plan-free {
    padding: var(--s6) var(--s5);
  }

  .plan-glass {
    padding: var(--s6) var(--s5);
  }

  .price {
    font-size: 64px;
    line-height: 64px;
  }

  .compare {
    font-size: 15px;
    line-height: 22px;
  }

  .compare thead th {
    font-size: 20px;
    line-height: 26px;
  }

  .compare th,
  .compare td {
    padding-right: var(--s3);
  }

  .compare th:first-child {
    width: 44%;
  }
}
