/* Kelyentha — shared design system
   Tokens sourced from the approved brand palette and site blueprint.
   Do not introduce new brand colors without updating both. */

:root {
  /* Brand tokens — approved palette */
  --navy: #0A1F3D;
  --navy-deep: #061428;
  --electric: #2D8CFF;
  --electric-deep: #1E6FDB;
  --ice: #7ED3FF;
  --pale-blue: #BFEAFF;
  --very-pale-ice: #D9F3FF;
  --bright-ice: #F2FBFF;
  --soft-white: #F7FAFF;

  /* Verdict tokens */
  --low: #2C7A4B;      --low-bg: #E7F5EC;
  --caution: #9C6B12;  --caution-bg: #FBF1DC;
  --high: #B23A2C;     --high-bg: #FBEAE7;
  --unknown: #4B5768;  --unknown-bg: #EBEEF2;

  /* Type */
  --ink: #101826;
  --ink-soft: #4B5768;
  --line: #D8E3F0;
  --line-on-navy: rgba(255,255,255,0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --max-w: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--soft-white);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Focus & motion ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Site header ---------- */
.site-header {
  background: var(--navy);
  color: var(--soft-white);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--soft-white);
}
.brand-lockup img { height: 34px; width: auto; }
.brand-lockup .brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.brand-lockup .brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ice);
  font-weight: 600;
  text-decoration: none;
}
.brand-lockup .brand-tag:hover { text-decoration: underline; }
.brand-lockup .brand-word-link,
.brand-lockup .brand-word-link:hover { text-decoration: none; }

nav.primary-nav { display: none; }
nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
}
nav.primary-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: rgba(247,250,255,0.82);
  transition: color 0.15s ease;
}
nav.primary-nav a:hover { color: var(--soft-white); }

.header-cta {
  display: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--electric);
  color: #fff;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.header-cta:hover { background: var(--electric-deep); }

.menu-toggle {
  background: none;
  border: 1.5px solid rgba(247,250,255,0.3);
  border-radius: 8px;
  color: var(--soft-white);
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (min-width: 61.25rem) {
  nav.primary-nav { display: block; }
  .header-cta { display: inline-block; }
  .menu-toggle { display: none; }
}

.mobile-nav {
  display: none;
  background: var(--navy-deep);
  border-top: 1px solid var(--line-on-navy);
}
.mobile-nav.open { display: block; }
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.5rem 1.25rem;
}
.mobile-nav li { border-top: 1px solid var(--line-on-navy); }
.mobile-nav li:first-child { border-top: none; }
.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  color: var(--soft-white);
  text-decoration: none;
  font-size: 1rem;
}
.mobile-nav .header-cta { display: block; text-align: center; margin: 0.9rem 0 0.4rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--soft-white);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--ice);
  font-weight: 600;
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 1.1rem;
  max-width: 16ch;
}
.hero p.lede {
  font-size: 1.1rem;
  color: rgba(247,250,255,0.84);
  max-width: 34rem;
  margin: 0 0 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s ease, transform 0.1s ease, border-color .15s ease;
}
.btn-primary { background: var(--electric); color: #fff; }
.btn-primary:hover { background: var(--electric-deep); }
.btn-secondary {
  background: transparent;
  color: var(--soft-white);
  border: 1.5px solid rgba(247,250,255,0.4);
}
.btn-secondary:hover { border-color: var(--soft-white); }
.btn:active { transform: translateY(1px); }

.hero-watcher {
  justify-self: center;
  width: min(72vw, 320px);
}
.hero-watcher img { width: 100%; height: auto; }

@media (min-width: 48rem) {
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .hero-watcher { justify-self: end; width: min(30vw, 380px); }
}

/* ---------- Generic section rhythm ---------- */
section.block { padding: 4rem 0; }
section.block.tight { padding: 3rem 0; }
.block-navy { background: var(--navy); color: var(--soft-white); }
.block-pearl { background: var(--soft-white); }
.block-pale { background: var(--very-pale-ice); }
.block-ice { background: var(--bright-ice); }

.section-head { max-width: 40rem; margin: 0 0 2.25rem; }
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.section-head p { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }
.block-navy .section-head p { color: rgba(247,250,255,0.78); }

/* ---------- Check-type cards ---------- */
.check-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 40rem) {
  .check-grid { grid-template-columns: repeat(4, 1fr); }
}
.check-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
}
.check-card .icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--very-pale-ice);
  color: var(--electric-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
}
.check-card h3 { font-size: 1.02rem; margin: 0 0 0.4rem; font-weight: 600; }
.check-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--electric-deep);
  margin: 0 0 0.5rem;
}
.step h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 600; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Verdict chips ---------- */
.verdict-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) {
  .verdict-grid { grid-template-columns: repeat(4, 1fr); }
}
.verdict-chip {
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line-on-navy);
  background: rgba(255,255,255,0.04);
}
.verdict-chip .label {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.verdict-chip.low .label { background: var(--low-bg); color: var(--low); }
.verdict-chip.caution .label { background: var(--caution-bg); color: var(--caution); }
.verdict-chip.high .label { background: var(--high-bg); color: var(--high); }
.verdict-chip.unknown .label { background: var(--unknown-bg); color: var(--unknown); }
.verdict-chip p { margin: 0; font-size: 0.92rem; color: rgba(247,250,255,0.8); }

/* ---------- Family / trust panels ---------- */
.two-col {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 48rem) {
  .two-col { grid-template-columns: 1fr 1fr; }
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.panel h3 { margin: 0 0 0.6rem; font-size: 1.15rem; font-weight: 600; }
.panel p { margin: 0; color: var(--ink-soft); }
.panel .badge {
  width: 44px; height: 44px;
  margin-bottom: 1rem;
}
.trust-statement {
  background: #fff;
  border-left: 4px solid var(--electric);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}
.trust-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.trust-links a { color: var(--electric-deep); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.trust-links a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(247,250,255,0.75);
  padding: 2.75rem 0 2rem;
  font-size: 0.88rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  padding-bottom: 1.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-on-navy);
}
.footer-nyrentha {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-nyrentha img { height: 22px; width: auto; opacity: 0.92; }
.footer-nyrentha span { font-size: 0.85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { text-decoration: none; color: inherit; }
.footer-links a:hover { color: var(--soft-white); }
.footer-fine { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; }
.footer-fine .sep { opacity: 0.4; }

/* ---------- Legal page banner (unused after copy finalization) ---------- */
.dev-note {
  background: #FBF1DC;
  color: #6B4A05;
  border: 1px solid #E9CE8C;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  margin: 0 0 2rem;
}
.legal-body { max-width: 42rem; }
.legal-body h1 { font-size: 1.9rem; margin-bottom: 1rem; }
.legal-body h2 { font-size: 1.15rem; margin-top: 2rem; }
.legal-body p { color: var(--ink-soft); }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
