@font-face {
  font-family: "KMR Apparat";
  src: url("fonts/apparat/KMR_Apparat_Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "KMR Apparat";
  src: url("fonts/apparat/KMR_Apparat_Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("fonts/fragment-mono/fragment-mono-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --srh-gutter: max(clamp(1.25rem, 4.5vw, 6rem), calc((100% - 100rem) / 2));
  --srh-display: "KMR Apparat", Arial, sans-serif;
  --srh-mono: "Fragment Mono", ui-monospace, monospace;
  --srh-header-height: clamp(4.5rem, 5.45vw, 6rem);
}

:is(#how-it-works, #features, #pricing, #FAQ) {
  scroll-margin-top: calc(var(--srh-header-height) + 1rem);
}
.srh-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: #fff;
}
.srh-header-inner, .srh-hero-grid {
  margin-inline: var(--srh-gutter);
}
.srh-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--srh-header-height);
  border-bottom: 1px solid #dbdce6;
}
.srh-brand { display: block; line-height: 0; }
.srh-brand img { display: block; width: clamp(10.8rem, 13.5vw, 14rem); height: auto; }
.srh-nav, .srh-nav-links, .srh-nav-account { display: flex; align-items: center; }
.srh-nav-links {
  position: absolute;
  left: 50%;
  gap: clamp(1.15rem, 2.8vw, 3.4rem);
  transform: translateX(-50%);
}
.srh-nav-account { gap: clamp(1rem, 2.15vw, 2.6rem); }
.srh-nav a, .srh-nav button, .srh-menu-toggle, .srh-pill, .srh-kicker {
  font: 400 clamp(.74rem, .89vw, .94rem)/1.35 var(--srh-mono);
  letter-spacing: .015em;
  text-transform: uppercase;
}
.srh-nav a, .srh-nav button, .srh-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--srh-ink);
  background: transparent;
  white-space: nowrap;
  text-decoration: none;
}
.srh-nav-links a:hover, .srh-nav-account button:not(.srh-pill):hover {
  text-decoration: underline;
  text-underline-offset: .42em;
  text-decoration-color: var(--srh-purple);
}
.srh-pill, .srh-nav .srh-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15em;
  min-height: 44px;
  padding: .78em 1.32em;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.srh-arrow { font: 400 1.45em/1 Arial, sans-serif; }
.srh-nav .srh-pill:hover { color: #fff; border-color: var(--srh-ink); background: var(--srh-ink); }
.srh-header :focus-visible, .srh-home-hero :focus-visible {
  outline: 3px solid var(--srh-purple);
  outline-offset: 3px;
}
.srh-menu-toggle { display: none; }

.section.srh-home-hero {
  padding: clamp(3rem, 6vw, 7rem) 0;
  background: white;
}
.srh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 3.7vw, 5rem);
}
.srh-hero-copy { min-width: 0; }
.srh-home-hero .srh-kicker {
  display: flex;
  align-items: center;
  gap: .85em;
  margin: 0 0 clamp(1.65rem, 2.6vw, 3rem);
  color: #403c60;
}
.srh-kicker::before {
  content: "";
  width: 1.85em;
  height: .32em;
  background: var(--srh-mint);
}
.srh-home-hero h1 {
  margin: 0;
  color: var(--srh-ink);
  font: 300 clamp(3.4rem, 6.25vw, 8.8rem)/.99 var(--srh-display);
  letter-spacing: -.058em;
}
.srh-home-hero h1 em { color: var(--srh-purple-dark); font-style: normal; }
.srh-home-hero .srh-hero-lead {
  max-width: 26em;
  margin: clamp(1.45rem, 2.15vw, 2.6rem) 0;
  color: #444958;
  font: 400 clamp(1.1rem, 1.4vw, 1.5rem)/1.5 var(--srh-display);
  letter-spacing: -.022em;
}
.srh-hero-cta {
  gap: 2.4em;
  min-height: 3.45rem;
  padding-inline: 1.6em;
  border-color: var(--srh-purple-dark);
  color: #fff;
  background: var(--srh-purple-dark);
}
.srh-hero-cta:hover { border-color: #3830b4; background: #3830b4; }
.srh-home-hero .srh-offer {
  margin: .9rem 0 0;
  color: #525a6b;
  font: 400 clamp(.8rem, .93vw, 1rem)/1.5 var(--srh-display);
}
.srh-offer span { padding-inline: .25em; }

/* Keep the search illustration tied to the result link at every width. */
.srh-demo {
  position: relative;
  display: grid;
  align-items: center;
  padding: clamp(2rem, 4vw, 5rem) clamp(1rem, 3.2vw, 4rem);
  overflow: hidden;
  border-radius: clamp(1.1rem, 1.8vw, 2rem);
  background-color: #eeecff;
  background-image: radial-gradient(#bdb8ed 1px, transparent 1px);
  background-size: 14px 14px;
}
.srh-demo .hero-visual { width: 100%; max-width: 40rem; margin: 0 auto; padding: 0; }
.srh-demo :is(.visual-glow, .floating-rank-card, .floating-signal-card) { display: none; }
.srh-demo .serp-card {
  min-height: 0;
  border: 1px solid #d7d4e9;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 .75rem 2.5rem -.9rem #38317144;
  transform: none;
}
.srh-demo .dashboard-topbar { min-height: 40px; background: #faf9fe; font: 400 .69rem/1.3 var(--srh-mono); }
.srh-demo .window-dots i { background: #cecadf; }
.srh-demo .live-badge { color: #20624e; font-size: .58rem; }
.srh-demo .serp-page { min-height: 0; }
.srh-demo .serp-results { padding: .85rem 1.35rem 1.55rem clamp(2rem, 4.25vw, 4.6rem); }
.srh-demo .serp-result { margin-top: .85rem; }
.srh-demo :is(.result-meta strong, .result-meta small, .serp-stats, .target-position) { line-height: 1.35; }
.srh-demo .result-meta strong { font-size: .76rem; }
.srh-demo .result-meta small, .srh-demo .serp-stats { font-size: .64rem; }
.srh-demo .result-title { font-size: clamp(.88rem, 1.1vw, 1.15rem); }
.srh-demo .serp-result p { font-size: .7rem; }
.srh-demo .target-result { border-color: #e0ddfa; background: #f9f8ff; }
.srh-demo .target-position { color: #4d43bc; }
.srh-demo .target-link { position: relative; }
.srh-demo .target-link .serp-cursor {
  top: 50%;
  right: auto;
  left: 43%;
  width: 1.35rem;
  height: 1.78rem;
  transform-origin: top left;
  animation-name: srh-click-result;
}
.srh-demo .target-link .serp-click-ripple { inset: calc(50% - 10px) auto auto calc(43% - 10px); }
@keyframes srh-click-result {
  0%, 17%, 100% { transform: translate(clamp(3rem, 8vw, 9rem), -8rem); }
  43%, 48%, 55%, 72% { transform: translate(0, 0); }
  51% { transform: scale(.8); }
}
.srh-motion {
  position: absolute;
  right: .45rem;
  bottom: .38rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #3e3784;
  background: transparent;
}
.srh-motion:hover { background: #fff9; }
.srh-motion span { width: 9px; height: 12px; border-inline: 3px solid currentColor; }
.srh-demo.is-paused .srh-motion span { width: 0; border: 6px solid transparent; border-left: 9px solid currentColor; transform: translateX(3px); }
.srh-demo.is-paused :is(.serp-cursor, .serp-click-ripple, .target-result, .target-link) { animation-play-state: paused; }
.srh-motion[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .srh-motion { display: none; }
  .srh-demo .target-link .serp-cursor { transform: none; }
}

@media (max-width: 880px) {
  :root { --srh-header-height: 4.2rem; }
  .srh-header-inner { flex-wrap: wrap; }
  .srh-nav { flex: 1 0 100%; align-items: stretch; flex-direction: column; }
  .srh-nav-links, .srh-nav-account { position: static; flex-wrap: wrap; gap: 0 1rem; transform: none; }
  .srh-enhanced .srh-menu-toggle { display: inline-flex; gap: .75rem; }
  .srh-menu-lines { width: 1.35rem; height: .65rem; position: relative; }
  .srh-menu-lines::before, .srh-menu-lines::after {
    position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; content: "";
  }
  .srh-menu-lines::before { top: 0; }
  .srh-menu-lines::after { bottom: 0; }
  .srh-menu-toggle[aria-expanded="true"] .srh-menu-lines::before { top: 50%; transform: rotate(45deg); }
  .srh-menu-toggle[aria-expanded="true"] .srh-menu-lines::after { bottom: auto; top: 50%; transform: rotate(-45deg); }
  .srh-enhanced .srh-nav { display: none; }
  body:has(.srh-menu-toggle[aria-expanded="true"]) { overflow: hidden; }
  .srh-enhanced .srh-menu-toggle[aria-expanded="true"] + .srh-nav {
    position: absolute;
    inset: 100% calc(0px - var(--srh-gutter)) auto;
    display: flex;
    height: calc(100vh - var(--srh-header-height));
    height: calc(100dvh - var(--srh-header-height));
    padding: .55rem var(--srh-gutter) max(1.4rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    border-bottom: 1px solid #dbdce6;
    background: white;
    box-shadow: 0 18px 22px -24px #383171;
  }
  .srh-enhanced .srh-nav-links { display: grid; }
  .srh-enhanced .srh-nav-links a { justify-content: start; min-height: 3.1rem; border-bottom: 1px solid #eaebf0; }
  .srh-enhanced .srh-nav-account { justify-content: space-between; margin-top: auto; padding-top: 1.25rem; }
  .srh-hero-grid { grid-template-columns: 1fr; gap: 2.65rem; }
  .srh-home-hero h1 { font-size: clamp(3.3rem, 9.5vw, 6.2rem); }
  .srh-demo { padding: 2.65rem clamp(1rem, 7vw, 5.6rem); }
}
@media (max-width: 520px) {
  .section.srh-home-hero { padding-block: 2.15rem; }
  .srh-hero-grid { gap: 1.85rem; }
  .srh-home-hero h1 { font-size: clamp(2.55rem, 13.1vw, 4rem); }
  .srh-home-hero .srh-kicker { margin-bottom: 1.3rem; }
  .srh-home-hero .srh-hero-lead { margin-block: 1.35rem; }
  .srh-demo { padding: 1.2rem .65rem 2.4rem; border-radius: 1rem; }
  .srh-demo .dashboard-topbar { padding-inline: .75rem; }
  .srh-demo .serp-results { padding: .55rem 1rem 1.05rem 1.55rem; }
  .srh-demo .serp-stats, .srh-demo .serp-result:first-of-type p { display: none; }
  .srh-motion { bottom: 0; }
}
