@import url("../fonts/fonts.css");

/* ==========================================================================
   HynoTech — design system
   Dark only. Every colour below is derived from the logo's own pixels.
   Contrast is computed against --ink (#010611); nothing lighter-on-dark
   ships below 5.0:1.
   ========================================================================== */

:root {
  /* --- surfaces ------------------------------------------------------- */
  --ink: #010611;
  --surface: #060c1b;
  --raised: #0a1324;
  --raised-hi: #101b30;

  /* --- lines ---------------------------------------------------------- */
  --line: rgba(0, 163, 253, 0.14);
  --line-strong: rgba(0, 212, 255, 0.34);
  --line-neutral: rgba(255, 255, 255, 0.07);

  /* --- type colours (ratio vs --ink) ---------------------------------- */
  --text: #f2f6ff;    /* 18.7:1 */
  --muted: #93a3bc;   /*  7.9:1 — all body copy */
  --faint: #6e7f9b;   /*  5.0:1 — hard floor */

  /* --- brand ---------------------------------------------------------- */
  --cyan: #00d4ff;    /* 11.5:1 as text */
  --blue: #00a3fd;    /*  7.4:1 as text — the workhorse */
  --deep: #0052f9;    /*  3.45:1 — NEVER text, NEVER a flat fill */
  --amber: #ffb020;   /* rationed: metrics + LIVE flag only */
  --wa: #25d366;      /* WhatsApp glyph only, never a button fill */
  --on-accent: #010611; /* mandatory label colour on blue/cyan fills */

  --swoosh: linear-gradient(100deg, #00d4ff 0%, #00a3fd 45%, #0052f9 100%);
  --bloom: radial-gradient(ellipse 900px 560px at 50% 0%, rgba(0, 82, 249, 0.2), transparent 68%);

  /* --- type ----------------------------------------------------------- */
  --font: "Anek Latin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* max is 3.75rem, not 4.75: at 4.75 the H1 breaks to four lines inside the
     hero's own column, which reads as a mistake rather than emphasis */
  --fs-hero: clamp(2.125rem, 5.2vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 3.6vw, 3rem);
  --fs-h3: 1.25rem;
  --fs-lede: clamp(1.0625rem, 2.2vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-mono: 0.75rem;      /* 12px floor — never 10 or 11 */
  --fs-metric: clamp(1.75rem, 4vw, 2.75rem);

  /* --- space ---------------------------------------------------------- */
  --container: 1200px;
  --measure: 66ch;
  --measure-lede: 46ch;
  --section-y: clamp(56px, 6.5vw, 96px);
  --nav-h: 72px;
  --bar-h: 64px;

  --r-btn: 12px;
  --r-card: 16px;
  --r-panel: 28px;
  --r-pill: 999px;

  /* --- motion --------------------------------------------------------- */
  --t-micro: 160ms;
  --t-reveal: 320ms;
  --t-scene: 700ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--muted);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the voxel substrate + grain, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 8px 8px;
  -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.55;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("../img/grain.png");
  background-size: 128px 128px;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

main,
header,
footer { position: relative; z-index: 2; }

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 650;
  font-stretch: 92%;
  letter-spacing: -0.028em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.032em; }
h2 { font-size: var(--fs-h2); line-height: 1.06; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.02em; }

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration-color: rgba(0, 163, 253, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--cyan); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }
strong { color: var(--text); font-weight: 600; }

::selection { background: var(--blue); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
/* on a blue/cyan fill, a single outline can vanish — ring it on both sides */
.btn--primary:focus-visible,
.chip[aria-selected="true"]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--ink) inset;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--blue);
  color: var(--on-accent);
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 0 0 var(--r-btn) 0;
}
.skip:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   layout
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--bloom::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bloom);
  pointer-events: none;
}

.lede {
  font-size: var(--fs-lede);
  color: var(--muted);
  max-width: var(--measure-lede);
  line-height: 1.55;
}

.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; margin-inline: auto; }
.center p, .center .lede { margin-inline: auto; }

/* ==========================================================================
   eyebrow + rules — the strongest brand tie in the system.
   The 24x1px cyan bar is lifted straight off the rule flanking the logo's
   sub-tagline. One per section, never two in a viewport.
   ========================================================================== */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--cyan);
  flex: none;
}
.center .eyebrow { justify-content: center; }

/* voxel rule — replaces every hairline divider, carries the mark's DNA
   with zero runtime cost */
.voxrule {
  height: 4px;
  border: 0;
  margin: 0;
  background-image: radial-gradient(circle, var(--blue) 45%, transparent 46%);
  background-size: 8px 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  opacity: 0.5;
}

/* ==========================================================================
   buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: var(--r-btn);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-position var(--t-micro) linear,
              border-color var(--t-micro) var(--ease),
              color var(--t-micro) var(--ease);
}

.btn--primary {
  background: var(--swoosh);
  background-size: 200% 100%;
  background-position: 0% 0;
  color: var(--on-accent);  /* never white — #00A3FD on white is 2.74:1 */
}
.btn--primary:hover { background-position: 100% 0; color: var(--on-accent); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--text); background: rgba(0, 163, 253, 0.06); }

.btn--wa .ico { color: var(--wa); flex: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ==========================================================================
   surfaces
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(20px, 2.4vw, 28px);
  position: relative;
  transition: border-color var(--t-micro) var(--ease),
              background-color var(--t-micro) var(--ease);
}
.card:hover { border-color: var(--line-strong); }

/* the H-slice: a 45° cut on the top-left only. Niche + pricing cards only. */
.card--slice { clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%, 0 22px); }

.card h3 { margin-bottom: 8px; }
.card p { font-size: var(--fs-small); }

.metric {
  font-family: var(--font);
  font-size: var(--fs-metric);
  font-weight: 650;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.metric--amber { color: var(--amber); }
.metric-label {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}

/* ==========================================================================
   duotone imagery
   Photos ship desaturated; the blue is painted here so a dozen unrelated
   stock sources read as one system.
   ========================================================================== */

.duo {
  position: relative;
  overflow: hidden;
  background: var(--raised);
  isolation: isolate;
}
.duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}
.duo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--deep), var(--cyan));
  mix-blend-mode: color;
  opacity: 0.55;
  pointer-events: none;
}
.duo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, var(--ink) 4%, rgba(1, 6, 17, 0.35) 55%, transparent 88%);
  pointer-events: none;
}

/* ==========================================================================
   nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color var(--t-micro) var(--ease),
              border-color var(--t-micro) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(1, 6, 17, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; width: 100%; }

.nav-logo { display: flex; align-items: center; flex: none; }
/* The lockup PNG carries ~18px of transparent padding from the crop, so the
   mark reads smaller than the box height suggests. Size for the visible mark. */
.nav-logo img { height: 42px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-cta { margin-left: 8px; }
.nav-cta .btn { min-height: 38px; padding: 9px 18px; font-size: var(--fs-small); }

/* scroll progress on the nav's bottom edge */
.nav-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--swoosh);
  transition: width 80ms linear;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}

/* mobile drawer — plain [hidden] toggling, so it stays shut with JS off */
.nav-drawer {
  position: sticky;
  top: var(--nav-h);
  z-index: 99;
  background: rgba(1, 6, 17, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-drawer[hidden] { display: none; }
html:not(.js) .nav-drawer { display: none; }
@media (max-width: 900px) { html:not(.js) .nav-drawer { display: block; } }
.nav-drawer a {
  display: block;
  padding: 13px 4px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line-neutral);
}
.nav-drawer li:last-child a { border-bottom: 0; color: var(--cyan); }

/* ==========================================================================
   hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto 0;
  height: 780px;
  background: var(--bloom);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 .line { display: block; }
.hero .lede { max-width: 42ch; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-neutral);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.trust-row span { display: flex; align-items: center; gap: 8px; }
.trust-row span::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--cyan);
  flex: none;
}

/* the YOU DO line — repeated verbatim at every step of the argument */
.youdo {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 14px;
}

/* ==========================================================================
   phone — a real CSS device frame. The screens inside are live HTML, not
   images: sharp at any DPI, a few KB, and editable without a designer.
   ========================================================================== */

.phone {
  --phone-w: 280px;
  width: var(--phone-w);
  aspect-ratio: 9 / 19;
  margin-inline: auto;
  position: relative;
  border-radius: 38px;
  padding: 9px;
  background: linear-gradient(155deg, #1c2740, #070d1c 45%, #0d1526);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -30px rgba(0, 82, 249, 0.5),
    0 0 90px -20px rgba(0, 163, 253, 0.25);
}
.phone::after {
  content: "";
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 22px;
  background: #050a16;
  border-radius: 0 0 12px 12px;
  z-index: 4;
}

.screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.4;
}

.screen-top {
  padding: 30px 16px 12px;
  background: linear-gradient(180deg, var(--niche, #00a3fd) -40%, transparent 78%);
  flex: none;
}
.screen-eyebrow {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.screen-title {
  color: #fff;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 4px;
}
/* flex, not grid: grid rows stretch to fill the phone and the CTA's
   margin-top:auto only reaches the end of its own row */
.screen-body {
  padding: 4px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  flex: 1;
}

.s-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 9px 10px;
}
.s-card .t { color: #eaf1ff; font-weight: 600; font-size: 11px; }
.s-card .m { color: #8a9ab5; font-size: 9.5px; }

.s-row { display: flex; align-items: center; gap: 8px; }
.s-dot {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--niche, #00a3fd);
  flex: none;
  opacity: 0.9;
}
.s-bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.s-bar > i { display: block; height: 100%; background: var(--niche, #00a3fd); border-radius: 3px; }

.s-stat { display: flex; gap: 6px; }
.s-stat > div {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 7px 8px;
}
.s-stat b { display: block; color: #fff; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.s-stat span { color: #7f8ea8; font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.1em; }

.s-cta {
  margin-top: auto;
  background: var(--niche, #00a3fd);
  color: #04101f;
  font-weight: 700;
  font-size: 11px;
  text-align: center;
  padding: 9px;
  border-radius: 9px;
}

.s-tabs {
  flex: none;
  display: flex;
  justify-content: space-around;
  padding: 9px 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}
.s-tabs i {
  width: 16px; height: 16px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  display: block;
}
.s-tabs i:first-child { background: var(--niche, #00a3fd); }

/* hero icon assembly — the logo's dissolve, played in reverse. Runs once. */
.assembly {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  width: 72px;
  aspect-ratio: 1;
  margin: 0 auto 18px;
}
.assembly i {
  display: block;
  background: var(--blue);
  border-radius: 1px;
  opacity: 0;
  animation: vox var(--t-scene) var(--ease) forwards;
}
@keyframes vox {
  from { opacity: 0; transform: translate(-10px, -10px) scale(0.4); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   niche switcher — a real ARIA tablist
   ========================================================================== */

.switcher { display: grid; grid-template-columns: 320px 1fr; gap: clamp(20px, 3vw, 40px); }

.niche-rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.niche-rail li { margin: 0; }

.chip {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--font);
  font-size: var(--fs-small);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--t-micro) var(--ease),
              color var(--t-micro) var(--ease),
              border-color var(--t-micro) var(--ease);
}
.chip:hover { background: var(--raised); color: var(--text); }
.chip[aria-selected="true"] {
  background: var(--raised-hi);
  border-color: var(--line-strong);
  color: var(--text);
}
.chip .swatch {
  width: 8px; height: 22px;
  border-radius: 2px;
  background: var(--niche, var(--blue));
  flex: none;
  opacity: 0.35;
  transition: opacity var(--t-micro) var(--ease);
}
.chip[aria-selected="true"] .swatch { opacity: 1; }

.niche-stage {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}
.niche-panel[hidden] { display: none; }
/* without JS the rail cannot switch, so show every panel stacked instead */
html:not(.js) .switcher { grid-template-columns: 1fr; }
html:not(.js) .niche-rail { display: none; }
html:not(.js) .niche-panel + .niche-panel { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line-neutral); }

.spec-list { list-style: none; padding: 0; margin: 18px 0 0; }
.spec-list li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line-neutral);
  font-size: var(--fs-small);
}
.spec-list li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 9px;
  flex: none;
  background: var(--niche, var(--cyan));
  border-radius: 1px;
}

.tagline {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ==========================================================================
   job asymmetry — the whole argument is that the right side is enormous
   ========================================================================== */

.jobs { display: grid; grid-template-columns: 30% 1fr; gap: clamp(24px, 4vw, 56px); }

.jobs-you p {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.jobs-us {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
}
.job-chip {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-neutral);
  border-radius: 7px;
  padding: 9px 11px;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.job-chip::before {
  content: "";
  width: 3px; height: 12px;
  background: var(--blue);
  opacity: 0.7;
  flex: none;
}

/* ==========================================================================
   ownership ledger
   ========================================================================== */

.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ledger > div { padding: clamp(20px, 2.5vw, 32px); }
.ledger-yours { border-right: 1px solid var(--line-neutral); }
.ledger h3 { font-size: var(--fs-mono); font-family: var(--mono); letter-spacing: 0.16em;
             text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.ledger ul { list-style: none; padding: 0; margin: 0; }
.ledger li { display: flex; gap: 10px; padding: 7px 0; font-size: var(--fs-small); }
.ledger-yours li { color: var(--text); }
.ledger-yours li::before { content: "✓"; color: var(--cyan); font-weight: 700; flex: none; }
/* colour alone never carries meaning — "ours" is struck as well as dimmed */
.ledger-ours li { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.ledger-ours li::before { content: "—"; flex: none; }

/* ==========================================================================
   timeline
   ========================================================================== */

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 15px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line-neutral);
}
.timeline > li {
  position: relative;
  padding: 0 0 32px 56px;
  margin: 0;
}
.timeline > li::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px;
  width: 15px; height: 15px;
  border-radius: 4px;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  transition: background var(--t-reveal) var(--ease);
}
.timeline > li.is-on::before { background: var(--swoosh); border-color: transparent; }
.timeline .step-no {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  color: var(--faint);
  text-transform: uppercase;
}
.timeline h3 { margin: 4px 0 6px; }
.timeline p { font-size: var(--fs-small); }

/* ==========================================================================
   accordion
   ========================================================================== */

.acc { border-top: 1px solid var(--line-neutral); }
.acc-item { border-bottom: 1px solid var(--line-neutral); }
.acc-item h3 { margin: 0; font-size: var(--fs-body); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  letter-spacing: -0.01em;
  min-height: 44px;
}
.acc-btn:hover { color: var(--cyan); }
.acc-btn .pm {
  flex: none;
  width: 20px; height: 20px;
  position: relative;
}
.acc-btn .pm::before,
.acc-btn .pm::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--blue);
  transition: transform var(--t-micro) var(--ease);
}
.acc-btn .pm::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .pm::after { transform: rotate(0deg); }

.acc-panel {
  display: grid;
  grid-template-rows: 1fr;   /* open by default — without JS the answers must be readable */
  transition: grid-template-rows 280ms var(--ease);
}
.js .acc-panel { grid-template-rows: 0fr; }
.js .acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
/* the toggle is meaningless without a script to run it */
html:not(.js) .acc-btn .pm { display: none; }
html:not(.js) .acc-btn { cursor: default; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 4px 22px; font-size: var(--fs-small); }
.acc-item.is-open { box-shadow: inset 3px 0 0 0 var(--blue); }

/* ==========================================================================
   pricing
   ========================================================================== */

.price-card { display: flex; flex-direction: column; }
.price-card.is-rec { border-color: var(--line-strong); }
.price-card.is-rec::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--swoosh);
  border-radius: var(--r-card) var(--r-card) 0 0;
}
.price-tag {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 6px 0 2px;
}
.price-sub { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.1em;
             text-transform: uppercase; color: var(--faint); }
.price-feats { list-style: none; padding: 0; margin: 20px 0; flex: 1; }
.price-feats li {
  display: flex; gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line-neutral);
  font-size: var(--fs-small);
}
.price-feats li::before { content: "✓"; color: var(--cyan); flex: none; }
.rec-tag {
  /* align-self, not inline-block: the card is a flex column, so the default
     stretch made this pill span the full width */
  align-self: flex-start;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--cyan);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  margin-bottom: 10px;
}
/* reserve the badge's height in the other tiers so all three cards' titles,
   prices and feature lists sit on the same baselines */
.price-card:not(.is-rec)::after {
  content: "";
  order: -1;
  display: block;
  height: 22px;
  margin-bottom: 10px;
}

/* ==========================================================================
   range inputs — native <input type=range>, restyled. Keyboard reaches every
   stop because the slider indexes a value table rather than the rupee amount.
   ========================================================================== */

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: var(--raised-hi);
  border: 1px solid var(--line-neutral);
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--raised-hi);
  border: 1px solid var(--line-neutral);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--swoosh);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 1px var(--line-strong), 0 4px 14px -4px rgba(0, 163, 253, 0.8);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 1px var(--line-strong);
}
input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* radio pills inside the calculator */
.job-chip input[type="radio"] {
  accent-color: var(--blue);
  width: 14px; height: 14px;
  flex: none;
}
.job-chip:has(input:checked) {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--raised-hi);
}

/* ==========================================================================
   placeholders — deliberately loud so nothing ships filled with dummy text
   ========================================================================== */

.ph {
  border: 1px dashed rgba(255, 176, 32, 0.45);
  border-radius: var(--r-card);
  background: rgba(255, 176, 32, 0.045);
  padding: clamp(18px, 2.4vw, 26px);
}
.ph-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.ph-tag::before { content: ""; width: 6px; height: 6px; background: var(--amber); flex: none; }

/* build log */
.log { font-family: var(--mono); font-size: var(--fs-mono); }
.log-row {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-neutral);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.log-row time { color: var(--faint); flex: none; }
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--amber);
  letter-spacing: 0.16em;
}
.live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ==========================================================================
   footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line-neutral);
  padding-block: clamp(48px, 6vw, 72px) 32px;
  margin-top: var(--section-y);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.footer h3.foot-h {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.16em;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--muted); text-decoration: none; font-size: var(--fs-small); }
.footer a:hover { color: var(--text); }
.footer-logo img { height: 52px; margin-bottom: 16px; }
.footer-bot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-neutral);
  font-size: 0.8125rem;   /* 13px in --muted (7.9:1) — never 11px in --faint */
  color: var(--muted);
}

/* ==========================================================================
   sticky action bar (mobile) — appears past 85vh
   ========================================================================== */

.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(1, 6, 17, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform var(--t-reveal) var(--ease);
}
.actionbar.is-on { transform: none; }
.actionbar .btn { flex: 1; min-height: 44px; padding: 11px 12px; font-size: var(--fs-small); }

/* ==========================================================================
   reveal — one-shot, never on re-entry
   ========================================================================== */

.rv { opacity: 0; transform: translateY(14px); }
.rv.is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
}

/* ==========================================================================
   responsive — 390 is a primary design, not a degradation.
   85% of this traffic is a link in bio opened inside an app webview.
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .switcher { grid-template-columns: 260px 1fr; }
  .niche-stage { grid-template-columns: 260px 1fr; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }

  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .jobs { grid-template-columns: 1fr; }
  .switcher { grid-template-columns: 1fr; }
  .niche-stage { grid-template-columns: 1fr; justify-items: center; }

  /* the rail becomes a horizontal snap row pinned under the nav */
  .niche-rail {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .niche-rail li { scroll-snap-align: start; flex: none; }
  .chip { width: auto; white-space: nowrap; }

  .actionbar { display: flex; }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }

  .ledger { grid-template-columns: 1fr; }
  .ledger-yours { border-right: 0; border-bottom: 1px solid var(--line-neutral); }
}

@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .assembly { display: none; }
  .trust-row { gap: 6px 16px; margin-top: 20px; padding-top: 16px; }
  .hero { padding-bottom: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .phone { --phone-w: 258px; }
  .jobs-us { grid-template-columns: 1fr 1fr; gap: 5px; }
  .job-chip { font-size: 0.6875rem; padding: 7px 8px; min-height: 32px; }
  .btn-row .btn { flex: 1; min-width: 100%; }
  .footer-bot { flex-direction: column; align-items: flex-start; }
}

/* wide things scroll inside themselves; the body never scrolls sideways */
.scroll-x {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   reduced motion — render the final state, don't animate to it
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .assembly i { opacity: 1; }
  .live::before { animation: none; opacity: 1; }
}

@media print {
  body::before, body::after, .actionbar, .nav { display: none; }
  body { background: #fff; color: #000; }
}
