/* Endelea public website
   Warm ivory, midnight navy, Cormorant Garamond + DM Sans. */

:root {
  --navy: #0f1f33;
  --charcoal: #2d3645;
  --ink: #25282c;
  --muted: #7d8794;
  --faint: #9aa3ae;
  --ivory: #f7f3eb;
  --ivory-deep: #ede8df;
  --paper: #fffcf8;
  --border: #e5dfd4;
  --amber: #d9a11e;
  --petrol: #1e6d76;
  --petrol-tint: #e8f3f4;
  --max: 1120px;
  --measure: 38rem;
  --header-h: 72px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover { color: var(--petrol); }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  padding: 8px 12px;
  background: var(--navy);
  color: var(--ivory);
  z-index: 20;
}
.skip:focus { top: 12px; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 243, 235, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner,
.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}
.brand:hover { color: var(--navy); }
.brand img { width: 32px; height: 32px; }
.brand span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  padding-left: 0.08em;
}

.nav-toggle {
  display: none;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: none;
  border: 1px solid var(--border);
  padding: 8px 12px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 18px;
}

.site-nav a {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--charcoal);
}
.site-nav a:hover { color: var(--navy); }
.site-nav a[aria-current="page"] {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}
.site-nav .is-quiet {
  color: var(--muted);
}
.site-nav .is-quiet::after {
  content: "";
}

/* ── Type ── */
.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.4vw, 3.85rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.lede {
  margin: 22px 0 0;
  max-width: 36rem;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--charcoal);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 32px;
  margin: 32px 0 0;
}
.hero-actions a {
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 3px;
}
.hero-actions a:hover {
  color: var(--petrol);
  border-bottom-color: var(--petrol);
}
.hero-actions a:first-child {
  font-weight: 500;
}

.prose {
  max-width: var(--measure);
}
.prose p {
  margin: 0 0 1.1em;
  color: var(--charcoal);
}
.prose p:last-child { margin-bottom: 0; }
.prose-lead { margin-top: 16px; }

.kicker {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
}

/* ── Layout blocks ── */
.hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}

.frame--early {
  margin-top: 36px;
}
.frame--early img {
  width: 100%;
  height: 248px;
  object-fit: cover;
  object-position: 42% 8%;
}

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.section--tight { padding: 56px 0; }
.section:last-of-type { border-bottom: 0; }

.rule-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  max-width: 28rem;
}
.rule-list li {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
  color: var(--navy);
}
.rule-list li:last-child { border-bottom: 1px solid var(--border); }

.info-band {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.info-band li {
  padding: 22px 18px 22px 0;
  border-right: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--navy);
}
.info-band li:last-child {
  border-right: 0;
  padding-right: 0;
}

.connect {
  margin: 32px 0 0;
  max-width: 46rem;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--navy);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.split article {
  padding: 48px 40px 48px 0;
}
.split article + article {
  padding-left: 40px;
  border-left: 1px solid var(--border);
}
.split .kind {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.split h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.15;
}
.split p {
  margin: 0;
  max-width: 28rem;
  color: var(--charcoal);
}
.split .accent-commercial { border-top: 2px solid var(--amber); }
.split .accent-operational { border-top: 2px solid var(--petrol); }

.frame {
  margin-top: 36px;
  background: var(--paper);
  border: 1px solid var(--border);
  overflow: hidden;
}
.frame img {
  width: 100%;
  display: block;
}
.frame figcaption {
  margin: 0;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 36px;
}

/* Platform: product frames are cropped evidence, not full-app murals */
#companion .frame--companion {
  max-width: 34rem;
}

.journey-line {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
}
.journey-line span {
  display: block;
  margin-top: 8px;
  color: var(--charcoal);
}
.prose + .journey-line { margin-top: 36px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 36px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--navy);
  color: var(--ivory);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.btn:hover { background: var(--charcoal); color: var(--ivory); }

.btn-quiet {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.note {
  margin: 0;
  padding: 20px 0;
  max-width: 40rem;
  color: var(--charcoal);
}
.note strong { color: var(--navy); font-weight: 600; }

.holding {
  padding: 18px 0 0;
  border-top: 1px solid var(--amber);
}
.holding p {
  margin: 16px 0 0;
  max-width: 40rem;
  color: var(--charcoal);
}

.structure {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 40px;
  border: 1px solid var(--border);
}
.structure > div {
  padding: 32px 28px;
}
.structure > div + div { border-left: 1px solid var(--border); }
.structure h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}
.structure p {
  margin: 0;
  color: var(--charcoal);
  font-size: 15px;
}
.structure .tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.offers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.offers article {
  padding: 36px 28px 40px 0;
}
.offers article + article {
  padding-left: 28px;
  border-left: 1px solid var(--border);
}
.offer-name {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.offer-price {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 2.8vw, 2.55rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy);
}
.offer-price span {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.offer-users {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--navy);
}
.offer-extra {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--charcoal);
}
.offer-desc {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--charcoal);
}
.stack-block h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
}

.ecosystem {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  max-width: 36rem;
}
.ecosystem li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.ecosystem li:last-child { border-bottom: 1px solid var(--border); }
.ecosystem strong {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.planned {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: var(--ivory);
  padding: 48px 0 36px;
}
.site-footer a {
  color: var(--ivory);
  text-decoration: none;
}
.site-footer a:hover {
  color: #f3e2b0;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand img { width: 28px; height: 28px; }
.footer-brand span {
  letter-spacing: 0.28em;
  font-size: 12px;
}
.site-footer h2 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: #c5cdd6;
}
.site-footer p,
.site-footer li {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #d7dce2;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-meta {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(229, 223, 212, 0.18);
  font-size: 12px;
  color: #9aa3ae;
}
.site-footer .is-pending {
  color: #9aa3ae;
}

.contact-channels {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  max-width: 32rem;
  border-top: 1px solid var(--border);
}
.contact-channels li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-channels .label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-channels .is-pending {
  color: var(--charcoal);
}

@media (max-width: 860px) {
  .wrap,
  .site-header-inner { width: min(var(--max), calc(100% - 32px)); }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--ivory);
    border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .split,
  .pair,
  .structure,
  .offers,
  .footer-grid { grid-template-columns: 1fr; }
  .info-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .info-band li:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }
  .info-band li {
    border-bottom: 1px solid var(--border);
  }
  .info-band li:last-child { border-bottom: 0; }
  .frame--early img { height: 200px; }
  .split article,
  .split article + article {
    padding: 32px 0;
    border-left: 0;
  }
  .split article + article { border-top: 1px solid var(--border); }
  .structure > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .offers article {
    padding: 28px 0;
  }
  .offers article + article {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .contact-channels li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }
  .ecosystem li { grid-template-columns: 1fr; gap: 4px; }
  .hero { padding: 40px 0 32px; }
  .section { padding: 48px 0; }
}
