/* SmitIQ — company site
   Palette: paper #F6F8FA · ink #0C1B2A · slate #3D5166 · accent #0B5FFF · hairline #DEE5EC */

:root {
  --paper: #f6f8fa;
  --card: #ffffff;
  --ink: #0c1b2a;
  --slate: #3d5166;
  --accent: #0b5fff;
  --accent-deep: #0847c4;
  --hairline: #dee5ec;
  --live: #0e9f6e;
  --navy: #0a1622;
  --navy-text: #b9c6d4;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 7.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

.wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Wordmark: the IQ chip ---------- */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark .iq {
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 0.2em;
  padding: 0.04em 0.22em 0.1em;
  line-height: 1.15;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
@media (max-width: 30rem) {
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: 0.875rem; }
  .site-nav a:first-child { display: none; }
}

/* ---------- Eyebrow ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(5rem, 12vw, 9rem) var(--section-pad); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lede {
  margin-top: 1.75rem;
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  color: var(--slate);
  max-width: 44ch;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  background: var(--ink);
  padding: 0.8125rem 1.625rem;
  border: none;
  border-radius: 0.375rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.button:hover { background: var(--accent-deep); color: #fff; }

.quiet-link {
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
}
.quiet-link:hover { border-color: var(--accent); color: var(--ink); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section-pad); border-top: 1px solid var(--hairline); }
.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 24ch;
  margin-bottom: 1.25rem;
}
.section .prose { max-width: var(--measure); color: var(--slate); }

/* editorial split: heading column left, content right */
@media (min-width: 56rem) {
  .split {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 3rem;
    align-items: start;
  }
  .split h2 { margin-bottom: 0; }
}
.section .prose p + p { margin-top: 1em; }
.section .prose strong { color: var(--ink); }

/* ---------- Product cards ---------- */

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 44rem) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* CSS-drawn browser-chrome mockup */
.mock-browser {
  position: relative;
  background: #eef2f6;
  border-bottom: 1px solid var(--hairline);
  padding: 1.5rem 1.5rem 0;
}

/* phone inset overlapping the desktop frame */
.mock-phone {
  position: absolute;
  right: 1.25rem;
  bottom: 0.75rem;
  height: 80%;
  aspect-ratio: 9 / 19;
  border-radius: 0.875rem;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 10px 28px rgba(12, 27, 42, 0.22);
  background: #fff;
}
.mock-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.mock-window {
  background: #fff;
  border: 1px solid var(--hairline);
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--hairline);
  background: #f8fafc;
}
.mock-bar i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--hairline);
}
.mock-bar .mock-url {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--slate);
  background: #eef2f6;
  border-radius: 999px;
  padding: 0.125rem 0.625rem;
  margin-left: 0.375rem;
}
.mock-screen { padding: 0.875rem; min-height: 7.5rem; }
.mock-shot {
  display: block;
  width: 100%;
  height: 12rem;
  object-fit: cover;
  object-position: top;
}

/* abstract UI blocks inside the mock screen */
.mock-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.mock-block { background: #eef2f6; border-radius: 0.25rem; height: 1.75rem; flex: 1; }
.mock-block.tall { height: 3.5rem; }
.mock-block.accent { background: color-mix(in srgb, var(--accent) 16%, #fff); }
.mock-spark {
  flex: 2;
  height: 3.5rem;
  border-radius: 0.25rem;
  background:
    linear-gradient(to bottom right, transparent 47%, var(--accent) 48%, var(--accent) 52%, transparent 53%),
    #eef2f6;
}

.tool-body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tool-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}
.badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.live { color: var(--live); background: color-mix(in srgb, var(--live) 12%, #fff); }
.badge.soon { color: var(--slate); background: #eef2f6; }
.tool-body p { color: var(--slate); font-size: 0.9875rem; }
.tool-body .services {
  font-size: 0.875rem;
  color: var(--slate);
  border-top: 1px solid var(--hairline);
  padding-top: 0.875rem;
  margin-top: auto;
}
.tool-body .services strong { color: var(--ink); font-weight: 600; }
.tool-link { font-size: 0.9375rem; font-weight: 500; }
.tool-link a { text-decoration: none; }
.tool-link a:hover { text-decoration: underline; }

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem 2rem;
  margin-top: 3rem;
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.pillar h3::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}
.pillar p { color: var(--slate); font-size: 0.9875rem; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 2fr) 3fr;
  gap: 3rem;
  margin-top: 0.5rem;
}
@media (max-width: 47rem) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-aside p { color: var(--slate); max-width: 36ch; }
.contact-aside .email {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--ink);
}

.contact-form { display: grid; gap: 1.125rem; }
.field { display: grid; gap: 0.375rem; }
.field label {
  font-size: 0.875rem;
  font-weight: 600;
}
.field input,
.field textarea {
  font: inherit;
  font-size: 0.9875rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 0.375rem;
  padding: 0.6875rem 0.875rem;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}
.field textarea { min-height: 8.5rem; resize: vertical; }

/* honeypot — hidden from humans, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { font-size: 0.9375rem; min-height: 1.5em; }
.form-status.ok { color: var(--live); }
.form-status.error { color: #b42318; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--navy-text);
  padding-block: 3.5rem;
  margin-top: var(--section-pad);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  justify-content: space-between;
}
.site-footer .wordmark { color: #fff; }
.site-footer .legal { max-width: 44ch; line-height: 1.7; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer a { color: var(--navy-text); }
.site-footer a:hover { color: #fff; }

/* ---------- Legal pages ---------- */

.legal-page { padding-block: clamp(3rem, 7vw, 5rem) var(--section-pad); }
.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.legal-page .updated {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--slate);
  margin-bottom: 3rem;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  margin: 2.5rem 0 0.75rem;
}
.legal-page p, .legal-page li { color: var(--slate); max-width: var(--measure); }
.legal-page ul { padding-left: 1.25rem; }
.legal-page li { margin-bottom: 0.375rem; }
.legal-page strong { color: var(--ink); }

/* ---------- Reveal on load / scroll ---------- */

/* gated on html.js so content is never hidden when JS is unavailable */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms ease, transform 600ms ease;
  }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .hero .reveal:nth-child(2) { transition-delay: 90ms; }
  .js .hero .reveal:nth-child(3) { transition-delay: 180ms; }
}
