/* PYF Savings — navy and gold */
:root {
  --navy: #14284b;
  --navy-deep: #0d1c36;
  --gold: #c9a227;
  --gold-soft: #f4ead0;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e2e5ec;
  --page: #f4f5f8;
  --white: #ffffff;
  --danger: #a23131;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.topbar {
  background: var(--navy);
  color: var(--white);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 700; font-size: 20px; letter-spacing: 0.2px; }
.brand span { color: var(--gold); }

.card {
  background: var(--white);
  max-width: 440px;
  margin: 32px auto;
  margin-left: max(16px, calc((100% - 440px) / 2));
  margin-right: max(16px, calc((100% - 440px) / 2));
  padding: 28px 24px;
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  box-shadow: 0 1px 3px rgba(20, 40, 75, 0.08);
}

h1 { font-size: 24px; line-height: 1.25; margin: 0 0 8px; color: var(--navy); }
p { margin: 0 0 16px; }
.muted { color: var(--muted); font-size: 14px; }

label { display: block; font-weight: 600; margin: 16px 0 6px; }

input[type="email"] {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
input[type="email"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }

.button, button.button {
  display: inline-block;
  width: 100%;
  text-align: center;
  font: inherit;
  font-weight: 700;
  background: var(--gold);
  color: var(--navy-deep);
  border: none;
  border-radius: 8px;
  padding: 13px 18px;
  cursor: pointer;
  text-decoration: none;
}
.button:hover { filter: brightness(1.05); }
.button:disabled { opacity: 0.6; cursor: default; }

.button.secondary {
  width: auto;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
}

.turnstile { margin: 16px 0; min-height: 65px; }

.notice {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--navy-deep);
}
.notice.error { background: #f8e3e3; color: var(--danger); }

[hidden] { display: none !important; }
