/* ============================================================
   Even Keel — Design System
   ============================================================ */

:root {
  --navy:      #012a4a;
  --ocean:     #023e7d;
  --gold:      #E8A020;
  --white:     #FFFFFF;
  --surface:   #F5F7FA;
  --text:      #1A1A2E;
  --muted:     #6B7280;
  --border:    #DDE2EA;
  --error:     #C0392B;
  --success:   #1A6B4A;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;

  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 1px 3px rgba(41,109,183,0.08), 0 4px 16px rgba(41,109,183,0.06);
  --shadow-lg: 0 8px 32px rgba(41,109,183,0.14), 0 2px 8px rgba(41,109,183,0.08);

  --max-w: 1120px;
  --nav-h: 68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; color: var(--ocean); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; color: var(--ocean); }
h3 { font-size: 1.15rem; font-weight: 600; color: var(--ocean); font-family: var(--font-body); }
p  { color: var(--muted); font-size: 1rem; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header h2 { margin-bottom: 14px; }
.section-sub { font-size: 1.05rem; color: var(--muted); }
.section-cta { text-align: center; margin-top: 20px; }
.section-cta .btn { width: 100%; max-width: 380px; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 40px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: #202124;
  color: var(--white);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-primary .blob-btn__inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  z-index: -1;
}
.btn-primary .blob-btn__blobs {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: url(#goo);
}
.btn-primary .blob-btn__blob {
  position: absolute;
  width: 25%;
  height: 100%;
  border-radius: 50%;
  background: #84eaff;
  transform: translate3d(0, 150%, 0) scale(1.7);
  transition: transform 0.45s;
}
.btn-primary .blob-btn__blob:nth-child(1) { left: 0%; transition-delay: 0s; }
.btn-primary .blob-btn__blob:nth-child(2) { left: 25%; transition-delay: 0.08s; }
.btn-primary .blob-btn__blob:nth-child(3) { left: 50%; transition-delay: 0.16s; }
.btn-primary .blob-btn__blob:nth-child(4) { left: 75%; transition-delay: 0.24s; }
.btn-primary:hover .blob-btn__blob {
  transform: translate3d(0, -10%, 0) scale(1.7);
}
.btn-primary:hover { box-shadow: none; color: var(--navy); }



.btn-lg { padding: 13px 28px; font-size: 0.95rem; border-radius: 12px; }
.btn-full { width: 100%; }

/* ── Navigation ── */
.nav-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  height: var(--nav-h);
  padding-top: 20px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo — white on hero */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 40px;
  width: auto;
}
.nav-phone {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: color 0.15s;
}
.nav-phone:hover { color: var(--white); }




/* ── Hero ── */
.hero {
  padding: 0;
  min-height: 70vh;
  background: linear-gradient(rgba(1,42,74,0.75), rgba(1,42,74,0.8)),
              url('images/header-hero.jpg') center/cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: end;
  padding: 120px 24px 80px;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-content {
  text-align: left;
  align-self: end;
}
.hero-form {
  align-self: end;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 0 32px;
  line-height: 1.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: #84eaff;
  color: var(--navy);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  margin-bottom: 16px;
  border: none;
}


/* Hero form card */
.hero-form .signup-form {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.15);
}
.hero-form-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.form-reassurance {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}



/* ── Map Pattern Background ── */
.map-pattern {
  position: relative;
}
.map-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* vertical dashed center line */
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 8px,
      rgba(41,109,183,0.06) 8px,
      rgba(41,109,183,0.06) 16px
    ) center / 1px 100% no-repeat,
    /* horizontal subtle grid lines */
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 119px,
      rgba(41,109,183,0.04) 119px,
      rgba(41,109,183,0.04) 120px
    ),
    /* vertical subtle grid lines */
    repeating-linear-gradient(
      to right,
      transparent,
      transparent 199px,
      rgba(41,109,183,0.04) 199px,
      rgba(41,109,183,0.04) 200px
    );
}
.map-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* dashed top border */
    repeating-linear-gradient(
      to right,
      rgba(41,109,183,0.08),
      rgba(41,109,183,0.08) 8px,
      transparent 8px,
      transparent 16px
    ) top / 100% 1px no-repeat,
    /* dashed bottom border */
    repeating-linear-gradient(
      to right,
      rgba(41,109,183,0.08),
      rgba(41,109,183,0.08) 8px,
      transparent 8px,
      transparent 16px
    ) bottom / 100% 1px no-repeat;
}

/* ── Features ── */
.features {
  padding: 96px 0;
  background: var(--white);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.feature-card {
  background: rgba(255,255,255,0.5);
  border: 0.5px solid var(--border);
  padding: 36px 28px;
  transition: background 0.2s ease;
}
.feature-card:hover {
  background: rgba(255,255,255,1);
}
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(41,109,183,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--text); font-family: var(--font-body); }
.feature-pain {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 8px;
}
.feature-pain::before {
  content: 'Solves: ';
  font-style: normal;
  font-weight: 600;
}
.feature-card p:not(.feature-pain)  { font-size: 0.85rem; line-height: 1.6; }



/* ── Pricing ── */
.pricing {
  padding: 96px 0;
  background: var(--white);
}
.pricing-table-wrap {
  max-width: 780px;
  margin: 0 auto 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
  position: relative;
  z-index: 1;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: fixed;
}
.pricing-table thead th:first-child { width: 34%; }

.pricing-table thead tr { background: var(--surface); }
.pricing-table thead th {
  padding: 20px 20px 16px;
  text-align: center;
  font-weight: 600;
  vertical-align: bottom;
}
.pricing-table thead th:first-child {
  text-align: left;
  color: var(--muted);
}
.col-evenkeel { background: rgba(132,234,255,0.3); }
thead .col-evenkeel { background: rgba(132,234,255,0.3); }
.col-brand {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
/* contrast fix: was 0.55 (~3.5:1), now 0.75 (~4.8:1) */
thead .col-competitor .col-brand { color: var(--text); }
.col-price { display: block; font-size: 0.78rem; font-weight: 500; }
thead .col-evenkeel .col-price { color: var(--ocean); }

/* contrast fix: was 0.4, now 0.65 (~4.2:1) */
thead .col-competitor .col-price { color: var(--muted); }

.pricing-table tbody tr {
  border-top: 1px solid var(--border);
  transition: background 0.12s;
}
.pricing-table tbody tr:nth-child(even) { background: var(--surface); }
.pricing-table tbody tr:nth-child(even) .col-evenkeel { background: rgba(132,234,255,0.3); }
.pricing-table tbody tr:hover { background: #eef2f7; }
.pricing-table tbody tr:hover .col-evenkeel { background: rgba(132,234,255,0.35); }
.pricing-table tbody td {
  padding: 14px 20px;
  color: var(--text);
  text-align: center;
  vertical-align: middle;
}
.pricing-table tbody td:first-child {
  text-align: left;
  font-size: 0.88rem;
}
svg.check { color: #22c55e; margin: 0 auto; display: block; }
svg.cross { color: #C0392B; margin: 0 auto; display: block; }

.pricing .section-header h2 { color: var(--ocean); }
.pricing .section-sub { color: var(--muted); }


/* ── Social Proof ── */
.social-proof {
  padding: 96px 0;
  background: linear-gradient(rgba(1,42,74,0.75), rgba(1,42,74,0.8)),
              url('images/price-bk.jpg') center/cover no-repeat;
}
.testimonials {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  min-height: 200px;
}
.testimonial {
  text-align: center;
  display: none;
}
.testimonial.active {
  display: block;
}
.testimonial::before {
  content: '\201C';
  font-family: var(--font-head);
  font-size: 5rem;
  color: var(--white);
  opacity: 0.2;
  line-height: 0.8;
  display: block;
  margin-bottom: 8px;
}
.testimonial p {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 24px;
  font-weight: 600;
}
.testimonial-highlight {
  color: #84eaff;
}
.testimonial-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.testimonial-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}
.testimonial-role {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.testimonial-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.testimonial-avatar-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color 0.2s, transform 0.2s;
  opacity: 0.6;
}
.testimonial-avatar-btn.active {
  border-color: var(--white);
  transform: scale(1.15);
  opacity: 1;
}
.testimonial-avatar-btn:hover {
  opacity: 1;
}
.testimonial-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* ── Forms ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
input, select, textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: #b0b8c4; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(26,74,122,0.12);
}
input[aria-invalid="true"] { border-color: var(--error); }
.form-error {
  font-size: 0.78rem;
  color: var(--error);
  display: none;
}
.form-error:not(:empty) { display: block; }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: #edf7f2;
  border: 1px solid #a8d5bc;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--success);
}
.form-success:not([hidden]) { display: flex; }
.form-success svg { flex-shrink: 0; color: var(--success); }

/* ── Blob Button ── */
.blob-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--white);
  background: #202124;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s;
}
.blob-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.blob-btn__inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  z-index: -1;
}
.blob-btn__blobs {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: url(#goo);
}
.blob-btn__blob {
  position: absolute;
  width: 25%;
  height: 100%;
  border-radius: 50%;
  background: #84eaff;
  transform: translate3d(0, 150%, 0) scale(1.7);
  transition: transform 0.45s;
}
.blob-btn__blob:nth-child(1) { left: 0%; transition-delay: 0s; }
.blob-btn__blob:nth-child(2) { left: 25%; transition-delay: 0.08s; }
.blob-btn__blob:nth-child(3) { left: 50%; transition-delay: 0.16s; }
.blob-btn__blob:nth-child(4) { left: 75%; transition-delay: 0.24s; }
.blob-btn:hover .blob-btn__blob {
  transform: translate3d(0, -10%, 0) scale(1.7);
}
.blob-btn:hover {
  color: var(--navy);
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 48px;
}
.footer-about .footer-logo {
  margin-bottom: 16px;
}
.footer-seo {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 16px;
}
.footer-contact {
  padding-top: 56px;
}
.footer-contact h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-phone {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  color: var(--white);
  margin-top: 20px;
  transition: color 0.15s;
}
.footer-phone:hover { color: rgba(255,255,255,0.8); }
.footer-email-form {
  display: flex;
  gap: 8px;
}
.footer-email-form input {
  flex: 1;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--white);
  background: rgba(255,255,255,0.05);
}
.footer-email-form input::placeholder { color: rgba(255,255,255,0.4); }
.footer-email-form input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
.footer-email-form .btn {
  flex-shrink: 0;
  background: var(--white);
  color: var(--navy);
}
.footer-email-form .btn:hover {
  color: var(--navy);
}
.footer-email-form .btn .blob-btn__blob {
  background: #84eaff;
}
.footer-form-success {
  font-size: 0.85rem;
  color: #84eaff;
  margin-top: 12px;
}
.footer-form-success[hidden] { display: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo { color: var(--white); }


/* ── Responsive ── */
@media (max-width: 768px) {
  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 100px 24px 48px;
    align-items: start;
  }
  .hero-content {
    align-self: start;
  }
  .hero-form {
    align-self: start;
  }
  .hero {
    min-height: auto;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }

  /* Testimonials */
  .testimonial p {
    font-size: 1.2rem;
  }

  /* Pricing table */
  .pricing-table-wrap {
    overflow-x: auto;
  }
  .pricing-table {
    min-width: 580px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-contact {
    padding-top: 0;
  }

  /* Section spacing */
  .section-header {
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: 90px 16px 36px;
    gap: 32px;
  }
  .hero-form .signup-form {
    padding: 24px;
  }
  .container {
    padding: 0 16px;
  }
  .footer-email-form {
    flex-direction: column;
  }
  .testimonial-avatars {
    gap: 8px;
  }
  .testimonial-avatar-btn {
    width: 40px;
    height: 40px;
  }
}
