/* ============================================================================
   dealflowalert.com
   Design system: deep blue accent, Inter, mobile-first, generous whitespace.
   Per spec: no icons in feature sections, no stock photos, no animations
   beyond subtle button hover. Single accent color: #1e3a8a.
   ============================================================================ */

:root {
  --ink:           #0b1220;
  --ink-soft:      #243049;
  --muted:         #5a667a;
  --line:          #e4e7ee;
  --line-soft:     #eef0f5;
  --bg:            #ffffff;
  --bg-soft:       #f7f8fb;
  --accent:        #1e3a8a;
  --accent-hover:  #172e6f;
  --accent-soft:   #eaf0ff;
  --good:          #146c43;
  --warn:          #b54708;
  --bad:           #b42318;

  --radius:        10px;
  --radius-sm:     6px;
  --shadow-sm:     0 1px 2px rgba(11,18,32,.04), 0 1px 1px rgba(11,18,32,.03);
  --shadow:        0 8px 24px rgba(11,18,32,.06), 0 2px 4px rgba(11,18,32,.04);
  --shadow-lg:     0 20px 50px rgba(11,18,32,.10), 0 4px 12px rgba(11,18,32,.05);

  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container:     1080px;
  --container-narrow: 720px;
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

/* --- Layout -------------------------------------------------------------- */
.container         { max-width: var(--container);        margin: 0 auto; padding: 0 24px; }
.container-narrow  { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--soft  { background: var(--bg-soft); }
.section + .section { border-top: 1px solid var(--line-soft); }
.section--soft + .section--soft,
.section--soft + .section,
.section + .section--soft { border-top: 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* --- Header (landing has no nav per spec) ------------------------------- */
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.brand a { color: inherit; text-decoration: none; }

.site-header {
  padding: 24px 0;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  padding: 64px 0 56px;
}
.hero h1 { margin-bottom: 16px; }
.hero p.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 32px;
}
@media (min-width: 720px) {
  .hero { padding: 96px 0 80px; }
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
  -webkit-appearance: none;
  appearance: none;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}
.btn--primary:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--ghost:hover {
  background: var(--accent-soft);
  text-decoration: none;
}
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--block { display: block; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Prose section ("What it does") ------------------------------------- */
.prose p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 1.2em;
}

/* --- Sample alert mockup ------------------------------------------------- */
.email-mock {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 32px auto 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.email-mock__head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .92rem;
  color: var(--muted);
}
.email-mock__head .subject {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.email-mock__body { padding: 16px 24px 24px; }
.email-listing {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
}
.email-listing:last-child { border-bottom: 0; }
.email-listing__thumb {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.email-listing__body h4 { margin: 0 0 6px; font-size: 1rem; }
.email-listing__meta {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 8px;
}
.email-listing__meta strong { color: var(--ink-soft); font-weight: 600; }
.email-listing__broker {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 10px;
}
.email-listing .btn--ghost { padding: 8px 14px; font-size: .85rem; }
.email-mock__footer {
  padding: 16px 24px;
  background: var(--bg-soft);
  font-size: .82rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .email-listing { grid-template-columns: 1fr; }
  .email-listing__thumb { aspect-ratio: 16 / 9; }
}

/* --- Sites grid ---------------------------------------------------------- */
.sites-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
}
.sites-grid > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-weight: 500;
  color: var(--ink-soft);
}
@media (min-width: 640px)  { .sites-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .sites-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* --- Pricing ------------------------------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 720px) { .pricing { grid-template-columns: 1fr 1fr; } }

.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.plan-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  position: relative;
}
.plan-card--featured::before {
  content: 'Best value';
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.plan-card h3 { margin: 0 0 8px; }
.plan-card .price { font-size: 2.25rem; font-weight: 700; color: var(--ink); margin: 12px 0 4px; letter-spacing: -0.02em; }
.plan-card .price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan-card ul { list-style: none; padding: 0; margin: 16px 0 24px; color: var(--ink-soft); }
.plan-card ul li { padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.plan-card ul li:last-child { border-bottom: 0; }
.plan-card .btn { margin-top: auto; }

/* --- Form ---------------------------------------------------------------- */
.signup-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 32px auto 0;
}
.field { margin-bottom: 20px; }
.field label,
.field > .label {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field label .req { color: var(--bad); }
.field input[type="email"],
.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,58,138,.12);
}
.field textarea { resize: vertical; min-height: 100px; }

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
}
@media (min-width: 600px) { .checkbox-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .checkbox-grid { grid-template-columns: 1fr 1fr 1fr; } }
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .94rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.checkbox-row--all { grid-column: 1 / -1; font-weight: 600; color: var(--ink); }

.plan-radio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.plan-radio label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  background: #fff;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
}
.plan-radio label.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}
.plan-radio input[type="radio"] { accent-color: var(--accent); }

.form-disclaimer {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}
.form-error {
  background: #fef2f2;
  color: var(--bad);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: .9rem;
  display: none;
}
.form-error.is-visible { display: block; }

/* --- Trust line ---------------------------------------------------------- */
.trust {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  padding: 40px 0;
}

/* --- FAQ ----------------------------------------------------------------- */
.faq { max-width: 760px; margin: 32px auto 0; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 400;
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer nav {
  margin-bottom: 8px;
}
.site-footer nav a {
  color: var(--ink-soft);
  margin: 0 8px;
}

/* --- Generic content pages (about/privacy/terms/contact/thank-you) ------ */
.content-page {
  padding: 64px 0 80px;
}
.content-page h1 { margin-bottom: 24px; }
.content-page h2 { margin-top: 40px; }

/* --- Login page ---------------------------------------------------------- */
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 420px;
  margin: 64px auto;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 8px; }
.auth-card p.lede { color: var(--muted); margin-bottom: 24px; }
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--line);
}
.auth-divider::before { margin-right: 12px; }
.auth-divider::after  { margin-left: 12px; }

/* --- Utility ------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: .92rem;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.toast.is-visible { opacity: 1; }
