/*
 * GMas landing — shared styles.
 *
 * Seasonal palette mirrors the app (src/theme.ts). The active season is set as
 * data-season on <html> by season.js, flipping the accent + tint to match the
 * current date — the website is themed in lockstep with the app.
 */
:root {
  --ink: #2E2A26;
  --muted: #7A736B;
  --surface: #FFFFFF;
  --border: #E3DDD2;
  --radius: 14px;
  --maxw: 1080px;

  /* defaults (overridden per season below) */
  --accent: #3B7A57;
  --accent-ink: #FFFFFF;
  --tint: #F4F1EA;
  --season-border: #E3DDD2;
}

html[data-season="spring"] { --accent: #5BA86B; --accent-ink: #16331F; --tint: #F1F7F0; --season-border: #DCE9DC; }
html[data-season="summer"] { --accent: #E0A23C; --accent-ink: #3D2F10; --tint: #FBF4E6; --season-border: #ECE2CE; }
html[data-season="fall"]   { --accent: #C2622D; --accent-ink: #FFFFFF; --tint: #F7EFE5; --season-border: #E9DDCB; }
html[data-season="winter"] { --accent: #4E7C9B; --accent-ink: #FFFFFF; --tint: #EEF2F5; --season-border: #DCE4EA; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--tint);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand .the { color: var(--muted); font-weight: 600; }
.nav a { color: var(--ink); margin-left: 24px; font-size: 15px; }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* ---- hero ---- */
.hero { padding: 64px 0 48px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 16ch;
}
.hero p.lede {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 32px;
}

/* four-season strip — the only seasonal "icon", color-only */
.season-strip {
  display: flex;
  height: 10px;
  width: 220px;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 36px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.season-strip span { flex: 1; }
.season-strip .s-spring { background: #5BA86B; }
.season-strip .s-summer { background: #E0A23C; }
.season-strip .s-fall   { background: #C2622D; }
.season-strip .s-winter { background: #4E7C9B; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { text-decoration: none; opacity: 0.94; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--season-border); }
.btn-ghost:hover { text-decoration: none; border-color: var(--accent); }

/* ---- features ---- */
.features { padding: 32px 0 64px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- auth card ---- */
.auth-shell {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  width: 100%;
  max-width: 380px;
}
.auth-card h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.01em; }
.auth-card .sub { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--season-border);
  border-radius: 10px;
  background: var(--tint);
  color: var(--ink);
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.btn-block { width: 100%; text-align: center; }
.msg { font-size: 14px; margin: 14px 0 0; min-height: 18px; }
.msg.error { color: #B3261E; }
.msg.ok { color: var(--accent); }
.auth-alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }

/* segmented method toggle (Email / PIN) */
.seg { display: flex; gap: 6px; background: var(--tint); border: 1px solid var(--season-border); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.seg button { flex: 1; padding: 9px 0; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; border-radius: 9px; cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ---- prose (privacy) ---- */
.prose { padding: 40px 0 64px; max-width: 720px; }
.prose h1 { font-size: 34px; letter-spacing: -0.02em; }
.prose h2 { font-size: 20px; margin-top: 32px; }
.prose p, .prose li { color: var(--ink); }
.prose .muted { color: var(--muted); }
