/* Plan cards (home and pricing page) and the comparison table (pricing page).
 * Accents: Personal green, Pro violet, Team cyan, the colours of the mark. */
.plan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan-cards[data-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
/* Oliver, 29 Oct 2026: no rows of cards. The plans stand as ruled columns on the page ground. */
.plan-cards { gap: 0; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border); }
@media (max-width: 1100px) { .plan-cards[data-cols="5"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-cards[data-cols="5"] .plan-card:nth-child(3n + 1) { border-left: 0; } .plan-cards[data-cols="5"] .plan-card:nth-child(n + 4) { border-top: 1px solid var(--border); } }
@media (max-width: 900px) { .plan-cards, .plan-cards[data-cols="5"] { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .plan-card + .plan-card { border-left: 0; border-top: 1px solid var(--border); } }

.plan-card {
  --accent: var(--text-dim);
  position: relative;
  display: grid; gap: 14px; align-content: start;
  padding: 28px 24px 30px;
  background: transparent; border-radius: 0;
  transition: background 200ms ease;
}
.plan-card + .plan-card { border-left: 1px solid var(--border); }
.plan-card:hover { background: rgb(255 255 255 / 0.02); }
.plan-card[data-accent="green"] { --accent: var(--green); }
.plan-card[data-accent="violet"] { --accent: var(--violet); }
.plan-card[data-accent="cyan"] { --accent: var(--cyan); }
.plan-card[data-accent="yellow"] { --accent: var(--amber); }
/* Pro is raised, as in the mock: a lighter ground, a soft rim and its tab on the top edge. */
.plan-card[data-featured="true"] { background: rgb(255 255 255 / 0.035); box-shadow: inset 0 2px 0 var(--text); }
.plan-flag { position: absolute; top: -11px; left: 24px; transform: none; padding: 3px 8px; border-radius: 0; background: #0b0b0b; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); color: var(--text); font-size: 11px; font-weight: 500; white-space: nowrap; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--text-body); }
.plan-mark { width: 18px; height: 18px; fill: none; stroke: #4fd1c5; stroke-width: 1.6; }
.plan-line { font-size: clamp(21px, 1.9vw, 26px); font-weight: 500; line-height: 1.18; letter-spacing: -0.02em; color: var(--text); min-height: 2.36em; }
.plan-keyword { color: var(--accent); }
.plan-lede { font-size: 13.5px; color: var(--text-dim); min-height: 3lh; line-height: 1.5; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.plan-amount { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.plan-cadence { font-size: 13px; color: var(--text-dim); }
.plan-cards[data-cols="5"] .plan-line { font-size: 18px; }
.plan-cards[data-cols="5"] .plan-price { min-height: 40px; align-content: end; }
.plan-choose { margin-top: 2px; width: 100%; min-height: 42px; border-radius: 0; }
.plan-card .button:not(.button-primary) { background: #dcdcdc; color: #0b0b0b; border-color: #dcdcdc; }
.plan-card .button:not(.button-primary):hover { background: #fff; border-color: #fff; }
.plan-contract { margin-top: 4px; min-height: 42px; display: flex; align-items: center; font-size: 14px; color: var(--text-dim); }
.plan-cancel { margin-top: -8px; font-size: 12px; color: var(--text-dim); padding-bottom: 14px; }
.plan-features-intro { font-size: 12.5px; color: var(--text-body); }
.plan-features { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--text-body); }
.plan-features li { display: flex; gap: 12px; align-items: flex-start; }
.plan-features strong { color: var(--text); font-weight: 600; }
.plan-glyph { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: #4fd1c5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plan-usage { margin-top: 20px; font-size: 13px; color: var(--text-dim); text-align: center; }
.pricing-more { margin-top: 10px; text-align: center; font-size: 14px; }
.pricing-more a { color: var(--text-body); }
.pricing-more a:hover { color: var(--text); }

/* ---------- Comparison table ---------- */
.compare-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: 0; background: var(--panel); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.compare caption { caption-side: bottom; padding: 12px 14px; font-size: 12px; color: var(--text-dim); text-align: left; }
.compare th, .compare td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.compare thead th { border-top: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); background: #111; }
.compare thead th[data-accent="green"] { color: var(--green); }
.compare thead th[data-accent="violet"] { color: var(--violet); }
.compare thead th[data-accent="cyan"] { color: var(--cyan); }
.compare tbody th { font-weight: 500; color: var(--text); width: 22%; }
.compare td { color: var(--text-body); }
.compare .plan-glyph { stroke: var(--success); margin: 0; }
.compare-none { color: #4a4a4a; }

/* ---------- Pricing page extras ---------- */
/* Ruled rows, as the questions on every other page (29 Oct 2026), rather than rounded panels. */
.pricing-faq { display: grid; gap: 0; max-width: 760px; border-bottom: 1px solid var(--border); }
.pricing-faq details { border-top: 1px solid var(--border); }
.pricing-faq summary { padding: 16px 0; cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pricing-faq summary::-webkit-details-marker { display: none; }
.pricing-faq summary::after { content: "+"; color: var(--text-dim); }
.pricing-faq details[open] summary::after { content: "–"; }
.pricing-faq details > p { padding: 0 0 18px; font-size: 14px; color: var(--text-body); max-width: var(--measure); }
@media (max-width: 900px) { .compare th:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); box-shadow: 1px 0 0 var(--border); } .compare thead th:first-child { background: #111; } }

/* Purchase (decision 969): the card's form, the closed-state note and the return notice. */
.plan-purchase { margin: 0; }
.plan-purchase .plan-choose { width: 100%; }
.plan-purchase .plan-choose:disabled { opacity: 0.6; cursor: not-allowed; }
.plan-card .plan-purchase .plan-choose:disabled:hover { background: #dcdcdc; border-color: #dcdcdc; }
.plan-purchase-note { margin: 6px 0 0; font-size: 12px; color: var(--text-dim); }
.purchase-notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 0; background: var(--panel); color: var(--text); }

/* Phone: the plans are a horizontal swipe, Pro first, each card most of the screen wide. */
@media (max-width: 900px) {
  .plan-cards:not([data-cols]) { display: flex; max-width: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px var(--gutter) 8px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
  .plan-cards:not([data-cols])::-webkit-scrollbar { display: none; }
  .plan-cards:not([data-cols]) .plan-card { flex: 0 0 84%; scroll-snap-align: center; }
  .plan-cards:not([data-cols]) .plan-card[data-featured="true"] { order: -1; }
  /* The scroller clips anything below its edge, so the featured glow would end in a hard line. */
  .plan-cards:not([data-cols]) .plan-card[data-featured="true"] { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
  .plan-cards:not([data-cols]) .plan-lede { min-height: 0; }
  .plan-cards:not([data-cols]) .plan-line { min-height: 0; }
}
/* Phone, on Pricing too (29 Oct 2026, Oliver: too much text on a phone): the five plans are one swipe, as on the
 * home page, each most of the screen wide and ruled from the next, rather than a column five plans long. */
@media (max-width: 760px) {
  .plan-cards[data-cols="5"] { display: flex; max-width: none; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 14px var(--gutter) 0; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .plan-cards[data-cols="5"]::-webkit-scrollbar { display: none; }
  .plan-cards[data-cols="5"] .plan-card { flex: 0 0 84%; scroll-snap-align: start; }
  .plan-cards[data-cols="5"] .plan-card + .plan-card { border-top: 0; border-left: 1px solid var(--border); }
}

/* Home pricing (Oliver, 18 Oct): the headline in a column beside three compact cards, the whole
 * section within one viewport at laptop size. */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(28px, 3.5vw, 56px); align-items: center; }
.pricing-head { margin: 0; align-content: center; }
.pricing-head h2 { font-size: clamp(26px, 2.3vw, 36px); line-height: 1.15; }
.pricing-head .plan-usage, .pricing-head .pricing-more { margin: 6px 0 0; text-align: left; }
.plan-cards-compact { gap: 12px; }
.plan-cards-compact .plan-card { gap: 9px; padding: 18px 16px 16px; border-radius: 18px; }
.plan-cards-compact .plan-line { font-size: clamp(16px, 1.3vw, 18px); min-height: 2.36em; }
.plan-cards-compact .plan-lede { font-size: 12px; min-height: 3lh; }
.plan-cards-compact .plan-choose { min-height: 34px; font-size: 12.5px; }
.plan-cards-compact .plan-amount { font-size: 22px; }
.plan-cards-compact .plan-cancel { padding-bottom: 8px; }
.plan-cards-compact .plan-features { gap: 6px; font-size: 12px; }
.plan-cards-compact .plan-glyph { width: 14px; height: 14px; flex-basis: 14px; }
/* Pro's raise is taken back inside, so every card's rows line up; its intro line is dropped here. */
@media (min-width: 901px) { .plan-cards.plan-cards-compact:not([data-cols]) .plan-card[data-featured="true"] { margin-top: -10px; padding-top: 28px; margin-bottom: 10px; } }
.plan-cards-compact .plan-features-intro { display: none; }
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); } }
/* Each question is a heading inside its summary, so answer engines and screen readers find it (29 Oct 2026). */
.pricing-faq summary h3 { font: inherit; letter-spacing: inherit; margin: 0; }
