:root { --ease: cubic-bezier(.22,1,.36,1); }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Geist', ui-sans-serif, system-ui, sans-serif; background: #fafaf8; color: #0b0b0c; }
em, i:not([class*="ph"]), cite, address { font-style: normal; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid #0f766e; outline-offset: 3px; border-radius: 10px; }
.btn { transition: transform .35s var(--ease), opacity .35s var(--ease), background-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
/* Grayed out but still focusable/announced (e.g. checkout before the Terms box is checked). */
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover, .btn[aria-disabled="true"]:active {
  background-color: #e6e6e3; color: #6b6f76; cursor: not-allowed; transform: none; box-shadow: none;
}

.step { display: none; }
.step.active { display: block; animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.chip-input:checked + .chip { background: #0b0b0c; color: #fff; border-color: #0b0b0c; }
.chip-input:focus-visible + .chip { outline: 2px solid #0f766e; outline-offset: 2px; }
.chip { transition: transform .3s var(--ease), background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: #a3a3a0; }
.chip:active { transform: scale(.97); }
.plan-input:checked + .plan { border-color: #0b0b0c; box-shadow: 0 0 0 1px #0b0b0c; }
.plan-input:focus-visible + .plan { outline: 2px solid #0f766e; outline-offset: 2px; }
#progressBar { transform-origin: left; transition: transform .6s var(--ease); }

.field { width: 100%; border-radius: .75rem; border: 1px solid #e6e6e3; background: #fff; padding: .75rem 1rem; font-size: 1rem; outline: none; transition: border-color .2s; }
.field:focus { border-color: rgba(11,11,12,.4); }
.field[aria-invalid="true"] { border-color: #e4a39b; }
/* Prefixed inputs ("$ 2,400"): the box is the .field, the prefix and input sit side by side in
   a flex row, so the prefix can never overlap the text at any width or font size. */
.field-affix { display: flex; align-items: center; gap: .375rem; padding-top: 0; padding-bottom: 0; cursor: text; }
.field-affix:focus-within { border-color: rgba(11,11,12,.4); }
.field-affix:has(> input[aria-invalid="true"]) { border-color: #e4a39b; }
.field-affix-text { flex: none; color: #5b5f66; user-select: none; }
.field-affix-input { flex: 1 1 auto; min-width: 0; width: 100%; border: 0; background: transparent; padding: .75rem 0; font: inherit; color: inherit; outline: none; }
.err { color: #b42318; font-size: .875rem; font-weight: 500; margin-top: .5rem; }
.err-in { animation: errIn .4s var(--ease); }
@keyframes errIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.prose-doc h2 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; }
.prose-doc p, .prose-doc li { color: #3f4248; line-height: 1.7; margin-top: .75rem; }
.prose-doc ul { list-style: disc; padding-left: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Thanks page: keep the customer email on its own line and unsplit when it fits. */
.email-own-line {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .email-own-line {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
