/* Gazeworks — site styles, v2
   Palette: lab-paper grey, slate ink, cobalt for everything that is gaze. */

@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("fonts/familjen-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("fonts/familjen-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("fonts/familjen-grotesk-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/familjen-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #eef0ec;
  --paper-deep: #e3e7e1;
  --card: #fbfcfa;
  --field: #f8f9f6;
  --ink: #15202e;
  --ink-2: #1e2b3c;
  --graphite: #56606b;
  --rule: #c5cbc4;
  --gaze: #2b3bd4;
  --gaze-light: #9aa6ff;
  --gaze-fill: rgba(43, 59, 212, 0.13);
  --flag: #c0344b;
  --error: #b42318;

  --font: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --measure: 62ch;
  --space-section: clamp(80px, 11vw, 144px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--gaze); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 10;
}
.skip-link:focus { top: 12px; }

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

.site-header { padding-block: 22px; position: relative; z-index: 2; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.brand svg { width: 34px; height: 20px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  font-size: 1rem;
}
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--gaze); }

@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #24324a; border-color: #24324a; text-decoration: none; }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }

.text-link { font-weight: 600; color: var(--ink); }
.text-link:hover { color: var(--gaze); }

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

.hero {
  position: relative;
  padding-block: clamp(32px, 7vh, 88px) clamp(56px, 9vh, 104px);
  overflow: hidden;
}
.hero .scanpath {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 1;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 620;
  max-width: 11ch;
}

.lede {
  margin-top: clamp(22px, 3vw, 34px);
  max-width: 40ch;
  font-size: clamp(1.15rem, 1.7vw, 1.38rem);
  line-height: 1.45;
}

.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .eye-panel { max-width: 560px; }
}

/* Eye camera panel */
.eye-panel {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 16px 16px 6px;
  box-shadow: 0 34px 60px -34px rgba(21, 32, 46, 0.55);
}
.eye-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #c3cad3;
  padding: 2px 4px 12px;
}
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--gaze-light); font-weight: 600; }
.status i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gaze-light);
  box-shadow: 0 0 0 4px rgba(154, 166, 255, 0.18);
}
.eye-cam { width: 100%; height: auto; border-radius: 10px; }
.ec-overlay { fill: none; stroke: var(--gaze-light); stroke-width: 2; }
.ec-overlay rect { stroke-width: 1.75; }

.readouts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 4px 10px;
}
.readouts div { min-width: 0; }
.readouts dt { font-size: 0.8rem; color: #9aa4b0; }
.readouts dd {
  margin: 2px 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Scanpath marks (hero overlay and figures) */
.fix { fill: var(--gaze-fill); stroke: var(--gaze); stroke-width: 1.75; }
.sac { stroke: var(--gaze); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.scripted { transition: opacity 900ms ease; }

/* ---------- Proof strip ---------- */

.proof { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.proof-grid > div { padding: 22px 20px 24px 0; }
.proof-grid > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.proof h2 { font-size: 1.05rem; letter-spacing: -0.01em; }
.proof p { margin-top: 4px; font-size: 0.98rem; color: var(--graphite); }

@media (max-width: 860px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof-grid > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid > div, .proof-grid > div + div { padding: 16px 0; border-left: 0; }
  .proof-grid > div + div { border-top: 1px solid var(--rule); }
}

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

.section { padding-block: var(--space-section) 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 20px 48px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head h2,
.about h2,
.faq h2,
.why h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.section-head p { max-width: var(--measure); color: var(--graphite); }

@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
}

/* Solutions */
.solution {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule);
}
.solution:nth-of-type(even) .solution-copy { order: 2; }
.solution h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.solution-lead {
  margin-top: 14px;
  font-size: clamp(1.12rem, 1.5vw, 1.28rem);
  line-height: 1.45;
  max-width: 34ch;
}
.deliverables {
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
}
.deliverables li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.45;
}
.deliverables li:last-child { border-bottom: 1px solid var(--rule); }
.deliverables li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.75px solid var(--gaze);
  background: var(--gaze-fill);
}

.solution-fig { margin: 0; }
.solution-fig figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--graphite); }

@media (max-width: 900px) {
  .solution { grid-template-columns: 1fr; }
  .solution:nth-of-type(even) .solution-copy { order: 0; }
}

/* Figure mockups */
.mock { width: 100%; height: auto; font-family: var(--font); }
.m-card { fill: var(--card); stroke: var(--rule); }
.m-h { font-size: 17px; font-weight: 650; fill: var(--ink); letter-spacing: -0.01em; }
.m-sub { font-size: 13px; fill: var(--graphite); }
.m-t { font-size: 14px; fill: var(--ink); }
.m-strong { font-weight: 650; }
.m-v { font-size: 14px; font-weight: 650; fill: var(--ink); font-variant-numeric: tabular-nums; }
.m-s { font-size: 12.5px; fill: var(--graphite); }
.m-big { font-size: 30px; font-weight: 650; fill: var(--gaze); letter-spacing: -0.02em; }
.m-rule { stroke: var(--rule); stroke-width: 1; }
.m-grid { stroke: #e3e6e1; stroke-width: 1; }
.m-axis { stroke: #9aa19a; stroke-width: 1; }
.m-track { fill: #e6e9e4; }
.m-band { fill: rgba(43, 59, 212, 0.18); }
.m-fill { fill: var(--gaze); }
.m-dot { fill: var(--gaze); }
.m-flag { fill: var(--flag); }
.m-flag-t { font-size: 13px; font-weight: 650; fill: var(--flag); }
.m-ok { font-size: 13px; fill: var(--graphite); }
.m-onset { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 3; }
.m-line-hi { fill: none; stroke: var(--gaze); stroke-width: 2.5; stroke-linejoin: round; }
.m-line-lo { fill: none; stroke: #7d8691; stroke-width: 2.5; stroke-linejoin: round; }
.m-ci-hi { fill: rgba(43, 59, 212, 0.14); }
.m-ci-lo { fill: rgba(125, 134, 145, 0.16); }
.m-screens rect { fill: #e9ece7; stroke: #7d8691; stroke-width: 1.25; }
.m-screens .m-aoi, .m-aoi { fill: none; stroke: var(--gaze); stroke-width: 2.5; stroke-dasharray: 6 4; }
.m-bars rect { fill: #b9c0c8; }
.m-bars .m-bar-key { fill: var(--gaze); }
.m-on-bar { fill: #ffffff; font-weight: 650; }
.m-shelf rect { stroke: rgba(21, 32, 46, 0.25); stroke-width: 1; }
.m-shelf line { stroke: #7d8691; stroke-width: 3; }
.m-shelf .p1 { fill: #cfd6dd; }
.m-shelf .p2 { fill: #ddd3c5; }
.m-shelf .p3 { fill: #c3cec6; }
.m-shelf .p4 { fill: #d6d0e0; }
.m-shelf .p-you { fill: #f3f5f2; }
.m-heat { mix-blend-mode: multiply; }

/* What we build: a spec-sheet list */
.spec { margin: 0; }
.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 10px 48px;
  padding-block: 28px;
  border-top: 1px solid var(--rule);
}
.spec-row:last-child { border-bottom: 1px solid var(--rule); }
.spec dt {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.spec dd { margin: 0; max-width: var(--measure); }

@media (max-width: 760px) {
  .spec-row { grid-template-columns: 1fr; padding-block: 22px; }
}

/* Why Gazeworks (dark band) */
.why {
  margin-top: var(--space-section);
  padding-block: clamp(72px, 9vw, 120px);
  background: var(--ink);
  color: var(--paper);
}
.why-grid {
  margin-top: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.why-grid > div { border-top: 2px solid var(--gaze-light); padding-top: 18px; }
.why h3 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.015em; }
.why p { margin-top: 10px; color: #c3cad3; font-size: 1rem; }

@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* How a project runs */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.step-n {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--gaze);
}
.steps h3 { margin-top: 18px; font-size: 1.25rem; }
.steps p { margin-top: 8px; font-size: 1rem; }

@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* About */
.about .wrap,
.faq .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 24px 48px;
}
.about-body { max-width: var(--measure); }
.about-body p + p { margin-top: 18px; }

@media (max-width: 760px) {
  .about .wrap, .faq .wrap { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list { border-top: 1px solid var(--rule); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  font-size: 1.15rem;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq details p { padding: 0 0 22px; max-width: var(--measure); color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

/* ---------- Inquiry ---------- */

.inquiry {
  margin-top: var(--space-section);
  padding-block: var(--space-section);
  background: var(--paper-deep);
}
.inquiry .section-head { align-items: start; }
.inquiry .section-head p { color: var(--ink); }
.inquiry .section-head p + p { margin-top: 12px; color: var(--graphite); font-size: 1rem; }
.section-head .stack { display: block; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 28px;
  max-width: 880px;
}
@media (max-width: 760px) {
  .form { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }

.field > label,
fieldset legend {
  font-weight: 600;
  font-size: 1rem;
}
.optional { font-weight: 400; color: var(--graphite); }

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--field);
  border: 1px solid #98a098;
  border-radius: 6px;
  padding: 12px 14px;
  min-height: 48px;
}
textarea { min-height: 168px; resize: vertical; line-height: 1.5; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gaze);
  outline-offset: 1px;
  border-color: var(--gaze);
}
::placeholder { color: #7a838b; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 10px; }

.options { display: flex; flex-wrap: wrap; gap: 10px; }
.option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  min-height: 44px;
  border: 1px solid #98a098;
  border-radius: 999px;
  background: var(--field);
  font-size: 0.98rem;
  cursor: pointer;
}
.option input { accent-color: var(--gaze); width: 18px; height: 18px; margin: 0; }
.option:has(input:checked) { border-color: var(--gaze); box-shadow: inset 0 0 0 1px var(--gaze); }
.option:has(input:focus-visible) { outline: 3px solid var(--gaze); outline-offset: 2px; }

.hint { font-size: 0.92rem; color: var(--graphite); }

.field > label.consent { font-weight: 400; }
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
}
.consent input { accent-color: var(--gaze); width: 20px; height: 20px; margin: 2px 0 0; flex: none; }

.error {
  color: var(--error);
  font-size: 0.92rem;
  font-weight: 600;
}
.error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--error) !important; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

.result {
  grid-column: 1 / -1;
  border-left: 3px solid var(--gaze);
  padding: 6px 0 6px 20px;
}
.result[hidden] { display: none; }
.result h3 { font-size: 1.25rem; }
.result p { margin-top: 8px; max-width: var(--measure); }
.result textarea { margin-top: 14px; min-height: 200px; font-size: 0.95rem; background: var(--field); }
.result .btn { margin-top: 14px; }

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

.site-footer {
  padding-block: 48px 56px;
  font-size: 0.95rem;
  color: var(--graphite);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
}
.site-footer .brand { font-size: 1.1rem; }
.site-footer p + p { margin-top: 4px; }
.site-footer a { color: var(--ink); }
.footer-line { margin-top: 10px; }

/* ---------- Privacy page ---------- */

.doc { padding-block: clamp(40px, 8vh, 96px) var(--space-section); }
.doc h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.doc .updated { margin-top: 14px; color: var(--graphite); font-size: 1rem; }
.doc-body { max-width: var(--measure); margin-top: 48px; }
.doc-body h2 { font-size: 1.4rem; margin-top: 40px; letter-spacing: -0.02em; }
.doc-body p, .doc-body ul { margin-top: 12px; }
.doc-body ul { padding-left: 1.2em; }
.doc-body li + li { margin-top: 6px; }
