/*
  Saharvi company site.
  Type: Atkinson Hyperlegible Next, drawn by the Braille Institute for low-vision readers.
  The Mono cut is used for small labels only.
  The hero artwork is drawn on a canvas in main.js.
*/

:root {
  /* Light theme, in line with Indian femtech peers: white and blush grounds, one bright pink accent. */
  --bg: #fff8fa;
  --panel: #ffffff;
  --line: #f0dce5;
  --text: #24121d;
  --dim: #6e5866;
  --rose: #d81b6a;        /* bright pink: buttons, links, highlights */
  --pink-soft: #ffe3ee;   /* pink tint for pills and glows */
  --lilac: #6a4fd8;       /* violet: technical labels */
  --mint: #1b8a5c;
  --paper: #ffffff;
  --paper-line: #f0dce5;
  --paper-text: #24121d;
  --paper-dim: #6e5866;
  --berry: #c2185b;

  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
  --step-3: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem);

  --page: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: var(--step-0); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.06; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--rose); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 12px; }

.container {
  max-width: var(--page); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 5; background: var(--bg); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand .mark { width: 29px; height: 34px; background: url(assets/saharvi-mark.png) center / contain no-repeat; } /* the logo, in its own crimson */
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; list-style: none; }
.nav a { text-decoration: none; color: var(--dim); font-size: var(--step--1); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .nav-cta { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--text); }
.nav .nav-cta:hover { border-color: var(--dim); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: var(--step--1); cursor: pointer; }
@media (max-width: 820px) {
  .board { grid-template-columns: 1fr; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 12px max(var(--gutter), env(safe-area-inset-left, 0px)) 24px; gap: 16px; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 14px; }
  .nav a { font-size: var(--step-0); }
}

/* ---------- shared ---------- */
.kicker { color: var(--rose); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.02em; }
.mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--dim); }
.lead { font-size: var(--step-1); color: var(--dim); max-width: 40ch; line-height: 1.5; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 13px 22px; font-weight: 700; font-size: var(--step--1); text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 10px 24px -12px rgba(216, 27, 106, 0.6); }
.btn-primary:hover { background: #c0145c; }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.8); }
.btn-ghost:hover { border-color: var(--dim); }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 660px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: var(--step-2); letter-spacing: -0.025em; }
.section-head p { color: var(--dim); font-size: var(--step-1); line-height: 1.5; }
.pill { font-family: var(--mono); font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line); color: var(--dim); }
.pill.live { border-color: transparent; background: var(--pink-soft); color: var(--berry); }
.pill.on { border-color: transparent; background: #ddf5ea; color: var(--mint); }

/* ---------- hero with generative art ---------- */
.hero { position: relative; overflow: hidden; min-height: min(88vh, 780px); display: flex; align-items: center; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 22%, rgba(255, 248, 250, 0.7) 50%, rgba(255, 248, 250, 0) 78%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; width: 100%; padding-block: clamp(64px, 9vw, 120px); }
.hero-text { display: flex; flex-direction: column; gap: 28px; max-width: 640px; }
.hero h1 { font-size: var(--step-3); letter-spacing: -0.04em; line-height: 0.98; }
.hero h1 span { color: var(--rose); }
.page-hero { position: relative; overflow: hidden; }
.page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0.8; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 32%, rgba(255, 248, 250, 0.3) 85%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; padding-block: clamp(64px, 9vw, 120px); }
.page-hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem); letter-spacing: -0.035em; max-width: 15ch; }

/* ---------- mission ---------- */
.mission { display: flex; flex-direction: column; gap: 28px; }
.mission .statement { font-size: clamp(1.9rem, 1rem + 3.4vw, 4rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; max-width: 22ch; text-wrap: balance; }
.mission .statement em { font-style: normal; color: var(--rose); }
.mission small { color: var(--dim); font-size: 0.78rem; max-width: 60ch; }

/* ---------- roadmap ---------- */
.roadmap { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; counter-reset: step; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: linear-gradient(90deg, var(--rose) 0 22%, var(--line) 22%); }
.roadmap li { position: relative; padding: 64px 28px 0 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; counter-increment: step; }
.roadmap li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: 0.8rem; background: var(--bg); border: 2px solid var(--line); color: var(--dim);
}
.roadmap li.now::before { background: var(--rose); border-color: var(--rose); color: #fff; box-shadow: 0 0 0 8px var(--pink-soft); }
.roadmap li:last-child::before { border-color: var(--rose); color: var(--rose); }
.roadmap h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
.roadmap p { color: var(--dim); font-size: var(--step--1); }
.roadmap .pill { align-self: flex-start; }

/* ---------- Lunelle band ---------- */
/* Two grounds only: the blush page colour and one soft pink tint, alternating. The page ends on deep raspberry. */
.band-tint { background: #fdeef4; --line: #f5d6e3; }
.band-dark, .site-footer {
  --text: #ffffff; --dim: rgba(255, 255, 255, 0.82); --line: rgba(255, 255, 255, 0.2); --rose: #ffd0e2;
  background: #8e1c5a; color: var(--text); color-scheme: dark;
}
.band-tint, .band-dark, .band-tint + .section, .band-dark + .site-footer { border-top: 0; }
.band-dark + .site-footer .container { border-top: 1px solid var(--line); padding-top: 32px; }
.band-dark a:not(.partner-row) { color: #fff; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.product .copy { display: flex; flex-direction: column; gap: 20px; }
.product h2 { font-size: var(--step-2); letter-spacing: -0.025em; }
.product p { color: var(--paper-dim); max-width: 44ch; font-size: var(--step-1); line-height: 1.5; }
.product .kicker, .product .text-link { color: var(--berry); }
.band-tint { color: var(--paper-text); }
.product .text-link { align-self: flex-start; }
.product .shots { display: flex; gap: 16px; justify-content: center; }
.product .shots img { width: min(46%, 250px); border-radius: 28px; border: 6px solid #fff; aspect-ratio: 640 / 1150; object-fit: cover; object-position: top; box-shadow: 0 30px 60px -36px rgba(120, 40, 70, 0.55); }
.product .shots img:nth-child(2) { margin-top: 56px; }

/* ---------- technology ---------- */
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; border-top: 1px solid var(--line); }
.caps li { padding: 28px 24px 8px 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.caps .mono { color: var(--berry); }
.caps h3 { font-size: 1.15rem; }
.caps p { color: var(--dim); font-size: var(--step--1); }
.more { margin-top: 36px; }
.more .text-link { color: var(--rose); }

/* ---------- work with us ---------- */
.work { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); }
.work h2 { font-size: var(--step-2); letter-spacing: -0.025em; }
.work .intro { display: flex; flex-direction: column; gap: 16px; }
.work .intro p { color: var(--dim); max-width: 34ch; }
.partner-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; align-items: center; }
.partner-row:last-child { border-bottom: 1px solid var(--line); }
.partner-row h3 { font-size: var(--step-1); }
.partner-row p { color: var(--dim); font-size: var(--step--1); grid-column: 1; }
.partner-row span { grid-row: 1 / span 2; grid-column: 2; color: var(--rose); font-size: 1.4rem; transition: transform .2s ease; }
.partner-row:hover span { transform: translateX(4px); }
.partner-row:hover h3 { color: var(--rose); }

/* ---------- inner page reading band ---------- */
.paper { background: var(--paper); color: var(--paper-text); color-scheme: light; }
.paper .section + .section { border-top: 1px solid var(--paper-line); }
.paper .section-head p, .paper .dim { color: var(--paper-dim); }
.paper .kicker { color: var(--berry); }
.prose { max-width: 680px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: var(--step-2); letter-spacing: -0.025em; margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--berry); }

.parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.parts li { background: #fff; border: 1px solid var(--paper-line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.parts h3 { font-size: var(--step-1); }
.parts p { color: var(--paper-dim); }
.parts .tag { font-family: var(--mono); font-size: 0.72rem; color: var(--berry); }

.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); list-style: none; }
.team li { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.team img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; margin-bottom: 8px; background: var(--pink-soft); }
.team h3 { font-size: var(--step-1); }
.team .role { font-family: var(--mono); font-size: 0.75rem; color: var(--berry); }
.team p { color: var(--paper-dim); }
.team .lead-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.team .lead-card img { margin-bottom: 0; }
.team .lead-card div { display: flex; flex-direction: column; gap: 10px; }
.team .lead-card h3 { font-size: var(--step-2); letter-spacing: -0.02em; }
.team .lead-card p { font-size: var(--step-0); }
.team li.tbc h3 { color: var(--paper-dim); }

.team li.join { background: linear-gradient(150deg, #e0287a, #9c3fe0); color: #fff; border-radius: 16px; padding: 28px; justify-content: flex-end; min-height: 100%; }
.team li.join h3 { color: #fff; font-size: var(--step-2); letter-spacing: -0.02em; }
.team li.join p { color: rgba(255, 255, 255, 0.88); }
.team li.join .role, .team li.join .text-link { color: #fff; }
.team li.join .text-link { align-self: flex-start; }
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); list-style: none; }
.board li { display: grid; grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr); gap: 22px; align-items: start; background: #fff; border: 1px solid var(--paper-line); border-radius: 18px; padding: 18px; min-width: 0; }
.board img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--pink-soft); }
.board div { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.board h3 { font-size: var(--step-1); }
.board .role { font-family: var(--mono); font-size: 0.75rem; color: var(--berry); }
.board p { color: var(--paper-dim); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
.two-col h3 { font-size: var(--step-1); margin-bottom: 12px; }
.two-col ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--paper-dim); }

.contacts { list-style: none; border-top: 1px solid var(--paper-line); }
.contacts li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 16px 24px; padding: 24px 0; border-bottom: 1px solid var(--paper-line); align-items: baseline; }
.contacts h3 { font-size: var(--step-1); }
.contacts p { color: var(--paper-dim); }
.contacts a { color: var(--berry); font-weight: 700; text-decoration: none; white-space: nowrap; }
.contacts a:hover { text-decoration: underline; }

.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 28px; margin: 0; }
.facts dt { color: var(--paper-dim); }
.facts dd { margin: 0; }

/* ---------- footer ---------- */
.site-footer { padding-block: 40px; font-size: var(--step--1); color: var(--dim); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .roadmap::before { display: none; }
}
@media (max-width: 820px) {
  .hero::after { background: linear-gradient(180deg, rgba(255, 248, 250, 0.4), var(--bg) 70%); }
  .product, .work, .two-col, .parts { grid-template-columns: 1fr; }
  .contacts li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  .team, .team .lead-card { grid-template-columns: 1fr; }
  .board li { grid-template-columns: 1fr; }
  .caps, .roadmap { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
