/* ==========================================================================
   Kapta · POS para InvoiceXpress
   Design alinhado com kapta.pt (2026): Satoshi + General Sans, tinta #161616,
   brilho rosado, botões em pílula, rótulos "/ secção" e linhas numeradas.
   ========================================================================== */

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #161616;
  --ink-2: #262626;
  --paper: #ffffff;
  --paper-2: #f7f7f5;
  --paper-3: #f6f6f4;
  --line: #dedede;
  --line-dark: rgba(255, 255, 255, 0.16);
  --muted: #656565;
  --muted-2: #aaaaaa;
  --red: #e2262b;
  --glow: rgba(229, 85, 92, 0.28);
  --ix: #34b98b;

  --font-display: "Satoshi", "General Sans", system-ui, sans-serif;
  --font-body: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --radius-lg: 30px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

/* ---------- Tipografia ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--muted);
}
.eyebrow--sm {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted-2);
}
.display {
  font-size: clamp(2.75rem, 7vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.h2 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.15;
}
.lead { font-size: 1.125rem; line-height: 1.55; color: var(--ink); }
.muted { color: var(--muted); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 14px; height: 14px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--dark { background: var(--ink); color: #f4f4f4; }
.btn--dark:hover { background: var(--ink-2); }
.btn--outline { background: var(--paper); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #f4f4f4; }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); }
.btn--block { width: 100%; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.arrow-link svg { width: 18px; height: 12px; transition: transform .3s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid #dbdbdb;
  border-radius: 35px;
  font-size: 1rem;
  line-height: 1;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: linear-gradient(120deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .28));
  -webkit-backdrop-filter: saturate(1.8) blur(14px);
  backdrop-filter: saturate(1.8) blur(14px);
  box-shadow: 0 1px 0 rgba(22, 22, 22, .06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 96px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.brand__kapta { height: 34px; width: auto; }
.brand__sep { width: 1px; height: 24px; background: #cfcfcf; }
.brand__ix { height: 15px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  font-size: 1rem;
  border-radius: 999px;
  transition: background-color .2s var(--ease);
}
.nav a:hover { background: rgba(22, 22, 22, .05); }

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

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform .3s var(--ease), background .2s;
}
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* Menu móvel em ecrã inteiro, como em kapta.pt */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  flex: none;
}
.mobile-menu__close {
  width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: transparent; color: var(--paper);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; margin-top: 32px; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.3;
}
.mobile-menu__foot { margin-top: auto; padding-top: 40px; display: grid; gap: 10px; color: #cfcfcf; }
.mobile-menu__foot .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: 72px 0 0;
  margin-top: -96px;
  padding-top: calc(96px + 72px);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 788px;
  height: 788px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), rgba(229, 85, 92, 0));
  filter: blur(60px);
  pointer-events: none;
}
.hero::before { top: -300px; left: -260px; }
.hero::after { top: 120px; right: -300px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: .95rem;
  color: var(--muted);
}
.tag__icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line);
}
.tag__icon img { width: 18px; height: auto; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 48px;
  align-items: end;
}
.hero__aside { display: grid; gap: 28px; padding-bottom: 8px; }
.hero__aside p { font-size: 1.125rem; line-height: 1.55; }
.hero__links { display: grid; gap: 12px; justify-items: start; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }

/* Painel de produto */
.showcase {
  position: relative;
  isolation: isolate;
  margin-top: 64px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}
.showcase::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -10% -45% 20%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229, 85, 92, .42), rgba(229, 85, 92, 0));
  filter: blur(40px);
}
.showcase::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.showcase__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  height: 100%;
  padding: 48px;
}
.showcase__copy { display: grid; gap: 16px; max-width: 460px; }
.showcase__copy .eyebrow { color: var(--muted-2); }
.showcase__copy .h3 { color: var(--paper); }
.showcase__copy .btn { margin-top: 8px; }
.showcase__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 32px 24px 0;
}
.showcase__visual img {
  width: min(100%, 540px);
  margin-bottom: -72px;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .45));
}

.glass {
  border-radius: 20px;
  padding: 18px 20px;
  background: linear-gradient(120deg, rgba(38, 38, 38, .66), rgba(22, 22, 22, .32));
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--paper);
}
.stat { display: flex; align-items: center; gap: 14px; }
.stat__value { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; white-space: nowrap; }
.stat__label { font-size: .95rem; line-height: 1.3; color: #e6e6e6; }
.showcase__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px;
}
.stars { display: inline-flex; gap: 3px; color: #ffc93c; }
.stars svg { width: 16px; height: 16px; }
.review-chip { display: grid; gap: 8px; }
.review-chip__meta { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #e6e6e6; }
.review-chip__meta img { height: 16px; width: auto; opacity: .9; }

/* ---------- Secções ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--tight-top { padding-top: clamp(56px, 7vw, 96px); }
.section--tight-bottom { padding-bottom: clamp(56px, 7vw, 96px); }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
  align-items: start;
}
.intro__body { display: grid; gap: 24px; max-width: 760px; }
.intro__body p { font-size: 1.125rem; line-height: 1.6; color: var(--muted); }

/* Linhas numeradas, como "01 Pesquisa" em kapta.pt */
.rows { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 6fr);
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.row .pill { justify-self: start; }
.row p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 520px; }

/* Citação */
.quote {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.quote footer { margin-top: 28px; display: flex; align-items: center; gap: 14px; color: var(--muted); }
.quote .stars { color: var(--ink); }

/* Secção escura: como funciona */
.section--dark {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.section--dark::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px; height: 900px;
  left: -360px; bottom: -520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229, 85, 92, .34), rgba(229, 85, 92, 0));
  filter: blur(40px);
}
.section--dark .eyebrow { color: var(--muted-2); }
.section--dark .intro__body p,
.section--dark .row p { color: #bdbdbd; }

.how {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.how__head { display: grid; gap: 20px; margin-bottom: 48px; }
.how__steps { border-top: 1px solid var(--line-dark); }
.step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-dark);
}
.step .pill { border-color: var(--line-dark); color: var(--paper); align-self: start; }
.step h3 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 8px; }
.step p { color: #bdbdbd; line-height: 1.6; }
.how__visual { position: relative; display: flex; justify-content: center; }
.how__visual img { width: min(100%, 520px); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .5)); }

/* ---------- Planos ---------- */
.pricing {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
  align-items: start;
}
.pricing__head { display: grid; gap: 20px; position: sticky; top: 120px; }
.pricing__head p { color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan__name { font-family: var(--font-display); font-size: 1.6rem; }
.plan__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-size: .85rem; line-height: 1;
  background: var(--paper-2); border: 1px solid var(--line);
}
.plan__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font-family: var(--font-display); font-size: clamp(3.4rem, 5vw, 4.4rem); line-height: 1; }
.plan__per { font-size: 1rem; color: var(--muted); }
.plan__note { margin-top: 10px; font-size: .95rem; color: var(--muted); }
.plan__list { display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan__list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.plan__list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }

.plan--featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan--featured::before {
  content: "";
  position: absolute; z-index: -1;
  width: 520px; height: 520px; right: -220px; top: -260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229, 85, 92, .45), rgba(229, 85, 92, 0));
  filter: blur(30px);
}
.plan--featured .plan__per,
.plan--featured .plan__note { color: #bdbdbd; }
.plan--featured .plan__list { border-color: var(--line-dark); }
.plan--featured .plan__badge { background: rgba(255, 255, 255, .08); border-color: var(--line-dark); }

.pricing__fineprint { margin-top: 20px; font-size: .9rem; color: var(--muted); }

/* ---------- Contactos ---------- */
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.contact-card__head { display: grid; gap: 20px; align-content: start; }
.contact-list { display: grid; gap: 22px; margin-top: 20px; }
.contact-list a { font-size: 1.15rem; }
.contact-list small { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }

.form { display: grid; gap: 4px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input,
.field textarea {
  width: 100%;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1.3;
  transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8a8a8a; }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--red); }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 24px 0 8px;
  font-size: .95rem;
  color: var(--muted);
}
.consent input {
  appearance: none;
  flex: none;
  width: 20px; height: 20px; margin: 1px 0 0;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
  display: grid; place-items: center;
}
.consent input:checked { background: var(--ink); }
.consent input:checked::after {
  content: "";
  width: 10px; height: 6px;
  border: 2px solid var(--paper);
  border-top: 0; border-right: 0;
  transform: translateY(-1px) rotate(-45deg);
}
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.form__status { font-size: .95rem; }
.form__status.is-ok { color: #1f7a4d; }
.form__status.is-error { color: var(--red); }
.hp { display: none !important; }

/* ---------- Rodapé ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper-3);
  padding: 96px 0 40px;
}
.site-footer::before {
  content: "";
  position: absolute; z-index: -1;
  width: 900px; height: 900px; right: -300px; bottom: -480px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229, 85, 92, .34), rgba(229, 85, 92, 0));
  filter: blur(40px);
}
.footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 64px; }
.footer__brand img:first-child { height: 34px; width: auto; }
.footer__brand .brand__sep,
.mobile-menu .brand__sep { background: rgba(255, 255, 255, .25); }
.footer__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
}
.footer__col { display: grid; gap: 36px; align-content: start; }
.footer__block { display: grid; gap: 10px; }
.footer__block .eyebrow--sm { margin-bottom: 4px; }
.footer__block small { color: var(--muted-2); font-size: .8rem; }
.footer__social { display: flex; gap: 16px; font-weight: 500; }
.footer__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__pills .pill { color: var(--paper-3); transition: background .2s, color .2s; }
.footer__pills .pill:hover { background: var(--paper-3); color: var(--ink); }
.footer__cta {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px;
  padding-bottom: 36px; border-bottom: 1px solid var(--line-dark);
}
.footer__cta p { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; max-width: 560px; }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  margin-top: 64px; font-size: .9rem; color: var(--muted-2);
}
.footer__legal a:hover { color: var(--paper); }

/* ---------- Selo rotativo (como em kapta.pt) ---------- */
.contact-badge {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(22, 22, 22, .12);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.contact-badge.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.contact-badge img { width: 28px; height: 28px; position: absolute; }
.contact-badge svg { width: 74px; height: 74px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Revelação ao fazer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .contact-badge svg { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 991px) {
  .hero__grid,
  .intro,
  .quote,
  .how,
  .pricing,
  .contact-card,
  .footer__grid { grid-template-columns: 1fr; }
  .hero__grid { gap: 32px; }
  .intro, .quote, .pricing { gap: 24px; }
  .pricing__head { position: static; }
  .showcase { grid-template-columns: 1fr; min-height: 0; }
  .showcase__left { padding: 36px 28px 0; gap: 28px; }
  .showcase__visual img { width: min(88%, 420px); }
  .row { grid-template-columns: auto 1fr; gap: 16px 24px; padding: 32px 0; }
  .row p { grid-column: 1 / -1; }
  .how__visual { order: -1; }
}

@media (max-width: 640px) {
  .site-header__inner, .mobile-menu__top { height: 80px; }
  .hero { margin-top: -80px; padding-top: calc(80px + 40px); }
  .brand { gap: 10px; }
  .brand__kapta { height: 28px; }
  .brand__ix { height: 12px; }
  .brand__sep { height: 20px; }
  .eyebrow { font-size: 1.25rem; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .showcase { margin-top: 48px; border-radius: var(--radius); }
  .showcase__chips { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 28px; }
  .form__grid { grid-template-columns: 1fr; }
  .field input, .field textarea { font-size: 1.15rem; }
  .step { grid-template-columns: 1fr; gap: 14px; }
  .contact-badge { width: 70px; height: 70px; right: 14px; bottom: 14px; }
  .contact-badge svg { width: 60px; height: 60px; }
  .contact-badge img { width: 22px; height: 22px; }
}

/* Reference-led migration: preserve Kapta's explicit light/dark section identity.
   Variance 6, motion 4, density 4. Existing brand assets and icon paths retained.
   Layers: sticky header 50; mobile dialog 60; keyboard skip link 70. */
.skip-link{position:fixed;top:12px;left:12px;z-index:70;background:var(--ink);color:var(--paper);padding:12px 18px;transform:translateY(-160%)}
.skip-link:focus{transform:none}
.mobile-app-link{display:none;font-size:.9rem}
.btn:active{transform:scale(.98)}
.site-header__inner{height:80px}
.hero{margin-top:-80px;padding-top:calc(80px + 64px)}
.hero .display{max-width:760px}
.hero__aside p{font-size:1.05rem}
.form__status.is-error{color:#b51d23}
.form__status.is-ok{color:#19613c}
.field input::placeholder,.field textarea::placeholder{color:#707070}
.field input:focus-visible,.field textarea:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.btn:disabled{opacity:.65;cursor:wait}
@media(max-width:1100px){.mobile-app-link{display:inline-block}}
@media(max-width:640px){.hero{padding-top:calc(80px + 40px)}.header-actions{gap:14px}.brand__kapta{height:25px}.brand__ix{height:11px}.brand{gap:8px}.menu-toggle{width:42px;height:42px}}
@media(prefers-reduced-transparency:reduce){.site-header.is-scrolled{background:var(--paper);backdrop-filter:none}.glass{background:#262626;backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
