/* ==========================================================================
   Avanza Web Studio — Mobile Experience Layer (v10)
   --------------------------------------------------------------------------
   Loaded AFTER avanza.css. Everything here is scoped to small screens, so the
   desktop and large-tablet compositions are byte-for-byte unchanged.

     1. Elements that exist only on mobile (hidden by default here)
     2. @media (max-width: 980px) — navigation sheet (hamburger range)
     3. @media (max-width: 640px) — the curated phone experience
   ========================================================================== */


/* ==========================================================================
   1. Mobile-only elements — hidden everywhere until the phone breakpoint
   ========================================================================== */
.hero-pill,
.hero-proof,
.nav-foot,
.demo-swipe,
.m-cta { display: none; }

/* Extra nav entry that exists only inside the mobile sheet. */
.main-nav a.nav-mobile-only { display: none; }


/* ==========================================================================
   2. Navigation sheet  (max-width: 980px)
   --------------------------------------------------------------------------
   Fixes the "blurred menu" bug. Root cause: `.site-shell` sets
   `isolation: isolate`, which makes it a stacking context with z-index auto.
   `body.nav-open::before` (z-index 60 + backdrop-filter) is a sibling of that
   shell, so it painted ON TOP of the entire site — header and menu included.
   The scrim is removed and the menu itself becomes the full-height surface.
   ========================================================================== */
@media (max-width: 980px) {

  /* Kill the offending overlay entirely. */
  body.nav-open::before { display: none !important; }

  /* Sticky, self-contained header. */
  .site-header {
    position: sticky;
    top: 0;
    background: rgba(6, 16, 26, 0.82);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    transition: background 0.25s ease, border-color 0.25s ease;
  }

  /* While the sheet is open the bar goes solid — no stacked blur layers. */
  body.nav-open .site-header {
    background: #071320;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }

  .nav-toggle {
    border-color: rgba(154, 204, 220, 0.16);
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  body.nav-open .nav-toggle {
    border-color: rgba(85, 221, 215, 0.34);
    background: rgba(85, 221, 215, 0.1);
    color: #8ff0ea;
  }

  /* ---- The sheet ---------------------------------------------------- */
  .main-nav,
  .main-nav.open {
    position: absolute;
    top: 100%;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    z-index: 90;

    display: flex;
    flex-direction: column;
    gap: 0;

    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;

    border: 0;
    border-radius: 0;
    background:
      radial-gradient(120% 45% at 50% 0%, rgba(85, 221, 215, 0.09), transparent 70%),
      linear-gradient(180deg, #08192a 0%, #061220 58%, #050f1a 100%);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);

    counter-reset: navitem;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.26s ease,
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.28s;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.22s ease,
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
  }

  /* ---- Link rows ------------------------------------------------------ */
  .main-nav a.nav-mobile-only { display: flex; }

  .main-nav > a:not(.nav-cta) {
    position: relative;
    justify-content: flex-start;
    min-height: 66px;
    padding: 16px 4px;
    border-radius: 0;
    border-bottom: 1px solid rgba(154, 204, 220, 0.085);
    color: #e6f4f8;
    font-family: Manrope, Inter, sans-serif;
    font-size: 1.32rem;
    font-weight: 750;
    letter-spacing: -0.035em;

    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .main-nav > a:not(.nav-cta)::before {
    counter-increment: navitem;
    content: counter(navitem, decimal-leading-zero);
    margin-right: 15px;
    color: #4d7686;
    font-family: Inter, sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    transform: translateY(-0.42em);
  }

  .main-nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid rgba(109, 224, 218, 0.55);
    border-bottom: 1.5px solid rgba(109, 224, 218, 0.55);
    transform: translateY(-50%) rotate(-45deg);
  }

  .main-nav a:hover,
  .main-nav a:active { background: none; color: #fff; }

  /* Staggered entrance for the link rows */
  .main-nav.open > a:not(.nav-cta) { opacity: 1; transform: none; }
  .main-nav.open > a:nth-of-type(1) { transition-delay: 0.05s; }
  .main-nav.open > a:nth-of-type(2) { transition-delay: 0.10s; }
  .main-nav.open > a:nth-of-type(3) { transition-delay: 0.15s; }
  .main-nav.open > a:nth-of-type(4) { transition-delay: 0.20s; }
  .main-nav.open > a:nth-of-type(5) { transition-delay: 0.25s; }

  /* ---- Sheet footer: CTA + direct contact ----------------------------- */
  .main-nav .nav-cta {
    order: 4;
    min-height: 54px;
    margin-top: 14px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(115deg, #59e1dc, #67b5ff);
    color: #04161f;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 16px 38px rgba(67, 191, 217, 0.18);

    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease 0.3s, transform 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
  }
  .main-nav.open .nav-cta { opacity: 1; transform: none; }

  .nav-foot {
    order: 3;
    display: grid;
    gap: 2px;
    margin-top: auto;
    padding-top: 18px;
    text-align: center;

    opacity: 0;
    transition: opacity 0.4s ease 0.26s;
  }
  .main-nav.open .nav-foot { opacity: 1; }

  .nav-foot small {
    color: #6b8895;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.56rem;
    font-weight: 800;
  }
  .nav-foot a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #83ebe5;
    font-size: 0.83rem;
    font-weight: 750;
  }
}


/* ==========================================================================
   3. The curated phone experience  (max-width: 640px)
   ========================================================================== */
@media (max-width: 640px) {

  /* ---- 3.1 Rhythm tokens ---------------------------------------------
     The old scale (72–94px per section edge) is what made the page feel
     like an endless desktop scroll. This tightens the whole document.     */
  :root {
    --gutter: 18px;
    --section-space: 54px;
    --header-h: 62px;
    --radius-lg: 22px;
    --radius: 18px;
  }

  html { scroll-padding-top: calc(var(--header-h) + 10px); }
  section[id] { scroll-margin-top: calc(var(--header-h) + 10px); }

  body { font-size: 15.5px; }

  /* ---- 3.2 Header ----------------------------------------------------- */
  .brand-mark-image,
  .footer-mark-image { flex-basis: 34px; width: 34px; }
  .brand-copy strong { font-size: 0.84rem; }
  .brand-copy small { margin-top: 2px; font-size: 0.55rem; letter-spacing: 0.005em; }
  .nav-toggle { width: 42px; height: 42px; flex-basis: 42px; }

  /* ---- 3.3 Typography -------------------------------------------------- */
  h2 {
    font-size: clamp(1.92rem, 8.4vw, 2.42rem);
    letter-spacing: -0.05em;
    line-height: 1.06;
  }
  h3 { font-size: 1.04rem; }

  .eyebrow {
    margin-bottom: 11px;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
  }
  .eyebrow::before { width: 12px; }

  .section-intro,
  .section-top { margin-bottom: 20px; }
  .section-intro h2,
  .section-top h2 { margin-bottom: 11px; }
  .section-intro > p:last-child,
  .section-top > p,
  .services-intro {
    font-size: 0.855rem;
    line-height: 1.6;
  }
  .section-top { gap: 10px; }

  .button {
    min-height: 50px;
    padding: 12px 20px;
    font-size: 0.845rem;
  }
  .text-link { font-size: 0.8rem; }


  /* ======================================================================
     3.4 HERO — a purpose-built cover page
     ----------------------------------------------------------------------
     Not the desktop layout scaled down. Full-viewport, type-led, with the
     site mock cropped by the fold so it reads as a cover and invites scroll.
     ====================================================================== */
  .hero {
    position: relative;
    display: flex;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    padding-block: 0;
    border-bottom: 0;
    background:
      radial-gradient(115% 62% at 50% 6%, rgba(37, 150, 170, 0.16), transparent 68%),
      radial-gradient(80% 40% at 82% 74%, rgba(18, 176, 172, 0.1), transparent 70%),
      linear-gradient(180deg, #07131f 0%, #061321 62%, #050f1a 100%);
  }

  .hero-glow { filter: blur(72px); }
  .hero-glow-one {
    width: 300px; height: 300px;
    right: -120px; top: 4%;
    opacity: 0.2;
    animation: heroDrift 15s ease-in-out infinite alternate;
  }
  .hero-glow-two {
    width: 250px; height: 250px;
    left: -125px; bottom: 20%;
    opacity: 0.17;
    animation: heroDrift 19s ease-in-out infinite alternate-reverse;
  }
  @keyframes heroDrift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(14px, -26px, 0) scale(1.1); }
  }

  .grid-overlay {
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 62%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 62%);
  }

  /* Copy centred in the free space, mock pinned to the fold. */
  .hero-grid {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 0;
    width: min(calc(100% - (var(--gutter) * 2)), var(--container));
    padding-block: 22px 0;
  }
  /* Grid items default to min-width:auto, so the mock's intrinsic width was
     stretching the track past the container on narrow handsets. */
  .hero-grid > *,
  .mock-hero,
  .mock-copy { min-width: 0; }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    text-align: center;
  }

  /* Availability pill */
  .hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: center;
    min-height: 27px;
    margin: 0 0 20px;
    padding: 5px 13px 5px 10px;
    border: 1px solid rgba(132, 238, 232, 0.2);
    border-radius: 999px;
    background: rgba(85, 221, 215, 0.07);
    color: #a5e9e4;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.56rem;
    font-weight: 850;
  }
  .hero-pill i {
    position: relative;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #55ddd7;
  }
  .hero-pill i::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(85, 221, 215, 0.4);
    animation: pillPulse 2.4s ease-out infinite;
  }
  @keyframes pillPulse {
    0%   { transform: scale(0.6); opacity: 0.85; }
    100% { transform: scale(1.9); opacity: 0; }
  }

  /* Headline: two commanding lines + a confident qualifier */
  .hero-copy h1 {
    max-width: none;
    margin: 0 0 18px;
    font-size: clamp(3.25rem, 15vw, 4.15rem);
    line-height: 0.9;
    letter-spacing: -0.062em;
  }
  .hero-copy h1 .hero-main {
    display: block;
    max-width: 8.5ch;
    margin-inline: auto;
    white-space: normal;
  }
  .hero-copy h1 .hero-bridge {
    display: block;
    margin-top: 0.34em;
    font-size: 0.45em;
    line-height: 1.12;
    letter-spacing: -0.028em;
    white-space: normal;
  }

  .hero-text {
    max-width: 30rem;
    margin: 0 auto;
    color: #a3bac6;
    font-size: 0.9rem;
    line-height: 1.62;
  }
  /* The full studio story is desktop copy — the cover gets the sharp version. */
  .hero-text .hero-text-long { display: none; }
  .hero-text .hero-text-tag {
    display: block;
    margin-top: 9px;
    color: #d3e6ee;
    font-family: Manrope, Inter, sans-serif;
    font-size: 0.87rem;
    font-weight: 700;
    letter-spacing: -0.015em;
  }

  .hero-actions {
    width: min(100%, 340px);
    gap: 9px;
    margin: 24px auto 0;
  }
  .hero-actions .button-secondary {
    min-height: 46px;
    border-color: rgba(161, 214, 225, 0.16);
    background: transparent;
    color: #b9d3dc;
  }

  /* Proof strip */
  .hero-proof {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 11px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
  }
  .hero-proof li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7e97a4;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: clamp(0.46rem, 2.3vw, 0.53rem);
    font-weight: 800;
  }
  .hero-proof li + li::before {
    content: "";
    width: 3px; height: 3px;
    border-radius: 50%;
    background: rgba(109, 224, 218, 0.55);
  }

  /* The mock rises into frame and is cut by the fold. */
  .hero-visual {
    width: 100%;
    min-height: 0;
    height: clamp(150px, 27vh, 240px);
    height: clamp(150px, 27svh, 240px);
    margin: 22px 0 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 42%, rgba(0,0,0,.28) 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 42%, rgba(0,0,0,.28) 78%, transparent 100%);
  }
  .browser-frame {
    border-radius: 17px 17px 0 0;
    border-bottom: 0;
    box-shadow: 0 -10px 46px rgba(0, 0, 0, 0.4);
  }
  .browser-content { padding: 15px 15px 0; }
  .mock-hero { padding: 20px 0 12px; }
  .mock-copy h3 { font-size: 0.95rem; }
  .mock-art { min-height: 96px; }
  .card-one { width: 78px; height: 94px; }
  .card-two { width: 60px; height: 56px; }
  .card-three { width: 44px; height: 44px; }


  /* ======================================================================
     3.5 FOUNDER — editorial banner instead of a 425px portrait block
     ====================================================================== */
  .founder-grid { gap: 20px; }
  .founder-portrait-wrap { width: 100%; max-width: none; margin: 0; }
  .founder-portrait-frame {
    aspect-ratio: 3 / 2;
    border-radius: 20px;
  }
  .founder-portrait { object-position: 50% 20%; }
  .founder-portrait-frame::after {
    background: linear-gradient(180deg, transparent 48%, rgba(4, 14, 22, 0.55));
  }
  .founder-copy h2 {
    max-width: none;
    margin-bottom: 14px;
  }
  .founder-copy > p:not(.eyebrow) { font-size: 0.855rem; line-height: 1.62; }
  .founder-copy > p.founder-lead { margin-bottom: 12px; font-size: 0.92rem; color: #c8dae2; }
  .founder-actions { gap: 6px; margin-top: 20px; }


  /* ======================================================================
     3.6 WORK — swipeable gallery (3 stacked cards → one card of height)
     ====================================================================== */
  .demo-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 78%;
    gap: 11px;

    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 14px;

    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline-start: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .demo-grid::-webkit-scrollbar { display: none; }

  .demo-card,
  .demo-card:nth-child(3) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
    scroll-snap-align: start;
    border-radius: 18px;
  }
  .demo-preview { aspect-ratio: 1.68 / 1; }
  .demo-card-body { min-height: 0; padding: 15px 15px 17px; }
  .demo-label { margin-bottom: 5px; font-size: 0.545rem; }
  .demo-card-body h3 { margin-bottom: 8px; font-size: 1.02rem; }
  .demo-card-body > p { font-size: 0.785rem; line-height: 1.5; }
  .demo-tags { gap: 5px; margin: 11px 0 9px; }
  .demo-tags span { padding: 4px 7px; font-size: 0.535rem; }
  .demo-card-body .text-link { min-height: 38px; font-size: 0.775rem; }

  /* Cards live in a horizontal scroller — reveal-on-scroll would leave the
     off-screen ones invisible, so they are shown immediately. */
  .js .demo-grid .reveal { opacity: 1; transform: none; transition: none; }

  .demo-swipe {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 0;
    color: #6f8b98;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.55rem;
    font-weight: 800;
  }
  .demo-swipe span {
    display: inline-block;
    animation: swipeNudge 1.9s ease-in-out infinite;
    color: #6de0da;
  }
  @keyframes swipeNudge {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(5px); }
  }


  /* ======================================================================
     3.7 SERVICES — dense spec list + compact support grid
     ====================================================================== */
  .service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(15, 39, 55, 0.8), rgba(8, 25, 37, 0.9));
  }
  .service-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 13px;
    min-height: 0;
    padding: 15px 16px;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .service-card::after { display: none; }
  .service-card + .service-card { border-top: 1px solid rgba(154, 204, 220, 0.085); }
  .service-card > span {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 29px; height: 29px;
    margin: 1px 0 0;
    border: 1px solid rgba(85, 221, 215, 0.16);
    border-radius: 9px;
    background: rgba(85, 221, 215, 0.07);
    font-size: 0.56rem;
    letter-spacing: 0.04em;
  }
  .service-card h3 { margin-bottom: 4px; font-size: 0.945rem; letter-spacing: -0.03em; }
  .service-card p { font-size: 0.775rem; line-height: 1.5; }

  .service-support-panel {
    margin-top: 11px;
    padding: 16px;
    border-radius: 20px;
  }
  .service-support-copy { margin-bottom: 13px; }
  .service-support-kicker { margin-bottom: 6px; font-size: 0.56rem; }
  .service-support-copy h3 { max-width: none; font-size: 1.12rem; line-height: 1.15; }
  .service-support-grid { gap: 7px; }
  .service-pill { gap: 7px; padding: 12px 11px; border-radius: 14px; }
  .service-pill > span { width: 26px; height: 26px; font-size: 0.53rem; }
  .service-pill h4 { margin-bottom: 4px; font-size: 0.795rem; }
  .service-pill p { font-size: 0.675rem; line-height: 1.4; }


  /* ======================================================================
     3.8 PROCESS — vertical timeline, not four stacked boxes
     ====================================================================== */
  .process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 2px;
  }
  .process-card {
    position: relative;
    min-height: 0;
    padding: 0 0 22px 44px;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .process-card::after {
    display: block;
    content: "";
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: 0;
    width: 1px;
    height: auto;
    right: auto;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(85, 221, 215, 0.32), rgba(85, 221, 215, 0.05));
  }
  .process-grid .process-card:last-child { padding-bottom: 0; }
  .process-grid .process-card:last-child::after { display: none; }

  .process-card > span {
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 31px; height: 31px;
    margin: 0;
    border: 1px solid rgba(85, 221, 215, 0.24);
    border-radius: 50%;
    background: #0c2231;
    font-size: 0.56rem;
    letter-spacing: 0.03em;
  }
  .process-card h3 { margin: 5px 0 6px; font-size: 1.01rem; letter-spacing: -0.035em; }
  .process-card p { font-size: 0.79rem; line-height: 1.52; }


  /* ======================================================================
     3.9 PACKAGES — same information, roughly 40% of the height
     ====================================================================== */
  .package-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }
  .package-card,
  .package-card.featured {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
    min-height: 0;
    padding: 18px 17px;
    border-radius: 18px;
    transform: none;
  }
  .package-card::after {
    width: 150px; height: 150px;
    right: -70px; top: -78px;
    background: radial-gradient(circle, rgba(85, 221, 215, 0.09), transparent 68%);
  }
  .package-card.featured::after {
    background: radial-gradient(circle, rgba(99, 173, 255, 0.14), transparent 68%);
  }
  .package-stage { min-height: 24px; margin-bottom: 11px; padding: 3px 9px; font-size: 0.525rem; }
  .package-kicker { margin-bottom: 5px; font-size: 0.55rem; }
  .package-card h3 { margin-bottom: 11px; font-size: 1.16rem; }
  .package-fit {
    margin-bottom: 10px;
    padding: 9px 0 10px;
    font-size: 0.765rem;
    line-height: 1.45;
  }
  .package-copy { font-size: 0.775rem; line-height: 1.48; }
  .package-card ul { gap: 6px; margin: 12px 0 15px; }
  .package-card li { padding-left: 18px; font-size: 0.765rem; line-height: 1.4; }
  .package-button { min-height: 46px; margin-top: 0; }

  /* Cards stack in document order so the prices climb: $200 -> $800 -> $7,500. */

  .package-price { margin-bottom: 12px; }
  .package-price-amount { font-size: 1.95rem; }
  .package-price-term { font-size: 0.535rem; }
  .package-price-sub { margin-top: 7px; font-size: 0.72rem; }
  .package-price-flag { margin-top: 5px; font-size: 0.6rem; }

  .package-terms {
    margin-top: 10px;
    padding: 17px 16px;
    border-radius: 18px;
  }
  .package-terms-copy { margin-bottom: 14px; }
  .package-terms-copy h3 { max-width: 15rem; margin-bottom: 8px; font-size: 1.16rem; }
  .package-terms-lead { font-size: 0.775rem; line-height: 1.48; }
  .package-terms-grid { gap: 8px; }
  .package-term { padding: 13px 13px 14px; border-radius: 14px; }
  .package-term-label { margin-bottom: 9px; font-size: 0.545rem; }
  .package-term-rows { gap: 5px; margin-bottom: 9px; }
  .package-term-row b { font-size: 1.18rem; }
  .package-term-copy { font-size: 0.74rem; line-height: 1.47; }
  .package-terms-note { margin-top: 13px; padding-top: 12px; font-size: 0.715rem; line-height: 1.5; }


  /* ======================================================================
     3.10 FAQ — one grouped panel reads far tidier than six floating cards
     ====================================================================== */
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(151, 211, 220, 0.14);
    border-radius: 18px;
    background: rgba(11, 29, 43, 0.7);
  }
  .faq-item {
    border: 0;
    border-radius: 0;
    background: none;
  }
  .faq-item + .faq-item { border-top: 1px solid rgba(154, 204, 220, 0.085); }
  .faq-item summary {
    min-height: 0;
    gap: 12px;
    padding: 15px 15px;
    font-size: 0.825rem;
    line-height: 1.4;
  }
  .faq-item summary span { width: 24px; height: 24px; font-size: 0.8rem; }
  .faq-item > div { padding: 0 15px 15px; }
  .faq-item p { font-size: 0.785rem; line-height: 1.55; }


  /* ======================================================================
     3.11 CONTACT — a tall form made compact without losing labels
     ====================================================================== */
  .contact-wrap {
    gap: 22px;
    padding: 20px 16px 22px;
    border-radius: 20px;
  }
  .contact-copy h2 { max-width: none; margin-bottom: 12px; }
  .contact-copy > p:not(.eyebrow, .contact-direct) {
    margin-bottom: 14px;
    font-size: 0.855rem;
    line-height: 1.6;
  }
  .contact-email { min-height: 38px; font-size: 0.85rem; }
  .contact-direct { font-size: 0.68rem; }

  .contact-form { gap: 10px; }
  .contact-form label { gap: 5px; }
  .contact-form label > span { font-size: 0.645rem; letter-spacing: 0.01em; }
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    min-height: 46px;
    padding: 11px 13px;
    border-radius: 12px;
  }
  .contact-form textarea { min-height: 96px; }
  .contact-form .button-primary { min-height: 52px; margin-top: 2px; }
  .form-note { font-size: 0.61rem; }


  /* ======================================================================
     3.12 FOOTER
     ====================================================================== */
  .site-footer { padding: 30px 0 22px; }
  .footer-wrap { gap: 18px; }
  .footer-brand-link small { font-size: 0.58rem; }
  .footer-contact small { font-size: 0.58rem; }
  .footer-contact a { min-height: 36px; font-size: 0.79rem; }
  .footer-links { gap: 0 14px; }
  .footer-links a { min-height: 40px; font-size: 0.7rem; }
  .footer-meta { margin-top: 14px; padding-top: 14px; font-size: 0.61rem; }


  /* ======================================================================
     3.13 Sticky action bar — the CTA is always one thumb-tap away
     ====================================================================== */
  .m-cta {
    position: fixed;
    z-index: 55;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 9px 9px 16px;

    border: 1px solid rgba(132, 238, 232, 0.18);
    border-radius: 999px;
    background: rgba(8, 24, 37, 0.9);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);

    opacity: 0;
    transform: translateY(140%);
    pointer-events: none;
    transition:
      opacity 0.3s ease,
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .m-cta.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  body.nav-open .m-cta { opacity: 0; transform: translateY(140%); pointer-events: none; }

  .m-cta-copy { display: grid; gap: 1px; min-width: 0; }
  .m-cta-copy strong {
    color: #edf8fb;
    font-family: Manrope, Inter, sans-serif;
    font-size: 0.79rem;
    font-weight: 750;
    letter-spacing: -0.025em;
  }
  .m-cta-copy span {
    color: #7f9aa7;
    font-size: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .m-cta-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 999px;
    background: linear-gradient(115deg, #59e1dc, #67b5ff);
    color: #04161f;
    font-size: 0.79rem;
    font-weight: 800;
  }

  /* Room so the bar never covers the last line of the footer. */
  body.has-mcta .site-footer { padding-bottom: 56px; }


  /* ---- 3.14 Motion preferences --------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .hero-glow-one,
    .hero-glow-two,
    .hero-pill i::after,
    .demo-swipe span { animation: none; }
    .m-cta { transition: opacity 0.001ms; }
  }
}


/* Very small handsets ------------------------------------------------------ */
@media (max-width: 360px) {
  .hero-copy h1 { font-size: 3.05rem; }
  .hero-text { font-size: 0.86rem; }
  .hero-proof li { font-size: 0.52rem; letter-spacing: 0.1em; }
  .demo-grid { grid-auto-columns: 83%; }
  .m-cta { padding-left: 14px; }
  .m-cta-copy strong { font-size: 0.74rem; }
  .m-cta-copy span { font-size: 0.56rem; }
  .m-cta-btn { padding: 0 14px; font-size: 0.74rem; }
  .main-nav a.nav-mobile-only { display: flex; }

  .main-nav > a:not(.nav-cta) { min-height: 55px; font-size: 1.2rem; }
}
