/* NeuroFit public site (2026-10-11): landing, news, account, tariffs.
   Colours and shapes are the app's own - lavender ground, navy ink, one
   purple accent, big rounded cards - so the site reads as the same product. */
:root {
  color-scheme: light;
  --ground: #efecf9;
  --card: #ffffff;
  --ink: #171a3a;
  --soft: #5d6082;
  --line: #e1dcf2;
  --accent: #6b57eb;
  --accent-deep: #5443cf;
  --accent-pale: #ebe7fc;
  --sun: #f5a52a;
  --ok: #1c8f5a;
  --bad: #c53a3a;
  --radius: 26px;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-weight: 900; font-size: clamp(34px, 6vw, 58px); }
h2 { font-weight: 900; font-size: clamp(26px, 4vw, 38px); }
h3 { font-weight: 800; font-size: 20px; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
section { padding: 44px 0; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 10px; }
.sub { color: var(--soft); margin-top: 10px; max-width: 60ch; }

/* ── header ── */
.top { padding: 16px 0; }
.top .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 22px; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand b { color: var(--accent); font-weight: 900; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 16px; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { background: var(--accent-pale); }
.top nav a[aria-current="page"] { background: var(--card); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 999px; padding: 13px 26px; min-height: 50px;
  background: var(--accent); color: #fff; transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn.ghost:hover { background: var(--accent-pale); }
.btn.small { min-height: 42px; padding: 9px 18px; font-size: 16px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.wide { width: 100%; }

/* ── hero: the app's own "тренировка дня" card, full width ── */
.hero { padding-top: 8px; }
.hero-card {
  position: relative; border-radius: 34px; overflow: hidden; min-height: 440px;
  background: #cfc6f1 url("/static/site/hero.jpg") center / cover no-repeat;
  display: flex; align-items: flex-start;
}
.hero-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,240,255,.80) 0%, rgba(246,240,255,.42) 46%, rgba(246,240,255,0) 74%); }
.hero-text { position: relative; padding: clamp(24px, 5vw, 54px); max-width: 680px; }
.hero-text .lead { font-size: clamp(17px, 2.2vw, 21px); font-weight: 600; color: #262a56; margin-top: 14px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* On a plate: the picture behind it is dark trees by this point. */
.hero-note { display: inline-block; margin-top: 16px; font-size: 15px; font-weight: 700; color: #262a56; background: rgba(255,255,255,.88); border-radius: 16px; padding: 8px 14px; }

/* ── cards and grids ── */
.card { background: var(--card); border-radius: var(--radius); padding: 24px; }
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--soft); }
.feature .mark { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-pale); color: var(--accent-deep); display: grid; place-items: center; font-weight: 900; font-size: 20px; margin-bottom: 14px; }

/* ── screens ── */
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 6px 20px 18px; margin: 22px -20px 0; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 auto; width: min(64vw, 250px); scroll-snap-align: center; }
.shots img { width: 100%; height: auto; border-radius: 26px; border: 6px solid #171a3a; background: #171a3a; aspect-ratio: 9 / 20; object-fit: cover; }
.shots figcaption { text-align: center; font-weight: 800; font-size: 15px; margin-top: 10px; }
@media (min-width: 1100px) { .shots { justify-content: center; overflow: visible; } }

/* ── plans ── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 22px; }
.plan { background: var(--card); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 4px; border: 3px solid transparent; }
.plan.best { border-color: var(--accent); }
.plan .label { font-weight: 800; color: var(--soft); }
.plan .price { font-weight: 900; font-size: 34px; font-variant-numeric: tabular-nums; }
.plan .per { color: var(--soft); font-size: 15px; }
.plan .save { color: var(--ok); font-weight: 800; font-size: 15px; }
.plan .btn { margin-top: auto; }
.plan .gap { height: 14px; }
.tag { display: inline-block; align-self: flex-start; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; border-radius: 999px; padding: 3px 12px; margin-bottom: 6px; }

/* ── news ── */
.post { background: var(--card); border-radius: var(--radius); padding: 24px; }
.post time { color: var(--soft); font-size: 14px; font-weight: 700; }
.post h3 { margin: 6px 0 10px; font-size: 22px; }
.post p { white-space: pre-line; overflow-wrap: anywhere; }
.stack { display: grid; gap: 16px; margin-top: 22px; }
.empty { color: var(--soft); background: var(--card); border-radius: var(--radius); padding: 24px; }

/* ── forms ── */
label.field { display: block; font-weight: 800; font-size: 15px; margin-top: 14px; }
.field input { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 17px; color: var(--ink); background: #f6f4fd; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; min-height: 50px; }
.field input:focus { border-color: var(--accent); outline: none; }
.note { font-size: 15px; color: var(--soft); margin-top: 12px; }
.msg { margin-top: 12px; font-weight: 700; min-height: 1.4em; }
.msg.bad { color: var(--bad); } .msg.ok { color: var(--ok); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 14px; font-weight: 700; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--accent-deep); text-decoration: underline; cursor: pointer; }

/* ── account ── */
.rows { display: grid; gap: 0; margin-top: 8px; }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 2px solid var(--line); }
.rows div:first-child { border-top: 0; }
.rows dt, .rows span:first-child { color: var(--soft); font-weight: 700; }
.rows span:last-child { font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.status { display: inline-block; border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: 15px; }
.status.on { background: #dcf5e8; color: #14693f; }
.status.trial { background: #fdeccb; color: #8a5a06; }
.status.off { background: #f4dede; color: #8f2525; }
.banner { border-radius: 20px; padding: 14px 18px; font-weight: 800; margin-bottom: 16px; }
.banner.ok { background: #dcf5e8; color: #14693f; }
.banner.bad { background: #f4dede; color: #8f2525; }
[hidden] { display: none !important; }

/* ── footer ── */
footer { padding: 34px 0 54px; color: var(--soft); font-size: 15px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
footer a { color: var(--ink); font-weight: 700; text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  section { padding: 32px 0; }
  .hero-card { min-height: 520px; }
  .hero-actions .btn { width: 100%; }
  .top nav a { padding: 8px 10px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* A pale button on a white card would not read as a button. */
.card .btn.ghost, .plan .btn.ghost { background: var(--accent-pale); }
.card .btn.ghost:hover, .plan .btn.ghost:hover { background: #ddd6fa; }

/* A consent tick: a real checkbox, big enough for a thumb. */
label.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 15px; cursor: pointer; }
label.check input { flex: 0 0 auto; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--accent); }
