:root {
  --aos-max: 1180px;
  --aos-pad: 24px;
  --aos-ink: #101522;
  --aos-muted: #667085;
  --aos-line: #e5e9ef;
  --aos-soft: #f7f9fc;
  --aos-orange: #f97316;
  --aos-orange-dark: #d95d0b;
  --aos-green: #16a36a;
  --aos-blue: #2563eb;
  --aos-shadow: 0 14px 34px rgba(15,23,42,.065);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.how-page {
  margin: 0;
  color: var(--aos-ink);
  background: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.how-page a { color: inherit; text-decoration: none; }
.how-page h1,.how-page h2,.how-page h3,.how-page p { margin-top: 0; }

.aos-shell {
  width: min(calc(100% - (var(--aos-pad) * 2)), var(--aos-max));
  margin-inline: auto;
}

/* Header */
.aos-header {
  position: sticky; top: 0; z-index: 100;
  color: #fff;
  background: rgba(9,14,24,.97);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px;
}
.aos-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.aos-brand img { display: block; width: 210px; height: auto; }
.aos-nav {
  display: flex; align-items: center; gap: 22px;
  color: #d4dbe7; font-size: 14px; font-weight: 700;
}
.aos-nav a { color: inherit; white-space: nowrap; }
.aos-nav a:hover { color: #fff; }
.how-page .aos-nav .aos-nav-cta {
  min-height: 42px;
  display: inline-flex; align-items: center;
  padding: 0 16px;
  color: #fff !important;
  background: var(--aos-orange);
  border-radius: 9px;
}
.aos-menu-button { display: none; }

/* Shared */
.aos-eyebrow {
  margin-bottom: 11px;
  color: #1bd697;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.how-page a.aos-button {
  min-height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent; border-radius: 8px;
  font-size: 13px; font-weight: 800; line-height: 1;
}
.how-page a.aos-button-primary {
  color: #fff !important;
  background: var(--aos-orange);
  box-shadow: 0 10px 22px rgba(249,115,22,.18);
}
.how-page a.aos-button-primary:hover { background: var(--aos-orange-dark); }
.how-page a.aos-button-secondary {
  color: #fff !important;
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
}

/* Hero */
.how-hero {
  color: #fff;
  background:
    radial-gradient(circle at 82% 22%,rgba(37,99,235,.16),transparent 32%),
    linear-gradient(135deg,#070b14 0%,#101827 64%,#10202a 100%);
}
.how-hero-grid {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(470px,1.1fr);
  gap: 54px;
  align-items: center;
  padding-top: 58px;
  padding-bottom: 58px;
}
.how-hero h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(42px,4.3vw,58px);
  line-height: 1.055;
  letter-spacing: -.034em;
}
.how-hero-lead {
  max-width: 660px;
  margin-bottom: 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.7;
}
.how-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.how-flow-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}
.how-flow-hero i {
  color: #738094;
  font-style: normal;
}
.how-flow-hero > div {
  min-width: 0;
  padding: 17px 9px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
}
.how-flow-hero span {
  width: 25px; height: 25px;
  display: grid; place-items: center;
  margin: 0 auto 8px;
  border-radius: 50%;
  color: #fff; background: var(--aos-orange);
  font-size: 9px; font-weight: 900;
}
.how-flow-hero strong { display: block; font-size: 12px; }
.how-flow-hero small {
  display: block;
  margin-top: 3px;
  color: #aeb9c9;
  font-size: 9.5px;
  line-height: 1.35;
}

/* Trust */
.how-trust {
  border-bottom: 1px solid var(--aos-line);
  background: #fff;
}
.how-trust-grid {
  min-height: 64px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  align-items: center;
}
.how-trust-grid span {
  padding: 0 16px;
  color: #475467;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  border-right: 1px solid var(--aos-line);
}
.how-trust-grid span:last-child { border-right: 0; }

/* Sections */
.how-section { padding: 72px 0; }
.how-section:nth-of-type(even) { background: var(--aos-soft); }
.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}
.section-heading-left { margin-bottom: 0; }
.section-heading h2,.how-demo-copy h2,.how-measure-section h2,.how-cta h2 {
  margin-bottom: 12px;
  font-size: clamp(29px,2.8vw,40px);
  line-height: 1.15;
  letter-spacing: -.024em;
}
.section-heading > p:last-child,.how-demo-copy > p:last-of-type,.how-measure-section p {
  margin-bottom: 0;
  color: var(--aos-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* Demo */
.how-demo-layout {
  display: grid;
  grid-template-columns: minmax(300px,.72fr) minmax(0,1.28fr);
  gap: 52px;
  align-items: start;
}
.how-step-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.how-step-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid var(--aos-line);
  border-radius: 12px;
  background: #fff;
}
.how-step-list article > span {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff; background: var(--aos-orange);
  font-size: 9px; font-weight: 900;
}
.how-step-list strong { display: block; margin-bottom: 2px; font-size: 13px; }
.how-step-list p {
  margin-bottom: 0;
  color: var(--aos-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.search-demo {
  overflow: hidden;
  border: 1px solid var(--aos-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15,23,42,.10);
}
.search-demo-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #e9edf2;
  background: #fff;
}
.search-brand {
  color: #4285f4;
  font-size: 18px;
  font-weight: 900;
}
.search-field {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #d9dee7;
  border-radius: 999px;
  color: #344054;
  background: #fff;
  font-size: 13px;
}
.search-field b {
  color: #667085;
  font-size: 16px;
}
.search-tabs {
  display: flex;
  gap: 18px;
  padding: 10px 18px 0;
  border-bottom: 1px solid #edf0f3;
  color: #667085;
  font-size: 11px;
}
.search-tabs span {
  padding-bottom: 9px;
}
.search-tabs .active {
  color: #2563eb;
  border-bottom: 2px solid #2563eb;
}
.search-content { padding: 17px 20px 20px; }
.search-helper {
  margin-bottom: 14px;
  color: #98a2b3;
  font-size: 10px;
}
.search-result {
  padding: 16px 0;
  border-top: 1px solid #edf0f3;
}
.search-result:first-of-type { border-top: 0; }
.sponsored-row,.organic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 5px;
}
.sponsored-row span,.organic-row span {
  font-size: 10px;
  font-weight: 800;
}
.sponsored-row span { color: #344054; }
.organic-row span { color: #667085; }
.sponsored-row small,.organic-row small {
  color: #98a2b3;
  font-size: 9.5px;
}
.search-result h3 {
  margin-bottom: 5px;
  color: #1d4ed8;
  font-size: 18px;
  line-height: 1.3;
}
.search-result p {
  margin-bottom: 11px;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}
.search-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.search-result-actions span {
  padding: 6px 8px;
  border-radius: 7px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 10px;
  font-weight: 800;
}
.search-demo-footer {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid #e9edf2;
  background: #f8fafc;
}
.search-demo-footer div {
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid #e9edf2;
}
.search-demo-footer div:last-child { border-right: 0; }
.search-demo-footer small {
  display: block;
  color: #98a2b3;
  font-size: 9.5px;
}
.search-demo-footer strong {
  display: block;
  margin-top: 2px;
  color: #344054;
  font-size: 11.5px;
}

/* System */
.how-system-section {
  padding: 72px 0;
  background: var(--aos-soft);
}
.how-system-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
}
.how-system-grid article {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--aos-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--aos-shadow);
}
.how-system-grid article > span {
  position: absolute;
  top: 14px; right: 14px;
  color: #b6bfcc;
  font-size: 10px;
  font-weight: 900;
}
.how-system-grid h3 {
  margin: 19px 0 7px;
  font-size: 17px;
}
.how-system-grid p {
  margin-bottom: 0;
  color: var(--aos-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* Comparison */
.how-comparison-section { background: #fff !important; }
.how-comparison-layout {
  display: grid;
  grid-template-columns: minmax(280px,.68fr) minmax(0,1.32fr);
  gap: 48px;
  align-items: start;
}
.how-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}
.how-comparison-grid article {
  padding: 22px;
  border: 1px solid var(--aos-line);
  border-radius: 14px;
  background: #fff;
}
.how-comparison-grid article > span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
}
.comparison-google > span {
  color: #1d4ed8;
  background: #eff6ff;
}
.comparison-meta > span {
  color: #7c3aed;
  background: #f4efff;
}
.how-comparison-grid strong {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
}
.how-comparison-grid p {
  margin-bottom: 14px;
  color: var(--aos-muted);
  font-size: 12.5px;
  line-height: 1.58;
}
.how-comparison-grid a {
  color: #a6460b;
  font-size: 12px;
  font-weight: 800;
}

/* Measure */
.how-measure-section {
  padding: 72px 0;
  color: #fff;
  background: #0c1421;
}
.how-measure-layout {
  display: grid;
  grid-template-columns: minmax(280px,.68fr) minmax(0,1.32fr);
  gap: 48px;
  align-items: center;
}
.how-measure-section p { color: #b8c4d3; }
.how-measure-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.how-measure-grid article {
  min-height: 108px;
  padding: 19px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
}
.how-measure-grid strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}
.how-measure-grid span {
  color: #aeb9c9;
  font-size: 12px;
  line-height: 1.52;
}

/* CTA */
.how-cta {
  padding: 60px 0;
  color: #fff;
  background: linear-gradient(135deg,#090e18,#111d2d);
}
.how-cta-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 36px;
  align-items: center;
}
.how-cta p:not(.aos-eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: #c1ccda;
  font-size: 14px;
}
.how-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* Footer */
.aos-footer { color: #cbd5e1; background: #070b14; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .7fr .7fr 1fr;
  gap: 34px;
  padding-top: 48px;
  padding-bottom: 30px;
}
.footer-brand-block img { width: 205px; }
.footer-brand-block p {
  max-width: 330px;
  margin: 14px 0 0;
  color: #98a5b7;
  font-size: 12.5px;
  line-height: 1.65;
}
.footer-links,.footer-contact { display: grid; align-content: start; gap: 8px; }
.footer-links strong,.footer-contact > strong {
  margin-bottom: 3px;
  color: #fff;
  font-size: 12.5px;
}
.footer-links a,.footer-contact a,.footer-contact p {
  color: #adb9c9;
  font-size: 12.5px;
}
.footer-contact p { margin: 3px 0 0; line-height: 1.55; }
.footer-bottom {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #7f8c9d;
  font-size: 11.5px;
}
.mobile-actions { display: none; }

@media (max-width: 1080px) {
  .aos-nav { gap: 15px; font-size: 13px; }
  .how-hero-grid {
    grid-template-columns: minmax(0,.85fr) minmax(430px,1.15fr);
    gap: 38px;
  }
  .how-demo-layout,.how-comparison-layout,.how-measure-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .how-system-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; }
  .footer-contact { grid-column: 1/-1; max-width: 620px; }
}

@media (max-width: 860px) {
  :root { --aos-pad: 18px; }
  body.how-page { padding-bottom: 62px; }

  .header-inner { min-height: 66px; }
  .aos-brand img { width: 195px; }

  .aos-menu-button {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    padding: 9px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 9px;
    background: rgba(255,255,255,.07);
  }
  .aos-menu-button span {
    width: 20px; height: 2px;
    display: block;
    margin: 2.5px 0;
    background: #fff;
    transition: .2s ease;
  }
  .aos-menu-button.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .aos-menu-button.is-open span:nth-child(2) { opacity: 0; }
  .aos-menu-button.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .aos-nav {
    position: absolute;
    top: 66px;
    left: 0; right: 0;
    display: none;
    padding: 14px 18px 18px;
    background: #fff;
    border-bottom: 1px solid var(--aos-line);
    box-shadow: 0 20px 35px rgba(15,23,42,.12);
  }
  .aos-nav.is-open { display: grid; }
  .aos-nav a {
    min-height: 44px;
    display: flex; align-items: center;
    padding: 0 4px;
    color: #253247;
    font-size: 14px;
    border-bottom: 1px solid #eef1f5;
  }
  .how-page .aos-nav .aos-nav-cta {
    justify-content: center;
    margin-top: 8px;
    color: #fff !important;
    border: 0 !important;
  }

  .how-hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .how-hero h1 { max-width: 720px; font-size: 40px; }
  .how-flow-hero {
    max-width: 700px;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  }

  .how-trust-grid { grid-template-columns: repeat(2,1fr); }
  .how-trust-grid span {
    min-height: 50px;
    display: grid; place-items: center;
    border-bottom: 1px solid var(--aos-line);
  }
  .how-trust-grid span:nth-child(2) { border-right: 0; }
  .how-trust-grid span:nth-last-child(-n+2) { border-bottom: 0; }

  .how-cta-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand-block { grid-column: 1/-1; }
  .footer-contact { grid-column: 1/-1; }

  .mobile-actions {
    position: fixed;
    z-index: 120;
    left: 0; right: 0; bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 7px 8px max(7px,env(safe-area-inset-bottom));
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--aos-line);
    box-shadow: 0 -6px 20px rgba(15,23,42,.08);
  }
  .mobile-actions a {
    min-height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
  }
  .mobile-call { background: #111827; }
  .mobile-whatsapp { background: #128c7e; }
}

@media (max-width: 560px) {
  :root { --aos-pad: 16px; }
  body.how-page { font-size: 14px; }
  .aos-brand img { width: 190px; }

  .how-hero-grid {
    padding-top: 40px;
    padding-bottom: 42px;
  }
  .aos-eyebrow {
    font-size: 11px;
    letter-spacing: .055em;
  }
  .how-hero h1 {
    margin-bottom: 15px;
    font-size: clamp(33px,9.8vw,40px);
    line-height: 1.09;
    letter-spacing: -.022em;
  }
  .how-hero-lead {
    font-size: 15px;
    line-height: 1.66;
  }
  .how-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 21px;
  }
  .how-page a.aos-button {
    width: 100%;
    min-height: 46px;
    font-size: 14px;
  }

  .how-flow-hero {
    grid-template-columns: 1fr;
  }
  .how-flow-hero > i {
    transform: rotate(90deg);
    text-align: center;
  }

  .how-section,
  .how-system-section,
  .how-measure-section {
    padding: 56px 0;
  }
  .section-heading { margin-bottom: 23px; }
  .section-heading h2,.how-demo-copy h2,.how-measure-section h2,.how-cta h2 {
    font-size: 28px;
    line-height: 1.16;
    letter-spacing: -.018em;
  }
  .section-heading > p:last-child,.how-demo-copy > p:last-of-type,.how-measure-section p {
    font-size: 14px;
  }

  .how-trust-grid span {
    padding: 0 8px;
    font-size: 11.5px;
  }

  .search-demo-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .search-field { min-height: 40px; }
  .search-tabs {
    gap: 13px;
    overflow-x: auto;
  }
  .search-content { padding: 15px; }
  .search-result h3 { font-size: 16px; }
  .search-demo-footer strong { font-size: 10.5px; }

  .how-system-grid,
  .how-comparison-grid,
  .how-measure-grid {
    grid-template-columns: 1fr;
  }

  .how-cta { padding: 54px 0; }
  .how-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand-block,.footer-contact { grid-column: auto; }
  .footer-bottom {
    min-height: auto;
    display: grid;
    padding-top: 17px;
    padding-bottom: 20px;
  }
}
