/*
 * Pricing (the /pricing page and the end of the home page): the launch status, the billing period, the plans compared
 * (with their pre-order buttons while pre-orders are open), the notification form and the questions before
 * pre-ordering.
 */

.status-line { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); padding: var(--s4) var(--s5); border: 1px solid var(--rule); border-radius: var(--r2); background: var(--bg); }
.sec-alt .status-line { background: var(--bg); }
.status-line .when { display: inline-flex; align-items: center; gap: var(--s2); font: 500 var(--fs-14)/1.3 var(--mono); white-space: nowrap; }
.status-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--run-dot); box-shadow: 0 0 0 4px var(--run-subtle); }
.status-line p { flex: 1 1 320px; font-size: var(--fs-14); color: var(--text-2); }

/* ---------- Billing period: Monthly / Yearly ---------- */
.interval { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); scroll-margin-top: 96px; }
.seg-toggle { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--r2); overflow: hidden; background: var(--surface); }
.seg-toggle a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s4); font-size: var(--fs-13); color: var(--text-2); text-decoration: none; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.seg-toggle a + a { border-left: 1px solid var(--rule); }
.seg-toggle a:hover { color: var(--text); }
.seg-toggle a[aria-current="true"] { background: var(--primary); color: var(--on-primary); font-weight: 500; }
.seg-toggle a:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }
.interval-note { flex: 1 1 280px; font-size: var(--fs-13); color: var(--text-2); }

/* ---------- Plans: the table (wide) ---------- */
.plans-wrap { margin-top: var(--s5); border: 1px solid var(--rule); border-radius: var(--r3); overflow: hidden; background: var(--surface); }
/* Fixed layout: the two plan columns are the same width whatever their subtitles say. */
table.plans { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--fs-14); }
.plans th, .plans td { text-align: left; padding: 13px var(--s5); border-bottom: 1px solid var(--rule); vertical-align: middle; }
.plans thead th { vertical-align: top; padding-block: var(--s5); font-weight: 400; }
.plans td + td, .plans th + th { border-left: 1px solid var(--rule); }
.plans tbody th { font-weight: 400; color: var(--text-2); }
.plans tbody tr:last-child th, .plans tbody tr:last-child td { border-bottom: 0; }
.plans .col-hi { background: color-mix(in srgb, var(--text) 2.5%, var(--surface)); }
.plans-corner { width: 34%; }
.corner-k { display: block; font: 500 var(--fs-12)/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text); }
.corner-d { display: block; margin-top: var(--s2); font-size: var(--fs-13); color: var(--text-3); max-width: 22em; }
.plan-name { display: block; font-size: var(--fs-18); font-weight: 600; letter-spacing: -0.01em; }
.price { margin-top: var(--s3); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price b { font-size: var(--fs-28); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price span { font-size: var(--fs-13); color: var(--text-2); }
.price-note { display: block; min-height: 1.5em; font-size: var(--fs-12); color: var(--text-3); }
.plan-preorder { margin-top: var(--s4); display: grid; gap: var(--s2); justify-items: start; }
.po-line { font-size: var(--fs-13); color: var(--text); font-weight: 500; }
.po-fine { font-size: var(--fs-12); color: var(--text-3); }
.plans .avail, .pm-head .avail { margin-top: var(--s3); }
.pm-head .avail { justify-self: start; align-self: start; }
.plan-reserve { display: block; width: fit-content; margin-top: var(--s4); font-size: var(--fs-14); font-weight: 500; color: var(--text); }
.plan-buy { margin-top: var(--s4); }
.plan-later { display: block; margin-top: var(--s4); font-size: var(--fs-13); color: var(--text-3); }
.avail.later { color: var(--text-2); border-style: dashed; }
.tick { color: var(--done-dot); flex: none; }
.dash { color: var(--text-3); font-family: var(--mono); }
.verify-note { margin-top: var(--s3); font-size: var(--fs-13); color: var(--text-3); }

/* ---------- Plans: phones ---------- */
.plans-m { display: none; margin-top: var(--s5); border: 1px solid var(--rule); border-radius: var(--r3); background: var(--surface); overflow: hidden; }
/* The two heads share rows (subgrid): a name that wraps pushes both prices down together, so they stay level. */
.pm-heads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; border-bottom: 1px solid var(--rule); }
.pm-head { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: var(--s4); min-width: 0; }
.pm-head > .price { align-self: start; }
.pm-head + .pm-head { border-left: 1px solid var(--rule); background: color-mix(in srgb, var(--text) 2.5%, var(--surface)); }
.pm-head .plan-name { font-size: var(--fs-16); }
.pm-head .price b { font-size: var(--fs-22); }
.pm-list { padding: var(--s4); }
.pm-list + .pm-list { border-top: 1px solid var(--rule); }
.pm-list h3 { font: 500 var(--fs-12)/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.pm-list ul { margin-top: var(--s3); display: grid; gap: var(--s2); }
.pm-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s2); align-items: start; font-size: var(--fs-14); color: var(--text-2); }
.pm-list .tick { margin-top: 3px; }

/* ---------- Notification form ---------- */
.reserve { margin-top: var(--s8); padding-top: var(--s8); border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
.reserve-intro h3 { font-size: var(--fs-28); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.reserve-intro > p { margin-top: var(--s3); color: var(--text-2); }
.steps { margin-top: var(--s5); display: grid; gap: var(--s3); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s2); font-size: var(--fs-14); color: var(--text-2); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 var(--fs-12)/1.75 var(--mono); color: var(--text-3); }
.reserve-form, .reserve-done { padding: var(--s6); background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r3); }
.reserve-form { display: grid; gap: var(--s5); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.checks { display: grid; gap: var(--s3); }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s3); align-items: start; font-size: var(--fs-14); color: var(--text-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); }
.consent input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 1px; }
/* A consent box's error sits under its text, not under the box: the box column (20px) plus the gap. */
.consent + .err { margin-top: calc(-1 * var(--s2)); padding-left: calc(20px + var(--s3)); }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.submit-row small { flex: 1 1 220px; font: 400 var(--fs-12)/1.5 var(--mono); color: var(--text-3); }
.submit-row small a { color: var(--text-2); }
.form-status:empty { display: none; }
.form-status:focus { outline: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done-in { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s3); }
.done-in:focus { outline: none; }
.done-in .tick { margin-top: 3px; }
.done-t { font-weight: 600; }
.done-in p + p { margin-top: var(--s2); font-size: var(--fs-14); color: var(--text-2); }

/* ---------- Questions ---------- */
.faq { margin-top: var(--s8); }
.faq-title { padding-bottom: var(--s4); border-bottom: 1px solid var(--rule); font: 500 var(--fs-12)/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s4) 0; list-style: none; cursor: pointer; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--mono); color: var(--text-3); }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--text); }
.faq details p { padding-bottom: var(--s4); max-width: 60em; font-size: var(--fs-14); color: var(--text-2); }

@media (max-width: 900px) {
  .reserve { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
}
@media (max-width: 640px) {
  .plans-wrap { display: none; }
  .plans-m { display: block; }
  .reserve { margin-top: var(--s7); padding-top: var(--s7); }
  .reserve-form, .reserve-done { padding: var(--s5); }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .submit-row .btn { flex: 1 1 auto; }
}
