/* =========================================================
   Kervo site design kit — cinematic redesign
   Loaded on every page, after styles.css (which still supplies the nav,
   mobile menu and a few legacy rules). Everything here uses the `hm-` / `kv-`
   prefix so it can't collide with those older rules.

   Look: deep navy + photography, glass chips, Lexend Deca (the app's own
   typeface), brand blue #1F6FEB with a sky highlight.
========================================================= */

:root {
  --hm-ink: #06122b;
  --hm-navy: #0a1f4d;
  --hm-blue: #1f6feb;
  --hm-blue-2: #2b78ff;
  --hm-sky: #57c7ff;
  --hm-paper: #f4f7fc;
  --hm-card: #ffffff;
  --hm-text: #0e1a33;
  --hm-muted: #5b6b86;
  --hm-line: #d9e3f2;
  --hm-on-dark: #eef4ff;
  --hm-on-dark-muted: rgba(226, 236, 255, 0.72);
  --hm-radius: 28px;
  --hm-font: "Lexend Deca", "Sora", system-ui, sans-serif;
  --hm-nav-h: 72px;
}

body.kv {
  font-family: var(--hm-font);
  background: var(--hm-paper);
  color: var(--hm-text);
}

body.kv .bg-glow {
  display: none;
}

/* ---------------------------------------------------------
   Nav: translucent navy over the hero, same markup as every page
--------------------------------------------------------- */
body.kv nav {
  background: rgba(6, 18, 43, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

body.kv .brand {
  color: #fff;
}

body.kv .nav-links a {
  color: rgba(238, 244, 255, 0.78);
}

body.kv .nav-links a:hover,
body.kv .nav-links a.is-active {
  color: #fff;
}

body.kv .nav-cta {
  border-radius: 999px;
  background: #fff;
  color: var(--hm-ink);
  box-shadow: none;
}

body.kv .nav-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

body.kv .nav-toggle span {
  background: #fff;
}

/* ---------------------------------------------------------
   Shared bits
--------------------------------------------------------- */
.hm-shell {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.hm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hm-sky);
}

.hm-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.hm-kicker--dark {
  color: var(--hm-blue);
}

.hm-h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  border: 0;
  font: 600 1rem/1 var(--hm-font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hm-btn--primary {
  background: var(--hm-blue);
  color: #fff;
  box-shadow: 0 14px 34px rgba(31, 111, 235, 0.45);
}

.hm-btn--primary:hover {
  transform: translateY(-2px);
  background: var(--hm-blue-2);
  box-shadow: 0 18px 40px rgba(31, 111, 235, 0.55);
}

.hm-btn--light {
  background: #fff;
  color: var(--hm-ink);
}

.hm-btn--light:hover {
  transform: translateY(-2px);
}

.hm-btn--block {
  width: 100%;
}

.hm-btn--outline {
  background: transparent;
  color: var(--hm-text);
  box-shadow: inset 0 0 0 1.5px var(--hm-line);
}

.hm-btn--outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--hm-blue);
  color: var(--hm-blue);
}

.hm-ghost {
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(6, 18, 43, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hm-ghost:hover {
  border-color: var(--hm-sky);
  background: rgba(87, 199, 255, 0.12);
}

/* Reveal-on-scroll. Hidden only when JS has flagged the page, so a visitor
   with scripting off still sees everything. */
.js-reveal [data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal [data-animate].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------
   Hero + phone stage. One dark wrapper whose bottom dissolves into the
   light page, so the phones fade out instead of ending on an edge.
--------------------------------------------------------- */
.hm-top {
  position: relative;
  margin-top: calc(var(--hm-nav-h) * -1);
  background: var(--hm-ink);
  color: var(--hm-on-dark);
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 150px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 150px), transparent 100%);
}

.hm-hero {
  position: relative;
  padding: calc(var(--hm-nav-h) + 76px) 0 0;
}

.hm-hero-photo {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto auto;
  width: min(66%, 1000px);
  height: 820px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%),
    linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 42%),
    linear-gradient(to bottom, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hm-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  filter: saturate(1.05) brightness(0.92);
}

/* Scrim: pulls the photo toward the navy so the headline stays legible. */
.hm-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 18, 43, 0.85) 0%, rgba(6, 18, 43, 0.15) 55%, rgba(6, 18, 43, 0) 100%),
    linear-gradient(180deg, rgba(6, 18, 43, 0.5) 0%, rgba(6, 18, 43, 0) 35%);
}

.hm-hero-inner {
  position: relative;
  min-height: 560px;
}

.hm-hero-copy {
  max-width: 600px;
}

.hm-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.hm-hero h1 span {
  color: var(--hm-sky);
}

.hm-hero-lead {
  margin: 26px 0 0;
  max-width: 50ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  color: var(--hm-on-dark-muted);
}

.hm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.hm-hero-note {
  margin: 18px 0 0;
  font-size: 0.86rem;
  color: rgba(226, 236, 255, 0.6);
}

/* ---- Glass chips (floating UI, echoing what the app really does) ---- */
.hm-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 31, 77, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  animation: hm-bob 7s ease-in-out infinite;
}

.hm-chip__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(87, 199, 255, 0.18);
  color: var(--hm-sky);
}

.hm-chip__icon svg {
  width: 18px;
  height: 18px;
}

.hm-chip__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hm-chip__label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 236, 255, 0.62);
}

.hm-chip__text {
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.hm-chip--a {
  right: 4%;
  top: 8%;
}

.hm-chip--b {
  right: 24%;
  top: 46%;
  animation-delay: -2.4s;
}

.hm-chip--c {
  right: 0;
  top: 64%;
  animation-delay: -4.6s;
}

@keyframes hm-bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-chip {
    animation: none;
  }
}

/* ---- Phones ---- */
.hm-phone {
  margin: 0;
}

.hm-phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--pw, 300px) * 0.15);
  border: max(3px, calc(var(--pw, 300px) * 0.022)) solid #03091a;
  background: #03091a;
  outline: 1px solid rgba(238, 244, 255, 0.22);
  box-shadow:
    0 50px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.hm-phone__screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* Fan of three, bottoms dissolving via the wrapper's mask */
.hm-stage {
  --pw: clamp(190px, 25vw, 320px);
  --pad: 36px;
  position: relative;
  width: min(1080px, 100%);
  margin: 40px auto 0;
  height: calc(var(--pw) * 1.72 + var(--pad));
}

.hm-stage-glow {
  position: absolute;
  left: 50%;
  top: 4%;
  width: calc(var(--pw) * 3);
  height: calc(var(--pw) * 1.6);
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(31, 111, 235, 0.55), transparent 72%);
  filter: blur(24px);
}

.hm-stage .hm-phone {
  position: absolute;
  top: var(--pad);
  left: 50%;
  width: var(--pw);
}

.hm-phone--center {
  z-index: 3;
  translate: -50% 0;
}

.hm-phone--left,
.hm-phone--right {
  --pw: calc(clamp(190px, 25vw, 320px) * 0.86);
  z-index: 2;
  width: var(--pw);
}

.hm-phone--left {
  translate: calc(-50% - clamp(190px, 25vw, 320px) * 0.88) 0;
  rotate: -6deg;
}

.hm-phone--right {
  translate: calc(-50% + clamp(190px, 25vw, 320px) * 0.88) 0;
  rotate: 6deg;
}

/* ---------------------------------------------------------
   Process: four steps
--------------------------------------------------------- */
.hm-process {
  position: relative;
  padding: 24px 0 110px;
}

.hm-section-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 52px;
}

.hm-section-head--center {
  display: block;
  text-align: center;
}

.hm-section-head--center .hm-h2 {
  margin-inline: auto;
  max-width: 20ch;
}

.hm-section-head--center .hm-kicker {
  justify-content: center;
}

.hm-section-aside {
  margin: 0;
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hm-muted);
}

.hm-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: none;
}

.hm-step {
  position: relative;
  padding: 28px 24px 30px;
  border-radius: var(--hm-radius);
  background: var(--hm-card);
  border: 1px solid var(--hm-line);
  box-shadow: 0 20px 44px rgba(15, 35, 80, 0.06);
}

.hm-step__num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--hm-blue), var(--hm-sky));
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hm-step h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hm-step p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--hm-muted);
}

/* ---------------------------------------------------------
   Bento features
--------------------------------------------------------- */
.hm-features {
  padding: 30px 0 110px;
}

.hm-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.hm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 34px 34px 0;
  overflow: hidden;
  border-radius: var(--hm-radius);
  background: var(--hm-card);
  border: 1px solid var(--hm-line);
  isolation: isolate;
}

.hm-card--4 {
  grid-column: span 4;
}

.hm-card--2 {
  grid-column: span 2;
}

.hm-card--dark {
  background: linear-gradient(160deg, var(--hm-navy), var(--hm-ink));
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--hm-on-dark);
}

.hm-card--tint {
  background: linear-gradient(160deg, #e8f1ff, #f4f8ff);
}

.hm-card__eyebrow {
  margin-bottom: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hm-blue);
}

.hm-card--dark .hm-card__eyebrow {
  color: var(--hm-sky);
}

.hm-card h3 {
  margin: 0 0 12px;
  max-width: 17ch;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hm-card p {
  margin: 0 0 18px;
  max-width: 40ch;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--hm-muted);
}

.hm-card--dark p {
  color: var(--hm-on-dark-muted);
}

.hm-card__link {
  align-self: flex-start;
  margin-bottom: 30px;
  color: var(--hm-blue);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.hm-card__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hm-card--dark .hm-card__link {
  color: var(--hm-sky);
}

.hm-card__copy {
  position: relative;
  z-index: 2;
}

.hm-card--4 .hm-card__copy {
  max-width: 46%;
}

/* Phone peeking up from the bottom-right of a wide card */
.hm-peek {
  --pw: 250px;
  position: absolute;
  z-index: 1;
  right: 5%;
  bottom: -150px;
  width: var(--pw);
  rotate: 4deg;
}

.hm-card--dark .hm-peek {
  rotate: -4deg;
}

/* Small "UI" snippets standing in for a phone on the narrow cards */
.hm-mini {
  margin: auto -8px 30px;
  display: grid;
  gap: 10px;
}

.hm-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hm-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hm-line);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--hm-text);
}

.hm-pill--on {
  border-color: transparent;
  background: var(--hm-blue);
  color: #fff;
}

.hm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--hm-line);
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(15, 35, 80, 0.06);
}

.hm-row__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--hm-blue);
}

.hm-row small {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--hm-muted);
}

.hm-card--dark .hm-row {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
}

/* ---------------------------------------------------------
   Use cases: photo + checklist
--------------------------------------------------------- */
.hm-use {
  position: relative;
  padding: 100px 0;
  background: var(--hm-ink);
  color: var(--hm-on-dark);
  overflow: hidden;
}

.hm-use-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.hm-use-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}

.hm-use-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hm-use-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 18, 43, 0.7) 100%);
}

.hm-use h2 {
  color: #fff;
}

.hm-checks {
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.hm-checks li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.02rem;
  line-height: 1.5;
}

.hm-checks svg {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  color: var(--hm-sky);
}

/* ---------------------------------------------------------
   Pricing
--------------------------------------------------------- */
.hm-pricing {
  padding: 110px 0;
}

.hm-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 880px;
  margin-inline: auto;
}

.hm-price {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 36px 36px;
  border-radius: var(--hm-radius);
  background: var(--hm-card);
  border: 1px solid var(--hm-line);
}

.hm-price--pro {
  background: linear-gradient(160deg, var(--hm-navy), var(--hm-ink));
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--hm-on-dark);
  box-shadow: 0 40px 80px rgba(10, 31, 77, 0.35);
}

.hm-price__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(87, 199, 255, 0.16);
  color: var(--hm-sky);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hm-price h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
}

.hm-price__val {
  margin: 0 0 26px;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hm-price__val span {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--hm-muted);
}

.hm-price--pro .hm-price__val span {
  color: var(--hm-on-dark-muted);
}

.hm-price ul {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
  flex: 1;
}

.hm-price li {
  position: relative;
  padding-left: 28px;
  font-size: 0.97rem;
  line-height: 1.5;
}

.hm-price li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--hm-blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.4l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

.hm-price--pro li::before {
  background-color: var(--hm-sky);
}

.hm-price-note {
  max-width: 62ch;
  margin: 30px auto 0;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--hm-muted);
}

/* ---------------------------------------------------------
   FAQ
--------------------------------------------------------- */
.hm-faq {
  padding: 20px 0 110px;
}

.hm-faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.hm-faq details {
  margin: 0;
  padding: 0;
  border-radius: 20px;
  border: 1px solid var(--hm-line);
  background: var(--hm-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hm-faq details[open] {
  border-color: rgba(31, 111, 235, 0.4);
  box-shadow: 0 16px 36px rgba(31, 111, 235, 0.08);
}

.hm-faq summary {
  padding: 22px 26px;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.hm-faq summary::-webkit-details-marker {
  display: none;
}

.hm-faq summary:focus-visible {
  outline: 2px solid var(--hm-blue);
  outline-offset: -2px;
  border-radius: 20px;
}

.hm-faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: 16px;
  border-radius: 999px;
  background: var(--hm-paper);
  color: var(--hm-blue);
  font-size: 1.2rem;
  font-weight: 500;
}

.hm-faq details[open] summary::after {
  content: "−";
}

.hm-faq details p {
  margin: 0;
  padding: 0 26px 24px;
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--hm-muted);
}

/* ---------------------------------------------------------
   Closing CTA: photo-backed panel
--------------------------------------------------------- */
.hm-final {
  padding: 0 0 110px;
}

.hm-final-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(64px, 9vw, 120px) 28px;
  border-radius: 40px;
  text-align: center;
  color: #fff;
  background: var(--hm-ink);
}

.hm-final-panel__photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(1.1);
}

.hm-final-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 90% at 50% 50%, rgba(6, 18, 43, 0.9), rgba(6, 18, 43, 0.62) 75%),
    linear-gradient(180deg, rgba(31, 111, 235, 0.22), rgba(6, 18, 43, 0.55));
}

.hm-final-panel h2 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hm-final-panel p {
  margin: 22px auto 34px;
  max-width: 46ch;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--hm-on-dark-muted);
}

/* ---------------------------------------------------------
   Inner-page hero (feature pages, support, legal)
--------------------------------------------------------- */
.hm-top--page {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent 100%);
}

.hm-hero--page {
  padding: calc(var(--hm-nav-h) + 72px) 0 120px;
}

.hm-hero--page .hm-hero-photo {
  height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
  mask-image: linear-gradient(to right, transparent 0%, #000 45%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}

.hm-hero--page .hm-hero-photo img {
  object-position: 50% 26%;
}

.hm-hero--page .hm-hero-inner {
  min-height: 0;
}

.hm-hero--page h1 {
  font-size: clamp(2.3rem, 4.8vw, 4rem);
}

.hm-page-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

/* Frosted card that sits over the photo, low enough to leave the face clear */
.hm-glass {
  align-self: end;
  padding: 30px 30px 26px;
  border-radius: var(--hm-radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 31, 77, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.hm-glass__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.hm-glass__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
}

.hm-glass__list svg {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--hm-sky);
}

/* ---------------------------------------------------------
   Feature pages
--------------------------------------------------------- */
.hm-landing {
  padding: 24px 0 110px;
}

.hm-lede {
  max-width: 62ch;
  margin: 18px auto 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--hm-muted);
}

.hm-benefits {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.hm-benefit {
  padding: 30px 30px 32px;
  border-radius: var(--hm-radius);
  background: var(--hm-card);
  border: 1px solid var(--hm-line);
  box-shadow: 0 20px 44px rgba(15, 35, 80, 0.06);
}

.hm-benefit h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hm-benefit p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--hm-muted);
}

.hm-benefit .hm-step__num {
  margin-bottom: 18px;
}

.hm-how {
  margin-top: 0;
}

.hm-use-grid--single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.hm-numbered {
  counter-reset: none;
}

.hm-numbered li {
  align-items: flex-start;
}

.hm-numbered__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hm-blue), var(--hm-sky));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.hm-numbered h3 {
  margin: 4px 0 4px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.hm-numbered p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--hm-on-dark-muted);
}

.hm-how__phone {
  --pw: 300px;
  justify-self: center;
  width: var(--pw);
  rotate: 3deg;
}

.hm-faq--page {
  padding-top: 110px;
}

/* ---------------------------------------------------------
   Legal + support content card
--------------------------------------------------------- */
.hm-legal {
  padding: 0 0 110px;
}

.hm-legal__wrap {
  max-width: 860px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.hm-legal__card {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  background: var(--hm-card);
  border: 1px solid var(--hm-line);
  box-shadow: 0 30px 70px rgba(15, 35, 80, 0.08);
  font-size: 1rem;
  line-height: 1.75;
  color: #26344f;
}

.hm-legal__card > p:first-child {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--hm-text);
}

.hm-legal__card h2 {
  margin: 44px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--hm-line);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hm-text);
}

.hm-legal__card > p:first-child + h2 {
  margin-top: 32px;
}

.hm-legal__card ul {
  padding-left: 1.2em;
}

.hm-legal__card li {
  margin: 6px 0;
}

.hm-legal__card li::marker {
  color: var(--hm-blue);
}

.hm-legal__card a {
  color: var(--hm-blue);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
body.kv footer.kv-footer {
  padding: 84px 0 36px;
  text-align: left;
  background: var(--hm-ink);
  color: var(--hm-on-dark);
}

.kv-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}

.kv-footer .brand {
  color: #fff;
  margin-bottom: 16px;
}

.kv-footer__brand p {
  max-width: 34ch;
  margin: 0 0 22px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--hm-on-dark-muted);
}

.kv-footer__badge {
  display: inline-block;
}

.kv-footer__badge img {
  display: block;
  height: 44px;
  width: auto;
}

.kv-footer__col h4 {
  margin: 4px 0 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 236, 255, 0.55);
}

.kv-footer__col a {
  display: block;
  padding: 6px 0;
  color: var(--hm-on-dark-muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.kv-footer__col a:hover {
  color: #fff;
}

.kv-footer__legal {
  margin: 64px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(226, 236, 255, 0.45);
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 960px) {
  .hm-hero {
    padding-top: calc(var(--hm-nav-h) + 300px);
  }

  .hm-hero-photo {
    inset: 0 0 auto 0;
    width: 100%;
    height: 620px;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  }

  .hm-hero-photo img {
    object-position: 50% 20%;
  }

  .hm-hero-photo::after {
    background: linear-gradient(180deg, rgba(6, 18, 43, 0.35) 0%, rgba(6, 18, 43, 0.1) 35%, rgba(6, 18, 43, 0.85) 100%);
  }

  .hm-hero-inner {
    min-height: 0;
  }

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

  .hm-chip {
    display: none;
  }

  .hm-section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hm-page-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hm-hero--page {
    padding-top: calc(var(--hm-nav-h) + 250px);
    padding-bottom: 96px;
  }

  .hm-hero--page .hm-hero-photo {
    height: 560px;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  }

  .hm-benefits {
    grid-template-columns: 1fr;
  }

  .hm-how__phone {
    --pw: 260px;
    rotate: none;
  }

  .kv-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }

  .kv-footer__brand {
    grid-column: 1 / -1;
  }

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

  .hm-card--4,
  .hm-card--2 {
    grid-column: span 6;
  }

  .hm-card--4 .hm-card__copy {
    max-width: none;
  }

  .hm-card--4 {
    min-height: 0;
  }

  .hm-peek {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: center;
    margin: 6px 0 -120px;
    rotate: none;
  }

  .hm-card--dark .hm-peek {
    rotate: none;
  }

  .hm-use-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hm-use-photo {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .hm-shell {
    width: calc(100% - 32px);
  }

  .hm-legal__wrap {
    margin-top: -24px;
  }

  .hm-legal__card {
    border-radius: 24px;
  }

  .hm-steps,
  .hm-price-grid {
    grid-template-columns: 1fr;
  }

  .hm-card {
    padding: 28px 24px 0;
  }

  .hm-hero-actions .hm-btn,
  .hm-hero-actions .hm-ghost {
    width: 100%;
    text-align: center;
  }

  .hm-stage {
    --pw: 200px;
    margin-top: 28px;
  }

  .hm-phone--left {
    translate: calc(-50% - 148px) 0;
  }

  .hm-phone--right {
    translate: calc(-50% + 148px) 0;
  }

  .hm-final-panel {
    border-radius: 28px;
  }

  .hm-process,
  .hm-features,
  .hm-pricing {
    padding-bottom: 80px;
  }
}


/* =========================================================
   Inner-page identity: no photo, a coloured glow + dot grid, a breadcrumb.
   Keeps subpages visibly different from the homepage's photo hero.
========================================================= */
.hm-hero--plain {
  --glow-a: rgba(31, 111, 235, 0.55);
  --glow-b: rgba(87, 199, 255, 0.16);
  position: relative;
  padding: calc(var(--hm-nav-h) + 56px) 0 0;
  background:
    radial-gradient(ellipse 55% 95% at 88% 0%, var(--glow-a), transparent 62%),
    radial-gradient(ellipse 45% 70% at 0% 100%, var(--glow-b), transparent 65%),
    var(--hm-ink);
}

.hm-theme-teal {
  --glow-a: rgba(20, 184, 166, 0.5);
  --glow-b: rgba(87, 199, 255, 0.14);
}

.hm-theme-violet {
  --glow-a: rgba(124, 92, 255, 0.55);
  --glow-b: rgba(31, 111, 235, 0.2);
}

.hm-hero--plain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 100%);
  mask-image: linear-gradient(115deg, transparent 20%, #000 100%);
}

.hm-hero--plain .hm-hero-inner {
  position: relative;
  z-index: 1;
}

.hm-hero--plain:not(:has(.hm-hero-phone)) {
  padding-bottom: 110px;
}

.hm-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-size: 0.86rem;
  color: rgba(226, 236, 255, 0.6);
}

.hm-crumbs a {
  color: rgba(226, 236, 255, 0.85);
  text-decoration: none;
}

.hm-crumbs a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hm-crumbs [aria-current] {
  color: var(--hm-sky);
  font-weight: 500;
}

/* Feature pages: the page's own app screen instead of the dog */
.hm-hero--plain .hm-page-grid {
  align-items: end;
}

.hm-page-grid--single {
  grid-template-columns: minmax(0, 760px);
}

.hm-hero--plain .hm-hero-copy {
  padding-bottom: 96px;
}

.hm-hero--plain .hm-hero-phone {
  --pw: clamp(230px, 27vw, 330px);
  position: relative;
  justify-self: center;
  width: var(--pw);
  margin-bottom: -190px;
  rotate: 4deg;
}

.hm-tags {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hm-tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(238, 244, 255, 0.92);
}

.hm-tags svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--hm-sky);
}

/* Steps: a 2x2 grid now that the phone lives in the hero */
.hm-numbered--grid {
  margin: 44px 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 960px) {
  .hm-hero--plain {
    padding-top: calc(var(--hm-nav-h) + 36px);
  }

  .hm-hero--plain .hm-hero-copy {
    padding-bottom: 40px;
  }

  .hm-hero--plain .hm-hero-phone {
    --pw: 250px;
    margin-bottom: -150px;
    rotate: none;
  }

  .hm-numbered--grid {
    grid-template-columns: 1fr;
  }
}
