/* Sceneo: company landing page.
   System fonts only, no images other than inline SVG, no external requests.
   Design tokens are shared with the payment pages served by the API: keep them in sync. */

:root {
  --paper: #f5f2ec;
  --surface: #ffffff;
  --ink: #16150f;
  --muted: #6a675d;
  --line: #e2ddd1;
  --accent: #b8512d;
  --accent-ink: #ffffff;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;
  --gutter: clamp(16px, 5vw, 24px);
  --section-pad: clamp(72px, 12vw, 160px);
  --accent-hover: #9e4526;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -120px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.skip:focus-visible {
  outline-color: var(--accent);
}

/* ---------- header ---------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.625rem;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-static {
  min-height: 0;
  margin-bottom: 16px;
}

.logo-mark {
  flex: none;
  color: var(--ink);
}

.logo-frame {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
}

.acc {
  fill: var(--accent);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
}

.nav a:not(.nav-cta):hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.nav .nav-cta {
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.nav .nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 719px) {
  .nav .opt {
    display: none;
  }
}

/* ---------- typography ---------- */

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  max-width: 22ch;
  font-size: clamp(2.4rem, 6vw + 1rem, 5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.9rem, 2.2vw + 1.25rem, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  max-width: 38rem;
  font-size: clamp(1.125rem, 1vw + 0.95rem, 1.4rem);
  line-height: 1.5;
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: var(--accent-ink);
}

@media (max-width: 519px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(48px, 8vw, 112px) clamp(56px, 8vw, 104px);
}

.hero-lower {
  display: grid;
  gap: 32px;
  margin-top: clamp(28px, 4vw, 44px);
}

@media (min-width: 900px) {
  .hero-lower {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 64px;
  }
}

.art-wrap {
  margin-top: clamp(48px, 7vw, 88px);
}

.art {
  display: block;
  width: 100%;
  height: clamp(84px, 9vw, 120px);
  overflow: hidden;
  color: var(--ink);
}

.art .f {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.art .dash {
  stroke-dasharray: 2 5;
}

.art .perf {
  fill: var(--muted);
  opacity: 0.5;
}

.hero-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero-sub {
  padding-block: clamp(48px, 8vw, 104px) clamp(48px, 7vw, 88px);
}

.hero-sub h1 {
  font-size: clamp(2.2rem, 5vw + 0.9rem, 4rem);
  max-width: 20ch;
}

.hero-sub .hero-note {
  margin-top: 40px;
}

.hero-404 {
  min-height: 60vh;
}

/* ---------- sections ---------- */

.section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line);
  scroll-margin-top: 8px;
}

.section-surface {
  background: var(--surface);
}

.split {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 7vw, 112px);
  }

  /* The heading column is narrow: keep long words such as "przygotowujemy" on one line. */
  .split .section-head h2 {
    font-size: clamp(1.75rem, 1.1vw + 1.35rem, 2.5rem);
  }
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head-wide {
  max-width: 48rem;
}

.section-intro {
  margin-top: 20px;
  max-width: 38rem;
  color: var(--muted);
}

.section-note {
  margin-top: 32px;
  color: var(--muted);
}

.section-note a {
  color: var(--ink);
}

.statement {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw + 1rem, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 32px 0 36px;
  border-top: 1px solid var(--line);
}

.steps h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.steps p {
  max-width: 24rem;
  color: var(--muted);
}

.num {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.num::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 18px;
  background: var(--accent);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 48px;
  }

  .steps li {
    border-top-color: var(--ink);
  }
}

/* ---------- industry cards ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .card {
    min-height: 240px;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s;
}

.card:hover,
.card:focus-within {
  border-color: var(--ink);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  font-weight: 600;
  color: var(--ink);
}

/* The whole card is the click target. */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card-link:focus-visible {
  outline: none;
}

.card:has(.card-link:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- points (AI approach, niche pages) ---------- */

.points {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
}

.points h3 {
  margin-bottom: 8px;
}

.points p {
  max-width: 34rem;
}

.points-grid {
  margin-top: clamp(40px, 6vw, 72px);
}

@media (min-width: 760px) {
  .points-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 6vw, 96px);
  }
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  gap: 20px;
  max-width: 36rem;
}

.contact-lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.5vw + 1rem, 1.9rem);
  line-height: 1.3;
}

.contact-hint {
  color: var(--muted);
}

.contact-hint a {
  color: var(--ink);
}

.contact .actions {
  margin-top: 8px;
}

.contact-mail {
  font-size: 0.9375rem;
  color: var(--muted);
}

.contact-mail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- footer ---------- */

.site-footer {
  padding-block: clamp(48px, 8vw, 96px) 32px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}

.footer-brand,
.footer-contact {
  grid-column: 1 / -1;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.4fr);
    gap: 32px;
  }

  .footer-brand,
  .footer-contact {
    grid-column: auto;
  }
}

.footer-brand p + p {
  margin-top: 4px;
}

.footer-brand p {
  max-width: 22rem;
}

.nowrap {
  white-space: nowrap;
}

.footer-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- motion (CSS only, off for reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .rise {
    animation: rise 0.9s cubic-bezier(0.2, 0.65, 0.2, 1) both;
  }

  .d1 {
    animation-delay: 0.08s;
  }

  .d2 {
    animation-delay: 0.16s;
  }

  .d3 {
    animation-delay: 0.28s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}
