:root {
  color-scheme: light;
  --berry-green: #24473d;
  --leaf: #446e58;
  --cream: #fff8ec;
  --paper: #fffdf7;
  --soil: #4d362c;
  --muted: #766b60;
  --line: #eadfce;
  --danger: #ad4c32;
  --success: #2f6f49;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(153, 78, 55, 0.16), transparent 28rem),
    linear-gradient(135deg, #fff8ec 0%, #f6efe4 48%, #edf3ec 100%);
  color: var(--soil);
  font-family:
    ui-rounded,
    "Avenir Next",
    "Segoe UI",
    sans-serif;
}

.page-shell {
  width: min(920px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-content: start;
  padding: 32px 0 40px;
}

.brand-panel {
  min-height: 0;
  padding: 34px 36px 32px;
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(36, 71, 61, 0.94), rgba(68, 110, 88, 0.92)),
    var(--berry-green);
  color: white;
  box-shadow: 0 26px 70px rgba(41, 54, 45, 0.24);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.brand-panel::before,
.brand-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.1);
}

.brand-panel::before {
  width: 260px;
  height: 260px;
  right: -80px;
  top: -70px;
}

.brand-panel::after {
  width: 180px;
  height: 180px;
  left: -70px;
  bottom: -50px;
}

.brand-mark {
  position: relative;
  left: auto;
  top: auto;
  width: 86px;
  height: 86px;
  margin-bottom: 22px;
  border-radius: 28px;
  background: rgba(255, 248, 236, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 36px rgba(25, 35, 30, 0.22);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 10px;
  color: #dce9df;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.98;
  letter-spacing: -2px;
}

.lede {
  max-width: 620px;
  margin-bottom: 0;
  color: #ecf6ee;
  font-size: 17px;
  line-height: 1.5;
}

.card {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid rgba(234, 223, 206, 0.88);
  box-shadow: 0 18px 48px rgba(64, 48, 40, 0.14);
  backdrop-filter: blur(16px);
}

.state {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 26px 0;
  text-align: center;
  color: var(--muted);
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #e5d8c6;
  border-top-color: var(--leaf);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

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

.hidden {
  display: none !important;
}

form {
  display: grid;
  gap: 12px;
}

h2 {
  margin-bottom: 6px;
  color: var(--berry-green);
  font-size: 26px;
  letter-spacing: -0.6px;
}

.helper {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.45;
}

label {
  font-weight: 800;
  color: var(--soil);
}

input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--soil);
  font: inherit;
  outline: none;
}

input:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(68, 110, 88, 0.12);
}

button {
  margin-top: 10px;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--berry-green), var(--leaf));
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  letter-spacing: -0.2px;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.4;
  font-weight: 700;
}

.message.error {
  background: #fff0eb;
  color: var(--danger);
  border: 1px solid #f0c9bc;
}

.message.success {
  background: #edf8ee;
  color: var(--success);
  border: 1px solid #cbe7cf;
}

.support-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8f0e4;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.4;
}

.support-note strong {
  color: var(--soil);
}

.support-note a,
.content-body a {
  color: var(--berry-green);
  font-weight: 800;
}

.content-page {
  display: grid;
  gap: 18px;
}

.content-header {
  display: grid;
  gap: 8px;
}

.content-eyebrow {
  margin-bottom: 0;
  color: var(--leaf);
}

.content-body {
  display: grid;
  gap: 18px;
  color: var(--soil);
}

.content-body section {
  display: grid;
  gap: 8px;
}

.content-body h3 {
  margin: 0;
  color: var(--berry-green);
  font-size: 18px;
  letter-spacing: -0.2px;
}

.content-body p,
.content-body li {
  color: var(--muted);
  line-height: 1.55;
}

.content-body ul {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 820px) {
  .page-shell {
    padding: 20px 0 28px;
  }

  .brand-panel {
    padding: 28px 24px 26px;
  }

  .brand-mark {
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
    border-radius: 24px;
  }

  .card {
    padding: 22px;
  }
}
