/* Jamain static website styles. No JavaScript required. */
:root {
  --navy: #0b2d4f;
  --blue: #0759b8;
  --blue-dark: #06468f;
  --cyan: #00a0e9;
  --ink: #1d2733;
  --muted: #5f6b7a;
  --line: #d9e2ec;
  --panel: #f4f8fc;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(11, 45, 79, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 230px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a {
  color: var(--navy);
}

.hero {
  background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 54%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 56px;
  align-items: center;
  padding: 76px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.16;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  letter-spacing: -0.05em;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.035em;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

.lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid var(--blue-dark);
}

.button.primary {
  color: var(--white);
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--blue-dark);
  background: var(--white);
}

.hero-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  font-size: 1.4rem;
}

.hero-panel ul {
  margin: 0;
  padding-left: 20px;
}

.hero-panel li + li {
  margin-top: 10px;
}

.section {
  padding: 74px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.cards,
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card,
.download-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(11, 45, 79, 0.07);
}

.card p,
.download-card p {
  margin-top: 0;
  color: var(--muted);
}

.card a {
  font-weight: 800;
}

.split-section {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
}

.approach-list {
  display: grid;
  gap: 18px;
}

.approach-list > div {
  padding: 22px;
  border-left: 4px solid var(--cyan);
  background: var(--white);
  border-radius: 10px;
}

.approach-list p {
  margin: 0;
  color: var(--muted);
}

.downloads-section {
  background: var(--white);
}

.download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.download-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: #edf6ff;
  border: 1px solid #cfe5fb;
  font-weight: 800;
}


.software-section {
  padding-top: 28px;
  background: var(--white);
}

.software-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.45fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 100%);
  box-shadow: 0 8px 26px rgba(11, 45, 79, 0.07);
}

.software-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.software-actions {
  display: flex;
  justify-content: flex-end;
}

.contact-section {
  padding-top: 28px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 32px;
  padding: 36px;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #063f81);
}

.contact-card h2,
.contact-card .eyebrow {
  color: var(--white);
}

.contact-card p {
  color: #dcecff;
}

.contact-card a {
  color: var(--white);
  font-weight: 800;
}

.contact-details {
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
}

.contact-details p {
  margin: 0;
}

.contact-details p + p {
  margin-top: 18px;
}

.site-footer {
  padding: 28px 0;
  color: #d7e9fb;
  background: var(--navy);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.92rem;
}

.footer-inner span:first-child {
  font-weight: 800;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-grid,
  .split-grid,
  .software-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .cards,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 54px 0;
  }

  .section {
    padding: 54px 0;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .brand-logo {
    width: 190px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .software-actions {
    justify-content: stretch;
  }

  .contact-card {
    padding: 26px;
  }
}


/* ===================================================================
   Additions for the Jamain marketing site (findability positioning)
   Built on the existing tokens above; no new palette introduced.
   =================================================================== */

/* Primary CTA in the top navigation */
.nav-cta {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--white) !important;
  background: var(--blue-dark);
}
.nav-cta:hover,
.nav-cta:focus {
  text-decoration: none;
  background: var(--navy);
}

/* Flash messages */
.flash {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-weight: 600;
}
.flash.error {
  border-color: #f3c7c7;
  background: #fdecec;
  color: #8a1f1f;
}

/* Narrow single-column pages (e.g. thank-you) */
.narrow {
  max-width: 720px;
}

/* Trust / reason-to-believe strip */
.trust-section {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.trust-item {
  padding: 26px;
  border-left: 4px solid var(--cyan);
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(11, 45, 79, 0.06);
}
.trust-item p {
  margin-bottom: 0;
  color: var(--muted);
}

/* How-it-works numbered steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(11, 45, 79, 0.07);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--white);
  background: var(--blue-dark);
}
.step p {
  margin-bottom: 0;
  color: var(--muted);
}

/* Beta call-to-action band (prominent, navy) — reuses the software-card grid */
.beta-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.45fr);
  gap: 28px;
  align-items: center;
  padding: 36px;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #063f81);
}
.beta-card h2,
.beta-card .eyebrow {
  color: var(--white);
}
.beta-card p {
  margin-bottom: 0;
  color: #dcecff;
}
.beta-section {
  background: var(--white);
}

/* --- Application / enquiry form --- */
.form-section {
  background: var(--panel);
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
}
.form-intro .lead {
  font-size: 1.1rem;
}
.plain-list {
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.plain-list li + li {
  margin-top: 10px;
}

.enquiry-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.field .req {
  color: var(--blue-dark);
  margin-left: 3px;
}
.enquiry-form input[type="text"],
.enquiry-form input[type="email"],
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 89, 184, 0.15);
}
.enquiry-form textarea {
  resize: vertical;
}
.enquiry-form ul.errorlist {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #8a1f1f;
  font-size: 0.9rem;
}
.form-errors {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #f3c7c7;
  background: #fdecec;
  color: #8a1f1f;
}
.form-actions {
  margin-top: 8px;
}
.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
/* Honeypot: visually and structurally hidden from real users */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 860px) {
  .trust-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .beta-card,
  .form-layout,
  .field-row {
    grid-template-columns: 1fr;
  }
}


/* Demo credentials note under the hero call-to-action */
.demo-note {
  margin: 16px 0 0;
  padding: 10px 14px;
  display: inline-block;
  border: 1px dashed var(--line, #c7d3df);
  border-radius: 8px;
  background: var(--panel, #eef3f8);
  color: var(--muted, #40546a);
  font-size: 0.92rem;
  line-height: 1.4;
}
.demo-note strong {
  color: var(--navy, #0b2d4f);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}


/* Product cards: small status pill + fine-print privacy line */
.pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-dark, #06468f);
  background: #edf6ff;
  border: 1px solid #cfe5fb;
}
.pill-free {
  color: #1c7a3e;
  background: #e7f6ec;
  border-color: #bfe6cb;
}
.card-fineprint {
  margin-top: 10px;
  color: var(--muted, #5f6b7a);
  font-size: 0.85rem;
  line-height: 1.4;
}
