/* The front door.
   Two choices, weighted equally, because neither side is the "real" user. */

.start-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.start-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.start-intro h1 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.start-intro p {
  margin: 0 auto;
  max-width: 54ch;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* --- the two doors --- */

.start-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.start-choice {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  transition:
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease);
}

.start-choice:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Marks a side this browser is already set up for. */
.start-choice.is-ready {
  border-color: var(--accent-edge);
}

/* Which side you are, and -- opposite it -- the reading you might want first.
   Same shape for both: the guide is a pointer, not a step, and putting it in
   the action row made three buttons that could never fit on one line. */
.start-choice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.start-choice-tag {
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-pill);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.start-choice-guide {
  color: var(--accent);
  transition:
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.start-choice-guide:hover {
  background-color: var(--accent-wash);
  border-color: var(--accent-edge);
  text-decoration: none;
}

.start-choice-guide:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Only the side marker lights up. The guide beside it keeps its own colour,
   or the two become indistinguishable once a card is set up. */
.start-choice.is-ready .start-choice-tag:not(.start-choice-guide) {
  background-color: var(--accent-wash);
  border-color: var(--accent-edge);
  color: var(--accent);
}

.start-choice h2 {
  margin: 0 0 0.6rem;
  padding: 0;
  border: none;
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.start-choice p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.start-choice-note {
  margin-top: auto !important;
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-md);
  background-color: var(--surface-2);
  font-size: 0.8125rem !important;
  line-height: 1.5;
}

.start-choice-note strong {
  color: var(--text);
}

.start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.start-actions .btn,
.start-actions .btn-ghost {
  flex: 0 1 auto;
  justify-content: center;
}

@media (max-width: 520px) {
  .start-actions .btn,
  .start-actions .btn-ghost {
    flex: 1 1 100%;
  }
}

/* An attribute the button styles would otherwise outrank. */
.start-actions [hidden] {
  display: none;
}

.start-status:not(:empty) {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.start-footnote {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* --- responsive --- */

@media (max-width: 720px) {
  .start-container {
    padding: 2rem 1rem 3rem;
  }

  .start-intro h1 {
    font-size: 1.5rem;
  }

  .start-intro p {
    font-size: 0.9375rem;
  }

  .start-choice {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .start-choice:hover {
    transform: none;
  }
}
