/* The new pages of relay K2 (src/components/sections/) and the new frame (header links, footer
   columns). Loaded after the page's own stylesheet on every page of a language that has the new
   copy (Base.astro), so it uses the tokens of site.css / calculator.css and adds no new colours,
   fonts or spacings. Every class here starts with "s-" (sections) or "f-" (frame), so it never
   touches the migrated pages. */

/* ---------- header: five links (architektura-informacji.md section 7) ---------- */
.nav-link[aria-current] { color: var(--ink); }
/* five links and the button need about 1160 px in the longest language (pl); below that the
   menu carries them */
@media (max-width: 1160px) {
  :where(html:is([lang="en"], [lang="pl"])) .nav-link { display: none; }
  :where(html:is([lang="en"], [lang="pl"])) .nav-burger { display: inline-flex; }
  :where(html:is([lang="en"], [lang="pl"])) .mobile-menu { display: block; }
}

/* ---------- footer: four columns ---------- */
.f-cols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 56px;
  position: relative;
}
.f-cols h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: rgba(62, 197, 243, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 22px;
}
.f-links { list-style: none; }
.f-links li { margin-bottom: 11px; font-size: 0.95rem; }
.f-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s;
}
.f-links a:hover { color: var(--sky); }
.f-brand img { width: 50px; height: 50px; margin-bottom: 22px; filter: brightness(1.1); }
.f-brand .f-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
  line-height: 1.6;
}
.f-brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.97rem; max-width: 300px; line-height: 1.6; }
.f-bottom a { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(255, 255, 255, 0.3); }
.f-bottom a:hover { color: var(--sky); }
@media (max-width: 1100px) {
  .f-cols { grid-template-columns: 1fr 1fr 1fr; gap: 40px 32px; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .f-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .f-cols { grid-template-columns: 1fr; }
}

/* ---------- footer: the news sign-up (a light card, the form as on the pages) ---------- */
.f-news {
  display: grid;
  /* the heading under the brand column, the card from the first link column on */
  grid-template-columns: 1.1fr 4.1fr;
  gap: 40px;
  margin-bottom: 56px;
  position: relative;
}
.f-news h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: rgba(62, 197, 243, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.f-news-card { background: var(--surface, #fff); color: var(--ink); border-radius: 20px; padding: 24px; max-width: 560px; }
@media (max-width: 1100px) {
  .f-news { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 760px) {
  .f-news { grid-template-columns: 1fr; gap: 18px; }
  .f-news-card { padding: 20px 16px; }
}

/* ---------- page hero ---------- */
.s-hero {
  position: relative;
  padding: 64px 0 70px;
  overflow: hidden;
}
.s-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
.s-hero-grid.s-has-figure { grid-template-columns: 1.2fr 1fr; }
.s-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 22px;
}
.s-crumbs a { color: var(--ink-soft); text-decoration: none; }
.s-crumbs a:hover { color: var(--sky-deep); }
.s-hero h1 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 20px;
  color: var(--ink);
  max-width: 820px;
  overflow-wrap: break-word;
}
.s-hero h1 em, .s-head h2 em, .s-cta h2 em {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--sky-deep);
  font-size: 1.04em;
}
.s-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 680px;
  margin-bottom: 30px;
}
.s-lede strong { color: var(--ink); font-weight: 600; }
.s-hero .cta-row { margin-bottom: 0; }
.s-note-line {
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faded);
  text-transform: uppercase;
}
.s-hero-blob {
  position: absolute;
  top: -180px;
  right: -200px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(62, 197, 243, 0.16) 0%, transparent 60%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

/* ---------- sections ---------- */
.s-section { padding: 90px 0; position: relative; }
.s-section.s-tight { padding: 60px 0; }
.s-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--sky-haze) 100%); }
.s-head { margin-bottom: 48px; max-width: 760px; }
.s-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.s-head .section-intro { max-width: 680px; }
.s-head.s-center { margin-left: auto; margin-right: auto; text-align: center; }
.s-head.s-center .section-intro { margin: 0 auto; }

/* cards */
.s-grid { display: grid; gap: 16px; }
.s-cols-2 { grid-template-columns: repeat(2, 1fr); }
.s-cols-3 { grid-template-columns: repeat(3, 1fr); }
.s-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
  .s-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .s-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .s-cols-2, .s-cols-3, .s-cols-4 { grid-template-columns: 1fr; }
}
.s-card { display: flex; flex-direction: column; overflow-wrap: break-word; }
.s-card p + p { margin-top: 10px; }
.s-card .s-fact {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.86rem;
  color: var(--sky-deep);
  font-weight: 500;
}
.s-card .s-more {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--sky-deep);
  text-decoration: none;
}
.s-card .s-more:hover { color: var(--ink); }
a.s-card { text-decoration: none; color: inherit; }

/* numbered steps */
.s-steps { display: flex; flex-direction: column; }
.s-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.s-step:last-child { border-bottom: none; }
.s-step .s-num {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 2.4rem;
  color: var(--sky-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}
.s-step h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.018em;
  margin-bottom: 6px;
  color: var(--ink);
}
.s-step p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.58; }
.s-step p + p { margin-top: 8px; }
.s-step strong { color: var(--ink); font-weight: 600; }
.s-steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.s-steps-row .s-step {
  display: block;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 26px 24px;
}
.s-steps-row .s-num { display: block; margin-bottom: 12px; }
@media (max-width: 860px) { .s-steps-row { grid-template-columns: 1fr; } }

/* text beside a picture */
.s-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.s-split.s-rev > :first-child { order: 2; }
.s-split .s-head { margin-bottom: 22px; }
.s-split .s-body p { color: var(--ink-soft); font-size: 1.04rem; line-height: 1.62; }
.s-split .s-body p + p { margin-top: 12px; }
.s-split .s-body strong { color: var(--ink); font-weight: 600; }
.s-bullets { list-style: none; margin-top: 18px; }
.s-bullets li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  border-bottom: 1px dashed var(--line);
}
.s-bullets li:last-child { border-bottom: none; }
.s-bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px rgba(62, 197, 243, 0.16);
}
.s-bullets strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .s-split, .s-hero-grid.s-has-figure { grid-template-columns: 1fr; gap: 36px; }
  .s-split.s-rev > :first-child { order: 0; }
}

/* a screenshot in a frame */
.s-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--shadow-lift);
}
.s-figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.s-figure figcaption {
  padding: 12px 8px 4px;
  font-size: 0.86rem;
  color: var(--ink-faded);
}

/* a band with a sentence and a link */
.s-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding: 30px 36px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.s-strip p { font-size: 1.12rem; font-weight: 600; color: var(--ink); max-width: 720px; }
.s-strip p span { display: block; font-weight: 400; font-size: 0.98rem; color: var(--ink-soft); margin-top: 4px; }

/* three options side by side (integration, pricing add-ons, documentation) */
.s-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.s-options.s-two { grid-template-columns: repeat(2, 1fr); }
.s-option {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 28px;
  overflow-wrap: break-word;
}
.s-option.s-featured { border-color: var(--sky); box-shadow: var(--shadow-lift); }
.s-badge {
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-deep);
  background: var(--sky-mist);
  border-radius: 100px;
  padding: 6px 12px;
  margin-bottom: 18px;
}
.s-badge.s-warm { color: #9a5a1c; background: var(--peach-soft); }
.s-option h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.s-option > p { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.58; }
.s-price {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 14px 0 2px;
}
.s-price small { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.s-option .s-bullets { margin-bottom: 22px; }
.s-option .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 960px) {
  .s-options, .s-options.s-two { grid-template-columns: 1fr; }
}

/* the data flow: program -> files -> machine */
.s-flow { display: grid; grid-template-columns: 1fr 1.2fr 1.3fr; gap: 0; align-items: stretch; }
.s-flow-col { display: flex; flex-direction: column; gap: 12px; position: relative; }
.s-flow-col + .s-flow-col { padding-left: 44px; }
.s-flow-col + .s-flow-col::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 22px;
  height: 2px;
  background: var(--sky-deep);
}
.s-flow-col + .s-flow-col::after {
  content: "";
  position: absolute;
  left: 28px;
  top: calc(50% - 6px);
  border: 7px solid transparent;
  border-left: 9px solid var(--sky-deep);
}
.s-flow-cap {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 2px;
}
.s-flow-pd {
  flex: 1;
  background: var(--ink);
  color: white;
  border-radius: 22px;
  padding: 26px 24px;
}
.s-flow-pd .s-flow-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.s-flow-pd .s-flow-name img { width: 34px; height: 34px; }
.s-flow-pd ul { list-style: none; }
.s-flow-pd li { padding: 5px 0; color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }
.s-flow-pd li::before { content: "› "; color: var(--sky); font-weight: 700; }
.s-flow-pd .s-flow-base {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
}
.s-flow-pd .s-flow-base b { display: block; color: white; margin-bottom: 4px; }
.s-file, .s-target {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
}
.s-file.s-main { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(62, 197, 243, 0.14); }
.s-file .s-ext {
  flex-shrink: 0;
  min-width: 52px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: white;
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--sky-deep);
}
.s-ext.s-pdf { background: #c0473b; }
.s-ext.s-json { background: #2f7a55; }
.s-ext.s-csv { background: #8a5a2b; }
.s-ext.s-db { background: var(--sky-deep); }
.s-ext.s-order { background: #5b4a9a; }
.s-file b, .s-target b { display: block; font-size: 0.97rem; color: var(--ink); line-height: 1.3; }
.s-file span, .s-target span { display: block; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; }
.s-target { background: var(--sky-haze); }
.s-target .s-ico { flex-shrink: 0; width: 36px; height: 36px; color: var(--sky-deep); }
.s-flow-foot { margin-top: 26px; font-size: 0.95rem; color: var(--ink-soft); max-width: 900px; }
@media (max-width: 960px) {
  .s-flow { grid-template-columns: 1fr; gap: 0; }
  .s-flow-col + .s-flow-col { padding-left: 0; padding-top: 44px; }
  .s-flow-col + .s-flow-col::before { left: 50%; top: 10px; width: 2px; height: 22px; }
  .s-flow-col + .s-flow-col::after { left: calc(50% - 6px); top: 28px; border: 7px solid transparent; border-top: 9px solid var(--sky-deep); }
}

/* facts: label and value rows */
.s-facts {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
}
.s-facts > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) 2fr;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.s-facts > div:last-child { border-bottom: none; }
.s-facts dt { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.s-facts dd { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; overflow-wrap: anywhere; }
.s-facts code, .s-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  color: var(--ink);
  background: var(--sky-mist);
  border-radius: 6px;
  padding: 2px 6px;
}
@media (max-width: 600px) {
  .s-facts > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
}

/* plain text */
.s-prose { max-width: 760px; }
.s-prose p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.68; }
.s-prose p + p { margin-top: 14px; }
.s-prose strong { color: var(--ink); font-weight: 600; }
.s-prose a, .s-step a, .s-split a, .s-option > p a, .s-facts a, .s-box a, .s-lede a {
  color: var(--sky-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted var(--sky-deep);
}

/* a framed box: form place, notes */
.s-box {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 32px 32px;
  box-shadow: var(--shadow-soft);
}
.s-box h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--ink);
}
.s-box p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.58; }
.s-box p + p { margin-top: 10px; }
.s-box .cta-row { margin-top: 22px; margin-bottom: 0; }
.s-two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .s-two-col { grid-template-columns: 1fr; } }

/* questions */
.s-faq .faq-list { max-width: 860px; }

/* closing call */
.s-cta .cta-row { justify-content: center; }
.s-cta .s-note-line { text-align: center; }

/* a film */
.s-film .video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #0a2c3d;
  cursor: pointer;
  display: block;
  overflow: hidden;
}
.s-film .video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-film .video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px -10px rgba(10, 44, 61, 0.55);
  z-index: 1;
}
.s-film .video-play svg { width: 34px; height: 34px; margin-left: 5px; }
.s-film .video-facade:hover .video-play { background: var(--sky-deep); }
.s-film .video-badge {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 44, 61, 0.7);
  padding: 5px 10px;
  border-radius: 100px;
}
.s-film video { position: absolute; inset: 0; width: 100%; height: 100%; background: #0a2c3d; }
@media (max-width: 540px) {
  .s-film .video-play { width: 64px; height: 64px; }
  .s-film .video-play svg { width: 26px; height: 26px; margin-left: 4px; }
}

/* site map */
.s-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.s-map h2 { font-size: 1.2rem; letter-spacing: -0.015em; margin-bottom: 14px; }
.s-map ul { list-style: none; }
.s-map li { padding: 6px 0; }
.s-map a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px dotted var(--line); }
.s-map a:hover { color: var(--sky-deep); }
@media (max-width: 900px) { .s-map { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .s-map { grid-template-columns: 1fr; } }

/* legal texts */
.s-legal { max-width: 820px; color: var(--ink-soft); font-size: 1rem; line-height: 1.68; overflow-wrap: break-word; }
.s-legal h2 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 40px 0 14px;
}
.s-legal h3 { font-family: 'IBM Plex Sans', sans-serif; font-size: 1.12rem; color: var(--ink); margin: 26px 0 10px; }
.s-legal p { margin-bottom: 12px; }
.s-legal ul, .s-legal ol { margin: 0 0 14px 22px; }
.s-legal li { margin-bottom: 6px; }
.s-legal strong { color: var(--ink); }
.s-legal a { color: var(--sky-deep); text-decoration: none; border-bottom: 1px dotted var(--sky-deep); overflow-wrap: anywhere; }
.s-legal .s-table { overflow-x: auto; margin: 6px 0 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.s-legal table { border-collapse: collapse; width: 100%; font-size: 0.9rem; line-height: 1.5; }
.s-legal th, .s-legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.s-legal th { color: var(--ink); font-weight: 600; background: var(--sky-haze); }
.s-legal-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faded);
  margin-bottom: 8px;
}
.s-binding {
  max-width: 820px;
  margin-bottom: 28px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--sky-mist);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.s-binding a { color: var(--sky-deep); font-weight: 600; }
@media (max-width: 640px) {
  .s-legal .s-table { border: 0; background: none; overflow: visible; }
  .s-legal table, .s-legal tbody, .s-legal tr, .s-legal td { display: block; width: 100%; }
  .s-legal thead { display: none; }
  .s-legal tr { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 12px; padding: 6px 0; }
  .s-legal td { border-bottom: 0; padding: 6px 14px; font-size: 0.9rem; }
  .s-legal td::before {
    content: attr(data-label);
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faded);
    margin-bottom: 2px;
  }
}

/* who makes it */
.s-maker {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  align-items: center;
  max-width: 900px;
}
.s-maker img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-soft); }
.s-maker .section-label { margin-bottom: 14px; }
.s-maker h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.s-maker p { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; margin-bottom: 10px; }
.s-maker .s-more { font-weight: 600; color: var(--sky-deep); text-decoration: none; }
@media (max-width: 600px) {
  .s-maker { grid-template-columns: 1fr; gap: 20px; }
  .s-maker img { width: 120px; height: 120px; }
}

/* today's footer on a new page of a language still on today's frame (the German legal texts):
   one column on a phone, as on the home page */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* a grid cell never grows past the screen because of a long button: the cell may shrink, and on a
   narrow phone a button's label wraps inside the button */
.s-hero-grid > *, .s-two-col > *, .s-split > *, .s-grid > *, .s-options > * { min-width: 0; }
@media (max-width: 420px) {
  .s-section .btn, .s-hero .btn, .s-cta .btn, .hero .btn { white-space: normal; text-align: left; }
  .s-box { padding: 26px 20px; }
}

/* the new frame has five links: the tagline beside the logo would wrap to two or three lines and
   change the header's height with the length of the language list, so it gives way */
:where(html:is([lang="en"], [lang="pl"])) .brand-tag { display: none; }

/* ---------- pricing: toggles, edition cards, add-ons (K2-2) ---------- */
/* a text a toggle changes stands in a stack: every variant in one grid cell, only the chosen one
   visible, so the cell keeps the height of its longest variant and nothing below moves */
.s-pr-stack { display: grid; }
.s-pr-stack > * { grid-area: 1 / 1; }
.s-pr-stack > :not(.is-on) { visibility: hidden; }

.s-pr-toggles { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-bottom: 30px; }
.s-pr-toggle { border: 0; padding: 0; margin: 0; min-width: 0; }
.s-pr-toggle legend {
  padding: 0;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faded);
}
.s-pr-seg {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
}
.s-pr-seg label { position: relative; display: flex; cursor: pointer; }
.s-pr-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.s-pr-seg span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 16px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.s-pr-seg label:hover span { color: var(--ink); }
.s-pr-seg input:checked + span { background: var(--ink); color: white; }
.s-pr-seg input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.s-pr-off {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2f7a55;
  background: var(--mint-soft);
  border-radius: 100px;
  padding: 3px 8px;
  white-space: nowrap;
}

.s-pr-price { margin: 12px 0 6px; }
.s-pr-was { min-height: 1.5em; font-size: 0.95rem; color: var(--ink-faded); }
.s-pr-was s { text-decoration-thickness: 1.5px; }
.s-pr-amount {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 8vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.s-pr-unit { font-size: 0.92rem; color: var(--ink-soft); }
.s-pr-note {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--sky-haze);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--sky-deep);
  font-weight: 500;
}
.s-pr-card > p { margin-bottom: 22px; }
.s-pr-try {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: var(--sky-deep);
  text-decoration: none;
  border-bottom: 1px dotted var(--sky-deep);
}
.s-pr-try svg { width: 16px; height: 16px; margin-left: 8px; vertical-align: -3px; }
.s-pr-try:hover { color: var(--ink); }

.s-pr-addons .s-option > p { margin-bottom: 18px; }
.s-pr-line { display: flex; flex-direction: column; margin: 6px 0 12px; }
.s-pr-line [data-item] { white-space: nowrap; font-variant-numeric: tabular-nums; }
.s-pr-ai { margin: 0 0 22px; border-top: 1px dashed var(--line); }
.s-pr-ai > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9.5rem;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.s-pr-ai dt b { display: block; color: var(--ink); font-size: 0.97rem; }
.s-pr-ai dt span, .s-pr-ai dd span { display: block; color: var(--ink-soft); font-size: 0.86rem; line-height: 1.4; }
.s-pr-ai dd { text-align: right; }
.s-pr-ai dd b { display: block; color: var(--ink); font-size: 1.15rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.s-pr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: auto; }
.s-pr-actions .btn { margin-top: 0; }
.s-pr-more { font-weight: 600; font-size: 0.93rem; color: var(--sky-deep); text-decoration: none; border-bottom: 1px dotted var(--sky-deep); }
@media (max-width: 640px) {
  .s-pr-toggle { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .s-pr-card, .s-pr-addons .s-option { padding: 26px 20px; }
  .s-pr-seg span { padding: 6px 8px; font-size: 0.9rem; }
  .s-pr-ai > div { grid-template-columns: minmax(0, 1fr) 8.5rem; }
}

/* ---------- the order dialog before the Paddle checkout (K2-2) ---------- */
/* its top edge is fixed, not centred: nothing in it changes height while it is open, and even so
   the fields would not move */
.s-dlg {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: 16px auto auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-deep);
  overflow: auto;
}
@media (min-height: 760px) { .s-dlg { margin-top: 6vh; max-height: calc(94dvh - 16px); } }
.s-dlg [hidden] { display: none; }
.s-dlg::backdrop { background: rgba(10, 44, 61, 0.45); }
.s-dlg-form { padding: 26px 30px 24px; }
.s-dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.s-dlg-head h2 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; }
.s-dlg-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
}
.s-dlg-close:hover { color: var(--ink); border-color: var(--sky); }
.s-dlg-close svg { width: 18px; height: 18px; }
/* the name above the total, always: the name does not change while the dialog is open, and the
   total (a no-break space for 7 seats and more) keeps its own row whatever its width */
.s-dlg-sum {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--sky-mist);
  font-size: 0.95rem;
}
.s-dlg-sum span { color: var(--ink-soft); }
.s-dlg-sum b { font-family: 'IBM Plex Sans', sans-serif; font-size: 1.15rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.s-dlg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.s-dlg-wide, .s-dlg-grid fieldset { grid-column: 1 / -1; }
.s-dlg-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.s-dlg-field > span, .s-dlg-field legend { font-size: 0.86rem; font-weight: 600; color: var(--ink); padding: 0; }
.s-dlg-field legend { margin-bottom: 6px; }
.s-dlg-field small { font-size: 0.8rem; color: var(--ink-faded); line-height: 1.35; }
.s-dlg-field input, .s-dlg-field select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
}
.s-dlg-field input:focus, .s-dlg-field select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(62, 197, 243, 0.18); }
.s-dlg-field [aria-invalid="true"], .s-dlg-check input[aria-invalid="true"] { border-color: #c0473b; box-shadow: 0 0 0 3px rgba(192, 71, 59, 0.14); }
.s-dlg-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.s-dlg-check { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: 0.93rem; line-height: 1.45; color: var(--ink-soft); cursor: pointer; }
.s-dlg-check input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.s-dlg-check input:disabled + span { color: var(--ink-faded); }
.s-dlg-sub { margin-left: 28px; }
.s-dlg-check a { color: var(--sky-deep); font-weight: 600; text-decoration: none; border-bottom: 1px dotted var(--sky-deep); }
.s-dlg-privacy { margin-top: 14px; font-size: 0.8rem; line-height: 1.4; color: var(--ink-faded); }
.s-dlg-privacy a { color: var(--sky-deep); font-weight: 600; text-decoration: none; border-bottom: 1px dotted var(--sky-deep); }
/* the one message line keeps two lines of room, empty or not */
.s-dlg-msg { min-height: 2.9em; margin: 10px 0 10px; font-size: 0.92rem; line-height: 1.45; color: var(--ink-soft); }
.s-dlg-msg.is-error { color: #a8382d; }
.s-dlg-msg a { color: inherit; font-weight: 600; }
.s-dlg-submit { width: 100%; justify-content: center; }
.s-dlg-submit:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.s-dlg-foot { margin-top: 12px; font-size: 0.8rem; color: var(--ink-faded); text-align: center; }
@media (max-width: 560px) {
  .s-dlg-form { padding: 20px 18px 18px; }
  .s-dlg-grid, .s-dlg-row3 { grid-template-columns: 1fr; }
  .s-dlg-head h2 { font-size: 1.3rem; }
}
