/* SutraLabs — coming-soon page
   Tokens follow PRD §8 / §8.1 (Home theme: Ink + Lime). */
/* Self-hosted fonts (SIL Open Font License, see /fonts) */
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url("/fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #0B0D12;
  --ink-2: #12151C;
  --paper: #F5F5F0;
  --muted: #9AA0A9;          /* 7.4:1 on ink */
  --lime: #C6FF00;           /* 16.4:1 on ink; never as text on light */
  --error: #FF8A7A;          /* 7.9:1 on ink, always paired with text */
  --rule: rgba(245, 245, 240, 0.12);
  --cobalt: #5B8CFF;         /* 6.1:1 on ink */
  --silver: #C0C4CC;         /* HireSutra */
  --crimson: #FF3B4E;        /* HireSutra accent on dark, 5.5:1 */
  --tile: #14171F;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --grotesk: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 50;
  background: var(--lime); color: var(--ink); padding: var(--s2) var(--s4);
  border-radius: 999px; font: 600 14px/1 var(--grotesk); text-decoration: none;
}
.skip:focus { top: var(--s4); }

/* ---------- Background: spotlight + grain ---------- */
.bg {
  position: absolute; inset: 0 0 auto 0; height: 1300px; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
  background:
    radial-gradient(620px 420px at 50% 22%, rgba(198, 255, 0, .13), transparent 70%),
    radial-gradient(700px 500px at 8% 85%, rgba(91, 140, 255, .10), transparent 70%),
    radial-gradient(600px 500px at 95% 70%, rgba(198, 255, 0, .05), transparent 70%);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.site-header, main > section, .site-footer {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  min-height: 80px;
}
.wordmark { display: inline-flex; color: var(--paper); padding: var(--s2) 0; }
.logo { display: block; height: 28px; width: auto; aspect-ratio: 1778 / 296; overflow: visible; }
.logo-symbol { color: var(--lime); }
@media (forced-colors: active) { .logo-symbol, .logo-word { color: CanvasText; } }
.header-cta {
  font: 500 14px/1 var(--grotesk); text-decoration: none;
  padding: 12px 18px; border-radius: 999px;
  border: 1px solid rgba(245, 245, 240, .18);
  background: rgba(245, 245, 240, .03);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.header-cta:hover { border-color: rgba(245, 245, 240, .45); background: rgba(245, 245, 240, .07); }

/* ---------- Hero ---------- */
.hero {
  min-height: min(calc(100vh - 80px), 860px);
  display: grid; place-items: center;
  padding-top: var(--s7); padding-bottom: var(--s9);
}
.hero-copy {
  position: relative; z-index: 2;
  max-width: 680px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; margin-bottom: var(--s6);
  border-radius: 999px; border: 1px solid rgba(198, 255, 0, .28);
  background: rgba(198, 255, 0, .06);
  font: 500 14px/1.2 var(--grotesk); color: #E4F7A8;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 255, 0, .5); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(198, 255, 0, 0); }
}
.headline {
  font: 700 clamp(48px, 6.8vw, 96px)/.98 var(--grotesk);
  letter-spacing: -0.04em;
}
.line { display: block; }
.line-serif {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.015em; font-size: 1.12em; line-height: .95;
  color: var(--lime);
  padding-right: .05em;            /* italic overhang */
}
.lede {
  margin-top: var(--s5); max-width: 54ch;
  font-size: clamp(16px, 1.4vw, 18px); color: #C9CCD2;
}

/* ---------- Form ---------- */
.notify { width: 100%; max-width: 480px; margin-top: var(--s6); }
.field-row {
  display: flex; gap: var(--s2); padding: 6px;
  background: rgba(20, 23, 31, .85);
  border: 1px solid rgba(245, 245, 240, .18); border-radius: 999px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field-row:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(198, 255, 0, .15); }
.notify.has-error .field-row { border-color: var(--error); }
.field-row input {
  flex: 1; min-width: 0; height: 48px; padding: 0 var(--s4);
  background: transparent; border: 0; border-radius: 999px;
  color: var(--paper); font: 400 16px/1 var(--sans);
}
.field-row input::placeholder { color: #80868F; }
.field-row input:focus-visible { outline: none; }
.help { margin-top: var(--s3); font-size: 13px; color: var(--muted); }
.msg { min-height: 1.5em; margin-top: var(--s2); font: 500 14px/1.5 var(--grotesk); }
.msg.is-error { color: var(--error); }
.msg.is-error::before { content: "✕  "; }
.msg.is-success { color: var(--lime); }
.notify.is-done .field-row, .notify.is-done .help { display: none; }
.notify.is-done .msg {
  font-size: 16px; padding: 14px 20px; border-radius: 999px;
  background: rgba(198, 255, 0, .08); border: 1px solid rgba(198, 255, 0, .3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 48px; padding: 0 var(--s5); border: 0; border-radius: 999px;
  background: var(--lime); color: var(--ink);
  font: 600 15px/1 var(--grotesk); text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(198, 255, 0, .45);
  transition: transform .15s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: #D7FF4D; box-shadow: 0 10px 30px -8px rgba(198, 255, 0, .6); }
.btn:active { transform: scale(.97); }
.btn[disabled] { cursor: progress; opacity: .75; }
.btn .spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-ghost { background: transparent; color: var(--paper); border: 1px solid rgba(245, 245, 240, .3); box-shadow: none; }
.btn-ghost:hover { background: rgba(245, 245, 240, .07); border-color: var(--paper); box-shadow: none; }

/* ---------- Floating previews ---------- */
.stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tile {
  position: absolute;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #181C25 0%, var(--tile) 100%);
  border: 1px solid rgba(245, 245, 240, .09);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 80px -30px rgba(0, 0, 0, .9);
  translate: var(--px, 0) var(--py, 0);
  transition: translate .5s var(--ease);
  animation: tile-in 1s var(--ease) both, float 8s ease-in-out infinite;
}
.tile-tag {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule);
  font: 500 12px/1 var(--grotesk); color: var(--muted);
}
@keyframes tile-in { from { opacity: 0; transform: translateY(40px) scale(.92); } }
@keyframes float { 50% { transform: translateY(-12px); } }

.t-browser { width: 300px; left: 1%;  top: 7%;  rotate: -6deg; animation-delay: .35s, 1.4s; }
.t-hire    { width: 210px; left: 6%;  top: 47%; rotate: 4deg;  animation-delay: .55s, 2.6s; }
.t-phone   { width: 180px; left: 14%; bottom: 0; rotate: -3deg; animation-delay: .75s, .4s; }
.t-dash    { width: 290px; right: 1%; top: 6%;  rotate: 5deg;  animation-delay: .45s, 2s; }
.t-tests   { width: 240px; right: 5%; bottom: 6%; rotate: -4deg; animation-delay: .65s, 3s; }

/* browser */
.chrome { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; }
.chrome i { width: 8px; height: 8px; border-radius: 50%; background: rgba(245, 245, 240, .18); }
.chrome span {
  flex: 1; margin-left: 8px; padding: 4px 10px; border-radius: 999px;
  background: rgba(245, 245, 240, .06); font: 500 11px/1.2 var(--sans); color: var(--muted);
}
.site { padding: 16px; border-radius: 10px; background: linear-gradient(135deg, #1D2230, #151922); }
.site-h { display: block; height: 12px; width: 80%; border-radius: 4px; background: rgba(245, 245, 240, .85); margin-bottom: 7px; }
.site-h.short { width: 52%; background: rgba(245, 245, 240, .35); }
.site-btn {
  display: inline-block; margin: 8px 0 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font: 600 11px/1 var(--grotesk);
}
.site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.site-cards b { height: 34px; border-radius: 6px; background: rgba(245, 245, 240, .07); }

/* phone */
.phone {
  padding: 18px 14px; border-radius: 26px;
  background: #0E1016; border: 4px solid #252A35;
}
.ph-title { font: 600 15px/1.2 var(--grotesk); }
.ph-sub { font-size: 11px; color: var(--muted); margin: 2px 0 12px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.slots span {
  padding: 8px 0; text-align: center; border-radius: 10px;
  border: 1px solid rgba(245, 245, 240, .14); font: 500 12px/1 var(--grotesk);
}
.slots .on { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.ph-btn {
  display: block; margin-top: 14px; padding: 10px 0; text-align: center; border-radius: 999px;
  background: var(--paper); color: var(--ink); font: 600 12px/1 var(--grotesk);
}

/* dashboard */
.dash-top { display: flex; justify-content: space-between; align-items: center; font: 500 12px/1 var(--grotesk); color: var(--muted); }
.chip { padding: 4px 8px; border-radius: 999px; background: rgba(91, 140, 255, .14); color: #A9C2FF; font-size: 11px; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; margin: 16px 0 12px; }
.bars i {
  flex: 1; border-radius: 5px 5px 2px 2px; background: rgba(245, 245, 240, .14);
  transform-origin: bottom; animation: grow 1s var(--ease) both;
}
.bars i:nth-child(1) { height: 42%; animation-delay: .9s; }
.bars i:nth-child(2) { height: 58%; animation-delay: .95s; }
.bars i:nth-child(3) { height: 36%; animation-delay: 1s; }
.bars i:nth-child(4) { height: 72%; animation-delay: 1.05s; }
.bars i:nth-child(5) { height: 64%; animation-delay: 1.1s; }
.bars i:nth-child(6) { height: 96%; animation-delay: 1.15s; background: var(--lime); }
.bars i:nth-child(7) { height: 50%; animation-delay: 1.2s; }
@keyframes grow { from { transform: scaleY(0); } }
.dash-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.warn { color: #FFD60A; font-weight: 500; }

/* tests */
.tile svg { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tests-h { display: flex; align-items: center; gap: 8px; font: 600 14px/1.2 var(--grotesk); color: var(--lime); margin-bottom: 10px; }
.t-tests li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; color: #C9CCD2; }
.t-tests li svg { color: var(--lime); font-size: 12px; }

/* hiresutra mini */
.hire-h { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--grotesk); color: var(--silver); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 10px var(--crimson); }
.wave { display: flex; align-items: center; gap: 4px; height: 44px; margin-top: 12px; }
.wave i {
  flex: 1; height: 100%; border-radius: 3px; background: var(--silver); opacity: .75;
  transform: scaleY(.3); animation: talk 1.2s ease-in-out infinite;
}
.wave i:nth-child(3n)   { animation-delay: -.2s; }
.wave i:nth-child(3n+1) { animation-delay: -.5s; animation-duration: 1s; }
.wave i:nth-child(4n)   { animation-delay: -.8s; animation-duration: 1.4s; }
.wave i:nth-child(5n)   { animation-delay: -.35s; }
@keyframes talk { 50% { transform: scaleY(1); } }

/* ---------- Sections ---------- */
.section-title {
  font: 600 clamp(32px, 4vw, 52px)/1.05 var(--grotesk); letter-spacing: -0.03em;
  margin-bottom: var(--s7);
}
.services { padding-top: var(--s9); padding-bottom: var(--s9); }
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.service-list li {
  padding: var(--s6); border-radius: 20px;
  background: linear-gradient(180deg, rgba(245, 245, 240, .045), rgba(245, 245, 240, .015));
  border: 1px solid rgba(245, 245, 240, .08);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.service-list li:hover { border-color: rgba(198, 255, 0, .4); transform: translateY(-4px); }
.service-list h3 { font: 600 24px/1.2 var(--grotesk); letter-spacing: -0.02em; margin-bottom: var(--s3); }
.service-list p { color: var(--muted); }
.promises { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); margin-top: var(--s6); }
.promises li { display: flex; align-items: center; gap: var(--s2); font: 500 15px/1.4 var(--grotesk); color: #D6D8DC; }
.promises svg { width: 18px; height: 18px; fill: none; stroke: var(--lime); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* HireSutra band */
.hiresutra {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s7); align-items: center;
}
.hiresutra::before {
  content: ""; position: absolute; inset: 0 var(--gutter); z-index: -1; border-radius: 28px;
  background:
    radial-gradient(500px 300px at 85% 50%, rgba(225, 6, 0, .22), transparent 70%),
    linear-gradient(180deg, #111318, #0D0F14);
  border: 1px solid rgba(192, 196, 204, .14);
}
.hs-copy { padding: var(--s8) 0 var(--s8) var(--s7); }
.hs-date {
  display: inline-block; margin-bottom: var(--s5); padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 59, 78, .4); color: #FF8A95; font: 500 13px/1 var(--grotesk);
}
.hiresutra h2 { font: 600 clamp(32px, 4vw, 52px)/1.05 var(--grotesk); letter-spacing: -0.03em; color: var(--paper); }
.hs-name { display: block; font: italic 400 1.15em/1 var(--serif); letter-spacing: -0.01em; color: var(--silver); }
.hs-copy > p:last-child { margin-top: var(--s5); max-width: 48ch; color: var(--muted); }
.hs-visual { padding-right: var(--s7); }
.wave-lg { height: 140px; gap: 6px; }
.wave-lg i { background: linear-gradient(180deg, var(--silver), rgba(192, 196, 204, .25)); }
.wave-lg i:nth-child(7n) { background: var(--crimson); opacity: 1; }

/* CTA */
.cta { padding-top: var(--s9); padding-bottom: var(--s9); text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { font: 700 clamp(40px, 6vw, 84px)/1 var(--grotesk); letter-spacing: -0.04em; }
.cta h2 em { font: italic 400 1.1em/1 var(--serif); letter-spacing: -0.01em; color: var(--lime); }
.cta p { margin-top: var(--s5); max-width: 50ch; color: var(--muted); }
.cta-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s6); }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5);
  padding-top: var(--s5); padding-bottom: var(--s6);
  font-size: 13px; color: var(--muted);
}
.site-footer::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--rule); }

/* ---------- Load sequence ---------- */
.hero-copy > * { animation: rise .8s var(--ease) both; }
.badge    { animation-delay: .05s; }
.headline { animation-delay: .12s; }
.lede     { animation-delay: .22s; }
.notify   { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .t-browser { width: 250px; }
  .t-dash { width: 240px; }
  .t-hire { display: none; }
  .t-phone { width: 160px; left: 8%; }
  .t-tests { width: 210px; right: 3%; }
  .hero-copy { max-width: 600px; }
}
@media (max-width: 1180px) {
  .hero { display: block; place-items: normal; min-height: 0; padding-top: var(--s8); padding-bottom: var(--s5); }
  .services { padding-top: var(--s8); }
  .hero-copy { margin: 0 auto; }
  .stage {
    position: static; pointer-events: auto;
    display: flex; gap: var(--s4); align-items: flex-start;
    margin: var(--s7) calc(-1 * var(--gutter)) 0; padding: var(--s4) var(--gutter) var(--s4);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .stage::-webkit-scrollbar { display: none; }
  .tile {
    position: relative; inset: auto; rotate: none; translate: none; flex: none; scroll-snap-align: center;
    animation: tile-in .9s var(--ease) both;
  }
  .t-browser, .t-dash { width: 270px; }
  .t-phone { width: 190px; }
  .t-hire, .t-tests { width: 220px; }
  .service-list { grid-template-columns: 1fr; }
  .hiresutra { grid-template-columns: 1fr; gap: 0; }
  .hs-copy { padding: var(--s7) var(--s6) var(--s5); }
  .hs-visual { padding: 0 var(--s6) var(--s7); }
  .wave-lg { height: 90px; }
}
@media (max-width: 560px) {
  .logo { height: 24px; }
  .header-cta { padding: 10px 14px; font-size: 13px; }
  .badge { font-size: 13px; }
  .headline { font-size: 13.4vw; }
  .field-row { flex-direction: column; border-radius: 24px; }
  .field-row .btn { width: 100%; }
  .hs-copy { padding: var(--s6) var(--s5) var(--s5); }
  .hs-visual { padding: 0 var(--s5) var(--s6); }
  .cta-links { flex-direction: column; align-self: stretch; }
  .site-footer { flex-direction: column; }
}
@media (max-width: 340px) {
  .header-cta { display: none; }   /* email appears again lower on the page */
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wave i { transform: scaleY(.6); }
  .tile { translate: none; }
}

/* ---------- 404 ---------- */
.nf { padding-top: var(--s9); padding-bottom: var(--s9); }
.nf-title {
  margin: 0 0 var(--s5);
  max-width: 14ch;
  font: 700 clamp(44px, 7vw, 96px)/.95 var(--grotesk);
  letter-spacing: -0.03em;
}
.nf p { margin: 0 0 var(--s6); color: var(--muted); max-width: 46ch; }
