/* =========================================================================
   Soulzix — static marketing site
   Plain HTML5 + CSS. No build step, no framework, no JavaScript.
   ========================================================================= */

:root {
  --ink: #132522;
  --ink-mid: #20463e;
  --ink-soft: #3e5550;
  --ink-faint: #6c817b;
  --cream: #f5f2ea;
  --paper: #fbfaf6;
  --sand: #f0eee6;
  --mint: #b9f2d5;
  --mint-deep: #78d9ad;
  --lime: #d9f99d;
  --white: #ffffff;
  --line: rgba(19, 37, 34, 0.14);

  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;

  --gutter: clamp(22px, 6vw, 98px);
  --radius-card: 24px;
  --header-h: 72px;
  --ease: 180ms ease;
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
  /* Sticky header must not cover anchor targets. */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--mint);
  color: var(--ink);
}

/* --- Accessibility primitives -------------------------------------------- */

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

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

/* On the dark section the ink outline would be invisible. */
.plans-section :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--mint);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 640;
  transform: translateY(-160%);
  transition: transform var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* --- Shared building blocks ---------------------------------------------- */

.section-kicker {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.section-kicker p {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-kicker-light {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.section-kicker-light p {
  color: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 660;
  transition: background var(--ease), border-color var(--ease),
    translate var(--ease);
}

.button:hover {
  translate: 0 -2px;
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover {
  background: var(--ink-mid);
}

.button-quiet {
  border: 1px solid rgba(19, 37, 34, 0.22);
  color: var(--ink);
}

.button-quiet:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--ink);
}

/* --- Brand ---------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.04em;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
}

.brand-mark span {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 18px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: 5px 5px;
}

.brand-mark span:nth-child(1) { transform: rotate(0deg); }
.brand-mark span:nth-child(2) { transform: rotate(120deg); }
.brand-mark span:nth-child(3) { transform: rotate(240deg); }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 242, 234, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  padding-inline: var(--gutter);
}

.header-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 580;
}

.header-nav a {
  color: var(--ink-soft);
  transition: color var(--ease);
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--ink);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.06em;
}

.language-switch a {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ink-faint);
  transition: background var(--ease), color var(--ease);
}

.language-switch a:hover {
  color: var(--ink);
}

.language-switch a[aria-current="page"] {
  background: var(--ink);
  color: var(--white);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), translate var(--ease);
}

.header-cta:hover {
  background: var(--mint);
  color: var(--ink);
  translate: 0 -1px;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  /* Header is in flow, so the hero only needs to fill what is left. */
  min-height: calc(100svh - var(--header-h));
  padding: clamp(48px, 7vh, 88px) var(--gutter) clamp(36px, 5vh, 54px);
  background: var(--cream);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vh, 72px);
}

/* Decorative layers: never interactive, never focusable, never block a click. */
.hero-grid,
.hero-glow,
.orbit,
.plans-glow {
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0 0 0 54%;
  background-image:
    linear-gradient(rgba(19, 37, 34, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 37, 34, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, transparent, black 28%, black 78%, transparent);
  opacity: 0.48;
}

.hero-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 999px;
  filter: blur(2px);
}

.hero-glow-one {
  top: -40px;
  right: -90px;
  background: radial-gradient(circle, rgba(185, 242, 213, 0.66), rgba(185, 242, 213, 0));
}

.hero-glow-two {
  bottom: -340px;
  left: 25%;
  background: radial-gradient(circle, rgba(217, 249, 157, 0.34), rgba(217, 249, 157, 0));
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border: 5px solid rgba(120, 217, 173, 0.22);
  border-radius: 50%;
  background: var(--mint-deep);
}

h1 {
  margin: 0;
  font-size: clamp(52px, 6.4vw, 112px);
  font-weight: 560;
  letter-spacing: -0.075em;
  line-height: 1;
}

.hero-heading-line {
  display: block;
  white-space: nowrap;
}

.hero-copy h1 {
  display: grid;
  row-gap: 0.08em;
}

.hero-copy h1 em {
  font-size: 0.86em;
  line-height: 1;
}

.vision-intro h2 {
  display: grid;
  row-gap: 0.08em;
}

.vision-intro h2 em {
  font-size: 0.78em;
  line-height: 1.04;
}

h1 em,
.vision-intro h2 em,
.plans-heading h2 em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.06em;
}

h1 em {
  color: #4d7167;
}

.hero-lead {
  max-width: 610px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

/* --- Hero visual ---------------------------------------------------------- */

.hero-visual {
  position: relative;
  /* Square box keeps the orbits circular at every width. */
  aspect-ratio: 1;
  width: 100%;
  max-width: 560px;
  margin: 0;
  justify-self: center;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(19, 37, 34, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border: 4px solid var(--cream);
  border-radius: 50%;
  background: var(--mint-deep);
}

.orbit-large {
  width: 82%;
  height: 82%;
}

.orbit-large::after {
  top: 17%;
  right: 10%;
}

.orbit-small {
  width: 54%;
  height: 54%;
  border-style: dashed;
}

.orbit-small::after {
  bottom: 2%;
  left: 27%;
}

.visual-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(112px, 30%, 172px);
  aspect-ratio: 1;
  /* border-width cannot take a percentage — scale against the viewport. */
  border: clamp(9px, 1vw, 14px) solid rgba(185, 242, 213, 0.72);
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 30px 70px rgba(19, 37, 34, 0.2);
  transform: translate(-50%, -50%);
}

.core-symbol {
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 60px);
  font-style: italic;
  line-height: 0.9;
}

.core-label {
  margin-top: 10px;
  font-size: clamp(8px, 0.7vw, 10px);
  font-weight: 680;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.signal-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 62%;
  padding: 12px 16px;
  border: 1px solid rgba(19, 37, 34, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(19, 37, 34, 0.09);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 680;
  line-height: 1.25;
  backdrop-filter: blur(14px);
}

.signal-text small {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mint);
  font-size: 16px;
}

/* Kept inside 0–100% so the cards can never overflow the hero.
   The core occupies the middle ~34–66% band; as the visual shrinks the cards
   keep a near-constant natural width, so narrower breakpoints lift the
   right-hand card clear of that band rather than letting it cover the core. */
.signal-booking { top: 12%; left: 0; }
.signal-customer { top: 40%; right: 0; }
.signal-growth { bottom: 10%; left: 6%; }

/* --- Hero proof ----------------------------------------------------------- */

.hero-proof {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
}

.proof-number {
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -0.05em;
}

.proof-copy,
.proof-note {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 560;
}

.proof-copy {
  max-width: 150px;
}

.proof-rule {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: var(--line);
}

/* --- Vision --------------------------------------------------------------- */

.vision-section {
  padding: clamp(72px, 10vw, 118px) var(--gutter) clamp(80px, 11vw, 132px);
  background: var(--paper);
}

.vision-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 8vw, 150px);
  align-items: end;
  margin: clamp(56px, 8vw, 92px) 0;
}

.vision-intro h2,
.plans-heading h2 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 84px);
  font-weight: 570;
  letter-spacing: -0.065em;
  line-height: 0.97;
}

.vision-intro h2 em {
  color: #648178;
}

.vision-copy {
  max-width: 500px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
}

.vision-copy p {
  margin: 0;
}

.vision-copy p + p {
  margin-top: 19px;
}

/* --- Value cards ---------------------------------------------------------- */

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

.value-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 25px 27px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background: var(--sand);
  transition: border-color 200ms ease, translate 200ms ease;
}

.value-card:hover {
  border-color: rgba(19, 37, 34, 0.24);
  translate: 0 -4px;
}

.value-card-featured {
  background: var(--mint);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin: clamp(34px, 5vw, 58px) 0 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 26px;
}

.value-card-featured .value-icon {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.value-icon-brand span {
  position: relative;
  width: 19px;
  height: 19px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.value-icon-brand span::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.value-card h3 {
  max-width: 320px;
  margin: 0;
  font-size: clamp(23px, 2.1vw, 34px);
  font-weight: 610;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.value-body {
  max-width: 350px;
  margin: 17px 0 32px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.value-tag {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #536c65;
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Plans ---------------------------------------------------------------- */

.plans-section {
  position: relative;
  padding: clamp(72px, 9vw, 108px) var(--gutter) clamp(72px, 9vw, 108px);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.plans-glow {
  position: absolute;
  top: -300px;
  right: -230px;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(120, 217, 173, 0.2), rgba(120, 217, 173, 0) 68%);
}

.plans-inner {
  position: relative;
  z-index: 1;
}

.plans-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 9vw, 170px);
  align-items: end;
  margin: clamp(52px, 7vw, 84px) 0 clamp(48px, 6vw, 76px);
}

.plans-label {
  margin: 0 0 22px;
  color: var(--mint-deep);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.plans-heading h2 em {
  color: #95cdb6;
}

.plans-intro {
  max-width: 450px;
  margin: 0;
  color: #b8c7c3;
  font-size: 15px;
  line-height: 1.72;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 26px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  background: #1a312d;
  overflow: hidden;
}

.plan-card-featured {
  border-color: var(--mint);
  background: var(--mint);
  color: var(--ink);
}

.plan-badge {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: 11px 14px;
  border-radius: 0 0 0 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.plan-topline {
  display: flex;
  align-items: flex-start;
  /* Clear the absolutely positioned badge on the featured card. */
  padding-right: 92px;
}

.plan-card:not(.plan-card-featured) .plan-topline {
  padding-right: 0;
}

.plan-fit {
  max-width: 140px;
  color: #90a7a1;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-card-featured .plan-fit {
  color: #58776e;
}

.plan-card h3 {
  margin: clamp(40px, 5vw, 60px) 0 8px;
  font-size: clamp(44px, 4.2vw, 66px);
  font-weight: 560;
  letter-spacing: -0.065em;
  line-height: 1;
}

.plan-promise {
  max-width: 330px;
  min-height: 63px;
  margin: 0;
  color: #aebfba;
  font-size: 13px;
  line-height: 1.58;
}

.plan-card-featured .plan-promise {
  color: #45645b;
}

.plan-list {
  display: grid;
  gap: 14px;
  margin: 30px 0 28px;
  padding: 25px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  list-style: none;
}

.plan-card-featured .plan-list {
  border-top-color: rgba(19, 37, 34, 0.15);
}

.plan-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d9e2df;
  font-size: 13px;
}

.plan-card-featured .plan-list li {
  color: var(--ink);
}

.tick {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--mint-deep);
  font-size: 8px;
}

.plan-card-featured .tick {
  border-color: rgba(19, 37, 34, 0.2);
  color: var(--ink);
}

.plan-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--mint);
  font-size: 13px;
  font-weight: 660;
}

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

.plan-card-featured .plan-link {
  border-top-color: rgba(19, 37, 34, 0.15);
  color: var(--ink);
}

.plan-card-featured .plan-link:hover {
  color: var(--ink-mid);
}

/* --- Pilot panel ---------------------------------------------------------- */

.pilot-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 54px;
  padding: 30px 34px;
  border-radius: 25px;
  background: var(--sand);
  color: var(--ink);
}

.pilot-orbit {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(19, 37, 34, 0.22);
  border-radius: 50%;
}

.pilot-orbit::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 3px;
  width: 12px;
  height: 12px;
  border: 4px solid var(--sand);
  border-radius: 50%;
  background: var(--mint-deep);
}

.pilot-orbit > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--serif);
  font-size: 27px;
  font-style: italic;
}

.pilot-label {
  margin: 0 0 8px;
  color: #668079;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pilot-copy h3 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 590;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

/* Status badge, not a link: the pilot programme is not open yet. */
.pilot-action {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 15px 19px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 660;
  white-space: nowrap;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  /* Owns its dark background rather than inheriting one from the section above. */
  padding: 35px 0 40px;
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding-inline: var(--gutter);
  padding-top: 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  color: var(--white);
}

.footer-tagline {
  margin: 0;
  color: #8ba099;
  font-size: 12px;
  text-align: center;
}

.footer-right {
  display: grid;
  gap: 10px;
  justify-items: end;
  justify-self: end;
}

.footer-langs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6f8580;
  font-size: 12px;
  font-weight: 600;
}

.footer-langs a {
  color: #8ba099;
  transition: color var(--ease);
}

.footer-langs a:hover {
  color: var(--white);
}

.footer-langs a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-meta {
  display: flex;
  gap: 18px;
  color: #6f8580;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1050px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 5vh, 48px);
  }

  .hero-copy {
    max-width: none;
  }

  .hero-grid {
    inset: 0 0 0 25%;
  }

  .hero-visual {
    max-width: 460px;
  }

  /* Clear of the core's vertical band (see .signal-* note above). */
  .signal-customer {
    top: 22%;
  }

  .vision-intro,
  .plans-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }

  .value-grid,
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pilot-panel {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pilot-action {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .vision-intro h2 em {
    white-space: normal;
  }

  .brand {
    font-size: 19px;
  }

  .header-nav {
    justify-self: end;
    gap: 16px;
    font-size: 12px;
  }

  /* The hero already carries its own primary CTA; the language switch is not
     reproduced anywhere else in the header, so nav + switch win the space. */
  .header-cta {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .hero-visual {
    max-width: 360px;
  }

  /* Tightest case: fan the cards fully clear of the core. */
  .signal-booking { top: 2%; }
  .signal-customer { top: 18%; }
  .signal-growth { bottom: 6%; left: 2%; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 330px;
  }

  .value-grid,
  .plans-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .value-card {
    min-height: 0;
  }

  .plan-card {
    min-height: 0;
  }

  .plan-promise {
    min-height: 0;
  }

  .pilot-panel {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: 28px 24px;
    text-align: center;
  }

  .pilot-action {
    grid-column: 1;
    justify-self: center;
  }

  .pilot-copy h3 {
    text-wrap: pretty;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 16px;
    text-align: center;
  }

  .footer-right {
    justify-items: center;
    justify-self: center;
  }
}

@media (max-width: 420px) {
  /* Swedish nav labels are the widest case; buy back space so brand + nav +
     language switch still fit on one row at 390px. */
  .header-inner {
    gap: 8px;
    padding-inline: 14px;
  }

  .brand {
    font-size: 17px;
  }

  .header-nav {
    gap: 10px;
    font-size: 11px;
  }

  .language-switch {
    font-size: 10px;
  }

  .language-switch a {
    padding: 5px 7px;
  }

  .signal-card {
    max-width: 70%;
    padding: 9px 11px;
    border-radius: 14px;
  }

  .signal-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

/* =========================================================================
   Motion
   Animations use the independent `translate` / `scale` properties, never the
   `transform` shorthand, so they can never overwrite a layout transform.
   Everything is legible with animation disabled: the animated state is the
   resting state, and entry animations only exist inside no-preference.
   ========================================================================= */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: fade-up 700ms ease both;
  }

  .hero-visual {
    animation: fade-in 900ms 160ms ease both;
  }

  .signal-card {
    animation: float 6s ease-in-out infinite;
  }

  .signal-customer {
    animation-delay: -2s;
  }

  .signal-growth {
    animation-delay: -4s;
  }
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    scale: 0.97;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}
