.mobile-dashboard-nav { display: none !important; }
/* FreeMcHosting v8.2 mobile refinements.
   Small-screen layouts are designed separately; desktop styling stays as in v8.1. */
@media (max-width: 800px) {
  html { scroll-padding-top: 100px; }
  .home-page main > section[id] { scroll-margin-top: 100px; }
  /* Keep the header useful without four buttons fighting for the same width. */
  .home-page>.header .nav,
  .contact-page>.header .nav {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
  }
  .home-page>.header .nav>.brand,
  .contact-page>.header .nav>.brand { flex: 0 1 auto; min-width: 0; }
  .home-page>.header .nav>.nav-tools,
  .contact-page>.header .nav>.nav-tools { margin-left: auto; display: flex; gap: 8px; flex: 0 0 auto; }
  .home-page>.header .nav-tools .login,
  .contact-page>.header .nav-tools .login { display: none; }
  .home-page>.header .nav nav,
  .contact-page>.header .nav nav {
    position: absolute;
    display: none;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: auto;
    z-index: 60;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 42px rgba(0,0,0,.18);
    flex-direction: column;
    gap: 1px;
  }
  .home-page>.header .nav nav.open,
  .contact-page>.header .nav nav.open { display: flex; }
  .home-page>.header .nav nav a,
  .contact-page>.header .nav nav a {
    display: block;
    font-size: 15px;
    line-height: 1.4;
    min-height: 44px;
    padding: 11px 13px;
    border-radius: 8px;
  }
  .home-page>.header .nav nav a:hover,
  .contact-page>.header .nav nav a:hover { background: color-mix(in srgb, var(--green) 12%, transparent); }
  .home-page>.header .nav nav .mobile-dashboard-nav,
  .contact-page>.header .nav nav .mobile-dashboard-nav {
    display: block !important;
    border-top: 1px solid var(--line);
    border-radius: 0;
    margin-top: 6px;
    padding-top: 14px;
    color: var(--green);
    font-weight: 700;
  }
  .home-page>.header .menu,
  .contact-page>.header .menu { width: 42px; height: 42px; flex: 0 0 42px; align-items: center; }
  .home-page>.header .theme-toggle,
  .contact-page>.header .theme-toggle { width: 42px; height: 42px; flex: 0 0 42px; padding: 0; }
  .home-page>.header.is-floating .nav { min-height: 66px; }
  .home-page>.header.is-floating .nav nav { top: calc(100% + 7px); }
  .home-page>.header.is-hidden:focus-within { opacity: 1; transform: none; pointer-events: auto; }

  /* The headline is two short ideas, not isolated single words. */
  .home-page .hero { min-height: 100svh; height: auto; }
  .home-page .hero .hero-content.hero-centered { width: calc(100% - 40px); padding-top: clamp(34px, 6svh, 55px); padding-bottom: 30px; }
  .home-page .hero .hero-centered h1 {
    max-width: 650px;
    font-size: clamp(40px, 7.8vw, 64px);
    letter-spacing: -.045em;
    line-height: 1.13;
    text-wrap: balance;
    margin-bottom: 20px;
  }
  .home-page .hero .hero-centered h1 span { display: inline; margin-top: 0; }
  .home-page .hero .hero-centered .hero-copy { max-width: 480px; margin-bottom: 23px; }
  .home-page .hero .hero-centered .hero-actions { max-width: 460px; }
  .home-page .hero-notes { gap: 10px 16px; }
  .home-page .hero-bottom { padding-top: 14px; }

  /* Tighter rhythm and comfortable cards in the free and paid sections. */
  .home-page .features-heading { margin-bottom: 26px; }
  .home-page .feature-row { padding-block: 22px; }
  .home-page .pool-section { padding-block: 72px; }
  .home-page .pool-layout { gap: 32px; }
  .home-page #plans { padding-top: 72px; padding-bottom: 88px; }
  .home-page #plans .plans-grid { gap: 15px; }
  .home-page #plans .plan-card { padding: 24px; gap: 17px; }

  /* The journey stays readable without excessive empty space between stops. */
  .home-page .founder-roadmap { padding: 72px 0 78px; }
  .home-page .roadmap-heading-layout { padding-bottom: 32px; }
  .home-page .roadmap-heading-layout h2 { text-wrap: balance; }
  .home-page .roadmap-track { padding-top: 42px; padding-bottom: 0; }
  .home-page .roadmap-stop,
  .home-page .roadmap-stop.road-right { gap: 22px; padding: 10px 0 30px; }
  .home-page .roadmap-stop + .roadmap-stop { margin-top: 29px; }
  .home-page .roadmap-copy > p:not(.roadmap-tag) { line-height: 1.75; }
  .home-page .roadmap-story-photo { display: block; height: auto; min-height: 0; overflow: hidden; }
  .home-page .roadmap-story-photo img { display:block; width:100%; height: 230px; min-height:0; object-fit: cover; }
  .home-page .roadmap-story-photo figcaption { position: static; padding: 17px; border-radius: 0; backdrop-filter: none; }
  .home-page .roadmap-story-photo figcaption strong { font-size: 20px; line-height: 1.3; }
  .home-page .roadmap-story-photo figcaption span:last-child { font-size: 12px; }
  .home-page .roadmap-photo-pair { height: 290px; }
  .home-page .roadmap-build-photo { padding-bottom: 0; }
  .home-page .roadmap-build-photo figcaption { margin-top: 27px; }
  .home-page .roadmap-tail { padding-top: 18px; }

  /* The gallery is a photo with controls, then a caption, with no empty panel. */
  .home-page .hardware-explorer { padding-top: 74px; padding-bottom: 72px; }
  .home-page .hardware-explorer-head { gap: 18px; margin-bottom: 27px; }
  .home-page .hardware-explorer-head h2 { font-size: clamp(34px, 6.8vw, 51px); line-height: 1.13; text-wrap: balance; }
  .home-page .hardware-explorer-head h2 br { display: none; }
  .home-page .hardware-explorer-aside p { font-size: 14px; line-height: 1.65; }
  .home-page .hardware-gallery-layout { display: block; min-height: 0; padding: 12px; }
  .home-page .hardware-gallery-layout .hardware-explorer-photo-frame {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    overflow: hidden;
  }
  .home-page .hardware-gallery-layout .hardware-explorer-photos {
    flex: 0 0 auto;
    height: clamp(275px, 82vw, 470px);
  }
  .home-page .hardware-gallery-layout .hardware-view {
    min-height: 0;
    height: 100%;
  }
  .home-page .hardware-gallery-layout .hardware-view figcaption { display: none; }
  .home-page .hardware-gallery-layout .hardware-gallery-arrow { top: calc(clamp(275px, 82vw, 470px) / 2); }
  .home-page .hardware-gallery-layout .hardware-gallery-meta {
    position: relative;
    inset: auto;
    display: grid;
    flex: 0 0 auto;
    gap: 8px;
    padding: 17px 16px 20px;
  }
  .home-page .hardware-gallery-layout .hardware-photo-note {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    font-size: 14px;
    line-height: 1.65;
    color: #dfecdf;
  }
  .home-page .hardware-gallery-layout .hardware-gallery-labels { color: #9dc6a7; }
.home-page .hardware-limits { margin-top: 26px; padding-top: 25px; }
  .home-page .help-links-section { padding: 74px 0; }
  .home-page .help-links-layout { gap: 29px; }

  html[data-theme='light'] .home-page .hardware-gallery-layout .hardware-gallery-meta { background: #f8fbf6; }
  html[data-theme='light'] .home-page .hardware-gallery-layout .hardware-photo-note { color: #294b35; background: transparent; }
  html[data-theme='light'] .home-page .hardware-gallery-layout .hardware-gallery-labels { color: #477455; }
  html[data-theme='light'] .home-page .roadmap-story-photo figcaption { background: #f0f6ed; }

  /* Shared page sections, including legal and pricing pages. */
  .plans-main { padding-block: 38px 72px; }
  .plans-main .plans-heading h1 { font-size: clamp(35px, 7vw, 52px); line-height: 1.15; }
  .plans-main .plans-grid-three { gap: 16px; }
  .plans-main .plans-grid-three .plan-card { padding: 23px; gap: 15px; }
  .plans-main .plan-extra h2 { font-size: clamp(25px, 5.4vw, 34px); }
  .footer-top { align-items: flex-start; }
}

@media (max-width: 520px) {
  .home-page .header .nav, .contact-page .header .nav { gap: 8px; }
  .home-page .hero .hero-content.hero-centered { padding-top: 30px; }
  .home-page .hero .hero-centered h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.12; margin-bottom: 18px; }
  .home-page .hero .hero-centered .hero-copy { font-size: 14px; line-height: 1.65; max-width: 370px; }
  .home-page .hero .hero-centered .hero-actions { width: 100%; max-width: 355px; flex-direction: column; gap: 10px; }
  .home-page .hero .hero-centered .hero-actions .btn { min-height: 47px; }
  .home-page .hero-notes { justify-content: center; font-size: 11px; }
  .home-page .hero-bottom { padding-bottom: calc(17px + env(safe-area-inset-bottom,0px)); }
  .home-page #plans .plan-card { padding: 20px; }
  .home-page .pool-example { padding: 18px 14px 20px; box-shadow: 5px 5px 0 #0b1914; }
  .home-page .pool-example-head { flex-wrap: wrap; }
  .home-page .pool-example-head>span { white-space: normal; }
  .home-page .pool-bars { height: 78px; }
  .home-page .roadmap-heading-layout h2 { font-size: clamp(39px, 9.4vw, 49px); }
  .home-page .roadmap-copy h3 { font-size: clamp(27px, 7.3vw, 31px); }
  .home-page .roadmap-build-photo .roadmap-photo-pair { height: 260px; }
  .home-page .roadmap-end { height: 285px; }
  .home-page .hardware-explorer-head h2 { font-size: clamp(31px, 8.6vw, 40px); }
  .home-page .hardware-gallery-layout .hardware-gallery-meta { padding: 15px 12px 18px; }
  .home-page .hardware-gallery-layout .hardware-gallery-arrow { width: 42px; height: 42px; }
  .home-page .hardware-gallery-layout .hardware-gallery-prev { left: 10px; }
  .home-page .hardware-gallery-layout .hardware-gallery-next { right: 10px; }
.home-page .help-links-layout h2 { font-size: clamp(33px, 8.5vw, 39px); }
  .footer-top { flex-direction: column; gap: 22px; }
  .footer-links { gap: 13px 18px; }
}

@media (max-width: 355px) {
  .home-page>.header .nav,
  .contact-page>.header .nav { width: calc(100% - 24px); }
  .home-page .brand-word,
  .contact-page .brand-word { font-size: 15px; }
  .home-page>.header .nav>.nav-tools,
  .contact-page>.header .nav>.nav-tools { gap: 6px; }
  .home-page>.header .nav .theme-toggle,
  .contact-page>.header .nav .theme-toggle,
  .home-page>.header .nav .menu,
  .contact-page>.header .nav .menu { width: 38px; height: 38px; flex-basis: 38px; }
  .home-page .hero .hero-centered h1 { font-size: 32px; }
  .home-page .hero-notes { gap: 7px; font-size: 10px; }
  .home-page .hardware-gallery-layout .hardware-explorer-photos { height: 275px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hardware-gallery-layout .hardware-gallery-arrow { transition: none; }
}


/* v8.3 | Mobile-only founder journey layout. Desktop roadmap stays unchanged. */
@media (max-width: 800px) {
  .home-page .founder-roadmap { overflow: hidden; }
  .home-page .roadmap-track {
    box-sizing: border-box;
    width: min(100% - 36px, 640px);
    max-width: 100%;
    padding-left: 22px;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }
  .home-page .roadmap-stop,
  .home-page .roadmap-stop.road-left,
  .home-page .roadmap-stop.road-right {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 14px 0 26px;
  }
  .home-page .roadmap-stop .roadmap-copy,
  .home-page .roadmap-stop .roadmap-editorial {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    justify-self: stretch;
    align-self: stretch;
  }
  .home-page .roadmap-pin,
  .home-page .road-left .roadmap-pin,
  .home-page .road-right .roadmap-pin { left: -30px; right: auto; }
  .home-page .roadmap-spec {
    max-width: 100%;
    min-width: 0;
    transform: none;
    box-shadow: 6px 6px 0 #10281b;
  }
  .home-page .roadmap-story-photo {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: none;
  }
  .home-page .roadmap-story-photo img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    object-position: center;
    background: #091711;
  }
  .home-page .roadmap-story-photo figcaption { width: 100%; max-width: 100%; }
  .home-page .roadmap-build-photo { transform: none; overflow: visible; }
  .home-page .roadmap-photo-pair {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 8px;
    width: 100%;
    height: auto;
    align-items: start;
  }
  .home-page .roadmap-photo-pair img,
  .home-page .roadmap-photo-pair img + img {
    display: block;
    min-width: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: center;
    transform: none;
    border-radius: 7px;
  }
  .home-page .roadmap-build-photo figcaption {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    text-shadow: none;
    background: #182c20;
    color: #e2f0e3;
  }
  html[data-theme='light'] .home-page .roadmap-build-photo figcaption {
    background: #e2ece0;
    color: #28513a;
  }
  .home-page .roadmap-end {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
    border-radius: 9px;
    overflow: hidden;
  }
  .home-page .roadmap-end img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .home-page .roadmap-end-label { max-width: calc(100% - 35px); }
  /* A taller photo viewport on phones shows more of each portrait image. */
  .home-page .hardware-gallery-layout .hardware-explorer-photos { height: clamp(340px, 100vw, 500px); }
  .home-page .hardware-gallery-layout .hardware-gallery-arrow { top: calc(clamp(340px, 100vw, 500px) / 2); }
  .home-page .hardware-gallery-layout .hardware-view img { object-fit: contain; }
}
@media (max-width: 480px) {
  .home-page .roadmap-track { width: calc(100% - 32px); padding-left: 20px; }
  .home-page .roadmap-pin,
  .home-page .road-left .roadmap-pin,
  .home-page .road-right .roadmap-pin { left: -28px; }
  .home-page .roadmap-spec { padding: 18px; }
  .home-page .roadmap-spec > strong { font-size: clamp(52px, 15vw, 64px); }
  .home-page .roadmap-story-photo figcaption { padding: 14px; }
  .home-page .roadmap-story-photo figcaption strong { font-size: clamp(17px, 5.3vw, 21px); }
  .home-page .roadmap-copy h3 { overflow-wrap: anywhere; }
  .home-page .hardware-gallery-layout .hardware-explorer-photos { height: clamp(350px, 105vw, 440px); }
  .home-page .hardware-gallery-layout .hardware-gallery-arrow { top: calc(clamp(350px, 105vw, 440px) / 2); }
}
