/* SPDX-FileCopyrightText: 2026 aeterna-rongroi contributors */
/* SPDX-License-Identifier: GPL-3.0-or-later */
/* Part of aeterna-rongroi, a cheat-detection tool. Using it to evade detection is out of scope — see AGENTS.md. */
/* The landing page's only stylesheet. It shares the desktop window's bright sky look (ADR 0045, amendment
   of 2026-10-02): a light blue sky with clouds, translucent white panels, rounded corners, pill buttons,
   Mali for headings and Anuphan for text, both bundled beside the page. States are shown by shape — found a
   filled square, not found a grey open circle (never green), not measured a dashed circle. Every text
   colour keeps WCAG AA against its panel. Nothing is loaded from another host. */

@font-face {
  font-family: "Anuphan";
  src: url("fonts/Anuphan-Variable.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: "Mali";
  src: url("fonts/Mali-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Mali";
  src: url("fonts/Mali-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Mali";
  src: url("fonts/Mali-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --sky-top: #a9d8ff;
  --sky-mid: #d6ecff;
  --ground: #f3f9ff;
  --surface: #ffffffe6;
  --surface-solid: #ffffff;
  --raised: #eef5fd;
  --line: #d5e3f1;
  --line-strong: #b4cbe3;
  --text: #1d2a44;
  --muted: #4f5d77;
  --blue: #0869b0;
  --blue-soft: #e3f1fc;
  --violet: #6a4fe0;
  --navy: #1d2a44;
  --found: #a64b00;
  --found-ground: #fff3e3;
  --found-line: #f2c68f;
  --found-mark: #e6820e;
  --not-found: #636b7a;
  --unmeasured: #4655b8;
  --unmeasured-ground: #f0f2ff;
  --unmeasured-line: #b8c0ef;
  --display: "Mali", "Anuphan", "Leelawadee UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 22px;
  --shadow: 0 14px 36px -18px #2a5d9a66;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--ground);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Anuphan", "Segoe UI", "Leelawadee UI", "Noto Sans Thai", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, var(--sky-top) 0, var(--sky-mid) 560px, var(--ground) 1100px);
  overflow-x: hidden;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #0869b066;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Inline SVG icon styles (strict zero-emoji policy) */
.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-sm {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
}

.icon-lg {
  width: 1.4em;
  height: 1.4em;
  vertical-align: -0.25em;
}

.icon-alert {
  color: #b45309;
}

.icon-info {
  color: #1e40af;
}

/* Strength badges */
.badge-strength {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 8px;
  border-radius: 6px;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-strength-tamper {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-strength-presence {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-strength-execution {
  background: #f5f3ff;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.badge-strength-posture {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-strength-context {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

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

/* Header: a floating glass bar. */
header.top {
  position: sticky;
  top: 12px;
  z-index: 5;
  padding: 12px 20px 0;
}

header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  background: #ffffffbf;
  border: 1px solid #ffffff;
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: 0 10px 0 22px;
  max-width: 1040px;
}

.ruler {
  display: none;
}

.brand {
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.2rem;
  color: var(--blue);
}

.brand small {
  font-family: "Anuphan", sans-serif;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.72em;
  margin-left: 8px;
}

nav.lang {
  display: flex;
  gap: 4px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
}

nav.lang a {
  color: var(--navy);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
}

nav.lang a[aria-current="page"] {
  color: #ffffff;
  background: var(--navy);
}

/* Sky stage behind the hero: clouds drawn with gradients. */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 72px 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background:
    radial-gradient(ellipse 260px 70px at 8% 78%, #ffffffe6, transparent 70%),
    radial-gradient(ellipse 380px 90px at 22% 88%, #ffffffcc, transparent 70%),
    radial-gradient(ellipse 320px 80px at 78% 18%, #ffffffd9, transparent 70%),
    radial-gradient(ellipse 460px 110px at 92% 30%, #ffffffb3, transparent 70%),
    radial-gradient(ellipse 520px 120px at 60% 100%, #ffffffcc, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: #ffffffcc;
  border: 1px solid #ffffff;
  border-radius: 999px;
  padding: 4px 14px;
  margin: 0 0 18px;
}

/* The headline: rounded, with a white outline, and the key phrase in a gradient — as the reference site
   sets its titles. */
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.22;
  margin: 0 0 18px;
  font-weight: 700;
  color: var(--navy);
  text-shadow:
    0 2px 0 #ffffff,
    0 -2px 0 #ffffff,
    2px 0 0 #ffffff,
    -2px 0 0 #ffffff,
    0 10px 24px #2a5d9a40;
}

.hero h1 em {
  font-style: normal;
  white-space: nowrap;
  background: linear-gradient(90deg, #0869b0, #6a4fe0 70%, #a33d8f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 0 #ffffff) drop-shadow(0 -2px 0 #ffffff) drop-shadow(2px 0 0 #ffffff)
    drop-shadow(-2px 0 0 #ffffff);
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34em;
  background: #ffffffa6;
  border-radius: 18px;
  padding: 14px 18px;
}

.lead strong {
  color: var(--navy);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  border: 2px solid transparent;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(180deg, #1f80cf, #0869b0);
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 10px 22px -10px #0869b0b3;
}

.btn.secondary {
  color: var(--navy);
  background: #ffffffd9;
  border-color: #ffffff;
  box-shadow: var(--shadow);
}

.btn.secondary:hover {
  background: #ffffff;
}

/* The report summary as the program draws it. Illustrative numbers, labelled as an example. */
.specimen {
  margin: 0;
  background: var(--surface);
  border: 2px solid #ffffff;
  border-radius: 28px;
  padding: 22px;
  display: grid;
  gap: 14px;
  box-shadow: 0 30px 60px -28px #2a5d9a80;
  transform: rotate(1.2deg);
}

.specimen-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.specimen-head strong {
  font-family: var(--display);
  font-size: 1.08rem;
}

.specimen-head span {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 2px 10px;
}

.tally {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tally div {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
}

.tally b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.tally span:not(.mark) {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.tally .t-found b {
  color: var(--found);
}

.tally .t-not-found b {
  color: var(--not-found);
}

.tally .t-unmeasured b {
  color: var(--unmeasured);
}

.specimen .note {
  margin: 0;
}

.specimen-search {
  position: relative;
  display: flex;
  align-items: center;
}

.specimen-search input {
  width: 100%;
  padding: 7px 12px 7px 32px;
  font-family: inherit;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-solid);
  color: var(--text);
  box-sizing: border-box;
}

.specimen-search .search-icon {
  position: absolute;
  left: 10px;
  color: var(--muted);
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.specimen-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px 10px;
  align-items: start;
  border: 1px solid var(--found-line);
  background: var(--found-ground);
  box-shadow: inset 4px 0 0 var(--found-mark);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 0.92rem;
}

.specimen-row .mark {
  margin-top: 6px;
}

.specimen-title-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.specimen-title {
  font-weight: 600;
  color: var(--navy);
}

.specimen-row .pill {
  color: var(--found);
  border-color: var(--found-line);
  background: var(--surface-solid);
}

.specimen-desc {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.specimen-falsepositives {
  grid-column: 2 / -1;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 8px 12px;
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.specimen-falsepositives-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1e40af;
  font-weight: 600;
  font-size: 0.82rem;
  margin: 0;
}

.specimen-falsepositives ul {
  margin: 0;
  padding-left: 1.2em;
  color: #1e3a8a;
  font-size: 0.82rem;
  line-height: 1.45;
}

.specimen-tech-btn {
  grid-column: 2 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-solid);
  color: var(--text);
}

/* State marks, as in the window. */
.mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex: none;
}

.mark-found {
  background: var(--found-mark);
  border-radius: 3px;
}

.mark-not-found {
  border: 2px solid var(--not-found);
  border-radius: 50%;
}

.mark-unmeasured {
  border: 2px dashed var(--unmeasured);
  border-radius: 50%;
}

.pill {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  white-space: nowrap;
  color: var(--muted);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #cfe5f8;
  border-left: 5px solid var(--blue);
  background: var(--blue-soft);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 8px 0 24px;
  line-height: 1.6;
}

.note .icon {
  margin-top: 3px;
}

/* Sections: a rounded title with a gradient dot, like a chapter of the reference site. */
section {
  padding: 48px 0 8px;
}

section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.3;
  margin: 0 0 22px;
  color: var(--navy);
}

section h2::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 0 4px #ffffff;
  flex: none;
}

section > p {
  max-width: 46em;
}

/* Three promises as glass cards, numbered. */
.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: promise;
}

.ledger li {
  counter-increment: promise;
  background: var(--surface);
  border: 2px solid #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.ledger li::before {
  content: "0" counter(promise);
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-family: var(--display);
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  margin-bottom: 12px;
}

.ledger h3 {
  font-family: var(--display);
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.ledger p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* The three results, each with its own mark. */
.states {
  display: grid;
  gap: 12px;
}

.state {
  display: grid;
  grid-template-columns: 22px 9em 1fr;
  gap: 12px;
  align-items: baseline;
  border: 2px solid #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.state .mark {
  transform: translateY(1px);
}

.state strong {
  font-family: var(--display);
  font-weight: 700;
}

.state.found {
  border-color: var(--found-line);
  background: var(--found-ground);
  box-shadow: inset 5px 0 0 var(--found-mark);
}

.state.found strong {
  color: var(--found);
}

.state.not-found {
  background: #ffffffb3;
  box-shadow: none;
}

.state.not-found strong {
  color: var(--not-found);
}

.state.unmeasured {
  border: 2px dashed var(--unmeasured-line);
  background: var(--unmeasured-ground);
  box-shadow: none;
}

.state.unmeasured strong {
  color: var(--unmeasured);
}

.state span {
  color: var(--muted);
}

/* Two-column tables on white panels. */
.table-scroll {
  overflow-x: auto;
  background: var(--surface);
  border: 2px solid #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

tbody tr:last-child td {
  border-bottom: 0;
}

thead th {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--blue);
  font-weight: 700;
  background: var(--blue-soft);
}

tbody td:first-child {
  width: 30%;
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy);
}

td small {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 2px;
}

.new {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  background: #a64b00;
  border-radius: 999px;
  padding: 1px 9px;
  margin-left: 8px;
  vertical-align: 2px;
}

/* Steps along a dotted path. */
ol.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  counter-reset: step;
}

ol.steps li {
  position: relative;
  padding: 0 0 24px 64px;
  counter-increment: step;
}

ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: var(--shadow);
}

ol.steps li::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 4px;
  width: 3px;
  background: radial-gradient(circle, #9cc6ea 1.5px, transparent 2px) center top / 3px 9px repeat-y;
}

ol.steps li:last-child::after {
  display: none;
}

ol.steps strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  padding-top: 6px;
  color: var(--navy);
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  padding: 1px 7px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.blind {
  border: 2px dashed var(--unmeasured-line);
  border-radius: 18px;
  padding: 14px 18px;
  margin-top: 16px;
  background: var(--unmeasured-ground);
}

/* Questions: white panels that open. */
details {
  background: var(--surface);
  border: 2px solid #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 20px -14px #2a5d9a59;
  padding: 14px 20px;
  margin-bottom: 10px;
}

summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 1.1em;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 10px 0 2px;
  color: var(--muted);
  max-width: 46em;
}

footer {
  margin-top: 64px;
  padding: 32px 0 48px;
  color: #d8e2f2;
  font-size: 0.92rem;
  background: var(--navy);
}

footer a {
  color: #9fd2ff;
}

footer p {
  margin: 4px 0;
}

/* One entrance for the hero, staggered, and a slow float on the sample; nothing else moves. */
@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 520ms ease-out both;
  }

  .hero > .specimen {
    animation:
      rise-tilted 520ms ease-out 120ms both,
      float 6s ease-in-out 700ms infinite;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
  }

  @keyframes rise-tilted {
    from {
      opacity: 0;
      transform: translateY(12px) rotate(1.2deg);
    }
    to {
      transform: rotate(1.2deg);
    }
  }

  @keyframes float {
    0%,
    100% {
      transform: rotate(1.2deg);
    }
    50% {
      transform: translateY(-6px) rotate(1.2deg);
    }
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
  }

  .ledger {
    grid-template-columns: 1fr;
  }

  .state {
    grid-template-columns: 22px 1fr;
  }

  .state span {
    grid-column: 2;
  }

  tbody td:first-child {
    width: 38%;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }

  header.top {
    padding: 10px 12px 0;
  }

  header.top .wrap {
    padding: 0 6px 0 16px;
  }

  .tally b {
    font-size: 1.35rem;
  }

  th,
  td {
    padding: 10px 12px;
  }

  ol.steps li {
    padding-left: 56px;
  }
}
