:root {
  color-scheme: dark;
  --bg: #081018;
  --surface: #101c29;
  --surface-2: #162637;
  --text: #f3f7fa;
  --muted: #a8b7c5;
  --line: #294055;
  --brand: #71e5bd;
  --brand-strong: #31c995;
  --danger: #ff7e85;
  --shadow: 0 1.5rem 4rem rgb(0 0 0 / 0.25);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef5f4;
  --surface: #ffffff;
  --surface-2: #e5f0ee;
  --text: #102027;
  --muted: #536970;
  --line: #c9dcda;
  --brand: #087b5b;
  --brand-strong: #056348;
  --danger: #a52635;
  --shadow: 0 1.5rem 4rem rgb(31 72 64 / 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 4%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 30rem),
    var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

a {
  color: var(--brand);
}

hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.25rem 0;
}

.shell {
  width: min(70rem, 100%);
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.topbar,
.topbar__actions,
.hero__actions,
.form__actions,
.session__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar > *,
.topbar__actions > *,
.hero__actions > *,
.form__actions > *,
.session__actions > * {
  min-width: 0;
}

.topbar {
  min-height: 5rem;
  justify-content: space-between;
}

.brand {
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.brand span {
  color: var(--brand);
}

.compact-select,
.icon-button {
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
  color: var(--text);
}

.compact-select {
  max-width: 8rem;
  padding: 0 0.55rem;
}

.icon-button {
  width: 2.5rem;
  padding: 0;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(2.5rem, 9vw, 7rem) 0;
}

.hero > *,
.services > *,
.account-grid > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.hero__copy {
  max-width: 38rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.signal-card,
.card,
.service-card {
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
}

.signal-card {
  padding: 1.5rem;
  transform: rotate(2deg);
}

.signal-card__mark {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: 1rem;
  background: var(--brand);
  color: var(--bg);
  font-weight: 900;
}

.signal-card p {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  padding: 0.65rem 1rem;
  background: var(--brand);
  color: #07120e;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--brand-strong);
  color: #ffffff;
}

.button--secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button--danger {
  border-color: color-mix(in srgb, var(--danger) 55%, var(--line));
  background: transparent;
  color: var(--danger);
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.section {
  padding: 2rem 0;
}

.section__heading {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  letter-spacing: -0.045em;
}

.services,
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.card {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.service-card p,
.muted {
  color: var(--muted);
  line-height: 1.55;
}

.service-card__status {
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 750;
}

.auth-wrap {
  width: min(31rem, 100%);
  margin: 2rem auto;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

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

.field {
  display: grid;
  min-width: 0;
  gap: 0.4rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 750;
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  color: var(--text);
}

.notice {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.8rem;
  overflow-wrap: anywhere;
}

.notice--error {
  border-color: var(--danger);
  color: var(--danger);
}

.session-list {
  display: grid;
  gap: 0.75rem;
}

.session {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.session > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  z-index: 10;
  right: 1rem;
  bottom: 1rem;
  max-width: min(28rem, calc(100% - 2rem));
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

@media (max-width: 46rem) {
  .hero,
  .services,
  .account-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    gap: 1rem;
    padding: 2.7rem 0;
  }

  .signal-card {
    transform: none;
  }
}

.topbar__link {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.topbar__link:hover,
.topbar__link:focus-visible {
  color: var(--text);
}

.signal-card__list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.signal-card__list li {
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
}

.search {
  margin: 1.25rem 0 0.9rem;
}

.search__input {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.search__input::placeholder {
  color: var(--muted);
}

.search__input:focus-visible {
  border-color: var(--brand);
  outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline-offset: 1px;
}

.hero__people {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 1.6rem;
  padding: 0.5rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.chip {
  min-width: 0;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.chip:hover {
  color: var(--text);
}

.chip--active {
  border-color: transparent;
  background: var(--brand);
  color: var(--bg);
}

.service-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.badge {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.badge--enabled {
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  color: var(--brand);
}

.badge--soon {
  border-color: color-mix(in srgb, var(--text) 30%, transparent);
  color: var(--text);
}

.service-card__copy {
  overflow-wrap: anywhere;
}

.section__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.section__footer > * {
  min-width: 0;
  margin: 0;
}

@media (max-width: 30rem) {
  .shell {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .topbar {
    align-items: flex-start;
    padding: 0.75rem 0;
  }

  .topbar__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero__actions,
  .form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .session {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 22.5rem) {
  .topbar__link {
    display: none;
  }
}
