/* -------------------------------------------------------
   Neurastic (Clean Light) — Professional UI Theme
   ------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;           /* light slate */
  --text: #0f172a;              /* slate-900 */
  --muted: #475569;             /* slate-600 */
  --border: #e2e8f0;            /* slate-200 */
  --nav-bg: #0b1220;            /* deep navy */
  --nav-text: #e2e8f0;
  --nav-text-dim: rgba(226,232,240,0.75);

  --primary: #1d4ed8;           /* blue-700 */
  --primary-hover: #1e40af;     /* blue-800 */
  --primary-soft: rgba(29,78,216,0.10);

  --success: #065f46;           /* emerald-800 */
  --warn: #b45309;              /* amber-700 */
  --danger: #b91c1c;            /* red-700 */

  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* -------------------------------------------------------
   Global typography improvements (kept)
   ------------------------------------------------------- */

html {
  font-size: 16.5px; /* up from default ~16 */
}

body {
  line-height: 1.65;
  background: #f9fafb; /* soft off-white instead of pure white */
}

h1 {
  font-size: 2.55rem;
  line-height: 1.15;
}

h2 {
  font-size: 1.75rem;
  margin-top: 0;
}

h3 {
  font-size: 1.2rem;
}

p, li {
  font-size: 1.02rem;
  color: var(--text);
}

/* -------------------------------------------------------
   Layout: container + main wrappers (matches fixed base.html)
   ------------------------------------------------------- */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 10px;
}

/* main-content allows full-bleed hero; main-inner constrains normal content */
.main-content {
  padding: 26px 0 40px 0;
}

/* Keep content pages padded without breaking full-width hero */
.main-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 18px;
}

@media (max-width: 700px) {
  .main-inner {
    padding-left: 16px;
    padding-right: 12px;
  }
}

/* ---------------- Header / Nav ---------------- */

.site-header {
  background: var(--nav-bg);
  color: var(--nav-text);
  border-bottom: 1px solid rgba(226,232,240,0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--nav-text);
  margin-right: 8px;
  font-size: 1.85rem;
}

.nav-left a {
  color: var(--nav-text);
  opacity: 0.92;
  font-weight: 600;
  font-size: 1.25rem;
  padding: 4px 2px;
}

.nav-left a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(226,232,240,0.18);
  border-radius: 999px;
  color: var(--nav-text-dim);
  font-size: 1.25rem;
}

/* ---------------- Sections / UI blocks ---------------- */

.section {
  padding: 22px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero {
  padding: 28px 0 8px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.hero h1 {
  margin: 0 0 10px 0;
  font-size: 2.35rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p.lede {
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: rgba(29,78,216,0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--primary);
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-pad { padding: 18px; }

.kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kpi .k {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(248,250,252,0.6);
}

.kpi .k .label { color: var(--muted); font-size: 0.92rem; }
.kpi .k .val { font-weight: 800; font-size: 1.05rem; margin-top: 4px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature h3 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.step {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}

.step .n {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 8px;
}

.step h4 { margin: 0 0 6px 0; }
.step p { margin: 0; color: var(--muted); }

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(29,78,216,0.22);
  background: rgba(29,78,216,0.06);
}

.callout strong { font-size: 1.05rem; }
.callout span { color: var(--muted); }

/* ---------------- Forms ---------------- */

form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input[type="email"],
input[type="text"],
select,
textarea {
  width: 100%;
  max-width: 760px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text);
  outline: none;
  font-size: 1rem;
}

textarea {
  min-height: 190px;
}

#domains {
  margin-top: 6px;
}

button[type="submit"] {
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(29,78,216,0.35);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
}

button[type="submit"]:hover {
  background: var(--primary-hover);
}

/* ---------------- Flash messages ---------------- */

.flash-wrap {
  max-width: 1160px;
  margin: 16px auto;
  padding: 0 10px;
}

.flash {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.flash strong { margin-right: 6px; }

.flash-danger  { border-color: rgba(185,28,28,0.30); background: rgba(185,28,28,0.06); }
.flash-warning { border-color: rgba(180,83,9,0.30); background: rgba(180,83,9,0.07); }
.flash-success { border-color: rgba(6,95,70,0.25); background: rgba(6,95,70,0.06); }

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  background: #ffffff;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--muted);
  margin-left: 10px;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .kpi { grid-template-columns: 1fr; }
  .callout { flex-direction: column; align-items: flex-start; }
}


/* -------------------------------------------------------
   HERO OVERLAY (FIXED + RELIABLE)
   Paste at very bottom so it overrides earlier rules
   ------------------------------------------------------- */

.hero-overlay {
  position: relative;
  max-width: 1320px;
  margin: 24px auto;
  padding: 0 18px;

  /* prevents collapse if image fails to load */
  min-height: 420px;
  display: block;
}

.hero-overlay-img {
  width: 100%;
  height: auto;
  display: block;

  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

/* Overlay CTA button */
.hero-cta {
  position: absolute;
  left: 50%;
  top: 92%;
  transform: translate(-50%, -50%);

  background: linear-gradient(180deg, #2f5bd6, #1e3a8a);
  color: #ffd84d;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;

  padding: 14px 42px;
  border-radius: 10px;
  text-decoration: none;

  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
  z-index: 5;
}

.hero-cta:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

/* Mobile adjustment */
@media (max-width: 720px) {
  .hero-overlay { min-height: 320px; }
  .hero-cta {
    top: 82%;
    font-size: 1rem;
    padding: 12px 34px;
  }
}


/* ---------------- Pricing page ---------------- */

.pricing-wrap {
  padding: 30px 0 10px 0;
}

.pricing-title {
  text-align: center;
  margin: 10px 0 18px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 auto;
}

.pricing-card {
  border: 7px solid rgba(29,78,216,0.75);
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
}

.pricing-card.is-selected {
  border-color: rgba(29,78,216,1);
  box-shadow: 0 14px 34px rgba(29,78,216,0.18);
}

.pricing-top {
  font-weight: 850;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.pricing-mid {
  font-weight: 750;
  color: var(--primary);
  margin-bottom: 16px;
}

.free-note {
  color: #b91c1c;
}

.pricing-price {
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text);
}

.pricing-cta-row {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 22px;
}

.pricing-help {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Make the hero CTA usable as a normal button (not overlay positioned) */
.hero-cta-static {
  position: static;
  transform: none;
  display: inline-block;
}

/* Responsive */
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  min-height: 200px;          /* was auto */
  display: flex;
  flex-direction: column;
  justify-content: center;    /* vertically centers content */
  padding: 26px 18px;         /* more breathing room */
}


/* ---------------- Pricing improvements (paste at very bottom) ---------------- */

.pricing-mid-muted {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
}

.pricing-reassurance {
  text-align: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Make pricing cards taller + nicer spacing */
.pricing-card {
  min-height: 240px;          /* taller than 200 */
  padding: 32px 18px;         /* more vertical space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* Slightly more hierarchy inside the cards */
.pricing-top {
  margin-bottom: 6px;
}

.pricing-price {
  margin-top: 4px;
  font-size: 1.45rem;
}


/* ---------------- Contact page ---------------- */

.contact-wrap {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.contact-title {
  margin: 0 0 6px 0;
  text-align: center;
}

.contact-subtitle {
  margin: 0 0 18px 0;
  text-align: center;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.req {
  color: var(--danger);
  font-weight: 800;
}

.muted {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.helptext {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 6px;
}

.contact-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Honeypot hidden field */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

@media (max-width: 800px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Pricing card selection: stronger, filled state --- */

.pricing-card {
  border: 4px solid rgba(29, 78, 216, 0.45);
  background: #fff;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  position: relative;
}

.pricing-card:hover {
  border-color: rgba(29, 78, 216, 0.75);
  transform: translateY(-1px);
}

.pricing-card:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.55);
  outline-offset: 4px;
}

/* Selected = filled */
.pricing-card.is-selected {
  background: rgba(29, 78, 216, 1);
  border-color: rgba(29, 78, 216, 1);
  color: #fff;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.20);
  transform: translateY(-2px);
}

/* Ensure text inside flips properly */
.pricing-card.is-selected .pricing-top,
.pricing-card.is-selected .pricing-price {
  color: #fff;
}

.pricing-card.is-selected .pricing-mid,
.pricing-card.is-selected .pricing-mid-muted,
.pricing-card.is-selected .free-note {
  color: rgba(255, 255, 255, 0.85);
}

/* Optional: subtle "Selected" badge */
.pricing-card.is-selected::after {
  content: "Selected";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
