/* ePilot public landing page.
   Brand palette from the authenticated application (frontend/src/index.css):
   navy headings, ePilot-blue accents, pale-blue cards with blue-grey borders,
   12px radius, restrained shadows, Inter throughout. */

@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); }

:root {
  --navy: #0b2559;
  --blue: #0159c0;
  --blue-hover: #014a9f;
  --accent: #026ed2;
  --cyan: #12a4e8;
  --card-bg: #f3f8ff;
  --card-border: #c9d8ec;
  --band-bg: #e9f1fc;
  --line: #d7e2f0;
  --text: #102a56;
  --text-2: #42597a;
  --footer-text: #c9d7ec;

  --radius-control: 8px;
  --radius-card: 12px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 8px rgba(11, 37, 89, 0.04);

  --font-sans: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-gap: clamp(48px, 5vw, 68px);
  --card-gap: clamp(16px, 1.8vw, 24px);
  --header-h: 74px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: #ffffff;
  background-image: linear-gradient(180deg, #e4eefc 0, #f2f7fe 520px, #ffffff 1100px);
  background-repeat: no-repeat;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.nowrap { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-control);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 14px; }

/* ---------- Brand band, header ---------- */
.brand-band { height: 6px; background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 55%, var(--cyan) 100%); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(6px)) {
  .site-header { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(6px); }
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.site-header__brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 4px 0; }
.site-header__brand img { height: 46px; width: auto; }
.site-header__actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--blue); font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 10px 4px; border-radius: 4px;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1099.98px) {
  :root { --header-h: 66px; }
  .site-header__brand img { height: 38px; }
}
@media (max-width: 599.98px) {
  :root { --header-h: 60px; }
  .site-header__brand img { height: 30px; }
  .site-header__actions { gap: 10px; }
  .site-header .btn { padding: 8px 12px; font-size: 14px; min-height: 44px; }
  .text-link { font-size: 14px; }
}
@media (max-width: 374.98px) {
  .site-header__brand img { height: 26px; }
  .site-header__actions { gap: 6px; }
  .site-header .btn { padding: 8px 10px; }
}

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px; border-radius: var(--radius-control);
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--secondary { background: #fff; color: var(--blue); border-color: #9dbbe2; }
.btn--secondary:hover { border-color: var(--blue); background: #f5f9ff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--card-border); }
.btn--ghost:hover { background: #f3f7fd; }
.btn--lg { min-height: 50px; padding: 12px 28px; font-size: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s ease, border-color 0.15s ease; }
}

/* ---------- Typography scaffolding ---------- */
.section { padding-top: var(--section-gap); }
.section__head { max-width: 780px; margin: 0 auto clamp(24px, 3vw, 36px); text-align: center; }
.eyebrow { margin-bottom: 10px; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; color: var(--blue); }
.section__title { font-size: clamp(25px, 1.6vw + 12px, 33px); line-height: 1.22; font-weight: 700; color: var(--navy); letter-spacing: -0.012em; }
@media (max-width: 599.98px) { .eyebrow { font-size: 14px; } }
.section__intro { margin: 14px auto 0; max-width: 64ch; font-size: clamp(16px, 0.3vw + 14px, 17.5px); line-height: 1.6; color: var(--text-2); }

/* ---------- ePilot Forum roles ----------
   Same card language as the other sections; a small role abbreviation (as used
   inside the application: EN / FO / FN / FM) helps scanning. */
.role__abbr {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 26px;
  margin-bottom: 12px; padding: 0 9px; border-radius: 999px;
  background: #ffffff; border: 1px solid #9dbbe2; color: var(--blue);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(44px, 5.5vw, 76px); }
.hero__inner { max-width: calc(900px + 2 * var(--gutter)); text-align: center; }
.hero__title { font-size: clamp(28px, 7.5vw, 32px); line-height: 1.14; font-weight: 800; color: var(--navy); letter-spacing: -0.022em; }
.hero__lede { margin: 20px auto 0; max-width: 62ch; font-size: clamp(17px, 0.5vw + 14px, 20px); line-height: 1.6; color: var(--text-2); }
@media (min-width: 600px) { .hero__title { font-size: clamp(34px, 3.7vw, 38px); } }
@media (min-width: 1100px) { .hero__title { font-size: clamp(46px, 3.6vw, 52px); } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: var(--card-gap); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 24px 22px 26px; text-align: center;
}
.card--accent { border-top: 3px solid var(--accent); padding-top: 22px; }
.card__title { font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--navy); }
.card__text { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--text-2); }

@media (max-width: 1099.98px) { .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899.98px) { .cards--3 { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }
@media (max-width: 599.98px) { .cards--4 { grid-template-columns: 1fr; } }

/* ---------- How ePilot works: tinted band + six-stage flow ----------
   >= 1240px: one horizontal row — numbered nodes on a connecting line, cards below.
   <  1240px: a vertical sequence — node and line on the left, card on the right. */
.section--band {
  margin-top: var(--section-gap);
  padding: var(--section-gap) 0;
  background: linear-gradient(180deg, var(--band-bg) 0%, #f2f7fe 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--band + .section { padding-top: var(--section-gap); }

.flow { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--card-gap); }
.flow::before {
  content: ""; position: absolute; top: 21px; height: 2px;
  left: calc((100% - 5 * var(--card-gap)) / 12); right: calc((100% - 5 * var(--card-gap)) / 12);
  background: var(--accent);
}
.flow__stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.flow__num {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 17px; font-weight: 700;
  box-shadow: 0 0 0 4px var(--band-bg);
}
.flow__card {
  flex: 1; width: 100%; margin-top: 16px; background: #ffffff; border: 1px solid var(--card-border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 18px 16px 20px; text-align: center;
}
.flow__title { font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--navy); }
.flow__text { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.flow__note { margin: clamp(22px, 2.5vw, 30px) auto 0; max-width: 780px; text-align: center; font-size: 16px; color: var(--text-2); }
.flow__note strong { color: var(--navy); font-weight: 600; }

@media (max-width: 1239.98px) {
  .flow { grid-template-columns: 1fr; gap: 0; max-width: 700px; margin: 0 auto; }
  .flow::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; }
  .flow__stage { flex-direction: row; align-items: flex-start; gap: 16px; padding-bottom: 14px; }
  .flow__stage:last-child { padding-bottom: 0; }
  .flow__card { margin-top: 0; text-align: left; padding: 16px 18px 18px; }
  .flow__text { font-size: 16px; }
}

/* ---------- R A Raju ----------
   Text-only by design until an approved photograph exists. To add one later:
   insert <img class="founder__photo" ...> as the first child of .founder and add
   the class "founder--with-photo" to .founder (see README.md). */
.founder {
  max-width: 980px; margin: 0 auto;
  background: #ffffff; border: 1px solid var(--card-border); border-left: 4px solid var(--blue);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  padding: clamp(24px, 3.5vw, 40px) clamp(22px, 4vw, 48px);
}
.founder--with-photo { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.founder__photo { width: 180px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-card); }
.founder__name { font-size: clamp(25px, 1vw + 16px, 29px); line-height: 1.2; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.founder__role { margin-top: 6px; font-size: 17.5px; font-weight: 600; color: var(--blue); }
.founder__practice { margin-top: 2px; font-size: 16px; color: var(--text-2); }
.founder__narrative { margin-top: 18px; font-size: 16.5px; line-height: 1.7; color: var(--text); max-width: 72ch; }
.founder__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
@media (max-width: 719.98px) {
  .founder--with-photo { grid-template-columns: 1fr; }
  .founder__photo { width: 140px; }
}

/* ---------- Closing call to action ---------- */
.section--cta { padding-bottom: var(--section-gap); }
.cta {
  max-width: 920px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, #dce9fb 0%, #eaf2fd 55%, #e1f2fc 100%);
  border: 1px solid #b9cfeb; border-radius: var(--radius-card);
  padding: clamp(30px, 4vw, 48px) clamp(20px, 4vw, 48px);
}
.cta__title { font-size: clamp(25px, 1.6vw + 12px, 33px); line-height: 1.22; font-weight: 700; color: var(--navy); letter-spacing: -0.012em; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta__text { margin: 12px auto 26px; max-width: 56ch; font-size: clamp(16.5px, 0.4vw + 14px, 18px); color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--footer-text); padding: 24px 0 26px; font-size: 14.5px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer__brand { color: #ffffff; font-weight: 600; }
.site-footer__copy { margin-top: 2px; }
.site-footer__link { display: inline-flex; align-items: center; min-height: 44px; color: #ffffff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 8px 2px; }
.site-footer__link:hover { color: #cfe3ff; }
.site-footer :focus-visible { outline-color: #ffffff; }

/* ---------- Contact window ---------- */
html.contact-open, html.contact-open body { overflow: hidden; }
.contact {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; border: 1px solid var(--card-border); border-radius: var(--radius-card);
  background: #ffffff; color: var(--text); box-shadow: 0 18px 48px rgba(11, 37, 89, 0.22);
}
.contact::backdrop { background: rgba(11, 37, 89, 0.45); }
.contact__form { padding: clamp(18px, 3vw, 28px); }
.contact__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact__title { font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--navy); }
.contact__close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
  border: 0; border-radius: var(--radius-control); background: transparent; color: var(--text-2); cursor: pointer;
}
.contact__close:hover { background: #eef4fc; color: var(--navy); }
.contact__privacy { margin: 6px 0 18px; font-size: 14.5px; color: var(--text-2); }
.field { margin-bottom: 14px; }
.field__label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; color: var(--text); }
.field__optional { font-weight: 400; color: var(--text-2); }
.field__input {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px;
  font: inherit; font-size: 16px; color: var(--text); background: #fff;
  border: 1px solid #a9bfdc; border-radius: var(--radius-control);
}
.field__input--area { resize: vertical; min-height: 120px; line-height: 1.5; }
.field__input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field__input[aria-invalid="true"] { border-color: #c62828; }
.field__error { margin-top: 6px; font-size: 14px; color: #b3261e; }
.contact__status { min-height: 0; font-size: 14.5px; color: #1b5e20; }
.contact__status:not(:empty) { margin-bottom: 12px; padding: 10px 12px; border-radius: var(--radius-control); background: #e8f5e9; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.contact__fallback { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.contact__fallback a { color: var(--blue); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 479.98px) {
  .contact__actions { flex-direction: column-reverse; }
  .contact__actions .btn { width: 100%; }
}

/* ---------- Content under Product Owner review (none at present) ----------
   Mark unapproved content with class "lp-pending" inside <!-- pending:NAME --> fences.
   It renders only in the local review copy (<html class="lp-preview">); build.py
   removes it from the published HTML unless its site.config.json switch is true. */
.lp-pending { display: none !important; }
.lp-preview .lp-pending { display: revert !important; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound__title { font-size: clamp(30px, 2vw + 16px, 40px); font-weight: 800; color: var(--navy); letter-spacing: -0.015em; }
.notfound__text { margin: 12px 0 26px; font-size: 17px; color: var(--text-2); }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media print {
  .site-header { position: static; }
  .contact, .lp-pending { display: none !important; }
}
