/* newsletter.aivarsmeijers.com : signup landing. Warm ink theme, coral accent. */

:root {
  --bg: #100f0d;
  --bg-raised: #171512;
  --bg-card: #1d1a16;
  --line: #322d26;
  --text: #f4efe8;
  --muted: #b3a898;
  --accent: #ff7a59;
  --accent-2: #ffb27a;
  --accent-ink: #26130b;
  --radius: 16px;
  --maxw: 1080px;
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Familjen Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; text-wrap: balance; }
.brand { font-family: "Familjen Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 15, 13, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-weight: 800; font-size: 1.05rem; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.site-nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .site-nav { gap: 13px; } .site-nav a { font-size: 0.88rem; } }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 52px; align-items: center; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero-photo { order: -1; max-width: 380px; margin: 0 auto; } }
.kicker-pill {
  display: inline-block; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; color: var(--muted); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 18px; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { font-size: 1.14rem; color: var(--muted); max-width: 52ch; margin-bottom: 22px; }
.hero-photo img { border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }

/* Benefit list */
.check-list { list-style: none; display: grid; gap: 11px; max-width: 48ch; margin-bottom: 30px; }
.check-list li { padding-left: 30px; position: relative; color: #ddd2c2; font-size: 1.02rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 122, 89, 0.18); border: 1.5px solid var(--accent); }

/* Signup (EmailOctopus embed lives here) */
.signup { max-width: 440px; }
.signup .eo-fallback { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.reassure { margin-top: 16px; font-size: 0.86rem; color: var(--muted); }

/* Sections */
section { padding: 60px 0; }
section.tint { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.section-title { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -0.015em; margin-bottom: 12px; }
.section-intro { color: var(--muted); max-width: 62ch; margin-bottom: 34px; }

/* Cards */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card .card-icon { font-size: 1.6rem; margin-bottom: 12px; display: block; }

/* Proof row */
.hero-proof { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 26px; row-gap: 6px; font-size: 0.95rem; color: var(--muted); }
.hero-proof strong { color: var(--text); font-weight: 600; }
@media (max-width: 640px) { .hero-proof { flex-direction: column; align-items: flex-start; row-gap: 8px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 40px; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer .foot-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px; }

/* EmailOctopus form: nudge its rendered widget toward the dark theme where possible */
.signup form { max-width: 440px; }

/* --- Restyle the injected EmailOctopus embedded form to the dark theme --- */
body .signup .emailoctopus-form-wrapper,
body .signup .inline-container,
body .signup .form-container,
body .signup .main-form {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
}
body .signup .emailoctopus-form input.form-control {
  background: var(--bg-card) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  -webkit-appearance: none !important; appearance: none !important;
}
body .signup .emailoctopus-form input.form-control::placeholder { color: var(--muted) !important; opacity: 1 !important; }
body .signup .emailoctopus-form input.form-control:focus {
  border-color: var(--accent) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.18) !important;
}
body .signup .emailoctopus-form input[type="submit"],
body .signup .emailoctopus-form .btn-primary {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.15s ease, transform 0.15s ease !important;
}
body .signup .emailoctopus-form input[type="submit"]:hover,
body .signup .emailoctopus-form .btn-primary:hover { background: var(--accent-2) !important; transform: translateY(-1px) !important; }
body .signup .emailoctopus-form-wrapper a { color: var(--muted) !important; }
body .signup .emailoctopus-success-message,
body .signup .emailoctopus-error-message,
body .signup .emailoctopus-form label { color: var(--text) !important; }
