/*
 * Mortgage Rate Monitor — application styles
 */

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

body {
  background-color: #f5efe0;
  color: #1a1208;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
}

/* ─── Masthead ─────────────────────────────────────── */

.masthead {
  border-top: 4px solid #1a3c20;
  padding: 20px 24px 0;
  text-align: center;
}

.masthead-eyebrow {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #8b6914;
  margin-bottom: 10px;
}

.masthead-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1a1208;
}

.masthead-rule {
  border: none;
  border-top: 3px double #1a3c20;
  margin: 16px auto 0;
  max-width: 480px;
}

/* ─── Container ────────────────────────────────────── */

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  text-align: center;
}

/* ─── Subtitle / intro copy ────────────────────────── */

.subtitle {
  font-size: 18px;
  color: #5a4a2e;
  font-style: italic;
  margin-bottom: 48px;
  line-height: 1.5;
}

/* ─── Rate box ─────────────────────────────────────── */

.rate-box {
  display: inline-block;
  border: 1px solid #1a3c20;
  padding: 28px 56px;
  margin-bottom: 48px;
  background: #fffbf2;
  position: relative;
}

.rate-box::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid #c9b98a;
  pointer-events: none;
}

.rate-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8b6914;
  margin-bottom: 10px;
}

.rate-value {
  font-family: Georgia, serif;
  font-size: 52px;
  font-weight: bold;
  color: #1a3c20;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.rate-date {
  font-size: 12px;
  color: #a08060;
  margin-top: 10px;
  font-style: italic;
}

.rate-spark {
  display: block;
  width: 100%;
  height: 36px;
  margin: 16px 0 4px;
  opacity: 0.7;
}

.rate-spark-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a08060;
  margin: 0;
}

/* ─── Divider ──────────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid #c9b98a;
  margin: 0 auto 32px;
  max-width: 200px;
}

/* ─── Email preview ─────────────────────────────────── */

.preview-intro {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8b6914;
  margin: 0 0 18px;
}

.email-preview {
  max-width: 420px;
  margin: 0 auto 36px;
  padding: 22px 28px 24px;
  background: #fffbf2;
  border: 1px solid #c9b98a;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 2px 10px rgba(26, 18, 8, 0.06);
}

.email-preview-eyebrow {
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8b6914;
  margin: 0 0 6px;
}

.email-preview-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a1208;
  margin: 0;
}

.email-preview-rule {
  border: none;
  border-top: 2px double #1a3c20;
  margin: 12px auto 18px;
  max-width: 240px;
}

.email-preview-label {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8b6914;
  margin: 0 0 14px;
}

.email-preview-box {
  display: inline-block;
  border: 1px solid #1a3c20;
  padding: 14px 32px;
  margin: 0 auto 18px;
  background: #fffefa;
}

.email-preview-rate-label {
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8b6914;
  margin: 0 0 6px;
}

.email-preview-rate-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 30px;
  font-weight: bold;
  color: #1a3c20;
  line-height: 1;
  margin: 0;
}

.email-preview-delta {
  font-size: 11px;
  font-style: italic;
  color: #1a3c20;
  margin: 8px 0 0;
}

.email-preview-body {
  font-size: 12px;
  font-style: italic;
  color: #5a4a2e;
  margin: 0 14px 14px;
  line-height: 1.6;
}

.email-preview-foot {
  font-size: 10px;
  letter-spacing: 1px;
  color: #a08060;
  margin: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sample-note {
  max-width: 420px;
  margin: 18px auto 0;
  font-size: 12px;
  font-style: italic;
  color: #8b7a54;
  line-height: 1.5;
  text-align: center;
}

/* ─── Signup ────────────────────────────────────────── */

.signup-intro {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8b6914;
  margin-bottom: 16px;
}

.signup {
  max-width: 460px;
  margin: 0 auto;
}

.signup-form {
  display: flex;
  border: 1px solid #1a3c20;
  background: #fffbf2;
}

.signup-input {
  flex: 1;
  padding: 14px 16px;
  font-size: 15px;
  border: none;
  outline: none;
  background: transparent;
  font-family: Georgia, serif;
  color: #1a1208;
}

.signup-input::placeholder {
  color: #b0a080;
  font-style: italic;
}

.signup-button {
  padding: 0 24px;
  background: #1a3c20;
  color: #f5efe0;
  border: none;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: Georgia, serif;
  transition: background 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 50px;
}

.signup-button:hover {
  background: #0f2a13;
}

.signup-trust {
  margin: 14px 0 0;
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  color: #8b7a54;
  text-align: center;
}

.built-by {
  margin: 32px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #8b7a54;
  text-align: center;
}

.built-by a {
  color: #8b7a54;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.built-by a:hover {
  color: #0f2a13;
}

/* ─── Prose pages (privacy, about) ───────────────────── */

.prose {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
  color: #2a2418;
}

.prose h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 8px;
}

.prose p {
  margin: 0 0 12px;
}

.prose a {
  color: #0f2a13;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-back {
  margin-top: 32px;
  font-size: 13px;
  color: #8b7a54;
}

/* ─── Honeypot (bot trap, hidden from humans) ────────── */

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ─── Confirmation pages ────────────────────────────── */

.confirm-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.confirm-subtitle {
  font-size: 17px;
  color: #5a4a2e;
  font-style: italic;
  margin-bottom: 40px;
}

/* ─── Personalize form ──────────────────────────────── */

.personalize-blurb {
  max-width: 460px;
  margin: 0 auto 24px;
  font-size: 14px;
  color: #5a4a2e;
  font-style: italic;
  line-height: 1.55;
}

.personalize-form {
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
}

.personalize-field {
  margin-bottom: 16px;
}

.personalize-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8b6914;
  margin-bottom: 6px;
}

.personalize-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  background: #fffbf2;
  border: 1px solid #1a3c20;
  outline: none;
  font-family: Georgia, serif;
  color: #1a1208;
}

.personalize-input::placeholder {
  color: #b0a080;
  font-style: italic;
}

.personalize-input:focus {
  background: #fffefa;
  border-color: #0f2a13;
}

.personalize-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ─── Flash messages ─────────────────────────────────── */

.flash {
  max-width: 600px;
  margin: 16px auto;
  padding: 12px 20px;
  font-size: 14px;
  text-align: center;
  font-style: italic;
}

.flash.notice {
  background: #e8f0e4;
  color: #1a3c20;
  border: 1px solid #a8c8a0;
}

.flash.alert {
  background: #fdecea;
  color: #7a1e1e;
  border: 1px solid #e8b4b4;
}
