:root {
  color-scheme: light;
  --background: #f8f5ef;
  --surface: #fdfbf7;
  --text: #202725;
  --muted: #535d55;
  --border: #d6cec4;
  --input-border: #7a8179;
  --teal: #2e6e6f;
  --teal-dark: #245859;
  --leaf: #6fb570;
  --leaf-dark: #39702d;
  --lime: #c8f66a;
  --orange: #ff7a3d;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 10% 100%, #edf1dd, transparent 60%),
    var(--background);
}

.page {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1.7rem;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2.5rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.045em;
}

.brand-accent { color: var(--leaf-dark); }

.mark {
  position: relative;
  flex: none;
  width: 2.85rem;
  height: 1.5rem;
}

.track, .node { position: absolute; }
.track {
  height: .16rem;
  background: var(--teal);
  border-radius: 99px;
}

.track-start { top: 1.04rem; left: .32rem; width: .75rem; }
.track-rise {
  top: 1.04rem;
  left: 1.03rem;
  width: 1.07rem;
  transform: rotate(-43deg);
  transform-origin: left center;
}
.track-end { top: .32rem; left: 1.82rem; width: .8rem; }

.node {
  width: .39rem;
  height: .39rem;
  background: var(--teal);
  border-radius: 50%;
}

.node-start { top: .92rem; left: .1rem; }
.node-turn { top: .92rem; left: .84rem; }
.node-top, .node-end {
  top: .11rem;
  width: .54rem;
  height: .54rem;
  background: var(--background);
  border: .15rem solid;
}

.node-top { left: 1.57rem; border-color: var(--leaf); }
.node-end { left: 2.31rem; border-color: var(--orange); }

.card {
  width: min(100%, 28rem);
  padding: clamp(1.5rem, 7vw, 2.6rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.45rem;
  box-shadow: 0 16px 45px rgb(39 59 38 / .09), 0 2px 6px rgb(39 59 38 / .05);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.055em;
}

.description {
  margin: .65rem 0 1.6rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.button, input, .text-button { font: inherit; }

.button, input {
  width: 100%;
  min-height: 3rem;
}

.button {
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  cursor: pointer;
}

.button:disabled, .text-button:disabled {
  cursor: wait;
  opacity: .65;
}

.provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  color: #1f1f1f;
  background: #fff;
  border-color: #747775;
}

.provider img { flex: none; object-fit: contain; }
.provider:hover:not(:disabled) { background: #f6f8fc; }

.primary {
  color: #fff;
  background: var(--teal);
}

.primary:hover:not(:disabled) { background: var(--teal-dark); }

.divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: .875rem;
}

.divider::before, .divider::after {
  flex: 1;
  height: 1px;
  background: var(--border);
  content: "";
}

form {
  display: grid;
  gap: .55rem;
  margin: 0;
}

label { font-weight: 650; }

input {
  padding: .55rem .75rem;
  border: 1px solid var(--input-border);
  border-radius: .65rem;
  background: #fff;
  color: var(--text);
}

form .button { margin-top: .35rem; }

.text-button {
  justify-self: center;
  padding: .6rem .35rem;
  border: 0;
  border-radius: .25rem;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}

.button:focus-visible, .text-button:focus-visible, input:focus-visible {
  outline: 2px solid var(--teal-dark);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--lime);
}

.status {
  margin: .8rem 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.status:empty { margin: 0; }
