/* HyperUnlock v4 base: tokens, fonts, reset, logo, header, buttons, footer, cookie banner.
   Shared by the homepage (v3.css) and every other page (pages.css). */

@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-wght.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/space-grotesk-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; } /* logo only, never change */
@font-face { font-family: 'Space Grotesk Display'; src: url('/fonts/space-grotesk-latin-wght.woff2') format('woff2'); font-weight: 300 700; font-display: swap; } /* titles */

:root {
  --bg: #181818;
  --surface: #222222;
  --surface-2: #292929;
  --surface-3: #313131;
  --ink: #f2f2ef;
  --muted: #b7b7b7;
  --accent: #a6dcf4;
  --accent-ink: #0e1d24;
  --ok: #5ad48a;
  --off: #f08a8a;
  --logo: #FF6B35; /* logo mark only */

  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Space Grotesk Display', 'Inter', system-ui, sans-serif;

  /* five steps */
  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  --step-head: clamp(2rem, 1.2rem + 2.6vw, 4rem);
  --step-display: clamp(8rem, 3rem + 14vw, 15rem);

  --margin: clamp(1rem, 5vw, 6rem);
  --wrap: 1760px;       /* fills the screen up to very wide monitors (owner, 2026-11-01) */
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 9vw, 9rem);
  --radius: 18px;       /* panels, tiles, photos */
  --radius-sm: 12px;    /* controls inside panels */
  --pill: 999px;        /* buttons, fields, avatars */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;

  /* production token names */
  --bg-card: var(--surface);
  --bg-subtle: var(--surface-2);
  --border: #333;
  --border-2: #444;
  --text: var(--ink);
  --text-2: var(--muted);
  --text-3: #9a9a96;
  --accent-bg: rgba(166, 220, 244, 0.08);
  --green: var(--ok);
  --amber: #f2c46d;
  --f-display: var(--font-display);
  --f-body: var(--font);
  --f-mono: var(--font);
  --r: var(--radius);
  --r-sm: var(--radius-sm);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100svh; display: flex; flex-direction: column; }
.foot { margin-top: auto; } /* short pages keep the footer at the bottom */
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; background: var(--surface); }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; letter-spacing: -0.02em; }
/* the part of a title set in the accent (owner's choice, like Shadow Auth Tool's "Auth Tool") */
.hl, h1 em, h2 em { font-style: normal; color: var(--accent); }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:target { scroll-margin-top: 6rem; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; border-radius: var(--pill); }
.skip:focus { top: 1rem; }
.muted { color: var(--muted); }
.nums { font-variant-numeric: tabular-nums; }

/* buttons: flat, one fill, near-square */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 3rem; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: var(--step-body); border-radius: var(--pill); text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:hover { background: #c4e8f8; }
.button-quiet { background: var(--surface-2); color: var(--ink); }
.button-quiet:hover { background: var(--surface-3); }
.button:active { transform: scale(0.97); }
.text-link { text-decoration: underline; text-decoration-color: rgba(242, 242, 239, 0.35); text-underline-offset: 0.22em; text-decoration-thickness: 1px; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.text-link:hover { text-decoration-color: currentColor; color: var(--accent); }

/* ---------- logo (copied from production, do not change) ---------- */
.site-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; color: var(--ink); }
.site-logo-mark { width: 30px; height: 30px; background: var(--logo); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- header: sticky on desktop, the same four links on every page and every screen size ---------- */
.wrap { width: min(100% - 2 * var(--margin), var(--wrap)); margin-inline: auto; }
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid #262626; }
.top-in { display: flex; align-items: center; gap: 10px 36px; width: min(100% - 2 * var(--margin), var(--wrap)); margin-inline: auto; padding: 14px 0; }
.top nav { display: flex; align-items: center; gap: 4px; font-size: 0.9375rem; }
.top nav a { padding: 8px 14px; border-radius: var(--pill); text-decoration: none; color: var(--muted); white-space: nowrap; transition: color var(--t-hover) ease, background-color var(--t-hover) ease; }
.top nav a:hover { color: var(--ink); background: var(--surface); }
.top nav a[aria-current] { color: var(--ink); background: var(--surface-3); }
.top-side { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; }
.top .button { min-height: 2.5rem; padding: 0 1.1rem; gap: 0; font-size: 0.9375rem; }
.top-time { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill); background: var(--surface); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.top-time::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.is-night .top-time { background: #24303b; color: #cfe3f2; }
.is-night .top-time::before { background: #8fb4d6; }
.night-bar { margin: 0; padding: 12px var(--margin); background: #24303b; color: #e3eef7; text-align: center; font-variant-numeric: tabular-nums; }
.night-bar span { font-weight: 600; }

/* promises with a tick, each linking to where it can be checked */
.assure { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--step-small); color: var(--muted); }
.assure li { display: flex; align-items: center; gap: 9px; }
.assure li::before, .checks h3::before { content: ""; flex: none; width: 11px; height: 6px; border: solid var(--ok); border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); }
.assure a { color: var(--ink); text-underline-offset: 0.22em; text-decoration-color: rgba(242, 242, 239, 0.35); }
.assure a:hover { color: var(--accent); }

/* questions: native details, one open at a time */
.faq-list { display: grid; gap: 8px; }
.faq-list details { background: var(--surface); border-radius: var(--radius-sm); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 14px 22px; font-weight: 500; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details:not([open]):hover { background: var(--surface-2); }
.faq-list .faq-a { padding: 0 22px 20px; max-width: 64ch; color: var(--muted); }
.faq-list .faq-a a { color: var(--ink); }
.plus { position: relative; flex: none; width: 16px; height: 16px; color: var(--muted); }
.plus::before, .plus::after { content: ""; position: absolute; left: 1px; top: 7px; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 240ms var(--ease-out); }
.plus::after { transform: rotate(90deg); }
.faq-list details[open] .plus::after { transform: rotate(0deg); }

/* ---------- footer: four plain link lists ---------- */
.foot { width: min(100% - 2 * var(--margin), var(--wrap)); margin: 0 auto; padding: 56px 0 40px; color: var(--muted); font-size: 0.9375rem; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px var(--gutter); }
.foot h2 { font-family: var(--font); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: 14px; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.foot a { color: var(--muted); text-decoration: none; transition: color var(--t-hover) ease; }
.foot a:hover { color: var(--ink); }
.foot-time { font-variant-numeric: tabular-nums; }
.foot-time #clock { color: var(--ink); }
.ft-night { color: #cfe3f2; }
.foot-legal { margin-top: 44px; font-size: var(--step-small); }

/* maintenance notice */
.notice { width: min(480px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: var(--radius); background: var(--surface-2); color: var(--ink); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); } /* taste-skill-ignore: data-ui fragment / form focus ring / real dialog */
.notice::backdrop { background: rgba(0, 0, 0, 0.65); }
.notice h2 { font-size: var(--step-lead); margin-bottom: 10px; }
.notice p { color: var(--muted); margin-bottom: 22px; }
.notice div { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
/* production cookie banner, restyled for v3 (the banner is a real overlay) */
body #hu-consent-banner { background: var(--surface-2); color: var(--ink); border: 0; border-radius: var(--radius); left: auto; right: var(--margin); transform: none; max-width: 440px; font-family: var(--font); animation: none; } /* taste-skill-ignore: fixed overlay */
body #hu-consent-banner h4 { font-size: var(--step-body); font-weight: 600; }
body #hu-consent-banner p { color: var(--muted); font-size: var(--step-small); }
body #hu-consent-banner a { color: var(--accent); }
body #hu-consent-banner button { border-radius: var(--pill); font-size: var(--step-small); border: 0; }
body #hu-consent-banner .hu-accept { background: var(--accent); color: var(--accent-ink); }
body #hu-consent-banner .hu-reject { background: var(--surface-3); color: var(--ink); }
@media (max-width: 720px) { body #hu-consent-banner { right: auto; left: 16px; } }

@media (max-width: 1080px) {
  .top-time { display: none !important; }
}

/* phones: logo and Telegram on the first row, the four links on a row of their own */
@media (max-width: 820px) {
  .top { position: static; }
  .top-in { flex-wrap: wrap; padding: 12px 0 8px; }
  .top nav { order: 3; width: calc(100% + 16px); margin: 0 -8px; justify-content: space-between; gap: 0; }
  .top nav a { padding: 8px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) { .tg-long { display: none; } }
