:root {
  color-scheme: light dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--surface-grouped);
  color: var(--foreground);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  background: var(--card);
  color: var(--foreground);
  border-radius: 0.75rem;
}

.skip:focus {
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 56px;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(12px);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 1280px;
  height: 100%;
  margin-inline: auto;
  padding-inline: 20px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.wordmark,
.form-card > a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.wordmark {
  font-weight: 600;
  text-decoration: none;
}

.sign-in,
.button-fill,
.hero-cta,
summary,
.on-page a,
.site-footer a {
  min-height: 44px;
  min-width: 44px;
}

.sign-in,
.button-fill,
.hero-cta,
.on-page a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-fill,
.hero-cta {
  padding: 0 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding: 1.5rem 20px 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero[data-columns="1"] {
  max-width: 45rem;
  margin-inline: auto;
  text-align: center;
}

.hero[data-columns="2"] {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.hero[data-columns="1"] .hero-copy {
  align-items: center;
}

.hero-title,
h1 {
  margin: 0;
  font-size: var(--text-display);
  line-height: var(--text-display--line-height);
  font-weight: var(--text-display--font-weight);
  letter-spacing: var(--text-display--letter-spacing);
}

h2 {
  margin: 0 0 0.5rem;
  font-size: var(--text-section);
  line-height: var(--text-section--line-height);
  font-weight: var(--text-section--font-weight);
}

.hero-sub,
.hero-micro,
p {
  margin: 0;
}

.hero-card,
.card,
.band,
.faq-list,
.form-card,
.on-page,
.measure {
  background: var(--card);
  border-radius: 1rem;
}

.hero-card,
.card,
.band,
.form-card,
.measure {
  padding: 1.25rem;
}

.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 35rem;
  margin-inline: auto;
  padding: var(--spacing-field);
  animation: card-in 200ms ease;
}

.example-label {
  align-self: flex-end;
  margin: 0 0 var(--spacing-row);
  padding: var(--spacing) var(--spacing-row);
  border-radius: 999px;
  background: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
}

.example-rows {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-row);
  margin: 0;
  padding: var(--spacing-row);
  list-style: none;
  background: var(--muted);
  border-radius: var(--radius);
}

.example-rows li,
.example-total {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--spacing-field);
}

.example-total {
  margin: var(--spacing-row) 0 0;
  padding-top: var(--spacing-row);
  border-top: 1px solid var(--border);
  font-weight: var(--text-section--font-weight);
}

.amt {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.example-rate,
.example-caption {
  margin-top: var(--spacing-row);
  color: var(--foreground);
  font-size: 0.875rem;
}

.band {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  background: var(--secondary);
}

.band-mark {
  grid-row: span 2;
  margin: 0;
  color: var(--ok);
  font-size: 1.25rem;
}

#problem,
.measure {
  max-width: 42.5rem;
}

#who,
#faq {
  max-width: 55rem;
}

.cards {
  display: grid;
  gap: 1rem;
}

.cards article h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.faq-list details + details {
  border-top: 1px solid var(--border);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 1rem;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

details[open] summary::after {
  transform: rotate(225deg);
}

.faq-list p,
.card li {
  padding: 0 1rem 0.75rem;
}

#who li {
  padding: 0 0 0.75rem;
}

#who ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
}

#closing {
  text-align: center;
}

#closing .button-fill {
  margin-top: 1rem;
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 35rem;
  margin-inline: auto;
  width: 100%;
}

fieldset.segments {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

fieldset.segments legend {
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.segment-row {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.segment-row label {
  flex: 1 1 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.5rem;
  border-right: 1px solid var(--border);
}

.segment-row label:last-child {
  border-right: 0;
}

.segment-row input {
  width: 1.25rem;
  min-height: 1.25rem;
}

.help,
.below {
  font-weight: 400;
}

fieldset.field-group {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  margin: 0;
  padding: 0.75rem;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

fieldset.field-group > legend {
  font-weight: 500;
  padding-inline: 0.25rem;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.error,
.summary,
.alert {
  color: var(--destructive);
  font-weight: 500;
}

.alert {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: var(--warn-surface);
}

.button-fill[aria-disabled="true"] {
  background: var(--muted);
  color: var(--foreground);
  cursor: not-allowed;
}

.spinner {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
  color: var(--foreground);
  font: inherit;
  resize: vertical;
}

@media (max-width: 30rem) {
  .segment-row {
    flex-direction: column;
  }

  .segment-row label {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .segment-row label:last-child {
    border-bottom: 0;
  }
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 500;
}

label.check {
  flex-direction: row;
  align-items: center;
  min-height: 44px;
  font-weight: 400;
}

input,
select {
  min-height: 44px;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
  color: var(--foreground);
  font: inherit;
}

label.check input {
  width: 1.25rem;
  min-width: 1.25rem;
  height: 1.25rem;
  min-height: 1.25rem;
  flex: 0 0 1.25rem;
  margin-top: 0;
}

.on-page {
  display: flex;
  flex-direction: column;
  padding-block: 0.25rem;
}

.updated {
  color: var(--foreground);
}

.site-footer {
  padding-block: 1.5rem 2rem;
}

.site-footer .bar {
  height: auto;
  align-items: flex-start;
  flex-direction: column;
}

.small {
  color: var(--foreground);
  font-size: 0.875rem;
}

@keyframes card-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 47.99rem) {
  .hero-cta,
  #closing .button-fill,
  .form-card .button-fill {
    width: 100%;
  }

  .site-header .button-fill {
    background: transparent;
    color: var(--foreground);
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    padding: 0;
  }
}

@media (min-width: 48rem) {
  .bar,
  .wrap {
    padding-inline: 32px;
  }

  .cards[data-count="2"],
  .cards[data-count="3"] {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 64rem) {
  #invite-form {
    display: grid;
    grid-template-columns: minmax(0, 35rem) minmax(14rem, 22rem);
    column-gap: 2rem;
    row-gap: 1rem;
    max-width: 60rem;
    align-items: start;
  }

  #invite-form > * {
    grid-column: 1;
  }

  #invite-form > .below {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .hero[data-columns="2"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero-card {
    margin: 0;
    justify-self: end;
  }

  .cards[data-count="3"] {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .on-page {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    background: transparent;
    padding: 0;
  }
}

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