/* ============================================================
   MenuRefine — stylesheet
   Colours and sizes taken from the Claude Design mockup.
   ============================================================ */

/* ---------- Fonts (self-hosted: no request leaves to Google) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-black-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-black-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg:        #0A0708;
  --bg-card:   rgba(255, 255, 255, 0.022);
  --bg-card-2: rgba(255, 255, 255, 0.03);
  --bg-well:   #0E0B0C;
  --bg-tile:   #100D0E;

  --red:       #E11D26;
  --red-hi:    #F5252F;
  --green:     #22C55E;

  --text:      #F5F1F0;
  --text-2:    #E4DFDE;
  --text-3:    #C9C3C4;
  --text-4:    #B4AEAF;
  --text-5:    #ADA7A8;
  --muted:     #948E90;
  --muted-2:   #8C8688;
  --dim:       #7E7879;
  --dim-2:     #6E6869;
  --dim-3:     #5F5A5B;

  --line:      rgba(255, 255, 255, 0.07);
  --line-2:    rgba(255, 255, 255, 0.08);
  --line-3:    rgba(255, 255, 255, 0.16);
  --line-4:    rgba(255, 255, 255, 0.22);

  --display:   'Archivo Black', Archivo, 'Arial Black', sans-serif;
  --body:      Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap:      1320px;
  --gutter:    40px;
  --radius:    14px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* height:auto is not optional — without it the width/height attributes on an
   <img> win and the picture gets stretched. */
img { max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--red); color: #fff; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------- Page shell ---------- */
.page {
  background:
    radial-gradient(70% 45% at 82% 4%,  rgba(225, 29, 38, 0.11), transparent 62%),
    radial-gradient(50% 34% at 2% 58%,  rgba(225, 29, 38, 0.07), transparent 62%),
    radial-gradient(60% 40% at 100% 78%, rgba(225, 29, 38, 0.06), transparent 60%),
    var(--bg);
  min-height: 100vh;
  overflow: hidden;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.eyebrow .mark { font-size: 16px; }
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -1px;
  margin: 0 0 18px;
}
.accent { color: var(--red); }
.lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-5);
  max-width: 470px;
  margin: 0 0 40px;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 16px 40px rgba(225, 29, 38, 0.32);
}
.btn--primary:hover { background: var(--red-hi); color: #fff; }
.btn--ghost {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn--sm { padding: 13px 30px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 7, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo__badge {
  position: relative;
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
}
.logo__badge i {
  position: absolute;
  width: 12px; height: 12px;
}
.logo__badge .c1 { top: 0; left: 0;  border-top: 2px solid #E9E4E3; border-left: 2px solid #E9E4E3; }
.logo__badge .c2 { top: 0; right: 0; border-top: 2px solid #E9E4E3; border-right: 2px solid #E9E4E3; }
.logo__badge .c3 { bottom: 0; left: 0;  border-bottom: 2px solid #E9E4E3; border-left: 2px solid #E9E4E3; }
.logo__badge .c4 { bottom: 0; right: 0; border-bottom: 2px solid #E9E4E3; border-right: 2px solid #E9E4E3; }
.logo__mp {
  font-family: var(--display);
  font-size: 17px;
  color: var(--red);
  letter-spacing: -0.5px;
}
.logo__type { display: flex; flex-direction: column; gap: 1px; }
.logo__l1 { font-family: var(--display); font-size: 21px; line-height: .98; letter-spacing: .5px; }
/* Tracking is tuned so REFINE sits roughly as wide as MENU above it.
   Change the word and this number needs revisiting. */
.logo__l2 { font-family: var(--display); font-size: 18px; line-height: .98; letter-spacing: 1px; color: var(--red); }
.logo__tag { font-size: 8.5px; letter-spacing: 1.2px; color: var(--muted-2); font-weight: 600; margin-top: 3px; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.nav a { color: var(--text-2); transition: color .15s; }
.nav a:hover { color: #fff; }
.header__cta { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line-4);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.burger i {
  display: block;
  width: 18px; height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform .2s, opacity .2s;
}
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: 44px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 20px;
  align-items: center;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.6px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: .96;
  letter-spacing: -1.5px;
  margin: 0 0 26px;
}
.hero__lede {
  font-size: 17px;
  line-height: 1.62;
  color: var(--text-5);
  max-width: 480px;
  margin: 0 0 34px;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 46px; }
.hero__art { position: relative; }
.hero__art img {
  width: 100%;
  display: block;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0, #000 9%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 94%, transparent 100%);
  mask-image:
    linear-gradient(to right,  transparent 0, #000 9%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.usps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.usp { display: flex; gap: 14px; }
.usp__icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(225, 29, 38, 0.55);
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 16px;
}
.usp__title { font-size: 15px; font-weight: 800; line-height: 1.25; margin-bottom: 7px; }
.usp__text  { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 54px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: mr-marquee 34s linear infinite;
}
.marquee__row {
  display: flex;
  align-items: center;
  gap: 92px;
  padding-right: 92px;
}
.marquee__row span {
  font-family: var(--display);
  font-size: 26px;
  color: var(--dim-3);
  white-space: nowrap;
}
@keyframes mr-marquee {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
/* The marquee is the point of this strip, so it keeps running even when the
   visitor has asked for less motion — it just runs a lot slower. */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation-duration: 90s; }
  html { scroll-behavior: auto; }
  .tile { transition: none; }
}

/* ---------- Section rhythm ---------- */
.section { padding-top: 96px; }
.section--tight { padding-top: 66px; }

/* ---------- How it works ---------- */
.how { position: relative; }
.how__decor {
  position: absolute;
  top: 44px; right: 40px;
  width: 330px;
  opacity: .95;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 52%, transparent 84%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 52%, transparent 84%);
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 26px 24px 30px;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -32px; top: 50%;
  width: 32px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}
.step__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.step__num {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}
.step__title { font-size: 17px; font-weight: 800; line-height: 1.3; }
.step__text  { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Showcase / before-after ---------- */
.showcase__hint { font-size: 14px; color: var(--muted-2); margin: -8px 0 22px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.ba {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color .2s;
}
.ba:hover { border-color: rgba(225, 29, 38, 0.5); }
.ba__stage {
  position: relative;
  height: 260px;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background: var(--bg-well);
}
.ba__stage img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}
.ba__tag {
  position: absolute;
  top: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  padding: 6px 10px;
  border-radius: 5px;
}
.ba__tag--before {
  left: 14px;
  background: rgba(8, 6, 6, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #EBE6E5;
}
.ba__tag--after {
  right: 14px;
  background: var(--red);
  color: #fff;
}
.ba__line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}
.ba__handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
  cursor: ew-resize;
}
.ba__body { padding: 22px 24px 24px; }
.ba__title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.ba__sub   { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.ba__gain  { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.ba__gain .up { color: var(--green); }

/* ---------- Use cases ---------- */
.usecases { padding-top: 104px; }
.usecases__head { text-align: center; margin-bottom: 46px; }
.usecases__kicker {
  font-size: 12.5px;
  letter-spacing: 4.5px;
  font-weight: 700;
  color: var(--dim);
  margin-bottom: 18px;
}
.rail {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 94%, transparent 100%);
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .tile { transform: none; }
.rail__track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 6px 0 16px;
}
.rail__pad { flex: none; width: 40px; }
.rail__pad--end { width: 60px; }
.tile {
  position: relative;
  flex: none;
  scroll-snap-align: center;
  width: 250px; height: 340px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-tile);
  transition: transform .25s;
}
.tile:hover { transform: translateY(-6px); }
.tile > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,6,6,0) 46%, rgba(8,6,6,.5) 70%, rgba(8,6,6,.94) 100%);
  pointer-events: none;
}
.tile__body { position: absolute; left: 20px; right: 20px; bottom: 22px; }
.tile__title { font-size: 19px; font-weight: 800; letter-spacing: -.2px; margin-bottom: 6px; }
.tile__text  { font-size: 12.5px; line-height: 1.45; color: var(--text-4); }
.rail__hint { text-align: center; font-size: 13.5px; color: var(--dim); margin-top: 26px; }

/* ---------- Fact band (same shape as the mockup's stats strip) ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 36px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--bg-card);
  padding: 30px 40px;
}
.fact {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 30px;
  border-left: 1px solid var(--line);
}
.fact:first-child { padding-left: 0; border-left: 0; }
.fact:last-child  { padding-right: 0; }
.fact__icon {
  flex: none;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(225, 29, 38, 0.5);
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 23px;
}
.fact__big  {
  font-family: var(--display);
  font-size: clamp(17px, 1.45vw, 21px);
  letter-spacing: -.3px;
  margin-bottom: 5px;
}
.fact__text { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;      /* all three cards the same height */
}
.plan {
  position: relative;
  height: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 28px 24px 26px;
  display: flex;
  flex-direction: column;
  min-height: 372px;
  cursor: pointer;
  transition: transform .22s, border-color .22s, background .22s, box-shadow .22s;
}
.plan:hover { border-color: rgba(225, 29, 38, 0.35); }

/* The selected card: red outline, red button, and a step forward. */
.plan--featured {
  border-color: var(--red);
  background: rgba(225, 29, 38, 0.06);
  transform: scale(1.035);
  box-shadow: 0 22px 60px rgba(225, 29, 38, 0.16);
  z-index: 1;
}
.plan__flag {
  position: absolute;
  top: -11px; left: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.plan__name { font-size: 14px; font-weight: 800; letter-spacing: 1.4px; color: var(--text-3); margin-bottom: 8px; }
.plan__for  { font-size: 13px; color: var(--muted-2); margin-bottom: 22px; }
.plan__price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; }
.plan__cur  { font-family: var(--display); font-size: 22px; }
.plan__num  { font-family: var(--display); font-size: 40px; letter-spacing: -1px; }
.plan__list { display: flex; flex-direction: column; gap: 13px; font-size: 13.5px; color: var(--text-3); margin-bottom: 24px; }
.plan__list div { display: flex; align-items: flex-start; gap: 10px; }
.plan__list .tick { color: var(--dim-2); }
.plan__cta {
  margin-top: auto;
  text-align: center;
  padding: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 14.5px;
  font-weight: 700;
  transition: background .18s;
}
.plan__cta:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }
.plan--featured .plan__cta { background: var(--red); color: #fff; }
.plan--featured .plan__cta:hover { background: var(--red-hi); }

.pricing__note { text-align: center; font-size: 14px; color: var(--muted-2); margin-top: 30px; }
.pricing__note a { color: var(--red); font-weight: 600; }

/* ---------- Contact / free sample ---------- */
.cta {
  border: 1px solid rgba(225, 29, 38, 0.35);
  border-radius: 20px;
  background: radial-gradient(80% 140% at 50% 0%, rgba(225, 29, 38, 0.16), rgba(255, 255, 255, 0.02));
  padding: 60px 40px;
}
.cta__head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.cta__head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 16px;
}
.cta__head p { font-size: 16px; color: var(--text-5); margin: 0; }

.form { max-width: 620px; margin: 0 auto; text-align: left; }
.form__from {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 22px;
  padding: 14px 18px;
  border: 1px solid rgba(225, 29, 38, 0.4);
  border-radius: 12px;
  background: rgba(225, 29, 38, 0.07);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-3);
}
.form__from[hidden] { display: none; }
.form__from b { color: var(--text); }
.form__from > span { color: var(--red); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.field .req { color: var(--red); }
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-3);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  transition: border-color .18s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field__hint { font-size: 11.5px; color: var(--dim-2); margin-top: 7px; line-height: 1.5; }
.field--invalid input, .field--invalid textarea, .field--invalid .drop { border-color: var(--red); }
.field__error { display: none; font-size: 12px; color: var(--red); margin-top: 7px; }
.field--invalid .field__error { display: block; }

.drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px dashed var(--line-4);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.drop:hover, .drop:focus-within, .drop.is-over { border-color: var(--red); background: rgba(225, 29, 38, 0.06); }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop__icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(225, 29, 38, 0.14);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.drop__main { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.drop__sub  { font-size: 12px; color: var(--muted-2); }
.drop__thumb {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 10px;
  object-fit: cover;
  display: none;
}
.drop.has-file .drop__thumb { display: block; }
.drop.has-file .drop__icon { display: none; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 18px; }
.consent input[type="checkbox"] {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
}
.consent label { font-size: 12.5px; line-height: 1.55; color: var(--text-4); }
.consent a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

.form__legal { font-size: 11.5px; line-height: 1.6; color: var(--dim-2); margin-top: 16px; }
.form__status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.form__status.is-ok   { display: block; border: 1px solid rgba(34, 197, 94, .4);  background: rgba(34, 197, 94, .09);  color: #B7F0CB; }
.form__status.is-err  { display: block; border: 1px solid rgba(225, 29, 38, .45); background: rgba(225, 29, 38, .09); color: #FFC9CC; }

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

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
  padding: 30px 0 46px;
  margin-top: 46px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--dim);
}
.footer__brand {
  font-family: var(--display);
  font-size: 15px;
  color: var(--text-3);
  letter-spacing: 1px;
}
.footer__links {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 12.5px;
}
.footer__links a { color: var(--dim); }
.footer__links a:hover { color: #fff; }

/* ---------- Floating WhatsApp button ----------
   Sits bottom-right and follows the page as it scrolls. The cookie
   dialog lives bottom-left, so on a wide screen they never meet; on a
   phone the dialog is full width, so JS hides this until it is dismissed. */
.wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0;
  height: 58px;
  padding: 0 6px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 6px rgba(37, 211, 102, .14);
  transition: gap .22s ease, padding .22s ease, background .18s, transform .18s;
}
.wa[hidden] { display: none; }
.wa:hover { background: #1FBE5A; color: #fff; transform: translateY(-2px); }
.wa__icon {
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
}
.wa__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  transition: max-width .22s ease, padding .22s ease;
}
/* The label unrolls on hover — only where there is a real pointer. */
@media (hover: hover) and (min-width: 981px) {
  .wa:hover { gap: 4px; padding-right: 20px; }
  .wa:hover .wa__label { max-width: 140px; padding-left: 2px; }
  .wa:focus-visible { gap: 4px; padding-right: 20px; }
  .wa:focus-visible .wa__label { max-width: 140px; padding-left: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa, .wa__label { transition: none; }
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: 24px; bottom: 24px;
  z-index: 90;
  width: 470px;
  max-width: calc(100vw - 48px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(13, 10, 11, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
  padding: 26px 26px 22px;
}
.cookie[hidden] { display: none; }
.cookie__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cookie__head .mark { color: var(--red); font-size: 15px; }
.cookie__title { font-size: 16px; font-weight: 800; }
.cookie__text { font-size: 13px; line-height: 1.6; color: var(--text-5); margin: 0 0 18px; }
.cookie__prefs {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 0;
  margin-bottom: 18px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.cookie__prefs[hidden] { display: none; }
.pref { display: flex; align-items: flex-start; gap: 16px; }
.pref__main { flex: 1; }
.pref__name { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.pref__desc { font-size: 11.5px; line-height: 1.5; color: var(--muted-2); }
.pref__lock { flex: none; margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--dim-2); }
.switch {
  flex: none;
  position: relative;
  width: 46px; height: 26px;
  margin-top: 2px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-3);
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
  transition: background .18s;
}
.switch i {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left .18s;
}
.switch[aria-checked="true"] { background: var(--red); }
.switch[aria-checked="true"] i { left: 22px; }
.cookie__actions { display: flex; gap: 10px; }
.cookie__actions .btn { flex: 1; padding: 13px; font-size: 13.5px; }
.btn--tert {
  flex: none;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--text-4);
  font-weight: 600;
}
.btn--tert:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.cookie__save {
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  border-radius: 999px;
  border: 1px dashed var(--line-4);
  background: transparent;
  color: #EBE6E5;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.cookie__save[hidden] { display: none; }
.cookie__save:hover { border-color: var(--red); color: #fff; }
.cookie__fine { font-size: 11.5px; line-height: 1.5; color: var(--dim-2); margin-top: 14px; }
.cookie__fine a { color: #A39D9E; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal document pages ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 60px var(--gutter) 90px; }
.doc h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 14px;
}
.doc__meta { font-size: 13px; color: var(--dim); margin-bottom: 40px; }
.doc h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 40px 0 14px;
  letter-spacing: -.2px;
}
.doc h3 { font-size: 15.5px; font-weight: 800; margin: 26px 0 10px; }
.doc p, .doc li { font-size: 15px; line-height: 1.72; color: var(--text-5); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--red); }
.doc strong { color: var(--text-2); }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 13.5px;
  min-width: 520px;
}
.doc__scroll { overflow-x: auto; margin-bottom: 20px; }
.doc th, .doc td {
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  text-align: left;
  vertical-align: top;
  color: var(--text-5);
}
.doc th { color: var(--text-2); font-weight: 700; background: rgba(255, 255, 255, 0.03); }
.doc__box {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 22px 24px;
  margin: 0 0 24px;
}
.doc__box p:last-child { margin-bottom: 0; }
.doc__back { display: inline-block; margin-bottom: 30px; font-size: 13.5px; color: var(--dim); }
.doc__back:hover { color: #fff; }
.doc__toc { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 34px; font-size: 13.5px; }
.doc__toc a { color: var(--text-4); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .hero h1 { font-size: clamp(38px, 5.2vw, 62px); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .step:not(:last-child)::after { display: none; }
  .plans { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --gutter: 24px; }
  .header__inner { gap: 16px; position: relative; }
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .header.is-open .nav {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 20px;
    background: rgba(10, 7, 8, 0.985);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-2);
    font-size: 17px;
  }
  .header.is-open .nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }
  .header.is-open .nav .nav__cta {
    margin-top: 16px;
    padding: 15px;
    border: 0;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    text-align: center;
  }

  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__art { order: -1; max-width: 520px; margin: 0 auto; }
  .usps { grid-template-columns: 1fr; gap: 18px; }
  .cards3 { grid-template-columns: 1fr; gap: 20px; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 26px 0; padding: 26px 24px; }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .how__decor { width: 150px; top: 10px; right: 0; opacity: .45; }
  .section { padding-top: 70px; }
  .usecases { padding-top: 76px; }
  .cta { padding: 40px 24px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; padding: 22px 20px 18px; }
  /* The cookie dialog fills the width down here, so get out of its way. */
  body.cookie-open .wa { display: none; }
  .wa { right: 16px; bottom: 16px; height: 54px; }
  .wa__icon { width: 42px; height: 42px; }
}

@media (max-width: 620px) {
  .marquee__row { gap: 54px; padding-right: 54px; }
  .marquee__row span { font-size: 20px; }
  .plans { grid-template-columns: 1fr; }
  .plan { min-height: 0; }
  /* No room to grow sideways on a phone — the red outline does the work. */
  .plan--featured { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact { padding: 0; border-left: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .cookie__actions { flex-wrap: wrap; }
  .cookie__actions .btn { flex: 1 1 calc(50% - 5px); }
  .cookie__actions .btn--tert { flex: 1 1 100%; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer__links { margin-left: 0; gap: 16px; }
  .drop { flex-direction: column; text-align: center; gap: 10px; }
  .how__decor { display: none; }
  .ba__stage { height: 220px; }
}
