/* Pricing page (card 1e). Tokens only, as every page file (CONTRACT.md): type through var(--fs-N), colour and space through the shell's tokens.
   Yellow appears once here, as the Standard card's .btn-primary (and the closing .btn-primary). The page's look is the builder's, from the kit, UNCONFIRMED. */

.price-intro { padding-block: var(--space-8) 0; display: flex; flex-direction: column; gap: var(--space-4); }
.price-intro .lead { max-width: 60ch; }   /* the one sentence reads best on one line at desktop width */
.section > .h-section { margin-bottom: var(--space-6); }

/* ---------- plan cards ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: stretch; }
.plan {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
  min-width: 0; padding: var(--space-6); border-radius: var(--r-card); background: var(--graphite);
}
.plan-lift { background: var(--slate); }
.plan-mark { width: 48px; height: 48px; margin: 0 0 var(--space-2) var(--mark-shift, -7px); }   /* the drawn edge, not the 48 px box, lines up with the words */
.plan[data-plan="starter"] { --mark-shift: -15px; }
.plan .h-card { font-size: var(--fs-3); }
.plan-price { display: flex; align-items: baseline; gap: var(--space-2); white-space: nowrap; margin-top: var(--space-2); line-height: 1; }
.plan-amount { font-family: var(--font-display); font-size: var(--fs-2); font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.plan-from { font-size: var(--fs-7); font-weight: 600; color: var(--muted-dark); letter-spacing: 0; }
.plan-tax { margin-top: calc(-1 * var(--space-1)); }
.plan-lift .small { color: var(--text-soft); }
.plan-for { margin-top: var(--space-2); max-width: 34ch; font-size: var(--fs-7); line-height: 1.5; color: var(--text-soft); }
.plan-grid .plan-for { min-height: 3em; }   /* room for two lines, so the three buttons stay level when one card's line wraps (900 to 1279 px); wide screens and the one-column phone layout need none */
@media (min-width: 1280px) { .plan-grid .plan-for { min-height: 0; } }
.plan-list { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--fs-7); line-height: 1.4; }
.plan-list li { position: relative; padding-left: 20px; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 2px; border-radius: 1px; background: var(--muted-dark); }
.plan-cta { margin-top: var(--space-3); min-height: 56px; }   /* the yellow button is 56 px (Kit 03); the outline ones match, so the lists below start level */

.plan-wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6) var(--space-9); align-items: start; padding: var(--space-7); }
.plan-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.plan-head .plan-cta { margin-top: var(--space-4); }
.plan-body { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.plan-body .plan-for { margin-top: 0; max-width: 40ch; font-size: var(--fs-6); line-height: 1.5; }
.plan-wide .plan-list { margin: 0; font-size: var(--fs-6); gap: var(--space-3); }
.plan-wide .plan-list li::before { top: 0.75em; }

/* ---------- what's in each plan ---------- */
.inc-key { margin: calc(-1 * var(--space-2)) 0 var(--space-5); color: var(--text-soft); line-height: 2.4; }
.inc-key .pill { vertical-align: middle; margin-inline: 2px; }
.inc-panel { padding: var(--space-4) var(--space-5) var(--space-5); border-radius: var(--r-card); background: var(--graphite); }
.inc-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: var(--fs-7); }
.inc-table thead td:first-child { width: 31%; }
.inc-table th, .inc-table td { padding: 14px var(--space-4); text-align: left; vertical-align: middle; font-weight: 400; }
.inc-table thead th { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.inc-plan { display: block; font-family: var(--font-display); font-size: var(--fs-4); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.inc-cost { display: block; margin-top: 2px; }
.inc-table tbody th { font-weight: 400; }
.inc-label { display: block; font-weight: 600; color: var(--paper); }
.inc-note { display: block; margin-top: 2px; }
.inc-table tbody tr:nth-child(odd) > * { background: color-mix(in srgb, var(--ink) 42%, transparent); }
.inc-table tbody tr > :first-child { border-radius: var(--r-inner) 0 0 var(--r-inner); }
.inc-table tbody tr > :last-child { border-radius: 0 var(--r-inner) var(--r-inner) 0; }
.inc-none { display: inline-block; width: 14px; height: 2px; border-radius: 1px; background: var(--muted-dark); vertical-align: middle; }

.inc-stack { display: none; }
.inc-card { padding: var(--space-5); border-radius: var(--r-card); background: var(--graphite); }
.inc-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-3); }
.inc-card-head .h-card { font-size: var(--fs-3); }
.inc-card ul { list-style: none; margin: 0; padding: 0; }
.inc-card li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 48px; padding: 8px var(--space-3); border-radius: var(--r-inner); font-size: var(--fs-7); line-height: 1.35; }
.inc-card li:nth-child(odd) { background: color-mix(in srgb, var(--ink) 42%, transparent); }
.inc-card li > :first-child { min-width: 0; color: var(--text-soft); }
.inc-card li > :not(:first-child) { flex: 0 0 auto; text-align: right; }

.inc-built { margin-top: var(--space-7); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3) var(--space-7); }
.inc-built ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); color: var(--text-soft); font-size: var(--fs-7); }
.inc-built li { position: relative; min-height: 28px; padding: 2px 0 2px 18px; line-height: 1.5; }   /* a block, so a wrapped second line hangs under the text and the item's baseline is its text's */
.inc-built li::before { content: ""; position: absolute; left: 0; top: calc(2px + (1.5em - 2px) / 2); width: 8px; height: 2px; border-radius: 1px; background: var(--muted-dark); }   /* the dash sits on the FIRST line's middle, also when the item wraps */

/* ---------- add-ons and after launch ---------- */
.care { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6) var(--space-8); padding: var(--space-7); border-radius: var(--r-panel); background: var(--blueprint); color: var(--ink); --focus: var(--ink); }
.care-lead { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.care .h-card { font-size: var(--fs-3); }
.care-price { display: flex; align-items: baseline; gap: var(--space-2); white-space: nowrap; line-height: 1; }
.care-per { font-size: var(--fs-6); font-weight: 600; color: var(--slate); }
.care-line { max-width: 30ch; color: var(--slate); }
.care-body { display: flex; flex-direction: column; gap: var(--space-5); }
.care-list, .care-terms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.care-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-5); font-size: var(--fs-6); font-weight: 600; }
.care-list li:last-child { grid-column: 1 / -1; font-weight: 400; }
.care-terms { color: var(--slate); font-size: var(--fs-7); }
.care-list li, .care-terms li { position: relative; padding-left: 20px; line-height: 1.4; }
.care-list li::before, .care-terms li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 2px; border-radius: 1px; background: var(--slate); }

.extras { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7) var(--space-7); margin-top: var(--space-8); align-items: start; }
.extra { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.extra .h-card { font-size: var(--fs-3); }
.extra-line { max-width: 40ch; color: var(--text-soft); font-size: var(--fs-7); line-height: 1.5; }
.extra-big { display: flex; align-items: baseline; gap: var(--space-2); white-space: nowrap; line-height: 1; }
.extra-big .care-per { color: var(--muted-dark); }
.price-rows { align-self: stretch; margin: var(--space-2) 0 0; display: flex; flex-direction: column; }
.price-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); padding: 12px var(--space-4); border-radius: var(--r-inner); }
.price-rows > div:nth-child(odd) { background: var(--graphite); }
.price-rows dt { font-size: var(--fs-7); font-weight: 600; }
.price-rows dd { margin: 0; font-family: var(--font-display); font-size: var(--fs-4); font-weight: 700; letter-spacing: -0.01em; }
.extra .link-more { margin-top: var(--space-2); }

.not-offered { margin-top: var(--space-8); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3) var(--space-7); }
.not-offered .h-card { font-size: var(--fs-3); }
.not-offered ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); color: var(--muted-dark); font-size: var(--fs-7); }
.not-offered li { position: relative; min-height: 28px; padding: 2px 0 2px 18px; line-height: 1.5; }
.not-offered li::before { content: ""; position: absolute; left: 0; top: calc(2px + (1.5em - 2px) / 2); width: 8px; height: 2px; border-radius: 1px; background: var(--rule-strong); }

/* ---------- plain terms ---------- */
.terms { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-6) var(--space-8); align-items: start; }
.terms > .h-section { margin-bottom: 0; }
.terms-list { margin: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.terms-list dt { font-family: var(--font-display); font-size: var(--fs-4); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.terms-list dd { margin: var(--space-1) 0 0; max-width: 54ch; color: var(--text-soft); }

/* ---------- questions ---------- */
.faq-list { display: flex; flex-direction: column; gap: var(--space-2); max-width: 880px; }
.faq details { border-radius: var(--r-card); background: var(--graphite); transition: background-color var(--t-hover) ease; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 64px; padding: 12px var(--space-5); border-radius: var(--r-card); cursor: pointer; list-style: none; touch-action: manipulation;
  font-family: var(--font-display); font-size: var(--fs-4); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 16px; height: 16px;
  background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat; }   /* open: a minus (the plus loses its upright bar) */
.faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.faq details p { max-width: 62ch; padding: 0 var(--space-5) var(--space-5); color: var(--text-soft); }
@media (hover: hover) and (pointer: fine) {
  .faq details:hover { background: var(--slate); }
}

/* ---------- closing ---------- */
.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-6); padding: var(--space-7); border-radius: var(--r-panel); background: var(--graphite); }
.closing .h-section { margin: 0; max-width: 16ch; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1099.98px) {
  .plan-wide { gap: var(--space-6) var(--space-7); }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .extra-renders { grid-column: 1 / -1; }
}
@media (max-width: 899.98px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-grid .plan-for { min-height: 0; }
  .plan-wide, .care, .terms { grid-template-columns: minmax(0, 1fr); }
  .plan-wide { padding: var(--space-6); }
  .care { padding: var(--space-6); }
  .inc-panel { display: none; }
  .inc-stack { display: grid; gap: var(--space-4); }
  .closing { padding: var(--space-6); }
}
@media (max-width: 759.98px) {
  .price-intro { padding-top: var(--space-7); }
  .extras { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .plan, .plan-wide { padding: var(--space-5); }
  .plan-cta { align-self: stretch; justify-content: center; }
  .plan-cta { white-space: normal; }   /* the full-width buttons of the stacked cards may wrap their label (the shell's buttons do not): with 200% browser text "Start with Standard" pushed a 390 px phone sideways; at the default text size the label fits on one line, so nothing changes (card 1i fix round 1) */
  .plan-cta.btn-primary { justify-content: space-between; }
  .care { padding: var(--space-5); border-radius: var(--r-card); }
  .care-list { grid-template-columns: minmax(0, 1fr); }
  .closing { flex-direction: column; align-items: stretch; padding: var(--space-5); border-radius: var(--r-card); }   /* heading, then a full-width button (a row flexbox ignores align-self for width) */
  .closing .btn-primary { justify-content: space-between; }
  .faq summary { padding-inline: var(--space-4); }
  .faq details p { padding-inline: var(--space-4); }
}
@media (max-width: 379.98px) {
  .not-offered ul { flex-direction: column; }
  .inc-card { padding: var(--space-4); }
  .inc-card li { padding-inline: var(--space-2); }
  .plan-cta.btn-primary { padding-right: 24px; justify-content: center; }
  .plan-cta.btn-primary .btn-disc, .closing .btn-primary .btn-disc { display: none; }
  .closing .btn-primary { padding-right: 24px; justify-content: center; }
  .price-rows > div { padding-inline: var(--space-3); }
}
