/* pricewhale.eu - design tokenek v2 (2026-09-24)
   Egy akcentuscsalad: mely petrol -> tavaszi zold. Huvos neutralok.
   Szabalyok:
     - EGY sarokradiiusz-rendszer: felulet 22px, vezerlo 14px, jelveny pill.
     - EGY akcentus; a gradiens ugyanazon csalad harom stopja.
     - Szam csak mono betuvel, tabularis szamjegyekkel.
     - Tilos a tiszta fekete es a tiszta feher.
     - Minden mozgas a prefers-reduced-motion alatt kikapcsol. */

:root {
  color-scheme: light;

  /* ---- neutralok (vilagos) ---- */
  --bg: #eef2f4;
  --bg-2: #f7fafb;
  --bg-3: #e6edef;
  --surface: #fcfdfd;
  --surface-2: #f5f9fa;
  --surface-sunk: #e9eff1;
  --ink: #061417;
  --ink-2: #1c3238;
  --muted: #5b7178;
  --line: #d9e3e6;
  --line-2: #c2d0d5;

  /* ---- akcentus (vilagos) ---- */
  --accent: #0a7c72;
  --accent-hover: #08655d;
  --accent-2: #12b39a;
  --accent-3: #8fd94f;
  --accent-ink: #f6fdfb;
  --accent-soft: #dff0ec;
  --accent-soft-2: #c9e8e0;
  --good: #0a7350;
  --warn: #8f5d12;

  /* ---- gradiens (egy csalad harom stopja) ---- */
  --grad-1: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 62%, var(--accent-3) 130%);
  --grad-2: linear-gradient(160deg, var(--accent-2) 0%, var(--accent) 100%);
  --grad-ring: linear-gradient(140deg, color-mix(in srgb, var(--accent) 70%, transparent),
                                color-mix(in srgb, var(--accent-3) 55%, transparent));
  --grad-sheen: linear-gradient(105deg, transparent 30%, color-mix(in srgb, #fff 55%, transparent) 48%, transparent 62%);

  /* ---- arnyek: a hatter hue-jara hangolva, nem tiszta fekete ---- */
  --shadow-1: 0 1px 2px color-mix(in srgb, var(--accent) 10%, transparent);
  --shadow-2: 0 14px 34px -22px color-mix(in srgb, #052b2a 45%, transparent);
  --shadow-3: 0 30px 70px -40px color-mix(in srgb, #052b2a 60%, transparent);
  --shadow-nav: 0 10px 30px -24px color-mix(in srgb, #052b2a 70%, transparent);
  --glow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent),
          0 18px 44px -26px color-mix(in srgb, var(--accent) 60%, transparent);

  /* ---- betu ---- */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --fs-2xs: 11.5px;
  --fs-xs: 12.5px;
  --fs-sm: 13.5px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 20px;
  --fs-2xl: 25px;
  --fs-3xl: clamp(1.75rem, 3.2vw, 2.5rem);
  --fs-hero: clamp(2.05rem, 4.6vw, 3.9rem);
  --lh-tight: 1.05;
  --lh-body: 1.55;
  --track-tight: -0.035em;

  /* ---- forma: EGY radiiusz-rendszer ---- */
  --r-surface: 22px;   /* kartyak, csempék, panelek */
  --r-control: 14px;   /* gombok, mezok, szakaszok */
  --r-chip: 999px;     /* jelvenyek, buborekok, pill-ek */
  --r-xs: var(--r-control);
  --r-sm: var(--r-control);
  --r: var(--r-surface);
  --r-lg: var(--r-surface);
  --r-pill: var(--r-chip);

  /* ---- ritmus es racs ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 22px; --sp-6: 28px; --sp-7: 38px; --sp-8: 52px;
  --shell: min(1760px, 100% - clamp(20px, 3.2vw, 64px));
  --maxw: 1760px;
  --nav-h: 66px;
  --gap-grid: clamp(12px, 1.1vw, 18px);

  /* ---- mozgas ---- */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.22, .9, .24, 1);
  --dur-1: .18s;
  --dur-2: .42s;
  --dur-3: .72s;
  --stagger: 65ms;
}

/* sotet paletta: egy helyen, mindket kivaltoval */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #050d10;
    --bg-2: #08161a;
    --bg-3: #030a0c;
    --surface: #0c1a1f;
    --surface-2: #102127;
    --surface-sunk: #08151a;
    --ink: #e6f2f3;
    --ink-2: #bed2d5;
    --muted: #8ea4a9;
    --line: #1b2f35;
    --line-2: #2a444c;
    --accent: #2fd7bd;
    --accent-hover: #57e3cd;
    --accent-2: #6ff0c0;
    --accent-3: #c6f56a;
    --accent-ink: #04211d;
    --accent-soft: #0d2b2b;
    --accent-soft-2: #123a37;
    --good: #4ed69c;
    --warn: #e0b062;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .55);
    --shadow-2: 0 14px 34px -22px rgba(0, 0, 0, .9);
    --shadow-3: 0 34px 80px -46px rgba(0, 0, 0, 1);
    --shadow-nav: 0 12px 34px -26px rgba(0, 0, 0, 1);
    --glow: 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent),
            0 20px 50px -28px color-mix(in srgb, var(--accent) 55%, transparent);
    --grad-sheen: linear-gradient(105deg, transparent 30%, color-mix(in srgb, #fff 18%, transparent) 48%, transparent 62%);
  }
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050d10;
  --bg-2: #08161a;
  --bg-3: #030a0c;
  --surface: #0c1a1f;
  --surface-2: #102127;
  --surface-sunk: #08151a;
  --ink: #e6f2f3;
  --ink-2: #bed2d5;
  --muted: #8ea4a9;
  --line: #1b2f35;
  --line-2: #2a444c;
  --accent: #2fd7bd;
  --accent-hover: #57e3cd;
  --accent-2: #6ff0c0;
  --accent-3: #c6f56a;
  --accent-ink: #04211d;
  --accent-soft: #0d2b2b;
  --accent-soft-2: #123a37;
  --good: #4ed69c;
  --warn: #e0b062;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .55);
  --shadow-2: 0 14px 34px -22px rgba(0, 0, 0, .9);
  --shadow-3: 0 34px 80px -46px rgba(0, 0, 0, 1);
  --shadow-nav: 0 12px 34px -26px rgba(0, 0, 0, 1);
  --glow: 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent),
          0 20px 50px -28px color-mix(in srgb, var(--accent) 55%, transparent);
  --grad-sheen: linear-gradient(105deg, transparent 30%, color-mix(in srgb, #fff 18%, transparent) 48%, transparent 62%);
}

*, *::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-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.022em; font-weight: 660; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-control);
}

/* szamok: mindig mono, tabularis */
.num, .big, .pr, .stat b, .gap, .ex-table .v, .pricebox .v, .cnt, .pv, .lo, .hi {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* hianyzo forditas: latszik, hogy mi nincs meg */
.missing { opacity: .5; }
.missing::after { content: " ?"; color: var(--warn); }

/* mozgas: minden animacio egy kepessejtol fugg */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
