:root {
  --navy: #06284a;
  --navy-soft: #113a62;
  --teal: #00a7a5;
  --teal-deep: #008b8a;
  --blue: #4168ca;
  --blue-soft: #d9e4ff;
  --ink: #2d2d2d;
  --muted: #5d6268;
  --paper: #f6f9fb;
  --aqua-soft: #ecfbf9;
  --white: #ffffff;
  --line: #dce8ef;
  --footer: #06284a;
  --radius: 10px;
  --shell: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 42%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(calc(100% - 40px), var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-top: 0;
  border-bottom: 1px solid #edf0f4;
  backdrop-filter: blur(14px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.site-header.scrolled {
  box-shadow: 0 14px 34px rgba(6, 40, 74, 0.09);
}

.header-row {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link img {
  width: 205px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 0.96rem;
  font-weight: 800;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
  background: linear-gradient(135deg, #eef3ff, var(--aqua-soft));
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.label::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--teal);
  border-radius: 999px;
}

h1,
h2 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.65rem, 5.8vw, 4.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.55rem);
}

h3 {
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1.25;
}

.hero {
  position: relative;
  min-height: 510px;
  display: grid;
  align-items: center;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
  border-bottom-right-radius: 28px;
  border-bottom-left-radius: 28px;
  box-shadow: 0 12px 0 rgba(0, 167, 165, 0.22);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/home-hero-lafkast.png") center center / cover no-repeat;
  transform: none;
  transform-origin: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(6, 40, 74, 0.72) 0%,
      rgba(6, 40, 74, 0.52) 36%,
      rgba(6, 40, 74, 0.18) 68%,
      rgba(6, 40, 74, 0.08) 100%
    ),
    linear-gradient(125deg, rgba(0, 167, 165, 0.04), transparent 44%, rgba(65, 104, 202, 0.03));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

.hero .label,
.hero h1,
.hero p {
  color: var(--white);
  text-shadow: 0 2px 18px rgba(6, 40, 74, 0.36);
}

.hero h1 {
  max-width: 720px;
  margin-top: 12px;
}

.hero p:not(.label) {
  max-width: 650px;
  margin-top: 22px;
  font-size: 1.2rem;
}

.hero .label::before {
  background: var(--teal);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--navy-soft));
  border-radius: 12px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(65, 104, 202, 0.22);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(65, 104, 202, 0.28);
}

.button-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.trust-line {
  max-width: 760px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  font-weight: 800;
}

.section {
  padding: 58px 0;
}

.section-compact {
  padding: 44px 0;
}

.section-soft,
.page-intro {
  background: #f7fbfc;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 30px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.page-intro h1,
.split h2,
.cta-card h2 {
  margin-top: 8px;
}

.intro-copy,
.page-intro .text-block p {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.compact-feature-grid,
.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-grid article,
.possibility-list article {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(6, 40, 74, 0.04);
}

.feature-grid article {
  border-top: 3px solid var(--teal);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.compact-feature-grid article,
.steps-grid article {
  min-height: 0;
  padding: 18px 16px;
}

.compact-feature-grid h3,
.steps-grid h3 {
  font-size: 1.02rem;
  line-height: 1.22;
}

.compact-feature-grid p,
.steps-grid p {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.compact-feature-grid .icon,
.steps-grid .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.feature-grid article:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(6, 40, 74, 0.07);
}

.icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--navy);
  background: var(--aqua-soft);
  border: 1px solid #c9f2ee;
  border-radius: 12px;
  font-weight: 900;
}

.feature-grid p,
.possibility-list p,
.text-block p,
.founder p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.9fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.app-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.9fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-compact .app-intro h2 {
  font-size: clamp(1.95rem, 3.5vw, 3.25rem);
}

.section-compact .text-block p {
  font-size: 1rem;
}

.app-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
}

.panel-intro {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.panel-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(6, 40, 74, 0.05);
}

.panel-grid p {
  margin-top: 10px;
  color: var(--muted);
}

.testimonials-section {
  background: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 54px);
}

.testimonial-grid article {
  position: relative;
  padding-top: 10px;
  text-align: center;
}

.testimonial-grid article::before {
  content: "";
  display: block;
  width: 58px;
  height: 7px;
  margin: 0 auto 8px;
  background: var(--teal);
  border-radius: 999px;
}

.quote-mark {
  display: block;
  height: 58px;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  line-height: 0.85;
}

.testimonial-grid h3 {
  margin-top: 14px;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 900;
}

.testimonial-grid p {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.82;
}

.text-block p + p {
  margin-top: 22px;
}

.legal-document {
  padding: clamp(28px, 5vw, 54px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: 0 22px 48px rgba(6, 40, 74, 0.08);
}

.legal-updated {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 12px;
  color: var(--navy);
  background: var(--aqua-soft);
  border: 1px solid #c9f2ee;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 900;
}

.legal-content h2 {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-content a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-content li + li {
  margin-top: 8px;
}

.page-intro {
  position: relative;
  overflow: hidden;
  padding: 66px 0;
  border-bottom: 1px solid #d9edf0;
}

.page-intro::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 42%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(0, 167, 165, 0.15));
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}

.page-intro > .site-shell {
  position: relative;
  z-index: 1;
}

.page-intro-center {
  text-align: center;
}

.page-intro-center .intro-copy {
  margin-right: auto;
  margin-left: auto;
}

.founder {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.founder img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--paper);
  border: 8px solid var(--white);
  border-radius: 18px;
  box-shadow: 0 22px 44px rgba(6, 40, 74, 0.14);
}

.founder h2 {
  margin-top: 8px;
}

.founder .role {
  color: #252525;
  font-weight: 900;
}

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

.credentials-grid article {
  padding: 28px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(6, 40, 74, 0.06);
}

.credentials-grid p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.04rem;
}

.credential-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.credential-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 1.04rem;
}

.credential-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

.credential-list strong {
  display: block;
  color: var(--navy);
  font-weight: 900;
}

.credential-list span {
  display: block;
  margin-top: 2px;
}

.possibility-list {
  display: grid;
  gap: 14px;
}

.possibility-list article {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  border-left: 5px solid var(--teal);
}

.possibility-list h2 {
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.capability-grid article {
  padding: 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(6, 40, 74, 0.04);
}

.capability-grid .label {
  font-size: 0.8rem;
}

.capability-grid h2 {
  margin-top: 12px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.25;
}

.capability-grid p:not(.label) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
}

.process-band {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-band h2 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

.process-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.process-points span {
  display: block;
  padding: 12px 14px;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 5px;
  font-weight: 800;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #114e77 62%, var(--teal-deep));
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 22px 44px rgba(6, 40, 74, 0.18);
}

.cta-card h2,
.cta-card .label {
  color: var(--white);
}

.cta-note {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  font-weight: 700;
}

.cta-card .label::before {
  background: #38ded5;
}

.cta-card .button {
  color: var(--navy);
  background: var(--white);
  box-shadow: none;
}

.contact-form {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: 0 22px 48px rgba(6, 40, 74, 0.08);
}

.contact-form label:not(.privacy-check) {
  display: block;
  margin: 22px 0 8px;
  color: #333333;
  font-size: 1.12rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  border: 2px solid #cfdce4;
  background: var(--white);
  border-radius: 8px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 167, 165, 0.13);
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: #d92f2f;
  box-shadow: 0 0 0 4px rgba(217, 47, 47, 0.12);
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
  min-height: 52px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 210px;
  padding: 14px;
  resize: vertical;
}

.form-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  color: #8f1f1f;
  background: #fff1f1;
  border: 1px solid #f1b3b3;
  border-radius: 8px;
  font-weight: 800;
}

.field-error {
  display: block;
  min-height: 1.4em;
  margin-top: 6px;
  color: #d92f2f;
  font-size: 0.92rem;
  font-weight: 800;
}

.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  color: #3d3d3d;
}

.privacy-check input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--blue);
}

.privacy-check a {
  font-weight: 800;
  text-decoration: underline;
}

.contact-submit {
  width: 100%;
  margin-top: 28px;
  font-size: 1.16rem;
}

.contact-response-section {
  min-height: 58vh;
  display: grid;
  align-items: center;
}

.contact-response {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 56px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: 0 22px 48px rgba(6, 40, 74, 0.08);
}

.contact-response.response-error {
  border-top-color: #d92f2f;
}

.contact-response h1 {
  margin-top: 10px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.06;
}

.contact-response p:not(.label) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-response .button-row {
  margin-top: 28px;
}

.narrow {
  max-width: 820px;
}

.site-footer {
  background: var(--white);
  border-top: 1px solid rgba(6, 40, 74, 0.08);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(320px, 1.8fr) minmax(190px, 0.85fr) minmax(150px, 0.55fr) minmax(120px, 0.45fr);
  gap: clamp(34px, 5.5vw, 88px);
  padding: 58px 0 52px;
}

.footer-brand img {
  width: 245px;
}

.footer-statement {
  max-width: 470px;
  margin-top: 42px;
  color: var(--navy);
  font-size: clamp(1.12rem, 1.5vw, 1.34rem);
  font-weight: 400;
  line-height: 1.72;
}

.footer-column,
.footer-links {
  padding-top: 104px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h2,
.footer-links h2 {
  margin-bottom: 4px;
  color: var(--teal);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  font-weight: 900;
}

.footer-company p,
.footer-company a,
.footer-links a:not(.linkedin-link) {
  color: var(--navy);
  font-weight: 400;
  line-height: 1.55;
  transition: color 160ms ease;
}

.footer-company strong {
  font-weight: 900;
}

.footer-company p {
  margin: 0;
}

.footer-company p:first-of-type {
  margin-top: 18px;
}

.footer-company a {
  display: inline-flex;
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-company a:hover,
.footer-links a:not(.linkedin-link):hover {
  color: var(--blue);
}

.linkedin-link {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: 6px;
  color: var(--white);
  background: linear-gradient(135deg, #2f67b8, var(--blue));
  border-radius: 4px;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.footer-bottom-row {
  padding: 0 0 24px;
  color: var(--navy);
  font-size: 0.93rem;
  font-weight: 400;
}

.footer-bottom-row p {
  margin: 0;
}

.footer-bottom-row a {
  color: var(--navy);
}

.footer-bottom-row a:hover {
  color: var(--blue);
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  width: min(calc(100% - 36px), 560px);
  padding: 18px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(6, 40, 74, 0.16);
}

.cookie-banner strong {
  display: block;
  font-size: 1rem;
  font-weight: 900;
}

.cookie-banner p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.cookie-banner a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cookie-button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--navy-soft));
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.cookie-button-secondary {
  color: var(--navy);
  background: #eef5f8;
  border: 1px solid var(--line);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--teal-deep));
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(65, 104, 202, 0.24);
  cursor: pointer;
}

.back-to-top span {
  width: 12px;
  height: 12px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: translateY(4px) rotate(45deg);
}

@media (max-width: 760px) and (min-width: 641px) {
  .compact-feature-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .compact-feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-row,
  .cta-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: clamp(2.35rem, 10vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.9rem, 8vw, 2.75rem);
  }

  .testimonial-grid,
  .capability-grid,
  .split,
  .app-intro,
  .app-panel,
  .panel-grid,
  .process-band,
  .founder,
  .credentials-grid,
  .footer-main,
  .possibility-list article {
    grid-template-columns: 1fr;
  }

  .process-points {
    grid-template-columns: 1fr;
  }

  .footer-bottom-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main {
    gap: 28px;
    padding: 44px 0 28px;
  }

  .footer-column,
  .footer-links {
    padding-top: 0;
  }

  .footer-statement {
    margin-top: 24px;
    font-size: 1.08rem;
  }

  .footer-company p:first-of-type {
    margin-top: 8px;
  }

  .hero {
    min-height: 460px;
  }

  .hero-content {
    padding: 60px 0;
  }

  .section,
  .page-intro {
    padding: 58px 0;
  }

  .section-compact {
    padding: 38px 0;
  }

  .page-intro::after {
    width: 55%;
    opacity: 0.55;
  }

  .site-shell {
    width: min(calc(100% - 28px), var(--shell));
  }
}

@media (max-width: 480px) {
  .header-row {
    min-height: 0;
    padding: 18px 0 16px;
  }

  .logo-link img,
  .footer-brand img {
    width: 165px;
  }

  .main-nav {
    gap: 4px;
    font-size: 0.9rem;
  }

  .main-nav a {
    padding: 8px 9px;
  }

  .hero {
    min-height: 430px;
    border-bottom-right-radius: 18px;
    border-bottom-left-radius: 18px;
  }

  .hero p:not(.label),
  .intro-copy,
  .page-intro .text-block p {
    font-size: 1rem;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .contact-form {
    padding: 24px 16px;
  }

  .cookie-actions,
  .cookie-button {
    width: 100%;
  }
}
