/* etto - shared site styles. Mirrors the app: Poppins, warm neutrals, sage. */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #232a25;
  --text-secondary: #55604f;
  --text-muted: #8a927f;
  --accent: #3f7a5a;
  --accent-tint: #e7f0e9;
  --border: #e8e4da;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a17;
    --surface: #21261f;
    --text: #eef0e9;
    --text-secondary: #b9c0ae;
    --text-muted: #828b76;
    --accent: #7fb794;
    --accent-tint: #263429;
    --border: #333a30;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 660px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2rem;
  margin: 0.5em 0 0.4em;
}

h2 {
  font-size: 1.2rem;
  margin: 2em 0 0.5em;
}

p,
li {
  color: var(--text-secondary);
}

strong {
  color: var(--text);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

.hero {
  text-align: center;
  padding: 72px 0 40px;
}

.hero .leaf-badge {
  width: 84px;
  height: 84px;
  border-radius: 42px;
  background: var(--accent-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.hero .leaf-badge svg {
  width: 42px;
  height: 42px;
  fill: var(--accent);
}

.hero h1 {
  font-size: 3.2rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 8px 0 0;
}

.soon {
  display: inline-block;
  margin-top: 28px;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 999px;
}

.cards {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.card h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.98rem;
}

.meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Support form */
#support-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

#support-form label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

#support-form .optional {
  font-weight: 400;
  color: var(--text-muted);
}

#support-form input[type='email'],
#support-form textarea {
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  resize: vertical;
}

#support-form input[type='email']:focus,
#support-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}

#support-form button {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 13px 32px;
  cursor: pointer;
  align-self: flex-start;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

#support-form button:hover {
  opacity: 0.92;
}

#support-form button:active {
  transform: scale(0.96);
}

#support-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

#sf-status {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.botcheck {
  display: none;
}

footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

footer a {
  color: var(--text-muted);
}
