/* Iridology Analysis Toolkit — iridology-software.com
   One stylesheet for both pages. Palette taken from the app's own UI:
   the near-black green ground and the amber accent of the splash screen. */

:root {
  --ground: #0A140A;
  --panel: #121F12;
  --panel-2: #1A2B1B;
  --line: #23361F;
  --line-soft: #1B2A1A;
  --amber: #C8963E;
  --amber-lt: #E8B86D;
  --moss: #7BAE55;
  --flat: #4FC3D9;
  --prot: #FF9800;
  --violet: #B48CD9;
  --text: #E3EADF;
  --dim: #9DAF98;
  --dimmer: #74856F;
  --sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

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

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

h1, h2, h3 { font-family: var(--cond); font-weight: 600; letter-spacing: -0.01em; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: #14210F; padding: 10px 16px; z-index: 50;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 17, 8, .93);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(8px);
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 28px; min-height: 62px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--cond); font-weight: 700; font-size: 20px;
  letter-spacing: 0.01em; color: var(--text); text-decoration: none;
}
.brand svg { display: block; flex: none; }
.mast-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.mast-nav a {
  font-family: var(--cond); font-weight: 600; font-size: 16px;
  color: var(--dim); text-decoration: none;
}
.mast-nav a:hover { color: var(--text); }
.mast-nav a.here { color: var(--amber); }
.mast-nav .get {
  border: 1px solid var(--amber); color: var(--amber);
  padding: 7px 15px; border-radius: 3px;
}
.mast-nav .get:hover { background: var(--amber); color: #14210F; }

/* ---------- hero ---------- */

.hero { padding: 66px 0 8px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: 56px; align-items: start;
}
.hero h1 { margin: 0 0 22px; font-size: clamp(36px, 5.6vw, 58px); line-height: 1.03; letter-spacing: -0.02em; }
.eyebrow {
  margin: 0 0 14px; font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber);
}
.lede { margin: 0 0 14px; font-size: 19.5px; color: var(--text); max-width: 46ch; }
.lede-2 { margin: 0 0 30px; color: var(--dim); max-width: 50ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 15px 26px; border-radius: 3px;
  border: 1px solid var(--amber); background: var(--amber); color: #14210F;
  font-family: var(--cond); font-weight: 700; font-size: 18px;
  text-decoration: none; transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--amber-lt); border-color: var(--amber-lt); color: #14210F; }
.btn .btn-sub { font-family: var(--mono); font-size: 12.5px; font-weight: 400; opacity: .72; }

.btn-quiet {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 20px; border-radius: 3px;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font-family: var(--cond); font-weight: 600; font-size: 17px;
  text-decoration: none; transition: border-color .15s ease, background-color .15s ease;
}
.btn-quiet:hover { border-color: var(--amber); background: var(--panel); color: var(--text); }

.privacy-line {
  margin: 26px 0 0; padding-left: 15px; border-left: 2px solid var(--line);
  font-size: 15.5px; color: var(--dim); max-width: 54ch;
}

.facts {
  margin-top: 44px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fact { padding: 16px 20px 15px; border-left: 1px solid var(--line-soft); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact dt { font-size: 12.5px; color: var(--dimmer); letter-spacing: 0.02em; margin-bottom: 4px; }
.fact dd { margin: 0; font-family: var(--mono); font-size: 14.5px; color: var(--text); line-height: 1.45; }

/* ---------- hero diagram ---------- */

figure.hero-fig { margin: 0; }
.iris { width: 100%; height: auto; display: block; }
.iris .iris-rim { fill: none; stroke: #3A4A33; stroke-width: 1.6; }
.iris .iris-fill { fill: rgba(18, 31, 18, .55); }
.iris .anw { fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-dasharray: 6 6; }
.iris .spoke { stroke: var(--line); stroke-width: 1; }
.iris .ref { fill: none; stroke: var(--amber-lt); stroke-width: 1.8; stroke-dasharray: 5 5; }
.iris .margin { fill: #0B140B; fill-opacity: .82; stroke: #C2CCBB; stroke-width: 1.8; }
.iris .arc-flat { fill: none; stroke: var(--flat); stroke-width: 4; stroke-linecap: round; }
.iris .arc-prot { fill: none; stroke: var(--prot); stroke-width: 4; stroke-linecap: round; }
.iris .rim-flat { fill: none; stroke: var(--flat); stroke-width: 5; stroke-linecap: butt; opacity: .85; }
.iris .rim-prot { fill: none; stroke: var(--prot); stroke-width: 5; stroke-linecap: butt; opacity: .85; }
.iris .tick { stroke: var(--dimmer); stroke-width: 1.2; }
.iris .tick-major { stroke: var(--dim); stroke-width: 1.8; }
.iris .zlabel { fill: var(--dim); font-family: var(--mono); font-size: 13px; }
.iris .hour { fill: var(--dim); font-family: var(--mono); font-size: 15px; text-anchor: middle; }
.iris .callout { font-family: var(--mono); font-size: 14px; }

/* Knock the ground colour out behind every label, so a spoke or a tick
   passing underneath does not run through the glyphs. */
.iris .zlabel text, .iris .hour, .iris .callout text {
  paint-order: stroke;
  stroke: var(--ground);
  stroke-width: 5px;
  stroke-linejoin: round;
}
.iris .callout-flat { fill: var(--flat); }
.iris .callout-prot { fill: var(--prot); }

.key { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.key li {
  position: relative; padding: 9px 0 9px 26px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px; line-height: 1.5; color: var(--dim);
}
.key li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 15px; height: 0; border-top: 3px solid var(--dimmer);
}
.key b { font-weight: 500; color: var(--text); margin-right: 5px; }
.key .k-ref::before { border-top: 2px dashed var(--amber-lt); }
.key .k-anw::before { border-top: 2px dashed var(--amber); }
.key .k-flat::before { border-top-color: var(--flat); }
.key .k-prot::before { border-top-color: var(--prot); }

figcaption { margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--dim); }
figcaption b { color: var(--text); font-weight: 500; }

/* one orchestrated reveal, and only this one */
@media (prefers-reduced-motion: no-preference) {
  @keyframes draw-on { to { stroke-dashoffset: 0; } }
  @keyframes fade-in { to { opacity: 1; } }
  @keyframes fade-soft { to { opacity: .9; } }
  @keyframes fill-in { to { fill-opacity: .8; } }

  .iris .ref { opacity: 0; animation: fade-soft .7s ease .15s forwards; }
  .iris .margin {
    fill-opacity: 0; stroke-dasharray: 900; stroke-dashoffset: 900;
    animation: draw-on 1.5s cubic-bezier(.33,.1,.25,1) .35s forwards,
               fill-in .9s ease .95s forwards;
  }
  .iris .arc-flat, .iris .arc-prot,
  .iris .rim-flat, .iris .rim-prot { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw-on .55s ease forwards; }
  .iris .arc-flat, .iris .rim-flat { animation-delay: 1.7s; }
  .iris .arc-prot, .iris .rim-prot { animation-delay: 1.95s; }
  .iris .callout { opacity: 0; animation: fade-in .6s ease 2.3s forwards; }
}

/* ---------- sections ---------- */

section { padding: 74px 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: 0; }
.sec-head { max-width: 64ch; margin-bottom: 40px; }
.sec-head .num {
  display: block; font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.08em; color: var(--amber); margin-bottom: 8px;
}
.sec-head h2 { margin: 0 0 12px; font-size: clamp(27px, 3.4vw, 36px); line-height: 1.12; }
.sec-head p { margin: 0 0 10px; color: var(--dim); font-size: 17.5px; }
.sec-head p:last-child { margin-bottom: 0; }

/* measurement list */
.measures { border-top: 1px solid var(--line); margin: 0; }
.measure {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 11rem);
  gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.measure dt { font-family: var(--cond); font-size: 21px; font-weight: 600; color: var(--amber-lt); }
.measure dd { margin: 0; color: var(--text); }
.measure .unit { font-family: var(--mono); font-size: 13px; color: var(--dim); text-align: right; line-height: 1.5; }

/* threshold tables — real values, so a real table */
.tbl-wrap { overflow-x: auto; margin: 0 0 8px; }
table.t {
  width: 100%; border-collapse: collapse; font-size: 15.5px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
table.t caption {
  text-align: left; font-family: var(--cond); font-size: 19px; font-weight: 600;
  color: var(--text); padding: 0 0 12px;
}
table.t th, table.t td { padding: 11px 16px 11px 0; text-align: left; vertical-align: top; }
table.t thead th {
  font-family: var(--mono); font-size: 12.5px; font-weight: 400;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--dimmer);
  border-bottom: 1px solid var(--line);
}
table.t tbody tr + tr td { border-top: 1px solid var(--line-soft); }
table.t td:first-child { font-family: var(--mono); font-size: 14px; color: var(--amber-lt); white-space: nowrap; }
table.t td.w { color: var(--dim); }
table.t td b { color: var(--text); font-weight: 500; }

.t-note { margin: 12px 0 0; font-size: 15px; color: var(--dim); max-width: 74ch; }

/* notes / cards */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-top: 44px; align-items: start; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 24px; margin-top: 40px; align-items: start; }
.note { padding: 26px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; }
.note h3 { margin: 0 0 12px; font-size: 20px; color: var(--text); }
.note p { margin: 0 0 12px; font-size: 16px; color: var(--dim); }
.note p:last-child { margin-bottom: 0; }
.note p b { color: var(--text); font-weight: 500; }
.note ul { margin: 0; padding-left: 20px; color: var(--dim); font-size: 16px; }
.note ul li { margin-bottom: 7px; }
.note-flag { border-left: 3px solid var(--amber); }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 36px 30px; }
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto; display: block;
  border-radius: 8px; border: 1px solid var(--line); background: var(--panel);
}
.shot figcaption { margin-top: 14px; font-size: 14.5px; }
.shot figcaption strong {
  display: block; font-family: var(--cond); font-size: 17px; font-weight: 600;
  color: var(--text); margin-bottom: 3px;
}

/* the split figure+text block used through the features page */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.split.flip > figure { order: 2; }
.split > figure { margin: 0; }
.split img {
  width: 100%; height: auto; display: block;
  border-radius: 8px; border: 1px solid var(--line); background: var(--panel);
}
.split .body > p { color: var(--dim); margin: 0 0 14px; }
.split .body > p b { color: var(--text); font-weight: 500; }
.split .body h3 { margin: 0 0 12px; font-size: 22px; }

/* numbered steps */
.steps { counter-reset: step; max-width: 76ch; }
.step {
  counter-increment: step; position: relative;
  padding: 0 0 32px 62px; border-left: 1px solid var(--line); margin-left: 17px;
}
.step:last-child { border-left-color: transparent; padding-bottom: 6px; }
.step::before {
  content: counter(step); position: absolute; left: -18px; top: -2px;
  width: 35px; height: 35px; border-radius: 50%;
  background: var(--ground); border: 1px solid var(--amber); color: var(--amber);
  font-family: var(--mono); font-size: 15px; display: grid; place-items: center;
}
.step h3 { margin: 4px 0 8px; font-size: 21px; }
.step p { margin: 0 0 10px; color: var(--dim); }
.step p:last-child { margin-bottom: 0; }
.step p b { color: var(--text); font-weight: 500; }

/* tiled grid of short entries */
.tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1px; background: var(--line-soft); border: 1px solid var(--line);
  border-radius: 3px; overflow: hidden;
}
.tile { background: var(--ground); padding: 22px 24px; }
.tile h3 { margin: 0 0 6px; font-size: 18px; color: var(--amber-lt); }
.tile p { margin: 0; font-size: 15.5px; color: var(--dim); }

/* chip rows */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.chips li {
  font-family: var(--mono); font-size: 13.5px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--dim); border-radius: 999px; padding: 5px 14px;
}
.chips li b { color: var(--amber-lt); font-weight: 400; }

/* jump nav on the features page */
.jump { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin-top: 40px; }
.jump ul { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0; padding: 0; list-style: none; }
.jump a {
  display: inline-block; font-family: var(--cond); font-weight: 600; font-size: 15px;
  color: var(--dim); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 15px;
}
.jump a:hover { color: var(--text); border-color: var(--amber); }

/* limits */
.limits { max-width: 76ch; }
.limit { padding: 24px 0; border-top: 1px solid var(--line-soft); }
.limit:first-child { border-top: 1px solid var(--line); }
.limit h3 { margin: 0 0 9px; font-size: 20px; color: var(--text); }
.limit p { margin: 0 0 10px; color: var(--dim); }
.limit p:last-child { margin-bottom: 0; }
.limit p b { color: var(--text); font-weight: 500; }

/* closing call to action */
.closer { text-align: center; }
.closer h2 { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 34px); }
.closer p { margin: 0 auto 26px; color: var(--dim); max-width: 56ch; }
.closer .cta-row { justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--dimmer); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer nav a { color: var(--dim); text-decoration: none; }
footer nav a:hover { color: var(--text); text-decoration: underline; }
footer .fine { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  figure.hero-fig { max-width: 460px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .split.flip > figure { order: 0; }
  .measure { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .measure .unit { text-align: left; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  .hero { padding-top: 44px; }
  section { padding: 56px 0; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); }
  .fact:first-child { border-top: 0; }
  .btn, .btn-quiet { width: 100%; justify-content: center; }
  .step { padding-left: 46px; }
  .masthead .wrap { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .mast-nav { gap: 16px; }
}
