/* naughtyplans.com — "Velours" (M9.5, docs/site-velours/SPEC.md). Same tokens as the app (M8.14). Dark only. */

/* Inter Tight, hosted here (SIL OFL, see fonts/OFL.txt). Latin, Latin Extended and Cyrillic (Russian). */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-tight-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-tight-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-tight-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-tight-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-tight-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-tight-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-tight-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-tight-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-tight-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-tight-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-tight-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-tight-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

:root {
  color-scheme: dark;
  --bg: #110C0F;
  --bg-deep: #0B0809;
  --surface: #1C1519;
  --surface-muted: #271D23;
  --separator: #33272E;
  --separator-soft: #2A2026;
  --field-border: #4A3A43;
  --text: #F6EEF1;
  --text-secondary: #B9A7AF;
  --text-tertiary: #8F7F87;
  --text-article: #E6DADF;
  --accent: #FF8296;
  --accent-hover: #FFB3C0;
  --on-accent: #2A0E16;
  --accent-tint: #3A1F28;
  --partner: #B7A3D9;
  --partner-ink: #1E1530;
  --partner-avatar: #6E5A8C;
  --streak: #B85A6C;
  --success: #7CC39C;
  --radius-card: 28px;
  --radius-tile: 20px;
  --radius-field: 16px;
  --radius-panel: 36px;
  --container: 1160px;
  --gutter: 24px;
  --header-height: 76px;
  --font: "Inter Tight", -apple-system, "Helvetica Neue", sans-serif;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3 { color: var(--text); font-weight: 800; margin: 0; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(42px, 6vw, 76px); letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1.04; }
h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.np-skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 22px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.np-skip:focus { top: 12px; }
.np-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout ------------------------------------------------------------------ */
.np-container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.np-section { padding-block: 96px; }
.np-section--deep { background: var(--bg-deep); }
.np-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.np-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--text-secondary); max-width: 62ch; }
.np-section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; max-width: 760px; }

/* Brand ------------------------------------------------------------------- */
.np-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-height: 44px; }
.np-brand:hover { color: var(--text); }
.np-brand svg { flex: none; }
.np-wordmark { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; color: var(--text); }
.np-wordmark span { color: var(--accent); }

/* Header ------------------------------------------------------------------ */
.np-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--separator-soft);
}
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .np-header { background: rgba(17, 12, 15, 0.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.np-header__inner { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.np-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; }
.np-links a { color: var(--text-secondary); text-decoration: none; padding-block: 12px; }
.np-links a:hover, .np-links a[aria-current="page"] { color: var(--text); }
.np-actions { display: flex; align-items: center; gap: 10px; }

/* Language picker (no script): a native disclosure. */
.np-lang { position: relative; }
.np-lang summary {
  list-style: none; cursor: pointer;
  height: 44px; padding: 0 14px; border-radius: 22px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--separator);
  color: var(--text); font-size: 14px; font-weight: 700;
}
.np-lang summary::-webkit-details-marker { display: none; }
.np-lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 180px; padding: 6px; margin: 0; list-style: none;
  background: var(--surface); border: 1px solid var(--separator); border-radius: 18px;
}
.np-lang__menu a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.np-lang__menu a:hover { background: var(--surface-muted); color: var(--text); }
.np-lang__menu a[aria-current="page"] { color: var(--accent); }
.np-lang__menu span { color: var(--text-tertiary); font-weight: 700; }

/* Mobile menu: hidden on large screens, full screen panel below 860 px. */
.np-menu-button {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--separator); color: var(--text); cursor: pointer;
}
.np-menu {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto;
  background: var(--bg);
  padding: 0 var(--gutter) 40px;
}
.np-menu[hidden] { display: none; }
.np-menu__top { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; }
.np-menu .np-menu-button--close { display: inline-flex; }
.np-menu__links { display: flex; flex-direction: column; gap: 4px; padding-block: 24px; border-bottom: 1px solid var(--separator-soft); }
.np-menu__links a { color: var(--text); text-decoration: none; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; min-height: 52px; display: flex; align-items: center; }
.np-menu__langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 24px; }
.np-menu__langs a { min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--surface); border: 1px solid var(--separator); color: var(--text); text-decoration: none; font-weight: 700; }
.np-menu__langs a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.np-menu .np-button { margin-top: 24px; width: 100%; }

@media (max-width: 860px) {
  .np-links, .np-lang { display: none; }
  .np-menu-button { display: inline-flex; }
  .np-section { padding-block: 64px; }
}

/* Small phones: the header keeps the brand and the menu; the main button moves into the menu (long in DE/RU). */
@media (max-width: 560px) {
  .np-actions .np-button--small { display: none; }
}

/* Language banner (shown by script only when the browser's language differs). */
.np-lang-banner { background: var(--surface); border-bottom: 1px solid var(--separator-soft); font-size: 14px; }
.np-lang-banner[hidden] { display: none; }
.np-lang-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.np-lang-banner a { color: var(--text); font-weight: 700; text-decoration: none; }
.np-lang-banner button { width: 44px; height: 44px; border: 0; background: none; color: var(--text-secondary); cursor: pointer; font-size: 20px; }

/* Short header and footer of reading pages (articles, legal pages), SPEC §5.3. */
.np-header--short .np-header__inner { gap: 16px; }
.np-header--short .np-short-links { display: flex; align-items: center; gap: 8px; }
.np-header--short .np-short-links > a:not(.np-button) { color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; padding: 12px 8px; }
.np-footer--short { padding-block: 32px; }
.np-footer--short .np-footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.np-footer__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.np-footer__links a { color: var(--text-secondary); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
@media (max-width: 420px) {
  .np-header--short .np-wordmark { display: none; }
}

/* Centered card (invitation without the app, 404), SPEC §5.6. */
.np-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px var(--gutter); }
.np-center__card {
  width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--separator); border-radius: var(--radius-card);
  padding: clamp(28px, 6vw, 48px); display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.np-center__card h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.08; }
.np-center__card p { color: var(--text-secondary); }
.np-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; text-align: left; width: 100%; }
.np-steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.np-steps li::before {
  content: counter(step); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-tint); color: var(--accent);
  font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center;
}

/* Buttons ----------------------------------------------------------------- */
.np-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 700; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer; white-space: normal;
}
.np-button--primary { background: var(--accent); color: var(--on-accent); }
.np-button--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.np-button--secondary { background: var(--surface); border-color: var(--separator); color: var(--text); }
.np-button--secondary:hover { color: var(--text); border-color: var(--field-border); }
.np-button--small { min-height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
.np-arrow-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; text-decoration: none; min-height: 44px; }
.np-arrow-link::after { content: "→"; }

/* Store badge (until launch: a light tile, not clickable to the store). */
.np-store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px;
  border-radius: 16px; background: var(--text); color: var(--bg); text-decoration: none;
}
.np-store:hover { color: var(--bg); }
.np-store small { display: block; font-size: 12px; font-weight: 600; opacity: 0.75; }
.np-store strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }

/* Cards ------------------------------------------------------------------- */
.np-card { background: var(--surface); border: 1px solid var(--separator); border-radius: var(--radius-card); padding: 28px; min-width: 0; }
.np-panel { background: var(--surface); border: 1px solid var(--separator); border-radius: var(--radius-panel); padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.np-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* Footer ------------------------------------------------------------------ */
.np-footer { border-top: 1px solid var(--separator-soft); padding-block: 56px 40px; }
.np-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.np-footer__brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.np-footer__brand p { font-size: 15px; line-height: 1.5; max-width: 300px; }
.np-footer__nav { flex: 2 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; font-size: 15px; }
.np-footer__col { display: flex; flex-direction: column; gap: 4px; }
.np-footer__col h2 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); font-weight: 700; padding-bottom: 6px; line-height: 1.4; }
.np-footer__col a { color: var(--text); text-decoration: none; min-height: 32px; display: flex; align-items: center; }
.np-footer__col a:hover { color: var(--accent-hover); }
.np-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--separator-soft); font-size: 13px; color: var(--text-tertiary); }
.np-footer__langs { display: flex; flex-wrap: wrap; gap: 4px; font-weight: 700; }
.np-footer__langs a { color: var(--text-secondary); text-decoration: none; padding: 8px; }
.np-footer__langs a[aria-current="page"] { color: var(--accent); }

/* Pages not redone yet (M9.5c and M9.5d replace them): same content, Velours look. */
.hero { padding-block: 72px 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 62ch; }
.hero .logo { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-block: 24px 64px; }
.card { background: var(--surface); border: 1px solid var(--separator); border-radius: var(--radius-card); padding: 24px; }
.card .icon { display: none; }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.steps { padding-left: 1.2em; display: flex; flex-direction: column; gap: 16px; margin-block: 24px 64px; }
.steps h3 { font-size: 20px; }
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-block: 24px; }
.post { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--separator); border-radius: var(--radius-card); padding: 24px; color: var(--text-secondary); text-decoration: none; }
.post:hover { border-color: var(--field-border); color: var(--text-secondary); }
.post h3 { font-size: 22px; }
.tag { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
main > h2 { margin-top: 48px; }
.blog { max-width: 720px; margin: 0 auto; padding-block: 56px; color: var(--text-article); font-size: 18px; line-height: 1.7; }
.blog h1 { font-size: clamp(36px, 5vw, 56px); margin-block: 12px 20px; }
.blog h2 { font-size: clamp(24px, 3vw, 32px); margin-block: 40px 12px; }
.blog p { margin-bottom: 16px; }
.blog .meta { color: var(--text-tertiary); font-size: 14px; }
.summary { background: var(--surface); border: 1px solid var(--separator); border-radius: var(--radius-tile); padding: 24px; margin-block: 32px; }
.sources { font-size: 15px; color: var(--text-secondary); }
.note { font-size: 14px; color: var(--text-tertiary); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
