/* Shared by /pricing/ and /register/: page heading, the sample-prices notice,
   the choice summary, switches and form fields. Loaded after site.css. */

.page-head { display: grid; gap: .8rem; max-width: 42rem; padding-block: 2.5rem 1.75rem; }
.page-head h1 { font-size: var(--s-h2); font-weight: 850; font-stretch: 112%; letter-spacing: -.01em; }
.page-head p { color: var(--ink-soft); }
@media (min-width: 720px) { .page-head { padding-block: 3.5rem 2.25rem; } }

.top nav a.link[aria-current="page"] { color: var(--ink); }

/* "These are sample prices" */
.notice {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .8rem 1rem;
  border: 1px dashed var(--orange);
  border-radius: 8px;
  background: var(--paper-2);
  font-size: .95rem;
}
.notice::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .45rem; border-radius: 50%; background: var(--orange); }
.notice b { font-weight: 700; }

.loading { color: var(--ink-soft); padding-block: 2rem; }
.problem { color: var(--orange-ink); font-weight: 600; }
.problem:empty { display: none; }

/* Money */
.amt { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }

/* Switches: a real checkbox, drawn as a switch */
.switch { position: relative; flex: none; width: 52px; height: 32px; }
.switch input { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background-color .15s ease; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(19, 38, 26, .35); transition: transform .15s ease; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 3px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: .45; }
@media (prefers-reduced-motion: reduce) { .switch span, .switch span::after { transition: none; } }

/* Form fields: 16px text so phones don't zoom, 48px tall */
.field { display: grid; gap: .35rem; min-width: 0; }
.field label, .field .label { font-weight: 650; }
.field .hint { font-size: var(--s-small); color: var(--ink-soft); }
.input, .select {
  width: 100%; min-height: 48px;
  padding: .6rem .8rem;
  font: inherit; font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 8px;
}
.input:focus, .select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.select { appearance: none; padding-right: 2.4rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field.bad .input, .field.bad .select, .field.bad .affix { border-color: var(--orange-ink); }
.err { color: var(--orange-ink); font-size: .95rem; font-weight: 600; }
.err:empty { display: none; }
