:root {
  --green: #2D6E4E;
  --green-dark: #1F5238;
  --green-darker: #163E2A;
  --cream: #F5EDD7;
  --cream-soft: #FAF6E8;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-muted: #7A7A7A;
  --white: #FFFFFF;
  --error: #C0392B;
  --success: #2D6E4E;
  --radius: 12px;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(45, 110, 78, 0.18);
  object-fit: cover;
}

/* Hero */
.hero {
  text-align: center;
  padding: 24px 0 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(45, 110, 78, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--green-darker);
  margin-bottom: 20px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.lede {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 auto 36px;
}

/* Signup form */
.signup {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto 12px;
  background: var(--white);
  padding: 8px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(22, 62, 42, 0.08);
  border: 1px solid rgba(45, 110, 78, 0.12);
}

.signup input[type="email"] {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border-radius: calc(var(--radius) - 4px);
  min-width: 0;
}

.signup input[type="email"]::placeholder {
  color: var(--ink-muted);
}

.signup input[type="email"]:focus-visible {
  background: var(--cream-soft);
}

.signup button {
  border: 0;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
}

.signup button:hover {
  background: var(--green-dark);
}

.signup button:active {
  transform: scale(0.98);
}

.signup button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  min-height: 24px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}

.form-note.error { color: var(--error); }
.form-note.success { color: var(--success); }

.reassure {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 8px;
}

/* Hints */
.hints {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid rgba(45, 110, 78, 0.12);
  border-bottom: 1px solid rgba(45, 110, 78, 0.12);
}

.hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--green);
  text-align: center;
}

.hint svg {
  width: 28px;
  height: 28px;
}

.hint span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

.site-footer a {
  color: var(--green);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 540px) {
  .container {
    padding: 24px 18px 36px;
  }
  .logo {
    width: 96px;
    height: 96px;
  }
  .signup {
    flex-direction: column;
    padding: 10px;
  }
  .signup button {
    width: 100%;
  }
  .hints {
    gap: 12px;
  }
  .hint span {
    font-size: 13px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Footer links */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-bottom: 8px;
}

/* Document pages (privacy, terms, support) */
.doc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.doc-header img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.doc-header a {
  color: var(--green-darker);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.doc h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--green-darker);
  margin-bottom: 8px;
}

.doc .updated {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.doc .summary {
  background: var(--white);
  border: 1px solid rgba(45, 110, 78, 0.12);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 32px;
}

.doc .summary h2 {
  margin-top: 0;
}

.doc h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--green-darker);
  margin: 36px 0 10px;
}

.doc h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 6px;
}

.doc p,
.doc ul,
.doc ol {
  margin-bottom: 14px;
  color: var(--ink-soft);
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.doc strong {
  color: var(--ink);
}

.doc a {
  color: var(--green);
}

.doc .table-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(45, 110, 78, 0.1);
}

.doc th {
  background: rgba(45, 110, 78, 0.08);
  color: var(--green-darker);
  font-weight: 700;
}

.doc .caps {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.doc details {
  background: var(--white);
  border: 1px solid rgba(45, 110, 78, 0.12);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}

.doc summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.doc details[open] summary {
  margin-bottom: 8px;
}
