/* eJi Mitra — parent site.
   Colour tokens are copied from the brand bundle's colors.xml. They are the
   single source of truth; do not introduce a new brand colour here. */

:root {
  --indigo:      #433FCF;
  --indigo-dark: #2E2AA8;
  --ink:         #161A2E;
  --ink-muted:   #5C6178;
  --surface:     #F4F5F8;
  --hairline:    #E1E3EB;
  --card:        #FFFFFF;

  /* Sub-brands. Colour is the only thing that varies between the products. */
  --invest: #12897C;
  --legal:  #7A55C7;
  --assist: #C7573F;

  --page:    #FFFFFF;
  --accent:  var(--indigo);
  --measure: 62ch;
  --gutter:  16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:       #EEF0F6;
    --ink-muted: #A2A8BC;
    --surface:   #10131F;
    --hairline:  #272B3D;
    --card:      #171B2B;
    --page:      #0C0E18;
    --indigo:    #8E8BF0;
    --invest:    #3FB5A6;
    --legal:     #A98BE0;
    --assist:    #E08670;
  }
}

:root[data-theme="dark"] {
  --ink:       #EEF0F6;
  --ink-muted: #A2A8BC;
  --surface:   #10131F;
  --hairline:  #272B3D;
  --card:      #171B2B;
  --page:      #0C0E18;
  --indigo:    #8E8BF0;
  --invest:    #3FB5A6;
  --legal:     #A98BE0;
  --assist:    #E08670;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a { color: var(--accent); }

/* Every interactive thing has to show where the keyboard is. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 10;
}

.skip:focus { left: 16px; }

/* ---- brand lockup ------------------------------------------------------
   Clear space = one pill width = symbol size / 4.9. The gap between symbol
   and wordmark uses the same value, per the brand brief. */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.lockup svg {
  width: 32px;
  height: 32px;
  flex: none;
  color: var(--accent);
}

.lockup .wordmark {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

/* ---- header ---- */

header {
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: var(--page);
  z-index: 5;
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

header nav {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
}

header nav a {
  color: var(--ink-muted);
  text-decoration: none;
}

header nav a:hover { color: var(--accent); }

/* ---- hero --------------------------------------------------------------
   The statement carries the page. It is allowed to be large; nothing else
   on the page competes with it. */

.hero { padding: 96px 0 88px; }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  font-weight: 600;
  max-width: 16ch;
}

.hero p {
  margin: 0 0 16px;
  max-width: var(--measure);
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

.hero p:last-child { margin-bottom: 0; }

/* ---- sections ---- */

section { padding: 64px 0; }

section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 32px;
  color: var(--ink);
}

#products { border-top: 1px solid var(--hairline); }

/* ---- product cards -----------------------------------------------------
   The three read as one set. Colour is the only difference between them,
   carried on the top rule and the status dot. */

.products {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product {
  --accent: var(--indigo);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product.invest { --accent: var(--invest); }
.product.legal  { --accent: var(--legal); }
.product.assist { --accent: var(--assist); }

.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.product h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.product .kind {
  font-size: 0.75rem;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.product p.what {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  flex: 1;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  margin-top: 4px;
}

/* Status reads as a quiet fact, not a marketing badge. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ink);
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.status.soon { color: var(--ink-muted); }

.product a.go {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.product a.go:hover { text-decoration: underline; }

/* ---- about + details ---------------------------------------------------
   Prose on the left, the registration facts on the right as a reference
   card. The facts are a list of rows, not prose. */

.about {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
}

.about-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-prose h2 { margin-bottom: 24px; }

.about-prose p {
  max-width: var(--measure);
  color: var(--ink-muted);
  margin: 0 0 16px;
}

.about-prose p:last-child { margin-bottom: 0; }

.details {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 8px 24px;
  margin: 0;
}

.details > div {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  min-width: 0;
}

.details > div:last-child { border-bottom: 0; }

@media (max-width: 560px) {
  .details > div { grid-template-columns: 1fr; gap: 4px; }
}

.details dt {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin: 0;
}

.details dd {
  margin: 0;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

/* ---- footer ---- */

footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0 48px;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer a { color: var(--ink-muted); }
