/* InitialEyes — design tokens
   ink/paper/iris/signal. Instrument panel, not landing page. */
html { background: #FFFFFF; color-scheme: light only; }
:root {
  color-scheme: light only;
  --ink: #0B1520;
  --ink-2: #16242F;
  --paper: #FFFFFF;
  --paper-2: #FFFFFF;
  --iris: #0C8794;
  --iris-deep: #093B40;
  --signal: #C8871B;
  --muted: #3D4A53;
  --rule: #D9E0DF;
  --gap: #B03A2E;

  --display: "Archivo", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --measure: 62ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: var(--iris-deep); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 720px; }

/* --- eyebrow: a real label, not decoration --- */
.eyebrow {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--iris-deep);
  margin: 0 0 1rem;
}

/* --- header --- */
header {
  border-bottom: 1px solid var(--rule);
  background: #FFFFFF;
  position: sticky; top: 0; z-index: 10;
}
.bar { display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--pad); max-width: 1080px; margin: 0 auto; }
.logo { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: .25rem; line-height: 1; }
.logo .logo-eye { width: 72px; height: auto; flex: none; }
.logo b { color: var(--iris-deep); font-weight: 700; }
nav a { font-size: .92rem; color: var(--ink-2); text-decoration: none; margin-left: 1.5rem; }
nav a:hover { color: var(--iris-deep); }

/* --- hero --- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 3rem; background: #FFFFFF; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); }
.hero h1 span { color: #0A6570; }

/* --- the aperture: the signature element --- */
.aperture { background: #F7FAF9; border: 1px solid var(--rule); border-radius: 4px; padding: 1.25rem; color: var(--ink); box-shadow: 0 1px 4px rgba(11,21,32,.08); }
.aperture-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .9rem; }
.aperture-head .count { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.aperture-head .count em { font-style: normal; color: var(--signal); }
.aperture-head .label { font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; }
.dots { display: grid; grid-template-columns: repeat(25, 1fr); gap: 3px; margin-bottom: 1rem; }
.dot { aspect-ratio: 1; border-radius: 1px; background: var(--signal); transition: background .35s ease, opacity .35s ease; }
.dot.out { background: #DFE7E6; opacity: 1; }
.toggles { border-top: 1px solid var(--rule); padding-top: .9rem; }
.toggles .t-label { font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  font-family: var(--body); font-size: .82rem;
  background: var(--paper); color: var(--ink-2);
  border: 1px solid #B9C6C4; border-radius: 2px;
  padding: .3rem .6rem; cursor: pointer;
  transition: all .18s ease;
}
.chip:hover { border-color: var(--iris); color: var(--iris-deep); }
.chip[aria-pressed="true"] { background: var(--iris); border-color: var(--iris); color: #fff; }
.chip:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.aperture-note { font-size: .8rem; color: var(--muted); margin: .9rem 0 0; max-width: none; }

/* --- buttons --- */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 600; font-size: 1rem;
  background: var(--iris); color: #fff; text-decoration: none;
  padding: .7rem 1.3rem; border: 1px solid var(--iris); border-radius: 2px; cursor: pointer;
  transition: background .18s ease;
}
.btn:hover { background: var(--iris-deep); border-color: var(--iris-deep); }
.btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.btn.ghost { background: #FFFFFF; color: var(--ink); border-color: #9DB0AE; }
.btn.ghost:hover { border-color: var(--iris); color: var(--iris-deep); background: transparent; }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* --- sections --- */
section { padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--rule); background: #FFFFFF; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.step .n { font-family: var(--mono); font-size: .78rem; color: var(--signal); letter-spacing: .1em; margin-bottom: .5rem; }
.step h3 { margin-bottom: .35rem; }
.step p { font-size: .95rem; color: var(--ink-2); margin: 0; }

.panel { background: #F7FAF9; border: 1px solid var(--rule); border-radius: 3px; padding: clamp(1.25rem, 3vw, 2rem); }

.deliver { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.75rem; }
.deliver li { list-style: none; padding: .9rem 1rem; background: var(--paper-2); border: 1px solid var(--rule); border-left: 3px solid var(--iris); border-radius: 2px; font-size: .95rem; }
.deliver .ref { font-family: var(--mono); font-size: .78rem; color: var(--muted); display: block; margin-bottom: .15rem; }

/* --- forms --- */
.q { border-bottom: 1px solid var(--rule); padding: 1.4rem 0; }
.q:last-of-type { border-bottom: 0; }
.q legend, .q .qtext { font-family: var(--display); font-weight: 600; font-size: 1.05rem; display: block; margin-bottom: .3rem; }
.q .help { font-size: .88rem; color: var(--muted); margin: 0 0 .7rem; max-width: var(--measure); }
fieldset { border: 0; padding: 0; margin: 0; }
.opts { display: flex; gap: .5rem; flex-wrap: wrap; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.opt span {
  display: inline-block; padding: .45rem .9rem; border: 1px solid var(--rule);
  border-radius: 2px; background: var(--paper-2); font-size: .95rem; cursor: pointer;
}
.opt input:checked + span { background: var(--iris); border-color: var(--iris); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }

label.field { display: block; margin-bottom: 1rem; }
label.field span { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .3rem; }
input[type="text"], input[type="email"], input[type="file"], select, textarea {
  width: 100%; padding: .6rem .7rem; font-family: var(--body); font-size: 1rem;
  border: 1px solid var(--rule); border-radius: 2px; background: var(--paper-2); color: var(--ink);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--iris); outline-offset: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* --- result --- */
.result-num { font-family: var(--display); font-size: clamp(3rem, 9vw, 5rem); font-weight: 700; line-height: 1; color: var(--iris-deep); }
.result-num em { font-style: normal; color: var(--muted); font-size: .4em; }
.reason { border-left: 3px solid var(--rule); padding: .6rem 0 .6rem 1rem; margin-bottom: 1rem; }
.reason .ids { font-family: var(--mono); font-size: .78rem; color: var(--muted); word-spacing: .2em; }
.note { background: #FDF6E7; border: 1px solid #EBD9AE; border-left: 3px solid var(--signal); padding: 1rem; border-radius: 2px; font-size: .93rem; }
.note p:last-child { margin-bottom: 0; }

/* --- footer --- */
footer { background: #FFFFFF; border-top: 1px solid var(--rule); padding: 2.5rem 0; font-size: .88rem; color: var(--muted); }
footer p { max-width: var(--measure); }

@media (max-width: 860px) {
  .hero-grid, .steps, .deliver, .grid-2 { grid-template-columns: 1fr; }
  .dots { grid-template-columns: repeat(20, 1fr); }
  nav a { margin-left: 1rem; font-size: .85rem; }
}
