/* Panel narzędzi Carsonnet: wygląd jak jasny motyw carsonnet.com (akcent #e8202e, Sora i Inter). */

/* Fonty z własnego serwera (licencja SIL OFL 1.1, pliki LICENSE-*.txt w katalogu fonts). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-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';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-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: 'Sora';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(fonts/sora-latin-ext-wght-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: 'Sora';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(fonts/sora-latin-wght-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;
}

:root {
  --bg: #f4f5f7;
  --bg-grad-1: #ffffff;
  --bg-grad-2: #eef0f3;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eef0f3;
  --border: rgba(15, 20, 30, .10);
  --border-strong: rgba(15, 20, 30, .18);
  --text: #14171c;
  --text-dim: #4a525e;
  --text-mute: #646c79;
  --accent: #e8202e;
  --accent-hover: #ff3543;
  --accent-ink: #c8101d;
  --accent-soft: rgba(232, 32, 46, .10);
  --accent-line: rgba(232, 32, 46, .30);
  --shadow-sm: 0 1px 2px rgba(20, 30, 50, .06);
  --shadow-md: 0 8px 24px -10px rgba(20, 30, 50, .18);
  --shadow-lg: 0 24px 50px -16px rgba(20, 30, 50, .22);
  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1320px;
  --gutter: 24px;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', var(--font-ui);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(232, 32, 46, .09), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(79, 155, 255, .06), transparent 55%),
    linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2) 45%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-soft); color: var(--text); }

a { color: inherit; }

a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--text); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Nagłówek ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 245, 247, .82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 64px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; text-decoration: none; }
.logo { display: block; height: 22px; width: auto; aspect-ratio: 250.865 / 24.856; color: var(--text); }
.brand:hover .logo { opacity: .85; }
.topbar__meta { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.lang-select-wrap { position: relative; display: inline-flex; align-items: center; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  height: 38px; padding: 0 32px 0 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .01em;
  cursor: pointer; transition: border-color .16s ease;
}
.lang-select:hover { border-color: var(--border-strong); }
.lang-select__chev {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--text-mute); pointer-events: none;
}

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-dim); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: color .16s ease, border-color .16s ease;
}
.back-link svg { width: 16px; height: 16px; flex: 0 0 auto; }
.back-link:hover { color: var(--text); border-color: var(--border-strong); }

/* ---------- Wstęp ---------- */
main { flex: 1 0 auto; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.hero { position: relative; padding: 64px 0 36px; }
.hero__text { position: relative; max-width: 860px; }
/* Litery "ON" z logo jako delikatny znak w tle wstępu (tylko szerokie ekrany). */
.hero__mark {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: min(400px, 30vw); height: auto;
  color: var(--accent); opacity: .09; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .15), #000 75%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .15), #000 75%);
}
.hero__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 18px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--accent); }
.demo-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .6);
  color: var(--text-mute); font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 5.2vw, 58px); line-height: 1.05; letter-spacing: -.025em;
  overflow-wrap: break-word; hyphens: auto;
}
.lead { margin-top: 18px; max-width: 62ch; color: var(--text-dim); font-size: 18px; line-height: 1.6; }

/* ---------- Kafelki narzędzi ---------- */
.tools { padding: 8px 0 72px; }
.tools__grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.tile {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 250px; padding: 28px 28px 24px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(125deg, transparent 62%, var(--accent-soft));
  opacity: .55; pointer-events: none; transition: opacity .2s ease;
}
.tile:hover, .tile:focus-within {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-lg);
}
.tile:hover::after, .tile:focus-within::after { opacity: 1; }

.tile__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.tile__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 15px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(232, 32, 46, .14);
}
.tile__icon svg { width: 34px; height: 34px; }
.tile__no { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--text-mute); opacity: .7; }

.tile__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 23px; line-height: 1.2; letter-spacing: -.015em;
  overflow-wrap: break-word;
}
.tile__link { color: var(--text); text-decoration: none; }
/* Cały kafelek jest klikalny, a nazwą linku zostaje sama nazwa narzędzia. */
.tile__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tile__link:focus-visible { outline: none; }
.tile:has(.tile__link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

.tile__desc { margin-top: 10px; color: var(--text-dim); font-size: 15.5px; line-height: 1.6; max-width: 54ch; }

.tile__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 22px;
  color: var(--accent-ink); font-size: 14.5px; font-weight: 700;
}
.tile__cta svg { width: 17px; height: 17px; transition: transform .2s ease; }
.tile:hover .tile__cta svg, .tile:focus-within .tile__cta svg { transform: translateX(4px); }

/* ---------- Stopka ---------- */
.footer { border-top: 1px solid var(--border); background: #eceef1; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 52px var(--gutter) 32px;
  display: grid; grid-template-columns: 1.7fr 1fr 1.2fr 1fr; gap: 36px;
}
.footer__brand .logo { height: 22px; margin-bottom: 16px; }
.footer__tag { color: var(--text-dim); font-size: 14px; line-height: 1.55; max-width: 36ch; }
.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute);
}
.footer__col a, .footer__col p {
  display: block; margin-bottom: 9px;
  color: var(--text-dim); font-size: 14px; line-height: 1.5; text-decoration: none;
}
.footer__col p { margin-bottom: 14px; }
.footer__col a { width: fit-content; max-width: 100%; overflow-wrap: anywhere; transition: color .14s ease; }
.footer__col a:hover { color: var(--accent-ink); }
.country {
  display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 5px;
  border: 1px solid var(--border-strong); color: var(--text-mute);
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; vertical-align: 1px;
}
.footer__bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter) 28px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  color: var(--text-mute); font-size: 12.5px;
}
.footer__demo { opacity: .85; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .hero__mark { display: none; }
}
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { padding: 48px 0 28px; }
  .tile { min-height: 0; padding: 24px 22px 22px; }
  .tile__name { font-size: 21px; }
  .lead { font-size: 17px; }
}

/* ---------- Telefon ---------- */
@media (max-width: 720px) {
  .tools__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tools { padding-bottom: 56px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .topbar__inner { height: 58px; gap: 10px; }
  .topbar__meta { gap: 8px; }
  .logo { height: 17px; }
  .back-link { width: 38px; padding: 0; justify-content: center; }
  .back-link__text {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .hero { padding: 36px 0 22px; }
  .hero h1 { font-size: clamp(30px, 9vw, 38px); }
  .lead { font-size: 16px; margin-top: 14px; }
  .tile__top { margin-bottom: 16px; }
  .tile__icon { width: 50px; height: 50px; border-radius: 13px; }
  .tile__icon svg { width: 31px; height: 31px; }
  .tile__name { font-size: 20px; }
  .tile__desc { font-size: 15px; }
  .tile__cta { padding-top: 16px; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 40px; }
  .footer__bottom { flex-direction: column; }
}
@media (max-width: 360px) {
  .logo { height: 15px; }
  .lang-select { padding: 0 28px 0 10px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tile:hover, .tile:focus-within { transform: none; }
}

@media print {
  .topbar { position: static; background: #fff; }
  .lang-select-wrap, .back-link, .skip { display: none !important; }
  body { background: #fff; }
  .tile { break-inside: avoid; box-shadow: none; }
}
