:root {
  --background: oklch(0.985 0 0);
  --foreground: oklch(0.145 0 0);
  --primary: oklch(0.3024 0.1261 260.39);
  --primary-foreground: oklch(0.985 0 0);
  --accent: oklch(0.5382 0.1632 253.04);
  --accent-foreground: oklch(0.985 0 0);
  --card: oklch(1 0 0);
  --card-foreground: var(--foreground);
  --muted: oklch(0.967 0 0);
  --muted-foreground: oklch(0.49 0 0);
  --border: oklch(0.91 0 0);
  --ring: var(--accent);
  --destructive: oklch(0.45 0.14 25);
  --radius: 0.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font);
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  scrollbar-color: color-mix(in oklab, var(--foreground) 30%, transparent) var(--muted);
}

body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5rem;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

img,
svg {
  display: block;
}

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.surface-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.surface-primary :focus-visible {
  outline-color: var(--primary-foreground);
}

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

.container {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header (context only, not part of the hero round) */

.site-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4rem;
}

.site-header__logo img {
  height: 2.5rem;
  width: auto;
}

.site-nav {
  display: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--foreground);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--accent);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.menu-btn .icon {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .menu-btn {
    display: none;
  }
}

/* Button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn--lg {
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
}

.btn .icon--arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon--arrow,
.btn.is-hover .icon--arrow {
  transform: translateX(0.125rem);
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn--primary:hover,
.btn--primary.is-hover {
  background: color-mix(in oklab, var(--primary) 90%, transparent);
}

.btn--accent {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn--accent:hover,
.btn--accent.is-hover {
  background: color-mix(in oklab, var(--accent) 90%, var(--primary));
}

.btn--outline {
  border-color: color-mix(in oklab, var(--foreground) 20%, transparent);
  color: var(--foreground);
}

.btn--outline:hover,
.btn--outline.is-hover {
  border-color: color-mix(in oklab, var(--foreground) 40%, transparent);
  background: color-mix(in oklab, var(--foreground) 4%, transparent);
}

.btn--icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border-color: transparent;
  color: var(--foreground);
}

.btn--icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.2s var(--ease);
}

.btn--icon:hover,
.btn--icon.is-hover {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
}

.btn--inverse {
  background: var(--primary-foreground);
  color: var(--primary);
}

.btn--inverse:hover,
.btn--inverse.is-hover {
  background: color-mix(in oklab, var(--primary-foreground) 88%, transparent);
}

.btn--outline-inverse {
  border-color: color-mix(in oklab, var(--primary-foreground) 35%, transparent);
  color: var(--primary-foreground);
}

.btn--outline-inverse:hover,
.btn--outline-inverse.is-hover {
  border-color: color-mix(in oklab, var(--primary-foreground) 60%, transparent);
  background: color-mix(in oklab, var(--primary-foreground) 8%, transparent);
}

.btn.is-focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.surface-primary .btn.is-focus {
  outline-color: var(--primary-foreground);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--icon:disabled,
.btn--icon[aria-disabled="true"] {
  opacity: 1;
  color: var(--muted-foreground);
  background: transparent;
}

.field-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.field {
  display: block;
  width: 100%;
  height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font: inherit;
  caret-color: var(--accent);
}

.field::placeholder {
  color: var(--muted-foreground);
}

.field:hover {
  border-color: color-mix(in oklab, var(--foreground) 30%, var(--border));
}

.field[aria-invalid="true"] {
  border-color: var(--destructive);
}

.field:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.field-msg {
  margin-top: 0.375rem;
  color: var(--destructive);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.field-msg[data-state="success"] {
  color: var(--foreground);
}

.btn .icon--spin {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn .icon--spin {
    animation-duration: 2.4s;
  }

  .btn .icon--arrow {
    transition: none;
  }
}

/* CTA emphasis: how the word "bezpłatną" stands out inside the primary action */

.cta-em--underline {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  text-decoration-skip-ink: none;
}

.cta-em--accent {
  color: var(--accent);
  font-weight: 700;
}

.cta-em--chip {
  padding: 0 0.375rem;
  border-radius: calc(var(--radius) - 2px);
  background: var(--primary-foreground);
  color: var(--primary);
}

.btn--accent .cta-em--chip,
.btn--inverse .cta-em--chip {
  background: var(--primary);
  color: var(--primary-foreground);
}

.cta-em--marker {
  padding-inline: 0.125rem;
  background: linear-gradient(
    transparent 58%,
    color-mix(in oklab, var(--accent) 35%, transparent) 58%
  );
}

.btn--tone {
  font-weight: 400;
  color: color-mix(in oklab, var(--primary-foreground) 82%, transparent);
}

.cta-em--tone {
  color: var(--primary-foreground);
  font-weight: 700;
}

/* Rating link (Clutch) */

.rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: inherit;
  text-decoration: none;
}

.rating__logo {
  height: 1.125rem;
  width: auto;
}

.rating__score {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.stars {
  display: inline-flex;
  gap: 0.125rem;
  color: var(--primary);
}

.stars .icon {
  fill: currentColor;
  stroke: none;
}

.rating__count {
  color: var(--muted-foreground);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition:
    color 0.2s var(--ease),
    text-decoration-color 0.2s var(--ease);
}

.rating .icon--out {
  color: var(--muted-foreground);
  transition: transform 0.2s var(--ease);
}

.rating:hover .rating__count {
  color: var(--foreground);
  text-decoration-color: currentColor;
}

.rating:hover .icon--out {
  transform: translate(1px, -1px);
}

.surface-primary .stars {
  color: var(--primary-foreground);
}

.surface-primary .rating__count,
.surface-primary .rating .icon--out {
  color: color-mix(in oklab, var(--primary-foreground) 75%, transparent);
}

.surface-primary .rating:hover .rating__count {
  color: var(--primary-foreground);
}

/* Trust fact */

.fact {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.fact__value {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.fact__label {
  color: var(--muted-foreground);
}

.fact--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.fact--stack .fact__value {
  padding-bottom: 0.125rem;
  border-bottom: 2px solid var(--accent);
  font-size: 1.875rem;
  line-height: 2.25rem;
  color: var(--primary);
}

.fact--stack .fact__label {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.surface-primary .fact__label {
  color: color-mix(in oklab, var(--primary-foreground) 75%, transparent);
}

/* Trust bar: rating + facts, three layouts */

.trust {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust--strip {
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.trust--strip > li {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.75rem 1.5rem;
}

.trust--strip > li + li {
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .trust--strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust--strip > li + li {
    border-top: 0;
    border-left: 1px solid var(--border);
  }
}

.trust--line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.surface-primary .trust--line {
  border-top-color: color-mix(in oklab, var(--primary-foreground) 18%, transparent);
}

.trust--badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}

.trust--badge .rating {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.2s var(--ease);
}

.trust--badge .rating:hover {
  border-color: color-mix(in oklab, var(--foreground) 35%, transparent);
}

/* Image placeholder (no graphics before the media stage) */

.ph {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  border: 1px dashed color-mix(in oklab, var(--foreground) 22%, transparent);
  border-radius: var(--radius);
  background: var(--muted);
  text-align: center;
}

.ph span {
  max-width: 40ch;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.ph--inverse {
  border-color: color-mix(in oklab, var(--primary-foreground) 32%, transparent);
  background: color-mix(in oklab, var(--primary-foreground) 6%, transparent);
}

.ph--inverse span {
  color: color-mix(in oklab, var(--primary-foreground) 78%, transparent);
}

.ratio-1-1 {
  aspect-ratio: 1 / 1;
}

.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.ratio-5-4 {
  aspect-ratio: 5 / 4;
}

.ratio-16-10 {
  aspect-ratio: 16 / 10;
}

/* Text link */

.link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25rem;
  transition: color 0.2s var(--ease);
}

.link:hover {
  color: var(--accent);
}

/* Chip: a name, not a control */

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

/* Bento card, proposal from the about section. Three surfaces, one cell. */

.bento {
  position: relative;
}

.bento__grid {
  display: grid;
}

.bento__cell {
  min-width: 0;
  padding: 1.5rem;
}

.bento--sheet .bento__grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.bento--sheet .bento__cell {
  background: var(--card);
}

.bento--sheet.bento::after {
  content: "";
  position: absolute;
  inset: -0.75rem;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(color-mix(in oklab, var(--foreground) 45%, transparent), color-mix(in oklab, var(--foreground) 45%, transparent)) top left / 0.85rem 1px no-repeat,
    linear-gradient(color-mix(in oklab, var(--foreground) 45%, transparent), color-mix(in oklab, var(--foreground) 45%, transparent)) top left / 1px 0.85rem no-repeat,
    linear-gradient(color-mix(in oklab, var(--foreground) 45%, transparent), color-mix(in oklab, var(--foreground) 45%, transparent)) top right / 0.85rem 1px no-repeat,
    linear-gradient(color-mix(in oklab, var(--foreground) 45%, transparent), color-mix(in oklab, var(--foreground) 45%, transparent)) top right / 1px 0.85rem no-repeat,
    linear-gradient(color-mix(in oklab, var(--foreground) 45%, transparent), color-mix(in oklab, var(--foreground) 45%, transparent)) bottom left / 0.85rem 1px no-repeat,
    linear-gradient(color-mix(in oklab, var(--foreground) 45%, transparent), color-mix(in oklab, var(--foreground) 45%, transparent)) bottom left / 1px 0.85rem no-repeat,
    linear-gradient(color-mix(in oklab, var(--foreground) 45%, transparent), color-mix(in oklab, var(--foreground) 45%, transparent)) bottom right / 0.85rem 1px no-repeat,
    linear-gradient(color-mix(in oklab, var(--foreground) 45%, transparent), color-mix(in oklab, var(--foreground) 45%, transparent)) bottom right / 1px 0.85rem no-repeat;
}

.bento--cards .bento__grid {
  gap: 1rem;
}

.bento--cards .bento__cell {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.2s var(--ease);
}

.bento--cards .bento__cell:hover {
  border-color: color-mix(in oklab, var(--foreground) 28%, var(--border));
}

.bento--cards .bento__cell--cta {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.bento--cards .bento__cell--cta:hover {
  border-color: var(--primary);
}

.bento--cards .bento__cell--cta :focus-visible {
  outline-color: var(--primary-foreground);
}

.bento--measure .bento__grid {
  gap: 1.5rem 2rem;
}

.bento--measure .bento__cell {
  padding-inline: 0;
  border-bottom: 1px solid var(--border);
}

.bento--measure .bento__cell--about {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.bento--measure .fact--stack .fact__value {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.bento--measure .fact--stack .fact__value::after {
  content: "";
  height: 0.625rem;
  margin-top: 0.375rem;
  background:
    linear-gradient(var(--accent), var(--accent)) left center / 1px 100% no-repeat,
    linear-gradient(var(--accent), var(--accent)) right center / 1px 100% no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat;
}

.bento__art {
  color: var(--foreground);
}

.bento__art svg {
  width: 100%;
  height: auto;
}

.bento--cards .bento__cell--cta .bento__art {
  color: var(--primary-foreground);
}

.bento__line {
  max-width: 38ch;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.bento--cards .bento__cell--cta .bento__line {
  color: var(--primary-foreground);
}

.draw {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento--sheet .draw {
  stroke-width: 1.15;
}

.draw--sketch {
  color: color-mix(in oklab, var(--foreground) 45%, transparent);
}

.bento--cards .bento__cell--cta .draw--sketch {
  color: color-mix(in oklab, var(--primary-foreground) 55%, transparent);
}

.draw--accent {
  color: var(--accent);
}

.draw--fill {
  fill: color-mix(in oklab, var(--accent) 12%, var(--card));
  color: var(--accent);
}

.draw--plate {
  fill: var(--card);
  color: var(--foreground);
}

.bento--measure .draw--plate {
  fill: var(--background);
}

.bento--cards .bento__cell--cta .draw--plate {
  fill: color-mix(in oklab, var(--primary-foreground) 14%, transparent);
  color: var(--primary-foreground);
}

.draw--dot {
  fill: currentColor;
  stroke: none;
}

.draw--ticks {
  visibility: hidden;
  color: var(--accent);
  stroke-width: 1;
}

.bento--measure .draw--ticks {
  visibility: visible;
}
