:root {
  color-scheme: light;
  --bg: #efe7d9;
  --panel: rgba(255, 251, 244, 0.92);
  --panel-strong: #fffaf2;
  --text: #211814;
  --muted: #645851;
  --line: rgba(33, 24, 20, 0.12);
  --accent: #a84a2d;
  --accent-strong: #7f3218;
  --success: #2f6f51;
  --danger: #a13131;
  --shadow: 0 24px 70px rgba(79, 45, 28, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(168, 74, 45, 0.24), transparent 32%),
    radial-gradient(circle at top right, rgba(47, 111, 81, 0.16), transparent 26%),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 100%);
}

.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  display: grid;
  gap: 20px;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
}

.intro {
  max-width: 44rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.panel-muted {
  background: rgba(255, 248, 240, 0.78);
}

.stack {
  display: grid;
  gap: 16px;
}

.form-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.switch-button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.switch-button {
  background: rgba(33, 24, 20, 0.08);
  color: var(--text);
}

.switch-button[data-active="true"] {
  background: var(--accent);
  color: #fff8f2;
}

.primary-button {
  background: var(--accent);
  color: #fff8f2;
}

.primary-button:hover,
.primary-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible {
  background: var(--accent-strong);
  color: #fff8f2;
}

.ghost-button {
  background: rgba(33, 24, 20, 0.08);
  color: var(--text);
}

.form-card {
  display: none;
  gap: 14px;
}

.form-card[data-active="true"] {
  display: grid;
}

.switch-button[hidden],
.form-card[hidden] {
  display: none;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(33, 24, 20, 0.16);
  border-radius: 14px;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
}

input:focus-visible {
  outline: 2px solid rgba(168, 74, 45, 0.32);
  outline-offset: 2px;
}

.form-copy,
.small-copy,
.status-copy,
.setup-list li {
  color: var(--muted);
  line-height: 1.55;
}

.status-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(47, 111, 81, 0.1);
  color: var(--success);
}

.status-box[data-tone="danger"] {
  background: rgba(161, 49, 49, 0.1);
  color: var(--danger);
}

.status-box[data-tone="muted"] {
  background: rgba(33, 24, 20, 0.06);
  color: var(--muted);
}

.account-card {
  display: none;
  gap: 14px;
}

.account-card[data-active="true"] {
  display: grid;
}

.account-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 111, 81, 0.12);
  color: var(--success);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launch-links {
  display: grid;
  gap: 12px;
}

.launch-links a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.setup-list {
  padding-left: 18px;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.footer-links a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }
}
