/* ── sage.css — shared design tokens & components ── */

@import url('https://fonts.bunny.net/css?family=inter:400,500,600,700,800&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ── */
:root {
  --green: #2d9e6b;
  --green-light: #e8f5ef;
  --green-mid: #c5e8d4;
  --green-dark: #1e7a50;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --bg: #f4f6f4;
  --surface: #ffffff;
  --border: #e2e8e2;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 99px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-card: 0 4px 32px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
}

/* ── Body base ── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
}

/* ── Background gradient ── */
.bg-gradient {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(45,158,107,0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(45,158,107,0.06) 0%, transparent 55%);
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ── Shared button ── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 2px 12px rgba(45,158,107,0.3);
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 16px rgba(45,158,107,0.4);
}

.btn-primary:disabled { background: #b0bec5; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover { background: var(--green-light); border-color: var(--green-mid); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}

.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid rgba(45,158,107,0.15);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

/* ── Brand ── */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.brand p { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ── Footer link styles ── */
footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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