/* ==========================================================================
   Intellyra — blueprint studio stylesheet
   Palette is colourblind-safe (blue/amber, no red-vs-green) and high
   contrast (ink on paper ≈ 13:1). No pure black anywhere.
   ========================================================================== */

:root {
  --paper: #f2f6fa;
  --paper-raised: #ffffff;
  --ink: #16283d;
  --ink-soft: #46586d;
  --line: #c6d4e3;
  --line-faint: #dde7f0;
  --blue: #1d5c99;
  --blue-deep: #14456f;
  --amber-text: #7a4e06;
  --amber-mark: #e09e33;

  --font-display: "Futura", "Avenir Next", "Century Gothic", "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, "Cascadia Code", "Consolas", monospace;

  --measure: 62ch;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

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

/* Faint blueprint grid on the page background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-faint) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

main, header.site-header, footer.site-footer { position: relative; z-index: 1; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark svg { display: block; }

.site-nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav a:hover { color: var(--blue-deep); text-decoration: underline; }

.nav-cta {
  border: 1.5px solid var(--blue);
  border-radius: var(--radius);
  padding: 0.35rem 0.85rem;
  color: var(--blue) !important;
}
.nav-cta:hover { background: var(--blue); color: var(--paper-raised) !important; text-decoration: none !important; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: 4.5rem 0 3rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-text);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--amber-mark);
  border: 1.5px solid var(--amber-text);
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.hero-sub {
  margin-top: 1.4rem;
  max-width: var(--measure);
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero-actions { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid var(--blue-deep);
}
.btn-solid { background: var(--blue-deep); color: var(--paper-raised); }
.btn-solid:hover { background: var(--blue); border-color: var(--blue); color: var(--paper-raised); }
.btn-ghost { color: var(--blue-deep); background: transparent; }
.btn-ghost:hover { background: var(--paper-raised); }

/* --------------------------------------------------------------------------
   Schematic (signature element)
   -------------------------------------------------------------------------- */
.schematic-frame {
  margin: 3.5rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  padding: 1.25rem;
  overflow-x: auto;
}

.schematic-frame figcaption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  border-top: 1px dashed var(--line);
  margin-top: 0.9rem;
  padding-top: 0.7rem;
}

.schematic-svg { display: block; min-width: 720px; width: 100%; height: auto; }

.schematic-svg .box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.schematic-svg .box-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  fill: var(--ink);
  letter-spacing: 0.04em;
}
.schematic-svg .anno {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--ink-soft);
}
.schematic-svg .flow { stroke: var(--blue); stroke-width: 1.5; fill: none; }
.schematic-svg .flow-dash { stroke-dasharray: 5 4; }
.schematic-svg .port { fill: var(--amber-mark); stroke: var(--amber-text); stroke-width: 1.2; }
.schematic-svg .arrowhead { fill: var(--blue); }

/* Self-drawing animation on load */
@media (prefers-reduced-motion: no-preference) {
  .schematic-svg .draw {
    stroke-dashoffset: 600;
    stroke-dasharray: 600;
    animation: draw-line 1.6s ease-out forwards;
  }
  .schematic-svg .draw.d2 { animation-delay: 0.5s; }
  .schematic-svg .draw.d3 { animation-delay: 1s; }
  .schematic-svg .fade-in { opacity: 0; animation: fade-in 0.7s ease-out forwards; }
  .schematic-svg .fade-in.d1 { animation-delay: 0.3s; }
  .schematic-svg .fade-in.d2 { animation-delay: 0.8s; }
  .schematic-svg .fade-in.d3 { animation-delay: 1.3s; }
  .schematic-svg .fade-in.d4 { animation-delay: 1.8s; }
}

@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 4rem 0; border-top: 1px solid var(--line); }

.section-head { margin-bottom: 2.4rem; }

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.section-head p { margin-top: 0.8rem; max-width: var(--measure); color: var(--ink-soft); }

/* Service modules, drawn like labelled blueprint blocks */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.module {
  position: relative;
  background: var(--paper-raised);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.module::before {
  content: "";
  position: absolute;
  top: -0.4rem;
  left: 1.2rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--amber-mark);
  border: 1.5px solid var(--amber-text);
}
.module:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(22, 40, 61, 0.12); }

.module h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.module p { font-size: 0.97rem; color: var(--ink-soft); }
.module .module-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--amber-text);
  display: block;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

/* Process — a genuine sequence, rendered as a pipeline */
.process { list-style: none; counter-reset: step; display: grid; gap: 0; }

.process li {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 0 1.4rem 4.2rem;
  border-left: 1.5px solid var(--blue);
  margin-left: 1.4rem;
}
.process li::before {
  content: "0" counter(step);
  position: absolute;
  left: -1.45rem;
  top: 1.35rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 1.5px solid var(--blue-deep);
  color: var(--blue-deep);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process li:last-child { border-left-color: transparent; }

.process h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.process p { color: var(--ink-soft); max-width: var(--measure); margin-top: 0.3rem; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.principles h3 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.5rem;
}
.principles p { color: var(--ink-soft); font-size: 0.99rem; }

/* Contact */
.contact-panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 3rem 2.2rem;
}
.contact-panel h2 { color: var(--paper-raised); }
.contact-panel p { color: #b9c8d9; max-width: var(--measure); margin-top: 0.8rem; }
.contact-panel .btn-solid {
  background: var(--amber-mark);
  border-color: var(--amber-mark);
  color: var(--ink);
  font-weight: 600;
  margin-top: 1.8rem;
}
.contact-panel .btn-solid:hover { background: #f0b35a; border-color: #f0b35a; color: var(--ink); }
.contact-panel a.plain { color: #a8cdf0; }

/* --------------------------------------------------------------------------
   Legal document pages
   -------------------------------------------------------------------------- */
.doc { padding: 3.5rem 0 4.5rem; }

.doc-header { margin-bottom: 2.8rem; border-bottom: 1px solid var(--line); padding-bottom: 1.8rem; }
.doc-header .eyebrow { margin-bottom: 0.9rem; }
.doc-header .updated {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
  display: block;
}

.doc article { max-width: 74ch; }

.doc h2 {
  font-size: 1.35rem;
  margin: 2.6rem 0 0.8rem;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.doc h2 .num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--amber-text);
  letter-spacing: 0.05em;
}
.doc p { margin: 0.8rem 0; color: var(--ink); }
.doc ul { margin: 0.8rem 0 0.8rem 1.4rem; }
.doc li { margin: 0.45rem 0; }
.doc .lede { font-size: 1.1rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.4rem 0 3rem; }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--blue-deep); }

/* Contact panel inside .doc pages — re-assert light-on-dark text, since the
   later .doc h2/p rules otherwise win the cascade at equal specificity. */
.doc .contact-panel { margin-top: 3rem; }
.doc .contact-panel h2 { margin: 0 0 0.8rem; color: var(--paper-raised); }
.doc .contact-panel p { color: #b9c8d9; }

/* --------------------------------------------------------------------------
   Chat demo (signature element, product hero)
   -------------------------------------------------------------------------- */
.chat-frame {
  margin: 3.2rem 0 0;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-raised);
  max-width: 720px;
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  background: var(--paper);
}
.chat-head::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--amber-mark);
  border: 1.5px solid var(--amber-text);
}

.chat-body { padding: 1.3rem; display: grid; gap: 1rem; }

.msg { max-width: 85%; padding: 0.85rem 1.05rem; border-radius: 10px; font-size: 0.98rem; }
.msg.user {
  justify-self: end;
  background: var(--blue-deep);
  color: var(--paper-raised);
  border-bottom-right-radius: 3px;
}
.msg.bot {
  justify-self: start;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 3px;
}
.msg.bot p { margin: 0 0 0.5rem; }
.msg.bot p:last-of-type { margin-bottom: 0; }

.cites { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.75rem; }
.cite-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--amber-text);
  background: var(--paper-raised);
  border: 1px solid var(--amber-mark);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
}
.cite-chip::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--amber-mark);
  flex-shrink: 0;
}

.typing-dots { display: inline-flex; gap: 0.3rem; padding: 0.2rem 0; }
.typing-dots span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ink-soft);
  opacity: 0.4;
}

@media (prefers-reduced-motion: no-preference) {
  .chat-body .msg { opacity: 0; transform: translateY(8px); animation: msg-in 0.5s ease-out forwards; }
  .chat-body .msg:nth-child(1) { animation-delay: 0.3s; }
  .chat-body .msg:nth-child(2) { animation-delay: 1.1s; }
  .chat-body .msg:nth-child(3) { animation-delay: 2.2s; }
  .chat-body .msg:nth-child(4) { animation-delay: 3s; }
  .typing-dots span { animation: dot-pulse 1.2s infinite ease-in-out; }
  .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
  .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
}
@keyframes msg-in { to { opacity: 1; transform: translateY(0); } }
@keyframes dot-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) { .chat-body .msg { opacity: 1; } }

/* --------------------------------------------------------------------------
   Landing v2 — centered hero + app-window mockup
   -------------------------------------------------------------------------- */
.hero-center { text-align: center; }
.hero-center h1 { margin: 0 auto; max-width: 16ch; text-wrap: balance; }
.hero-center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-center .hero-actions { justify-content: center; }
.hero-center .eyebrow { justify-content: center; }

.trust-line {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.trust-line span + span::before { content: "·"; margin: 0 0.6rem; color: var(--amber-mark); }

/* Soft glow pedestal behind the mockup */
.app-stage {
  position: relative;
  margin-top: 3.2rem;
  padding: 0 0 1rem;
}
.app-stage::before {
  content: "";
  position: absolute;
  inset: 8% 6% 0;
  background:
    radial-gradient(60% 55% at 35% 40%, rgba(29, 92, 153, 0.16), transparent 70%),
    radial-gradient(45% 45% at 75% 60%, rgba(224, 158, 51, 0.14), transparent 70%);
  filter: blur(6px);
  z-index: 0;
}

.browser-frame {
  position: relative;
  z-index: 1;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--paper-raised);
  box-shadow: 0 24px 60px -24px rgba(22, 40, 61, 0.35);
  overflow: hidden;
  text-align: left;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.b-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line); }
.b-dot.amber { background: var(--amber-mark); }
.b-url {
  margin-left: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.9rem;
}

.app-ui {
  display: grid;
  grid-template-columns: 200px minmax(0, 1.2fr) minmax(0, 1fr);
  min-height: 380px;
}

.app-side {
  border-right: 1px solid var(--line);
  background: var(--paper);
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.side-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--amber-text);
  margin-bottom: 0.5rem;
}
.side-item {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 0.42rem 0.6rem;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-item.active {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}
.side-add {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue-deep);
  padding: 0.42rem 0.6rem;
  border: 1.5px dashed var(--blue);
  border-radius: 5px;
  text-align: center;
}

.app-doc { padding: 1.2rem; border-right: 1px solid var(--line); }
.doc-page {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(22, 40, 61, 0.08);
  padding: 1.1rem 1.2rem;
  height: 100%;
}
.doc-head {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.5rem;
  margin-bottom: 0.9rem;
}
.doc-line {
  height: 0.55rem;
  border-radius: 3px;
  background: var(--line-faint);
  margin: 0.55rem 0;
}
.doc-line.w95 { width: 95%; } .doc-line.w90 { width: 90%; }
.doc-line.w80 { width: 80%; } .doc-line.w60 { width: 60%; }
.doc-highlight {
  background: rgba(224, 158, 51, 0.18);
  border-left: 3px solid var(--amber-mark);
  border-radius: 3px;
  padding: 0.6rem 0.8rem;
  margin: 0.8rem 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink);
}

.app-chat { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.2rem; background: var(--paper); }
.app-chat .msg { font-size: 0.82rem; padding: 0.65rem 0.85rem; max-width: 92%; }
.app-chat .cites { margin-top: 0.55rem; }
.cite-chip.active { background: var(--amber-mark); color: var(--ink); font-weight: 600; }
.cite-chip.active::before { background: var(--ink); }
.chat-input {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--paper-raised);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
}

.mockup-caption {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  text-align: center;
}
.mockup-caption .cap-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--amber-mark);
  border: 1px solid var(--amber-text);
  margin-right: 0.4rem;
  vertical-align: baseline;
}

/* Exam coverage row */
.exam-row {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.exam-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
}

/* Three steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.step {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.step .step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1.5px solid var(--amber-mark);
  margin-bottom: 0.9rem;
}
.step h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4rem; }
.step p { font-size: 0.95rem; color: var(--ink-soft); }

/* Alternating feature rows */
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: center;
  padding: 2.6rem 0;
}
.feature-row + .feature-row { border-top: 1px dashed var(--line); }
.feature-copy h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin-bottom: 0.7rem; }
.feature-copy p { color: var(--ink-soft); max-width: 48ch; }
.feature-copy .module-id { display: block; margin-bottom: 0.8rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--amber-text); text-transform: uppercase; }

.feature-visual {
  background: var(--paper-raised);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: relative;
}
.feature-visual::before {
  content: "";
  position: absolute;
  top: -0.4rem;
  left: 1.2rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--amber-mark);
  border: 1.5px solid var(--amber-text);
}
@media (min-width: 720px) {
  .feature-row.flip .feature-visual { order: -1; }
}

.mini-passage {
  background: rgba(224, 158, 51, 0.14);
  border-left: 3px solid var(--amber-mark);
  border-radius: 3px;
  padding: 0.7rem 0.9rem;
  font-size: 0.86rem;
  color: var(--ink);
  margin-top: 0.8rem;
}
.mini-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  color: var(--ink-soft);
  background: var(--paper);
}
.pill.on { border-color: var(--blue-deep); color: var(--blue-deep); font-weight: 600; }
.pill.amber { border-color: var(--amber-mark); color: var(--amber-text); }

/* Comparison table */
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper-raised);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 560px;
}
.compare th, .compare td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}
.compare thead th.us { color: var(--blue-deep); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td.dim { color: var(--ink-soft); }
.compare td.us { color: var(--ink); font-weight: 500; background: rgba(29, 92, 153, 0.05); }
.compare .row-label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.05em; color: var(--amber-text); }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.price-card {
  background: var(--paper-raised);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--ink); position: relative; }
.price-card.featured::before {
  content: "MOST ASPIRANTS PICK THIS";
  position: absolute;
  top: -0.75rem;
  left: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  background: var(--amber-mark);
  color: var(--ink);
  border: 1px solid var(--amber-text);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}

.price-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.price-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin: 0.7rem 0 0.2rem; }
.price-amount .per { font-size: 0.95rem; font-weight: 400; color: var(--ink-soft); font-family: var(--font-mono); }
.price-note { font-family: var(--font-mono); font-size: 0.75rem; color: var(--amber-text); margin-bottom: 1rem; }

.price-card ul { list-style: none; margin: 0 0 1.5rem; display: grid; gap: 0.55rem; flex-grow: 1; }
.price-card li { font-size: 0.94rem; color: var(--ink-soft); padding-left: 1.3rem; position: relative; }
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--blue);
}

.pricing-fineprint {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 2fr);
  gap: 3rem;
  align-items: start;
}

.field { display: grid; gap: 0.4rem; margin-bottom: 1.3rem; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field label .req { color: var(--amber-text); }

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1.5px solid var(--ink-soft);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue-deep);
}

.form-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--amber-mark);
  padding-left: 0.9rem;
  margin: 1.4rem 0;
}

button.btn { cursor: pointer; font-family: var(--font-mono); }

.contact-aside {
  background: var(--paper-raised);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  position: relative;
}
.contact-aside::before {
  content: "";
  position: absolute;
  top: -0.4rem;
  left: 1.2rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--amber-mark);
  border: 1.5px solid var(--amber-text);
}
.contact-aside h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.contact-aside dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-text);
  margin-top: 1.1rem;
}
.contact-aside dd { margin: 0.25rem 0 0; color: var(--ink); }

/* --------------------------------------------------------------------------
   Help / FAQ page
   -------------------------------------------------------------------------- */
.faq-group { margin-bottom: 2.6rem; }
.faq-group > h2 { font-size: 1.3rem; margin-bottom: 1.1rem; }

.faq details {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 0.95rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--blue-deep);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px dashed var(--line); }
.faq summary:hover { color: var(--blue-deep); }
.faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }

.faq .faq-body { padding: 0.9rem 1.1rem 1.1rem; color: var(--ink-soft); }
.faq .faq-body p { margin: 0 0 0.6rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Responsive & motion
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .app-ui { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .app-side { display: none; }
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .app-ui { grid-template-columns: 1fr; }
  .app-doc { border-right: none; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .hero { padding-top: 3rem; }
  .site-nav { gap: 1rem; }
  .contact-panel { padding: 2.2rem 1.4rem; }
  .process li { padding-left: 3.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .module:hover { transform: none; }
}
