:root {
  /* Brand palette: ~70% light, ~20% navy + blue, ~10% orange; green only for meaning */
  --navy: #0B1F33;
  --blue: #2563EB;
  --orange: #F97316;
  --green: #16A34A;

  --background: #F7F8FA;
  --white: #FFFFFF;
  --text-secondary: #475569;
  --border: #E2E8F0;

  /* Derived tones */
  --navy-soft: #13304D;
  --navy-text: #CBD5E1;
  --blue-soft: #EFF4FF;
  --green-soft: #ECFDF3;
  --orange-hover: #EA670C;

  --font-heading: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --shadow-card: 0 1px 2px rgba(11, 31, 51, 0.04), 0 12px 32px -12px rgba(11, 31, 51, 0.18);
  --shadow-float: 0 2px 4px rgba(11, 31, 51, 0.04), 0 32px 64px -24px rgba(11, 31, 51, 0.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--navy);
  font-family: var(--font-body);
  /* Source Sans 3 runs smaller than Inter, so 17-19px reads like the spec's 17-18px */
  font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.1875rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

h3 {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
}

/* Inline text links.
   Rest: navy text with the brand-orange underline (same as the hero highlight).
   Hover: text and a bar sliding in from the left turn one darker orange (#C2410C),
   because #F97316 as text colour would fail WCAG contrast.
   Buttons, logo and badges have their own styles. */
a:not([class]) {
  --link-hover: #C2410C;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 1px;
  background-image:
    linear-gradient(var(--link-hover), var(--link-hover)),
    linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 0% 2px, 100% 2px;
  transition:
    background-size 0.45s cubic-bezier(0.45, 0, 0.25, 1),
    color 0.3s ease;
}

a:not([class]):hover {
  color: var(--link-hover);
  background-size: 100% 2px, 100% 2px;
}

a:not([class]):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.eyebrow {
  margin-bottom: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -16px rgba(11, 31, 51, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  flex: none;
  width: 32px;
  height: 32px;
}

.logo-dot {
  color: var(--orange);
}

a.badge {
  transition: color 0.2s ease, border-color 0.2s ease;
}

a.badge:hover {
  color: var(--navy);
  border-color: #CBD5E1;
}

.badge {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  text-decoration: none;
}

/* Section navigation */

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

/* Menu sits on the right, next to the CTA */
.site-nav {
  margin-left: auto;
  margin-right: clamp(8px, 1.6vw, 24px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-list {
  display: flex;
  gap: clamp(20px, 2.4vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--navy);
  font-weight: 400;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Same orange bar as text links, sliding in from the left */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.45, 0, 0.25, 1);
}

.nav-link:hover,
.nav-link.is-active {
  color: #C2410C;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* Hamburger that turns into a cross */
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.3s cubic-bezier(0.45, 0, 0.25, 1), background-color 0.2s ease;
}

.nav-toggle-bars {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  left: 0;
  margin-left: 0;
}

.nav-toggle-bars::before {
  transform: translateY(-6px);
}

.nav-toggle-bars::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: rotate(-45deg);
}

/* Mobile menu: full-height panel under the header, CTA pinned to its bottom */
.nav-cta {
  display: none;
}

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* Header bar is 74px tall (16px padding + 42px toggle); dvh follows mobile browser bars */
    height: calc(100vh - 74px);
    height: calc(100dvh - 74px);
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 8px clamp(20px, 5vw, 80px) calc(20px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.45, 0, 0.25, 1), visibility 0.3s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border);
  }

  .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 0.9375rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    display: block;
    margin-top: auto;
    padding-top: 24px;
  }

  .nav-cta .button {
    width: 100%;
  }

  .nav-cta-note {
    margin: 10px 0 0;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-secondary);
  }

  /* While the menu is open: no page scrolling behind it, no second pinned CTA */
  html.nav-open {
    overflow: hidden;
  }

  html.nav-open .mobile-cta {
    transform: translateY(110%);
  }

  /* The open menu has its own CTA at the bottom */
  html.nav-open .header-actions .button-small {
    visibility: hidden;
  }
}

/* Buttons: orange = main CTA, blue = secondary */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 2px solid var(--orange);
  border-radius: 12px;
  background: var(--orange);
  /* Navy on orange keeps text contrast above WCAG AA (white would not) */
  color: var(--navy);
  font: 700 1.0625rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(249, 115, 22, 0.65);
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(249, 115, 22, 0.7);
}

.button:hover .arrow {
  transform: translateX(4px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

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

.button-small {
  white-space: nowrap;
  min-height: 42px;
  padding: 0 18px;
  font-size: 1rem;
  border-radius: 10px;
  box-shadow: none;
}

.button-small:hover {
  box-shadow: none;
}

.button-secondary {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: none;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 104px) 0 clamp(64px, 8vw, 120px);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(37, 99, 235, 0.10), transparent 70%),
    radial-gradient(40% 50% at 70% 90%, rgba(249, 115, 22, 0.08), transparent 70%),
    var(--background);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(11, 31, 51, 0.05);
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  opacity: 0;
  animation: pulse 2.4s var(--ease-out) infinite;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
  /* Scales with the viewport so "Klient sprawdza Cię," always fits on the first line */
  font-size: clamp(1.75rem, 7.4vw, 4rem);
  text-wrap: wrap;
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: clamp(2.75rem, 4.4vw, 4rem);
  }
}

.nowrap {
  white-space: nowrap;
}

.highlight {
  white-space: nowrap;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-size: 0% 0.13em;
  background-position: 0 92%;
  animation: underline 0.9s 0.5s var(--ease-out) forwards;
}

@keyframes underline {
  to { background-size: 100% 0.13em; }
}

.lead {
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.375rem);
  color: var(--text-secondary);
  max-width: 56ch;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.cta-note {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Hero visual: customer questions answered by the website */

.questions {
  margin: 0;
  position: relative;
}

.questions::before {
  content: "";
  position: absolute;
  inset: 24px -16px -16px 24px;
  border-radius: 24px;
  background: var(--navy);
  transform: rotate(2deg);
}

.questions-card {
  position: relative;
  padding: clamp(22px, 2.5vw, 32px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-float);
}

.questions-title {
  margin-bottom: 18px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.questions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.question {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.question-bubble {
  padding: 10px 16px;
  border-radius: 16px 16px 16px 4px;
  background: var(--blue-soft);
  color: var(--navy);
  font-weight: 600;
}

.question-answer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.check {
  flex: none;
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
}

.check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.questions-result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.result-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
}

/* Questions appear one by one */
.question,
.questions-result {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.6s var(--ease-out) forwards;
  animation-delay: calc(0.6s + var(--i) * 0.28s);
}

.question-answer {
  opacity: 0;
  animation: fade 0.5s ease forwards;
  animation-delay: calc(0.85s + var(--i) * 0.28s);
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@keyframes fade {
  to { opacity: 1; }
}

/* Section head */

.section-head {
  max-width: 760px;
}

.section-lead {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
}

/* Steps (navy band) */

.steps {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 128px) 0;
  background: var(--navy);
  color: var(--white);
}

.steps::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -200px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 65%);
  pointer-events: none;
}

.steps .container {
  position: relative;
}

.eyebrow-light {
  color: #93B4FF;
}

.steps .section-lead {
  color: var(--navy-text);
}

.steps-list {
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: step;
}

.steps-list li {
  position: relative;
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}

.steps-list li:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.5);
}

.step-number {
  display: block;
  margin-bottom: 28px;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--orange);
}

.steps-list h3 {
  color: var(--white);
}

.steps-list p {
  color: var(--navy-text);
  margin: 0;
}

/* More than a website */

.scope {
  padding: clamp(72px, 9vw, 128px) 0;
  background: var(--white);
}

.scope .section-lead {
  color: var(--text-secondary);
}

.scope-list {
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.scope-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
}

.scope-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
}

.scope-icon svg {
  width: 26px;
  height: 26px;
}

/* Orange accent on the part of the icon that "acts" */
.scope-card:nth-child(2) .scope-icon svg path:last-child,
.scope-card:nth-child(3) .scope-icon svg path:last-child {
  stroke: var(--orange);
}

.scope-card p {
  margin: 0;
  color: var(--text-secondary);
}

/* About */

.about {
  padding: clamp(72px, 9vw, 128px) 0;
}

.about-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 80px;
  }
}

.about-person {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 640px) {
  .about-person {
    grid-template-columns: auto 1fr;
  }
}

.avatar {
  position: relative;
  width: 168px;
  height: 168px;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

/* Brand dot, echoing the logo */
.avatar-dot {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  border: 4px solid var(--background);
}

.about-person p:not(.eyebrow) {
  color: var(--text-secondary);
  max-width: 52ch;
}

.principles {
  list-style: none;
  margin: 0;
  padding: 8px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.principles li {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  color: var(--text-secondary);
}

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

.principles .check {
  margin-top: 4px;
}

.principles strong {
  display: block;
  color: var(--navy);
}

/* FAQ */

.faq {
  padding: clamp(72px, 9vw, 128px) 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.faq-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 80px;
  }

  .faq .section-head {
    position: sticky;
    top: 112px;
  }
}

.faq .section-lead {
  color: var(--text-secondary);
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--blue);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Plus that turns into a minus */
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transition: transform 0.48s cubic-bezier(0.45, 0, 0.25, 1);
}

.faq-item summary::after {
  transform: rotate(90deg);
}

.faq-item[open] summary::after {
  transform: rotate(0deg);
}

.faq-answer {
  overflow: hidden;
}

.faq-item p {
  margin: 0;
  padding: 0 48px 24px 0;
  color: var(--text-secondary);
  max-width: 64ch;
}

/* Contact */

.contact {
  padding: clamp(72px, 9vw, 128px) 0;
  background: var(--background);
  border-top: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 80px;
  }

  .contact-intro {
    position: sticky;
    top: 112px;
  }
}

.contact-intro > p:not(.eyebrow) {
  color: var(--text-secondary);
}

.next-steps {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.next-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}

.next-number {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font-heading);
  font-weight: 800;
}

.contact-direct {
  font-size: 1rem;
}

/* Contact form */

.form-panel {
  padding: clamp(24px, 3.5vw, 48px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.form {
  display: grid;
  gap: 20px;
}

.form[hidden],
.form-success[hidden],
.form-error[hidden] {
  display: none;
}

.form-row {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-size: 1rem;
  font-weight: 600;
}

.required {
  color: var(--orange);
}

.optional {
  font-weight: 400;
  color: var(--text-secondary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  /* >= 16px also stops iOS from zooming into the field */
  font: 400 1.0625rem var(--font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #94A3B8;
}

/* Custom chevron instead of the browser default */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23475569' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  cursor: pointer;
}

.field select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%232563EB' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.field select:invalid,
.field select option[value=""] {
  color: #94A3B8;
}

.field select option {
  color: var(--navy);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #94A3B8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.field [aria-invalid="true"] {
  border-color: #DC2626;
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #FEF2F2;
  color: #B91C1C;
  font-size: 1rem;
}

.form .button {
  justify-self: start;
}

.form-hint {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.form-success {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 28px;
  border: 1px solid #BBF7D0;
  border-radius: 14px;
  background: var(--green-soft);
}

.form-success::before {
  content: "";
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.form-success:focus {
  outline: none;
}

.form-success h3 {
  margin: 0;
}

.form-success p {
  color: var(--text-secondary);
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: var(--navy-text);
  padding: 32px 0;
  font-size: 0.9375rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
}

/* Reveal on scroll (enabled by script.js) */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Privacy policy page */

.legal {
  padding: clamp(48px, 6vw, 80px) 0;
}

/* One centred reading column */
.legal-inner {
  max-width: calc(760px + 2 * clamp(20px, 5vw, 80px));
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal h2 {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  margin-top: 1.6em;
}

.legal p,
.legal li {
  color: var(--text-secondary);
}

.legal-meta {
  margin-bottom: 8px;
}

.legal-section {
  padding-top: 8px;
}

.legal-par {
  margin-right: 0.3em;
  color: var(--orange);
  white-space: nowrap;
}

/* Numbered points: 1. 2. 3. */
.legal-points {
  margin: 0;
  padding-left: 1.6em;
}

.legal-points > li {
  padding-left: 6px;
  margin-bottom: 12px;
}

.legal-points > li::marker {
  font-weight: 700;
  color: var(--navy);
}

/* Bullets inside points */
.legal-bullets {
  margin: 8px 0 0;
  padding-left: 1.3em;
  list-style: disc;
}

.legal-bullets li {
  margin-bottom: 6px;
}


.todo {
  background: #FFF7ED;
  color: #9A3412;
  border: 1px dashed var(--orange);
  border-radius: 4px;
  padding: 0 4px;
}

/* Small screens */

@media (max-width: 479px) {
  .logo {
    font-size: 1.1875rem;
  }

  .button-small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.875rem;
  }

}

/* Phones: header keeps logo + menu; the CTA is pinned to the bottom of the screen */
.mobile-cta {
  display: none;
}

@media (max-width: 519px) {
  .header-actions .button-small {
    display: none;
  }

  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--border);
    /* Hidden until script.js decides no other CTA is on screen (no flash on load) */
    transform: translateY(110%);
    transition: transform 0.35s cubic-bezier(0.45, 0, 0.25, 1);
  }

  .mobile-cta .button {
    width: 100%;
  }

  .mobile-cta.is-visible {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .highlight {
    background-size: 100% 0.13em;
  }

  .question,
  .question-answer,
  .questions-result,
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
