/* Hallmark · genre: modern-minimal · macrostructure: Map / Diagram · nav: N5 · footer: Ft5
 * theme: custom · vibe: "carrier-grade, calm, Indian, precise" · paper: oklch(98.2% 0.004 220) · accent: oklch(47.9% 0.087 220)
 * display: IBM Plex Sans 600 · body: IBM Plex Sans 400 · mono: IBM Plex Mono · axes: light / geometric-sans / cool
 * accent chroma 0.087 sits under the usual 0.12 floor on purpose: it is the brand's peacock, fixed by brand/README.md.
 * studied: no · context: inferred (audience: Indian business and operations heads · use: book a demo · tone: technical-luxury)
 * enrichment: none (the route map is the image) · Hallmark · pre-emit critique: P5 H4 E4 S5 R5 V5
 */

/* ------------------------------------------------------------------ base */

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

html,
body { overflow-x: clip; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip {
  position: absolute;
  left: var(--space-md);
  top: -4rem;
  z-index: 30;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-ink);
  color: var(--color-paper);
  border-radius: var(--radius-sm);
}
.skip:focus { top: var(--space-md); }

/* ------------------------------------------------------------------ buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn--fill { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--fill:hover { background: var(--color-accent-hover); }
.btn--fill:active { transform: translateY(1px); }
.btn--small { min-height: 2.25rem; padding: 0 var(--space-md); font-size: var(--text-xs); }
.btn--on-dark { background: var(--color-night-accent); color: var(--color-night); }
.btn--on-dark:hover { background: var(--color-night-ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 500;
  font-size: var(--text-sm);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--color-rule);
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
.link-arrow::after { content: "→"; transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow--on-dark { color: var(--color-night-ink); text-decoration-color: var(--color-night-rule); }

/* ------------------------------------------------------------------ N5 floating pill */

.nav-pill {
  position: fixed;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: var(--space-lg);
  padding: 0.4375rem 0.4375rem 0.4375rem 1rem;
  background: color-mix(in oklch, var(--color-paper) 80%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pill);
  max-width: calc(100% - 2 * var(--space-md));
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-ink);
}
.wordmark__mark { width: 1.5rem; height: 1.5rem; color: var(--color-accent); flex: none; }
.wordmark__bar { fill: var(--color-paper); }
.wordmark__name { font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.01em; }
.nav-pill__links {
  display: flex;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-pill__links a {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-pill__links a:hover { color: var(--color-ink); }

/* ------------------------------------------------------------------ hero: title left, lede right */

.hero {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: calc(var(--space-4xl) + var(--space-md)) var(--page-gutter) var(--space-3xl);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: end;
}
.hero__title {
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.hero__side { display: grid; gap: var(--space-xl); padding-bottom: 0.4rem; }
.hero__lede { font-size: var(--text-lg); line-height: 1.55; color: var(--color-ink-2); max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }

/* ------------------------------------------------------------------ the route map */

.route {
  background: var(--color-night);
  color: var(--color-night-ink);
  padding: var(--space-3xl) var(--page-gutter) var(--space-3xl);
}
.route__head,
.route__map { max-width: var(--page-max); margin: 0 auto; }
.route__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: end;
  padding-bottom: var(--space-2xl);
  border-bottom: var(--rule-hair) solid var(--color-night-rule);
}
.route__title { font-size: var(--text-2xl); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; max-width: 22ch; }
.route__lede { color: var(--color-night-ink-2); max-width: 40ch; }
.route__map {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  padding-top: var(--space-xl);
}

.map { width: 100%; height: auto; overflow: visible; }
.map__line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map__line--in { stroke: var(--color-night-accent); stroke-width: 6; }
.map__line--out { stroke: var(--color-night-line-2); stroke-width: 3; stroke-dasharray: 2 10; }
.map__spur { stroke: var(--color-night-ink-2); stroke-width: 1.5; stroke-dasharray: 3 5; }
.map__legend text { fill: var(--color-night-ink-2); font-family: var(--font-mono); font-size: 15px; }
.map__legend-in { stroke: var(--color-night-accent); stroke-width: 6; stroke-linecap: round; }
.map__legend-out { stroke: var(--color-night-line-2); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }

.stop { cursor: pointer; outline: none; }
.stop circle {
  fill: var(--color-night);
  stroke: var(--color-night-accent);
  stroke-width: 4;
  transition: fill var(--dur-fast) var(--ease-out);
}
.stop text {
  fill: var(--color-night-ink-2);
  font-family: var(--font-mono);
  font-size: 18px;
  text-anchor: middle;
  transition: fill var(--dur-fast) var(--ease-out);
}
.stop--major text { fill: var(--color-night-ink); font-size: 21px; font-weight: 500; }
.stop--side text { text-anchor: start; }
.stop--out circle { stroke: var(--color-night-line-2); stroke-width: 3; }
.stop--side circle { stroke: var(--color-night-ink-2); stroke-width: 2.5; }
.stop:hover circle,
.stop[aria-pressed="true"] circle { fill: var(--color-night-accent); }
.stop--out:hover circle,
.stop--out[aria-pressed="true"] circle,
.stop--side:hover circle,
.stop--side[aria-pressed="true"] circle { fill: var(--color-night-line-2); }
.stop:hover text,
.stop[aria-pressed="true"] text { fill: var(--color-night-ink); }
/* A visible ring for a keyboard, drawn on the stop itself: an SVG group has no outline of its own. */
.stop:focus-visible circle { stroke: var(--color-night-ink); stroke-width: 5; }

/* The inbound line draws itself once, as the map comes into view (site.js adds .is-drawn). */
.js .map__line--in { stroke-dasharray: 900; stroke-dashoffset: 900; }
.js .route.is-drawn .map__line--in {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1400ms var(--ease-in-out);
}

/* The stops' words: all of them in order on a phone; beside the map, only the chosen one. */
.stops { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-lg); }
.stops__item h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--space-2xs); }
.stops__item p { color: var(--color-night-ink-2); max-width: 62ch; }

@media (min-width: 60rem) {
  .route__map { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: var(--space-2xl); align-items: center; }
  .js .stops { display: block; min-height: 12rem; }
  .js .stops__item { display: none; }
  .js .stops__item.is-shown {
    display: block;
    padding-left: var(--space-lg);
    border-left: 2px solid var(--color-night-accent);
    animation: stop-in var(--dur-base) var(--ease-out);
  }
}
@media (max-width: 59.99rem) {
  .map,
  .only-wide { display: none; }
  .stops__item { padding-left: var(--space-lg); border-left: 2px solid var(--color-night-rule); }
  .stops__item[data-stop="campaign"] { margin-top: var(--space-lg); }
}
@keyframes stop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

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

.products,
.india,
.ops,
.faq {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--page-gutter) 0;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: end;
  margin-bottom: var(--space-xl);
}
.section-head h2 { font-size: var(--text-2xl); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; max-width: 20ch; }
.section-head p { color: var(--color-ink-2); max-width: 44ch; }

/* F3 spec sheet: one row a product, hairlines between. */
.spec { border-top: var(--rule-hair) solid var(--color-ink); }
.spec__row {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  align-items: baseline;
}
.spec__name { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.015em; }
.spec__what { font-weight: 500; }
.spec__has { color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.7; }
.spec__row--ai .spec__name { color: var(--color-accent); }

/* Made for India: an uneven grid, the languages given the room they need. */
.india__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-md);
}
.india__block {
  background: var(--color-paper-2);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  display: grid;
  align-content: start;
  gap: var(--space-xs);
}
.india__block h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; }
.india__block p { color: var(--color-ink-2); font-size: var(--text-sm); }
.india__block--langs { grid-row: span 2; }
/* Three blocks beside the languages: the last spans the row, so no cell is left empty. */
.india__block:last-child { grid-column: span 2; }
.langs {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.langs li {
  padding: 0.3125rem 0.75rem;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  font-size: var(--text-sm);
  white-space: nowrap;
}

/* Operations: definition rows in two columns. */
.ops__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-2xl);
  margin: 0;
  border-top: var(--rule-hair) solid var(--color-ink);
}
.ops__list > div { padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.ops__list dt { font-weight: 600; margin-bottom: var(--space-2xs); }
.ops__list dd { margin: 0; color: var(--color-ink-2); font-size: var(--text-sm); max-width: 48ch; }

/* Questions. */
.faq__list { border-top: var(--rule-hair) solid var(--color-ink); max-width: 52rem; }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-lg) 0;
  font-weight: 600;
  font-size: var(--text-lg);
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--color-muted);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); max-width: 60ch; }

/* The one closing action. */
.demo {
  margin: var(--space-3xl) auto 0;
  max-width: calc(var(--page-max) - 2 * var(--page-gutter));
  width: calc(100% - 2 * var(--page-gutter));
  background: var(--color-night);
  color: var(--color-night-ink);
  border-radius: var(--radius-md);
  padding: var(--space-2xl) var(--space-xl);
  display: grid;
  gap: var(--space-md);
}
.demo h2 { font-size: var(--text-2xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.demo p { color: var(--color-night-ink-2); max-width: 46ch; }
.demo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-sm); }

/* Ft5 statement footer. */
.foot-stmt {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--page-gutter) var(--space-xl);
  display: grid;
  gap: var(--space-lg);
}
.foot-stmt__line { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 3vw, 3.25rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 20ch; }
.foot-stmt__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* ------------------------------------------------------------------ narrow screens */

@media (max-width: 52rem) {
  .hero,
  .route__head,
  .section-head { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .hero { padding-top: calc(var(--space-3xl) + var(--space-xl)); }
  .spec__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .india__grid { grid-template-columns: minmax(0, 1fr); }
  .india__block--langs { grid-row: auto; }
  .india__block:last-child { grid-column: auto; }
  .ops__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .nav-pill__links { display: none; }
  .nav-pill { gap: var(--space-md); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 120ms !important; animation: none !important; }
  .js .map__line--in { stroke-dashoffset: 0; }
}
