/* EvaLumina's website. Colours come from the app's Style.swift:
   the night the mark sits on frames every page, as the charcoal sidebar
   frames the app; the page itself follows the system's light or dark. */

:root {
  --night: #152238;
  --night-deep: #0b1322;
  --night-text: rgba(255, 255, 255, 0.78);
  --night-rule: rgba(255, 255, 255, 0.12);
  --lit: #9fd4ff;
  --amber: #efa636;

  --ground: #ffffff;
  --ground-alt: #f5f6f8;
  --card: #ffffff;
  --text: #1d2330;
  --muted: #5b6475;
  --rule: #e2e5ea;
  --brand: #1565c0;
  --eva: #4a8fd0;
  --lumina: #0d2440;

  --radius: 16px;
  --wrap: 68rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1f1f1f;
    --ground-alt: #262626;
    --card: #2f2f2f;
    --text: #ececec;
    --muted: #b0b0b0;
    --rule: #3d3d3d;
    --brand: #4fc3f7;
    --eva: #9fd4ff;
    --lumina: #ffffff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 20px;
}

.narrow { max-width: 46rem; }

/* ---------- The night: header and hero ---------- */

.night {
  position: relative;
  color: var(--night-text);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='1.5'%3E%3Ccircle cx='22' cy='22' r='12'/%3E%3Ccircle cx='66' cy='22' r='12'/%3E%3Ccircle cx='110' cy='22' r='12'/%3E%3Ccircle cx='22' cy='66' r='12'/%3E%3Ccircle cx='110' cy='66' r='12'/%3E%3Ccircle cx='22' cy='110' r='12'/%3E%3Ccircle cx='66' cy='110' r='12'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.06'%3E%3Ccircle cx='66' cy='66' r='12'/%3E%3Ccircle cx='110' cy='110' r='12'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 20% 0%, #24406a 0%, transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-block: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.brand img { width: 34px; height: 34px; }

.wordmark {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.night .wordmark .eva { color: var(--lit); }
.night .wordmark .lumina { color: #ffffff; }

.site-nav {
  display: flex;
  gap: 4px 22px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--night-text);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: #ffffff; }

.languages {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--night-rule);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.languages a {
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--night-text);
  text-decoration: none;
}

.languages a[aria-current="true"] {
  background: #1c2e4a;
  color: var(--lit);
}

@media (max-width: 640px) {
  .site-nav { order: 3; width: 100%; justify-content: flex-start; }
}

.hero {
  text-align: center;
  padding: 56px 0 clamp(48px, 8vw, 88px);
}

.eyebrow {
  margin: 0 0 14px;
  text-wrap: balance;
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1,
.page-head h1 {
  margin: 0 auto;
  color: var(--lit);
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

.hero .lede {
  max-width: 38rem;
  margin: 22px auto 30px;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  text-wrap: pretty;
}

.store-badge { display: inline-block; }
.store-badge img { height: 52px; width: auto; }

.availability {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero-shot {
  position: relative;
  margin: 48px auto 0;
  max-width: 60rem;
  z-index: 1;
}

.hero-shot img,
.shot img {
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(4, 10, 22, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.08);
}


.page-head { padding: 44px 0 52px; }
.page-head h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); text-align: left; }
.page-head .lede { max-width: 40rem; margin: 14px 0 0; font-size: 1.1rem; text-wrap: pretty; }

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

.section { padding: 72px 0; }
.section.alt { background: var(--ground-alt); }
@media (max-width: 640px) { .section { padding: 52px 0; } }

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section .sub { margin: 0 0 36px; color: var(--muted); max-width: 40rem; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* Steps, numbered in answer-sheet bubbles. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.bubble {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.steps li:first-child .bubble { background: var(--text); color: var(--ground); }

.steps h3, .facts h3 { margin: 0 0 6px; font-size: 1.15rem; }
.steps p, .facts p { margin: 0; color: var(--muted); }

.more {
  display: inline-block;
  margin-top: 40px;
  font-weight: 600;
  text-decoration: none;
}
.more:hover { text-decoration: underline; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 16px;
}

.facts > div {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
}

.facts a { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.facts a:hover { text-decoration: underline; }

/* Platforms */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 16px;
  text-align: left;
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: var(--card);
}

.platform h3 { margin: 0; font-size: 1.1rem; }
.platform p { margin: 4px 0 14px; color: var(--muted); font-size: 0.92rem; }
.platform .status { margin-top: auto; }

.status {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ground-alt);
  color: var(--muted);
  border: 1px solid var(--rule);
}

.status.live {
  background: #1c2e4a;
  color: var(--lit);
  border-color: #1c2e4a;
  text-decoration: none;
}

/* Features: text beside a screenshot, alternating sides. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}

.feature:first-child { border-top: 0; padding-top: 16px; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature:nth-child(even) .copy { order: 2; }

.feature .stage {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }

.feature .copy ul { margin: 14px 0 0; padding: 0; list-style: none; }
.feature .copy li { position: relative; padding-left: 26px; margin: 10px 0; color: var(--muted); }
.feature .copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  box-shadow: inset 0 0 0 2px var(--ground), inset 0 0 0 6px var(--brand);
}

.pro-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--amber);
  color: #1d2330;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

@media (max-width: 820px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-child(even) .copy { order: 0; }
}

.callout {
  border-radius: var(--radius);
  padding: 32px;
}

.callout h2 { color: var(--lit); font-size: 1.5rem; }
.callout p { margin: 0; max-width: 42rem; }

.quote {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.quote footer { margin-top: 16px; font-size: 0.95rem; color: var(--muted); }
.quote cite { font-style: normal; font-weight: 600; color: var(--text); }

/* Free and Pro */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 20px;
  align-items: start;
}

.plan {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--card);
}

.plan.featured { border: 2px solid var(--amber); }
.plan h2 { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.plan.featured h2 { color: var(--amber); }
.plan .price { margin: 0 0 18px; color: var(--muted); }
.plan .price strong { color: var(--text); font-size: 1.6rem; margin-right: 6px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { position: relative; margin: 9px 0; padding-left: 26px; }
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  box-shadow: inset 0 0 0 2px var(--card), inset 0 0 0 6px var(--brand);
}
.plan.featured li::before { border-color: var(--amber); box-shadow: inset 0 0 0 2px var(--card), inset 0 0 0 6px var(--amber); }
.plan .note { margin: 20px 0 0; font-size: 0.92rem; color: var(--muted); }
.plan .store-badge { margin-top: 20px; }
.plan .store-badge img { height: 44px; }

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Documents: privacy policy and support ---------- */

.doc { padding-block: 40px 64px; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.4rem); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 6px; text-wrap: balance; }
.doc .lede { color: var(--muted); margin: 0 0 28px; }

.doc .summary {
  background: #1c2e4a;
  color: #ffffff;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.doc .summary strong { color: var(--lit); }
.doc .summary a { color: var(--lit); }
.doc .summary p { margin: 0; }
.doc .summary p + p { margin-top: 8px; }

.doc section {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 8px 24px 16px;
  margin-bottom: 16px;
}

.doc h2 { font-size: 1.15rem; margin: 16px 0 6px; text-wrap: balance; }
.doc h3 { font-size: 1rem; margin: 18px 0 2px; }
.doc section p, .doc section li { margin: 6px 0; }
.doc section ul { padding-left: 1.2rem; margin: 6px 0; }

body.doc-page { background: var(--ground-alt); }
@media (prefers-color-scheme: dark) { body.doc-page { background: var(--ground); } }

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

.site-footer {
  padding: 40px 0 48px;
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 32px;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { color: #ffffff; }
.site-footer p { margin: 0; }

/* ---------- The three pillars on the home page ---------- */

.pillar .visual { min-width: 0; }

/* Three answer sheets, one per form: the row where the same bank question
   landed is outlined in amber. */
.forms-figure { margin: 0; }

.sheets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 18px);
}

.sheet {
  background: #ffffff;
  color: #1d2330;
  border-radius: 10px;
  padding: 14px clamp(8px, 1.6vw, 16px) 16px;
  box-shadow: 0 18px 40px -18px rgba(4, 10, 22, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.sheet p {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  background: #1d2330;
  color: #ffffff;
  border-radius: 3px;
  padding: 2px 0;
}

.sheet ol { list-style: none; margin: 0; padding: 0; }

.sheet li {
  display: grid;
  grid-template-columns: 1.2em repeat(5, 1fr);
  align-items: center;
  justify-items: center;
  gap: 2px;
  padding: 4px 3px;
  border-radius: 999px;
  border: 2px solid transparent;
}

.sheet li b { font-size: 0.7rem; justify-self: start; color: #5b6475; }
.sheet li.same { border-color: var(--amber); background: rgba(239, 166, 54, 0.12); }

.sheet i {
  width: clamp(9px, 1.5vw, 14px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid #9aa2b1;
}

.sheet i.on { background: #1d2330; border-color: #1d2330; }

.figure-caption {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* The psychometric cycle */
.loop { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; overflow: visible; }
.loop .track { fill: none; stroke: var(--muted); stroke-opacity: 0.45; stroke-width: 1.6; stroke-dasharray: 5 6; }
.loop .arrow { fill: var(--brand); stroke: var(--brand); stroke-width: 1.5; stroke-linejoin: round; }
.loop .node { fill: var(--card); stroke: var(--rule); stroke-width: 1.5; }
.loop .node.bank { stroke: var(--amber); stroke-width: 2; }
.loop text { fill: var(--text); font: 600 14.5px var(--font); }

.pro-note { margin: 16px 0 0; font-size: 0.9rem; color: var(--muted); }
.pro-note .pro-tag { margin: 0 6px 0 0; }

/* ---------- The author ---------- */

.author-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  max-width: 50rem;
  margin: 0 auto;
}

.author-card img,
.author-head img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--ground), 0 0 0 6px var(--amber);
}

.author-card h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.author-card p { margin: 8px 0 12px; color: var(--muted); }
.author-card a, .author-head a { font-weight: 600; text-decoration: none; }
.author-card a:hover, .author-head a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .author-card { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 20px; }
}

.author-head { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.author-head img { width: 120px; height: 120px; }
.author-head h2 { margin: 0; font-size: 1.6rem; }
.author-head .role { margin: 2px 0 6px; color: var(--muted); }

.bio { margin: 0 0 32px; color: var(--muted); }
.story-title { margin-top: 40px !important; font-size: 1.4rem !important; }
.story { margin: 12px 0; }
.quote { border-left: 3px solid var(--amber); padding-left: 20px; }

/* On a phone the cycle is a short run of chips that wraps, ending back at
   the bank: the circle's labels would be too small to read. */
.loop-list { display: none; }

@media (max-width: 640px) {
  .loop { display: none; }
  .loop-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .loop-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
  }
  .loop-list li::after { content: "→"; color: var(--brand); font-weight: 700; }
  .loop-list li.again::after, .loop-list li:nth-last-child(2)::after { content: none; }
  .loop-list li span, .loop-list li { white-space: nowrap; }
  .loop-list .chip {
    padding: 7px 14px;
    border: 1.5px solid var(--rule);
    border-radius: 999px;
    background: var(--card);
  }
  .loop-list li:first-child .chip, .loop-list li.again .chip { border-color: var(--amber); }
  .loop-list li.again::before { content: "↺"; color: var(--brand); font-weight: 700; }
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.plan .store-badges,
.author-head ~ div .store-badges { justify-content: flex-start; }

/* ---------- The guide ---------- */

.guide-steps { list-style: none; margin: 0 0 48px; padding: 0; }

.guide-steps > li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 36px;
}

.guide-steps h2 { margin: 4px 0 6px; font-size: 1.25rem; }
.guide-steps p { margin: 0; color: var(--muted); }
.guide-steps p strong { color: var(--text); }
.guide-steps .shot { margin-top: 18px; }
a.shot { display: block; }

/* On a phone a step's screenshot takes the full width, under the number too. */
@media (max-width: 640px) {
  .guide-steps .shot { margin-left: -56px; }
}
.guide-steps .bubble { margin: 0; }

.guide-next { margin: 32px 0 0; text-align: center; }
.guide-next .more { margin: 0; }

.guide-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.92rem;
  border-left: 2px solid var(--rule);
}

.toc a {
  padding: 5px 0 5px 14px;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover { color: var(--brand); }

.toc a[aria-current] { color: var(--brand); box-shadow: -2px 0 0 var(--brand); }

/* On a phone the index is a row of chips that stays at the top while the
   page scrolls, with the section being read lit. */
@media (max-width: 860px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .toc {
    top: 0;
    z-index: 5;
    flex-direction: row;
    gap: 8px;
    margin: -20px -20px 0;
    padding: 12px 20px;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
    background: color-mix(in srgb, var(--ground) 88%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }
  .toc::-webkit-scrollbar { display: none; }
  .toc a { flex: none; padding: 5px 13px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); }
  .toc a[aria-current] { box-shadow: none; background: #1c2e4a; border-color: #1c2e4a; color: var(--lit); }
  .guide-body .guide-section { scroll-margin-top: 76px; }
}

.guide-body { max-width: 46rem; }
.guide-section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.guide-section:last-of-type { border-bottom: 0; }
.guide-section h2 { font-size: 1.6rem; margin: 0 0 12px; }
.guide-section h3 { font-size: 1.1rem; margin: 28px 0 6px; }
.guide-section p, .guide-section li { color: var(--muted); }
.guide-section p strong, .guide-section li strong { color: var(--text); }
.guide-section ul { padding-left: 1.2rem; }
.guide-section li { margin: 6px 0; }
.guide-section .shot { margin-top: 20px; }
.guide-section .small { font-size: 0.88rem; }

code {
  font: 0.88em ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--ground-alt);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--text);
}

/* A bank in the text format, on the night, coloured as the app reads it. */
pre.code {
  margin: 16px 0;
  padding: 18px 20px;
  overflow-x: auto;
  background: #0f1a2c;
  border-radius: 12px;
  color: #dfe7f3;
  font: 0.86rem/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

pre.code code { font: inherit; background: none; border: 0; padding: 0; color: inherit; }
/* One block per line: a long one wraps, indented under its first word. */
pre.code .ln { display: block; white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 1.5em; text-indent: -1.5em; }

@media (max-width: 640px) {
  pre.code { margin-inline: -20px; border-radius: 0; padding: 16px 20px; font-size: 0.8rem; }
}
.k-number { color: #9fd4ff; font-weight: 700; }
.k-correct { color: #7fe0a6; font-weight: 600; }
.k-alt { color: #c3cedf; }
.k-meta { color: #efa636; }
.k-marker { color: #ffc071; font-weight: 600; }
.k-note { color: #7d8ba3; font-style: italic; }
.k-directive { color: #d9b8ff; }
.k-model { color: #b9c6ff; }

.table-wrap { overflow-x: auto; margin: 16px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
}

th { color: var(--text); font-weight: 600; background: var(--ground-alt); }
td { color: var(--muted); }
td code { white-space: nowrap; }
/* On a phone each row of a table is a card, its cells labelled. */
@media (max-width: 640px) {
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; }
  .table-wrap thead { display: none; }
  .table-wrap tr {
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: var(--card);
  }
  .table-wrap td { border: 0; padding: 2px 0; }
  .table-wrap td:first-child { color: var(--text); font-weight: 600; padding-bottom: 8px; }
  .table-wrap td + td::before {
    content: attr(data-label);
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  td code { white-space: normal; }
}

.downloads { display: flex; flex-wrap: wrap; gap: 10px; }

.download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #1c2e4a;
  color: var(--lit) !important;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.download::before { content: "↓"; }
.download:hover { background: #24406a; }

/* The two pages of the guide, as tabs on the night. */
.guide-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  border: 1px solid var(--night-rule);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

.guide-switch a {
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--night-text);
  text-decoration: none;
}

.guide-switch a:hover { color: #ffffff; }
.guide-switch a[aria-current] { background: #1c2e4a; color: var(--lit); }

@media (max-width: 640px) {
  .guide-switch { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; border-radius: 16px; }
  .guide-switch a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 6px 6px;
    border-radius: 12px;
    font-size: 0.84rem;
    line-height: 1.2;
    text-align: center;
  }
}

/* On a phone the site's sections are one row that slides, never two lines. */
@media (max-width: 640px) {
  .site-nav {
    flex-wrap: nowrap;
    gap: 18px;
    margin-right: -20px;
    padding-right: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }
  .site-nav::-webkit-scrollbar { display: none; }
}

/* The link under the pillars sits close to the last one. */
.after-hero .center .more { margin-top: 8px; }

/* ---------- Downloads: one badge per platform, captioned ---------- */

.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.badge-for { font-size: 0.78rem; color: var(--muted); }
.night .badge-for, .hero .badge-for { color: rgba(255, 255, 255, 0.62); }

/* The hero's download. Knowing the visitor: their badge, large, and a line
   below with the others, each with its device. Not knowing: three badges. */
.get-app {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.get-main:empty { display: none; }
.get-main .store-badge img { height: 56px; width: auto; }

.get-others {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
}

.get-also { display: none; }
.get-app.has-primary .get-others { display: none; }

.get-app.has-primary .get-also {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 18px;
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.62);
}

.get-also a, .get-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lit);
  font-weight: 600;
  text-decoration: none;
}

.get-soon { color: rgba(255, 255, 255, 0.62); font-weight: 400; }
.get-also a:hover { text-decoration: underline; }
.get-also a[hidden] { display: none; }
.get-also svg.logo { fill: currentColor; stroke: none; width: 15px; height: 15px; }

.get-also svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Three apps ---------- */

.platform .does { color: var(--text); margin: 6px 0 2px; font-size: 0.95rem; }
.platform .store-badge { margin-top: auto; }
.platform .store-badge img { height: 40px; width: auto; }

/* ---------- EvaLumina Capture: exam day on the iPhone ---------- */

.capture { padding: 88px 0; }

.capture-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}

.capture .stage {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capture h2 {
  margin: 0;
  color: var(--lit);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.capture .lede { margin: 16px 0 28px; font-size: 1.08rem; color: var(--night-text); max-width: 34rem; }

.capture-steps { list-style: none; margin: 0 0 28px; padding: 0; }
.capture-steps li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
.capture-steps .bubble { margin: 0; border-color: var(--lit); color: var(--lit); }
.capture-steps li:first-child .bubble { background: var(--lit); color: var(--night); }
.capture-steps h3 { margin: 4px 0 2px; font-size: 1.05rem; color: #ffffff; }
.capture-steps p { margin: 0; color: var(--night-text); font-size: 0.95rem; }

.capture .store-badges { justify-content: flex-start; }
.capture-note { margin: 16px 0 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); max-width: 32rem; }

/* Three phones, the middle one forward. */
.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
}

.phone {
  width: 42%;
  max-width: 210px;
  padding: 7px;
  border-radius: 34px;
  background: #0a0f18;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

.phone img { width: 100%; height: auto; display: block; border-radius: 27px; }
.phone-1, .phone-3 { opacity: 0.92; transform: scale(0.88); }
.phone-1 { margin-right: -12%; transform: scale(0.88) rotate(-4deg); }
.phone-3 { margin-left: -12%; transform: scale(0.88) rotate(4deg); }
.phone-2 { position: relative; z-index: 1; }

@media (max-width: 820px) {
  .capture { padding: 64px 0; }
  .capture-grid { grid-template-columns: 1fr; gap: 40px; }
  .phones { min-height: 0; }
}

@media (max-width: 640px) {
  .phone { width: 46%; }
  .phone-1, .phone-3 { transform: scale(0.84); }
  .phone-1 { margin-right: -16%; transform: scale(0.84) rotate(-4deg); }
  .phone-3 { margin-left: -16%; transform: scale(0.84) rotate(4deg); }
}

/* The iPhone guide: a screen beside its step, and a lighter callout. */
.guide-phone { width: 220px; max-width: 60%; margin-top: 18px; }
.callout.plain { margin-top: 16px; border: 1px solid var(--rule); background: var(--card); }
.callout.plain h2 { color: var(--text); }
.callout.plain p { color: var(--muted); }
.guide-next .store-badges { margin-top: 8px; }
