/* ==========================================================================
   HealthMe Games — shared stylesheet
   Plain CSS. No external fonts, no trackers, no third-party requests.
   Palette derived from the HealthMe Brain logo: cyan, blue, violet, gold.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f5f8fd;
  --surface-2: #eaf0f8;
  --ink: #132436;
  --ink-soft: #3b4a5e;
  --muted: #5e6f85;

  --brand: #1b6fd4;
  --brand-dark: #0f3f80;
  --brand-tint: #e4f1fd;
  --cyan: #22bdf0;
  --violet: #7c4dd8;
  --violet-tint: #f3ecfe;
  --gold: #f5a623;

  --cta: #f7a81b;
  --cta-hover: #e2930c;
  --cta-ink: #10233d;

  --line: #dbe4ef;
  --line-strong: #c2cfe0;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(19, 36, 54, .06), 0 2px 8px rgba(19, 36, 54, .05);
  --shadow-md: 0 4px 12px rgba(19, 36, 54, .07), 0 14px 34px rgba(19, 36, 54, .08);

  --wrap: 1120px;
  --wrap-narrow: 740px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--violet); }

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

/* ---------- layout helpers ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(52px, 7vw, 92px) 0; }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }

.section__head {
  max-width: 660px;
  margin: 0 auto clamp(32px, 4vw, 52px);
  text-align: center;
}
.section__head p { color: var(--muted); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--gold));
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding-top: 3px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  flex: none;
  display: block;
  height: 42px;
  width: auto;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
}
.brand__name span { color: var(--brand); }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}
.nav__links { display: contents; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--brand-dark); text-decoration: underline; }

.nav__cta { margin-left: 4px; }

@media (max-width: 880px) {
  .nav__links { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--cta);
  color: var(--cta-ink);
  box-shadow: 0 2px 10px rgba(245, 166, 35, .35);
}
.btn--primary:hover { background: var(--cta-hover); color: var(--cta-ink); }

.btn--ghost {
  background: #fff;
  color: var(--brand-dark);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--brand-tint); color: var(--brand-dark); }

.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--lg { padding: 17px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }

.btn__price {
  font-weight: 600;
  border-left: 1px solid rgba(16, 35, 61, .28);
  padding-left: 10px;
}

.under-btn {
  font-size: .85rem;
  color: var(--muted);
  margin: 12px 0 0;
}

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

.hero {
  padding: clamp(40px, 5.5vw, 76px) 0 clamp(48px, 6vw, 84px);
  background:
    radial-gradient(920px 420px at 84% -10%, var(--brand-tint), transparent 60%),
    radial-gradient(620px 380px at 8% 108%, var(--violet-tint), transparent 62%),
    linear-gradient(180deg, #fff, var(--surface));
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero h1 { margin-bottom: .5em; }

.hero__lead {
  font-size: clamp(1.03rem, .98rem + .35vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.hero__facts {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hero__facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: .98rem;
}
.hero__facts svg { flex: none; margin-top: 3px; color: var(--brand); }

.hero__art { display: flex; justify-content: center; }

.hero__mockup {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(19, 36, 54, .16));
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 520px; margin-inline: auto; }
}

/* ---------- trust strip ---------- */

.strip {
  background: #0e2340;
  color: #cfe0f2;
  padding: 18px 0;
}
.strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
}
.strip li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .9rem;
}
.strip svg { flex: none; color: var(--cyan); }

/* ---------- cards grid ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.card__icon {
  width: 68px;
  margin-bottom: 16px;
}
.card__icon img {
  display: block;
  width: 100%;
  height: auto;
}
.card h3 { margin-bottom: .35em; }
.card p {
  color: var(--muted);
  font-size: .96rem;
  margin: 0;
}
.card__meta {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ---------- preview / sample pages ---------- */

.preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.preview figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.preview svg { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.preview figcaption {
  margin-top: 12px;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- steps ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.steps li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .95rem;
}
.steps li:nth-child(2)::before { background: var(--violet); }
.steps li:nth-child(3)::before { background: var(--cta); color: var(--cta-ink); }
.steps h3 { margin: 8px 0 .35em; font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- offer ---------- */

.offer {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
}

.offer__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.offer__list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--ink-soft);
}
.offer__list svg { flex: none; margin-top: 4px; color: var(--brand); }

.price-card {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--gold));
}
.price-card__label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-card__amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 10px 0 2px;
  font-family: var(--font-display);
  line-height: 1;
}
.price-card__cur { font-size: 1.5rem; color: var(--ink-soft); }
.price-card__val { font-size: clamp(3rem, 2.2rem + 3vw, 4.2rem); font-weight: 600; }
.price-card__note { color: var(--muted); font-size: .95rem; margin: 0 0 20px; }
.price-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.price-card__fine {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 9px;
  font-size: .9rem;
  color: var(--muted);
}
.price-card__fine li { display: flex; gap: 9px; align-items: flex-start; }
.price-card__fine svg { flex: none; margin-top: 3px; color: var(--brand); }

@media (max-width: 900px) {
  .offer { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--brand); transition: transform .18s ease; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq__body {
  padding: 16px 22px 20px;
  color: var(--muted);
  font-size: .97rem;
}
.faq__body p { margin-bottom: .8em; }

/* ---------- final CTA ---------- */

.final {
  background: linear-gradient(160deg, #123a6b, #0b2544 74%);
  color: #dce9f7;
  text-align: center;
  padding: clamp(52px, 7vw, 90px) 0;
}
.final h2 { color: #fff; }
.final p { color: #b9cee8; max-width: 46em; margin-inline: auto; }
.final .btn--primary { margin-top: 26px; }
.final .under-btn { color: #9db6d4; }

/* ---------- disclaimer ---------- */

.disclaimer {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  font-size: .92rem;
  color: var(--ink-soft);
}
.disclaimer strong { color: var(--ink); }

/* ---------- footer ---------- */

.site-footer {
  background: #0c1c33;
  color: #a8bdd4;
  padding: clamp(44px, 5vw, 66px) 0 28px;
  font-size: .93rem;
}
.site-footer a { color: #d7e5f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}
.footer__brand .brand { color: #fff; margin-bottom: 14px; }
.footer__brand .brand__mark { height: 38px; }
.footer__brand .brand__name span { color: var(--cyan); }
.footer__brand p { max-width: 34em; margin-bottom: .9em; }

.footer h4 {
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #7f96b3;
  margin: 0 0 14px;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { flex: none; margin-top: 4px; color: var(--cyan); }
.footer__contact address { font-style: normal; }

.footer__bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: .86rem;
  color: #8ba1bd;
}
.footer__legal-note {
  margin-top: 16px;
  font-size: .82rem;
  color: #7f96b3;
  max-width: 78ch;
}

@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- legal pages ---------- */

.legal-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: clamp(38px, 5vw, 64px) 0;
}
.legal-hero h1 { margin-bottom: .3em; }
.legal-hero p { color: var(--muted); margin: 0; }

.legal {
  padding: clamp(38px, 5vw, 64px) 0 clamp(52px, 6vw, 80px);
}
.legal h2 {
  font-size: 1.35rem;
  margin-top: 2.1em;
  padding-top: .2em;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6em; }
.legal ul, .legal ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
  color: var(--ink-soft);
}
.legal li { margin-bottom: .5em; }
.legal p { color: var(--ink-soft); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: .94rem;
}
.legal th, .legal td {
  border: 1px solid var(--line);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
}
.legal th { background: var(--surface); font-weight: 600; }
.legal .table-scroll { overflow-x: auto; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 6px 0 34px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.contact-card svg { color: var(--brand); margin-bottom: 12px; }
.contact-card h3 { margin-bottom: .3em; font-size: 1.08rem; }
.contact-card p { color: var(--muted); font-size: .94rem; margin: 0 0 .5em; }
.contact-card .big {
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- print ---------- */

@media print {
  .site-header, .final, .strip { display: none; }
  body { font-size: 12pt; }
}
