/* ============================= */
/* 2AM – FINAL LOCKED SYSTEM */
/* ============================= */

/* Brand Colors */
:root {
  --teal-cool: #2DD4BF;
  --gray-dark: #1F2937;
  --indigo-deep: #1E3A8A;
  --gray-light: #F9FAFB;
  --amber-warm: #F59E0B;
}

/* ============================= */
/* RESET */
/* ============================= */

*, *::before, *::after {
  box-sizing: border-box;
}

/* ============================= */
/* BASE */
/* ============================= */

body {
  margin: 0;
  background: var(--gray-light);
  color: var(--gray-dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.7;
}

.section {
  margin: 32px 0;
  padding-top: 1px;
  padding-bottom: 1px;
}

/* Main reading column */

.document {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.main-column {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

h2 {
  margin-top: 16px;
  margin-bottom: 12px;
}

.section > *:first-child {
  margin-top: 0;
}

.section > *:last-child {
  margin-bottom: 0;
}

/* ============================= */
/* SITE HEADER */
/* ============================= */

.site-header {
  background: var(--gray-light);
  padding: 24px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  height: 84px;
  width: auto;
  display: block;
}

.doc-modal-header .header-logo {
  margin-left: 0;
}

.header-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  color: var(--indigo-deep);
  text-decoration: none;
  margin-left: 40px;
}

.header-nav a:hover {
  text-decoration: underline;
}

/* ============================= */
/* HERO */
/* ============================= */

.hero h1 {
  margin-top: 12px;
}

.hero .document {
  margin-bottom: 0;
}

.hero {
  background: var(--gray-light);
  padding-bottom: 1px;
}

.hero h1 {
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  letter-spacing: 0.022em;
  font-size: 58px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--gray-dark);
}

.hero h1 {
  margin-bottom: 20px;
}

/* ============================= */
/* SECTIONS */
/* ============================= */

h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.025em;
  font-size: 22px;
  line-height: 1.3;
  color: var(--indigo-deep);
  margin-bottom: 14px;
}

p {
  font-size: 18px;
  line-height: 1.72;
  margin-bottom: 14px;
}

/* Emphasise list-introducing sentences */
.section p:has(+ ul) {
  font-weight: 500;
}

/* Slight emphasis for section entry paragraph */
.section p:first-of-type {
  font-size: 19px;
  line-height: 1.75;
}

h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.4;
  color: var(--indigo-deep);
  margin-top: 22px;
  margin-bottom: 8px;
}

.doc-modal-body {
  width: 100%;
}

.doc-modal-body ul {
  margin-top: 12px;
  margin-bottom: 16px;
}

/* ============================= */
/* BULLET SYSTEM */
/* ============================= */

ul {
  list-style: none;
  padding-left: 0;
  margin-top: 18px;
  margin-bottom: 14px;
}

ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  line-height: 1.72;
}

ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--teal-cool);
}

/* ============================= */
/* CONTACT SECTION */
/* ============================= */

.contact strong {
  font-size: 20px;
  color: var(--indigo-deep);
  font-weight: 500;
}

.cta-email a {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--indigo-deep);
  text-decoration: none;
}

.cta-email a:hover {
  text-decoration: underline;
}

/* ============================= */
/* MODAL NAVIGATION */
/* ============================= */

.modal-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.modal-nav button {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  background: none;
  border: none;
  color: var(--indigo-deep);
  cursor: pointer;
}

.modal-nav button:hover {
  text-decoration: underline;
}

/* ============================= */
/* DOCUMENT MODAL */
/* ============================= */

.doc-modal {
  position: fixed;
  inset: 0;
  background: var(--gray-light);
  z-index: 1000;
  overflow-y: auto;
}

.doc-modal-content {
  max-width: 680px;
  margin: 120px auto;
  padding: 0 0 120px 0;
}

.doc-modal-header h2 {
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  letter-spacing: 0.025em;
  font-size: 32px;
  color: var(--indigo-deep);
}

.modal-close {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--gray-dark);
  cursor: pointer;
}

.modal-meta {
  margin-top: 4px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--indigo-deep);
  display: block;
}

#modal-counter {
  font-family: 'DM Sans', sans-serif;
}

/* ============================= */
/* MODAL HEADER LAYOUT */
/* ============================= */

.modal-logo {
  grid-column: 1 / span 3;
  grid-row: 1;
  height: 56px;
  display: block;
  margin: 0 0 16px 0;
}

/* ============================= */
/* INTRO SECTION LAYOUT */
/* ============================= */

/* Reduce gap below hero */
.intro-section {
  margin-top: 60px;
}

.intro-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.intro-text {
  flex: 2;
}

.intro-image {
  flex: 1;
}

.intro-image {
  display: flex;
  align-items: flex-start;
}

.intro-image img {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
  margin-top: 96px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Mobile stack */

@media (max-width: 900px) {
  .intro-layout {
    flex-direction: column;
    gap: 24px;
  }

  .intro-image {
    margin-top: 0;
  }

  .intro-image img {
    margin-top: 0;
  }

  .main-column {
    padding: 0 24px;
  }
}

/* Mobile header nav */

@media (max-width: 600px) {
  .header-logo {
    height: 56px;
  }

  .header-nav a {
    font-size: 15px;
    margin-left: 20px;
  }

  .doc-modal-content {
    margin: 40px auto;
    padding: 0 24px 80px 24px;
  }

  .modal-nav button {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
  }

  .modal-close {
    min-height: 44px;
    padding: 8px 12px;
  }
}

/* ============================= */
/* DESKTOP EXECUTIVE TUNING */
/* ============================= */

@media (min-width: 1440px) {

  .document {
    max-width: 860px;
  }

  .hero h1 {
    font-size: 62px;
  }

  p {
    font-size: 19px;
  }

}

@media (min-width: 1920px) {

  .main-column {
    max-width: 780px;
  }

  .document {
    max-width: 1000px;
  }

  .hero h1 {
    font-size: 68px;
  }

  p {
    font-size: 20px;
  }

}

/* ============================= */
/* SITE FOOTER */
/* ============================= */

.site-footer {
  background: #E6E9ED;
  padding: 18px 0;
  margin-top: 50px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-company p {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: var(--gray-dark);
}

.footer-copyright {
  text-align: center;
  font-size: 13px;
  opacity: 0.75;
  margin-top: 10px;
}

.footer-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; /* half of 30px header nav */
  color: var(--indigo-deep);
  text-decoration: none;
  margin: 0 16px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-company p {
  margin-top: 2px;
  margin-bottom: 2px;
  line-height: 1.35;
}

.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.footer-inner p {
  margin-top: 3px;
  margin-bottom: 3px;
}

/* ============================= */
/* MODAL HEADER LAYOUT FINAL */
/* ============================= */

.doc-modal-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto auto;
  align-items: center;
}

.doc-modal-header .header-logo {
  grid-column: 1;
  grid-row: 1;
}

.modal-nav {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  display: flex;
  gap: 12px;
}

#modal-title {
  grid-column: 1 / span 2;
  grid-row: 2;
  text-align: left;
  margin-top: 10px;
}
/* ============================= */
/* LANDING PAGE ADDITIONS        */
/* ============================= */

.hero-statement {
  padding: 72px 0 48px;
}

.hero-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.hero-text {
  flex: 2;
}

.hero-image {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.hero-image img {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
  margin-top: 96px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.hero-label {
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.018em;
  color: var(--gray-dark);
  text-align: center;
  margin: -48px 0 0 0;
}

.hero-statement h1 {
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  font-size: 54px;
  line-height: 1.1;
  letter-spacing: 0.018em;
  color: var(--gray-dark);
  margin: 0;
  max-width: 720px;
}

/* ============================= */
/* FLOW DIAGRAM                  */
/* ============================= */

.flow-section {
  padding: 56px 0 64px;
  border-top: 1px solid #E5E7EB;
}

.flow-diagram {
  display: flex;
  align-items: stretch;
}

.flow-node {
  flex: 1;
}

.flow-node-inner {
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.flow-node:first-child .flow-node-inner { padding-left: 0; }
.flow-node:last-child  .flow-node-inner { padding-right: 0; }

.flow-number {
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-cool);
  margin-bottom: 14px;
}

.flow-label {
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  color: var(--gray-dark);
  margin-bottom: 10px;
}

.flow-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #6B7280;
  margin: 0;
  flex: 1;
}

.flow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.flow-list li {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #6B7280;
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.flow-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--teal-cool);
}

.flow-arrow {
  display: flex;
  align-items: center;
  padding-top: 28px;
  flex-shrink: 0;
}

.flow-node.accent .flow-node-inner {
  border-left: 3px solid var(--teal-cool);
  border-right: 3px solid var(--teal-cool);
  border-top: 3px solid var(--teal-cool);
  border-bottom: 3px solid var(--teal-cool);
  background: #F0FDFB;
  border-radius: 4px;
  margin: 0 4px;
}

/* ============================= */
/* THREE CARDS                   */
/* ============================= */

.cards-section {
  padding: 56px 0 72px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
  background: #E5E7EB;
}

.card {
  padding: 32px 28px;
  background: #fff;
  display: block;
}

.card-accent {
  background: #F0FDFB;
  border-top: 3px solid var(--teal-cool);
  border-bottom: 3px solid var(--teal-cool);
  border-left: 3px solid var(--teal-cool);
  border-right: 3px solid var(--teal-cool);
  border-radius: 4px;
  margin: 0 2px;
}

.card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  color: var(--teal-cool);
}

.card-title {
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--gray-dark);
  margin: 0 0 8px 0;
}

.card-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal-cool);
  letter-spacing: 0.04em;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.card-cta:hover {
  text-decoration: underline;
}

.card-list {
  margin: 0 0 16px 0;
  padding-left: 0;
}

.card-list li {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #6B7280;
  padding-left: 18px;
  margin-bottom: 4px;
  position: relative;
  list-style: none;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--teal-cool);
}

/* ============================= */
/* CTA SECTION                   */
/* ============================= */

.cta-section {
  padding: 52px 48px;
  background: var(--gray-dark);
  border-radius: 8px;
  margin: 40px 0 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-section-text h2 {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  margin: 0 0 10px 0;
  letter-spacing: 0.01em;
}

.cta-section-text p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #9CA3AF;
  margin: 0;
  line-height: 1.65;
  max-width: 440px;
}

.cta-section-action { flex-shrink: 0; text-align: center; }

.cta-btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-dark);
  background: var(--teal-cool);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 4px;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.cta-btn:hover { opacity: 0.88; }

.cta-note {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #6B7280;
  margin-top: 10px;
}

.cta-note a { color: #fff; }
.cta-note a:hover { opacity: 0.8; }

/* ============================= */
/* LANDING PAGE RESPONSIVE       */
/* ============================= */

@media (max-width: 900px) {
  .hero-statement h1 { font-size: 38px; }

  .hero-layout {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .hero-image {
    justify-content: flex-start;
  }

  .hero-image img {
    margin-top: 0;
    max-width: 160px;
  }

  .flow-diagram {
    flex-direction: column;
    gap: 0;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
    justify-content: center;
    height: 36px;
  }

  .flow-node.accent .flow-node-inner {
    border: 3px solid var(--teal-cool);
    border-left: 3px solid var(--teal-cool);
    margin: 0;
  }

  .flow-node:first-child .flow-node-inner,
  .flow-node:last-child  .flow-node-inner {
    padding-left: 28px;
    padding-right: 28px;
  }

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

  .card-accent {
    border: 3px solid var(--teal-cool);
    border-radius: 4px;
    margin: 0;
  }

  .cta-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .hero-statement { padding: 48px 0 36px; }
  .hero-statement h1 { font-size: 32px; }
  .cta-section-text h2 { font-size: 20px; }
  .hero-label { font-size: 18px; }
}

/* Page load animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-statement { animation: fadeUp 0.45s ease both; }
.flow-section   { animation: fadeUp 0.45s ease 0.08s both; }
.cards-section  { animation: fadeUp 0.45s ease 0.16s both; }
.cta-section    { animation: fadeUp 0.45s ease 0.28s both; }
