/* =========================================================================
   Sanskar Tech — styles.css
   Corporate minimalist premium. Near-monochrome canvas, one restrained deep-blue
   accent used sparingly, refined controlled typography, strict grid, generous
   whitespace, hairline dividers, crisp bordered cards, understated motion.
   No gradients. No glassmorphism. No colored shadows.
   ========================================================================= */

:root {
  /* ---- Canvas / neutrals (cool-grey biased toward the blue accent) ---- */
  --white:      #FFFFFF;   /* pure canvas */
  --panel:      #F7F8FA;   /* whisper cool-grey for alternating sections */
  --hair:       #E7E9EE;   /* hairline dividers / borders */
  --hair-2:     #D6DAE2;   /* slightly stronger hairline for hover/active */
  --ink:        #0B1524;   /* headings — deep near-navy-black */
  --body:       #5B6472;   /* body / secondary text — cool grey */
  --muted:      #67707E;   /* meta / labels — AA (≥4.5:1) on white and --panel */

  /* ---- Single restrained accent ---- */
  --accent:     #1D4ED8;   /* deep blue — links, mark, primary CTA */
  --accent-ink: #1E40AF;   /* darker blue for AA text on white */
  --accent-050: #EEF2FF;   /* faint blue wash for subtle hover states */

  /* ---- Neutral shadows (depth from light, not blur/glass) ---- */
  --shadow-card: 0 1px 2px rgba(11,21,36,0.04), 0 8px 24px -16px rgba(11,21,36,0.18);
  --shadow-soft: 0 1px 2px rgba(11,21,36,0.04), 0 4px 12px -8px rgba(11,21,36,0.12);
  --shadow-lift: 0 2px 4px rgba(11,21,36,0.05), 0 18px 40px -22px rgba(11,21,36,0.24);

  /* ---- Type ---- */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui,
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-hero:  clamp(2.4rem, 5vw, 4rem);
  --fs-title: clamp(1.7rem, 3vw, 2.4rem);
  --fs-body:  1.0625rem;

  /* ---- Deliberate small type scale (maps the former near-duplicate sizes) ---- */
  --fs-xs:  0.75rem;    /* eyebrows, table heads, mono meta */
  --fs-sm:  0.875rem;   /* nav, buttons, secondary UI text */
  --fs-md:  1rem;       /* dense body / feature copy */

  /* ---- Layout ---- */
  --frame: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 60px;

  /* ---- Motion (calm, understated) ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.6s;
}

/* =========================================================================
   Base
   ========================================================================= */

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

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

body {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
  background-color: var(--white);
  color: var(--body);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 600; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { max-width: 100%; display: block; }

.frame {
  position: relative;
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ---- Focus rings ---- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: 1rem; top: -70px;
  z-index: 400;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---- Wordmark ---- */
.wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-weight: 600;
}
/* the "·" becomes a small restrained accent dot */
.wordmark .mid {
  width: 5px;
  height: 5px;
  margin: 0 0.42em;
  border-radius: 50%;
  background: var(--accent);
  color: transparent;
  font-size: 0;
  line-height: 0;
  align-self: center;
}

/* ---- Eyebrow (small uppercase label) ---- */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 1rem;
}

/* ---- Section titles ---- */
.section-title {
  font-weight: 600;
  font-size: var(--fs-title);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

/* =========================================================================
   Loader — quiet: calm wordmark fade + thin hairline progress
   ========================================================================= */

.loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--white);
  display: grid;
  place-items: center;
  transition: opacity 0.4s var(--ease);
}
.loader[hidden] { display: none; }
.loader.is-hidden { opacity: 0; pointer-events: none; }

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-mark {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0;
  animation: markFade 0.9s var(--ease) 0.05s forwards;
}
.loader-mark .mid {
  width: 5px; height: 5px;
  margin: 0 0.42em;
  border-radius: 50%;
  background: var(--accent);
  font-size: 0; line-height: 0;
}
@keyframes markFade { to { opacity: 1; } }

.loader-rail {
  position: relative;
  width: min(220px, 56vw);
  height: 2px;
  border-radius: 2px;
  background: var(--hair);
  overflow: hidden;
}
.loader-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.2s linear;
}

/* =========================================================================
   Header — thin, sticky, opaque, subtle hairline solidify on scroll
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--hair);
  box-shadow: 0 1px 0 rgba(11,21,36,0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.nav { margin-inline: auto; }
.nav-list { display: flex; gap: clamp(1.1rem, 2.8vw, 2.2rem); }
.nav-list a {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--body);
  padding: 0.4rem 0.1rem;
  transition: color 0.2s var(--ease);
}
/* quiet accent underline on hover */
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s var(--ease);
}
.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after,
.nav-list a:focus-visible::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; }

/* =========================================================================
   Buttons — rectangular-ish; solid ink/accent primary + bordered secondary
   ========================================================================= */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-sm { padding: 0.6rem 1.05rem; font-size: var(--fs-sm); }

/* Primary — solid deep-blue accent, white text (WCAG AA). */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-primary:active { background: var(--accent-ink); }

/* Secondary — quiet bordered, ink text on white. */
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--hair-2);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-secondary:active { background: var(--panel); }

.btn-arrow { flex: 0 0 auto; }
.btn .btn-arrow { transition: transform 0.22s var(--ease); }
.btn-secondary:hover .btn-arrow { transform: translateY(2px); }
.btn-crm:hover .btn-arrow { transform: translateX(2px); }

/* =========================================================================
   Section rhythm — generous whitespace, hairline dividers
   ========================================================================= */

.section { padding-block: clamp(4.5rem, 10vw, 7.5rem); }
/* One divider owner: every section carries a single top hairline except the first. */
.section + .section { border-top: 1px solid var(--hair); }
.section-head { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); max-width: 52rem; }

/* Alternating panel canvas for gentle rhythm (background only — divider owned above) */
.section-alt { background: var(--panel); }

/* =========================================================================
   Hero — controlled headline, calm sub, refined product mock
   ========================================================================= */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(3.5rem, 8vw, 6rem);
}
.hero-frame {
  display: grid;
  /* Copy leads; the mock supports rather than balances it 50/50. */
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero-copy { grid-column: 1; min-width: 0; }
.hero-eyebrow { margin-bottom: 1.25rem; }

.hero-title {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-size: var(--fs-hero);
  color: var(--ink);
  text-wrap: balance;
}

.hero-sub {
  margin-top: 1.5rem;
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--body);
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hero-mock {
  grid-column: 2;
  min-width: 0;
  justify-self: end;
  width: 100%;
}

/* =========================================================================
   App mock (DocFill) — crisp monochrome product window, subtle shadow
   ========================================================================= */

.app {
  position: relative;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--hair);
  background: var(--panel);
}
.app-file {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.app-body { display: grid; grid-template-columns: 140px 1fr; }
.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 0.7rem;
  border-right: 1px solid var(--hair);
  background: var(--white);
}
.app-tab {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--body);
  padding: 0.5rem 0.6rem 0.5rem 0.85rem;
  border-radius: 6px;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.app-tab::before {
  content: "";
  position: absolute;
  left: 0.35rem; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px; height: 14px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}
.app-tab.is-active {
  color: var(--ink);
  font-weight: 600;
  background: var(--panel);
}
.app-tab.is-active::before { transform: translateY(-50%) scaleY(1); }

.app-pane {
  padding: 1.3rem 1.4rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.app-form { display: flex; flex-direction: column; gap: 0.85rem; }
.form-row { display: flex; flex-direction: column; gap: 0.32rem; }
.form-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.form-field {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--ink);
  padding: 0.5rem 0.7rem;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 7px;
}
.form-field.is-filled {
  color: var(--ink);
  border-color: var(--hair-2);
  background: var(--white);
}

.app-actionbar {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.5rem;
  border-top: 1px solid var(--hair);
}
/* Decorative label inside the mock (not a real CTA) — quiet bordered ink. */
.app-chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.5rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--hair-2);
  border-radius: 7px;
}

.app-lg .app-body { grid-template-columns: 156px 1fr; }
.app-lg .app-pane { padding: 1.5rem 1.7rem; }
.app-lg .form-field { font-size: var(--fs-md); }

/* ---- Showcase export state (batch → PDF) ---- */
.export-view { display: flex; flex-direction: column; gap: 1.1rem; }
.export-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.export-title {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink);
}
.export-count {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.export-rail {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: var(--hair);
  overflow: hidden;
}
.export-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 75%;               /* 96 / 128 */
  border-radius: 4px;
  background: var(--accent);
}
.export-list { display: flex; flex-direction: column; gap: 0.5rem; }
.export-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--hair);
  border-radius: 7px;
  background: var(--white);
}
.export-item.is-active { border-color: var(--hair-2); }
.export-doc {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.01em;
  color: var(--ink);
}
.export-state {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  flex: 0 0 auto;
}
.export-item.is-done .export-state { color: var(--body); }
.export-item.is-active .export-state { color: var(--ink); }

/* =========================================================================
   Products — crisp hairline-bordered cards
   ========================================================================= */

.product-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: stretch;
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              transform 0.25s var(--ease);
}
.pcard:hover {
  transform: translateY(-2px);
  border-color: var(--hair-2);
  box-shadow: var(--shadow-card);
}
.pcard-name {
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pcard-desc { color: var(--body); max-width: 48ch; font-size: var(--fs-md); }

/* Feature list — only on the wide card */
.pcard-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0.4rem 0 0.6rem;
}
.pcard-features li {
  font-size: var(--fs-md);
  color: var(--ink);
  padding: 0.8rem 0;
  border-top: 1px solid var(--hair);
}
.pcard-features li:first-child { border-top: none; padding-top: 0.2rem; }
.pcard-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: auto;
}

/* Text link with quiet accent + arrow nudge */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-ink);
}
.tlink-arrow { transition: transform 0.22s var(--ease); }
.tlink:hover .tlink-arrow,
.tlink:focus-visible .tlink-arrow { transform: translateX(3px); }

/* =========================================================================
   DocFill capabilities — calm two-column, no pinned/scroll gimmicks
   ========================================================================= */

.showcase-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.showcase-copy { min-width: 0; }
.showcase-lead { margin-top: 1rem; color: var(--body); max-width: 46ch; }
.showcase-steps { display: flex; flex-direction: column; gap: 0; margin-top: 2rem; }
.step {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.95rem 0;
  border-top: 1px solid var(--hair);
}
.step:first-child { border-top: none; }
.step-idx {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  flex: 0 0 auto;
}

.showcase-mock { min-width: 0; }

/* =========================================================================
   Downloads spec-table — crisp bordered card, precise rows
   ========================================================================= */

.spectable {
  display: block;
  width: 100%;
  border: 1px solid var(--hair);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border-collapse: collapse;
}
.spectable thead,
.spectable tbody { display: block; }
.spec-head tr,
.spec-row {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1fr 1.3fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 3vw, 1.8rem);
}
.spec-head {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--panel);
  border-bottom: 1px solid var(--hair);
}
.spec-head th {
  font-weight: inherit;
  text-align: left;
  padding: 0;
}
.spec-action-col { text-align: right; }

.spec-row {
  position: relative;
  border-top: 1px solid var(--hair);
  color: var(--ink);
  transition: background-color 0.2s var(--ease);
}
.spec-row:first-of-type { border-top: none; }
.spec-row:not(.is-disabled):hover,
.spec-row:not(.is-disabled):focus-within { background: var(--panel); }

.spec-cell { font-family: var(--sans); font-size: var(--fs-md); font-weight: 500; }
.spec-mono {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--body);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.spec-act { text-align: right; }

/* Download = bordered secondary-style button, quiet accent text */
.spec-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-ink);
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--hair-2);
  border-radius: 7px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.spec-download:hover,
.spec-download:focus-visible { border-color: var(--accent); background: var(--accent-050); }

.spec-soon {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px dashed var(--hair-2);
  border-radius: 7px;
}
.spec-row.is-disabled { color: var(--muted); background: transparent; cursor: not-allowed; }
.spec-row.is-disabled .spec-cell { font-weight: 400; }

.spec-note {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  color: var(--body);
  font-size: var(--fs-md);
}
.spec-note-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--hair);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  flex: 0 0 auto;
}
.spec-note strong { color: var(--ink); font-weight: 600; }

/* =========================================================================
   CRM banner — deep-ink panel, quiet accent CTA
   ========================================================================= */

.crm-banner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.25rem, 5vw, 3.5rem);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 12px;
}
.crm-copy { position: relative; z-index: 1; max-width: 42rem; }
.crm-banner .eyebrow { color: rgba(255,255,255,0.6); }
.crm-title {
  font-weight: 600;
  font-size: var(--fs-title);
  letter-spacing: -0.02em;
  color: #fff;
}
.crm-text { margin-top: 0.9rem; color: rgba(255,255,255,0.72); max-width: 48ch; font-size: 1.05rem; }
.crm-actions { position: relative; z-index: 1; flex: 0 0 auto; }
/* On the ink banner the CTA is the one accent moment. */
.btn-crm {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-crm:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  border-top: 1px solid var(--hair);
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
  background: var(--white);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--body);
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--ink); }
.footer-copy {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* =========================================================================
   Scroll reveal — gentle fade/rise, gated by .js
   ========================================================================= */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* One-shot hero stagger (added by JS on reveal) */
.stagger [data-stagger] {
  opacity: 0;
  transform: translateY(14px);
}
.stagger.play [data-stagger] {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--s, 0) * 80ms);
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 900px) {
  .hero-frame { grid-template-columns: 1fr; }
  .hero-copy, .hero-mock { grid-column: 1; }
  .hero-mock { justify-self: stretch; margin-top: 2.5rem; max-width: 560px; }
  .hero-sub { max-width: 48ch; }
  .product-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Nav condenses — hide secondary anchors, keep CTA */
  .nav { display: none; }

  /* Spec-table → stacked definition-list blocks */
  .spec-head { display: none !important; }
  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.15rem clamp(1.25rem, 5vw, 1.6rem);
  }
  .spec-cell {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
  }
  .spec-cell::before {
    content: attr(data-k);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
  }
  .spec-act { justify-content: space-between; text-align: left; }
  .spec-row:not(.is-disabled):active { background: var(--panel); }
}

/* =========================================================================
   Reduced motion — content static + visible, no loader anim / reveal / stagger
   ========================================================================= */

@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;
  }
  .loader-mark { opacity: 1; }
  .js [data-reveal],
  [data-reveal] { opacity: 1; transform: none; }
  .stagger [data-stagger],
  .stagger.play [data-stagger] { opacity: 1; transform: none; }
}
