/* Pulse mobile rubber adaptation — desktop unchanged (loaded after style.css) */

.sit-route-mobile {
  display: none;
}

@media (max-width: 899px) {
  :root {
    --pad: clamp(16px, 5vw, 24px);
  }

  .header {
    padding: 12px var(--pad);
    gap: 10px;
  }

  .header-cta {
    display: none;
  }

  .burger {
    display: grid;
  }

  .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 50;
    gap: 0;
    padding: 8px var(--pad) 16px;
    background: rgba(252, 250, 247, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(20, 40, 42, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav-toggle:checked ~ .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav a {
    display: block;
    padding: 14px 4px;
    font-size: 1.02rem;
    font-weight: 650;
    color: var(--ink);
    border-bottom: 1px solid rgba(20, 40, 42, 0.06);
  }

  .nav a.nav-cta {
    color: #ff6846;
    font-weight: 800;
    border-bottom: 0;
    margin-top: 4px;
  }

  .section {
    padding: 56px var(--pad);
  }

  .hero h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.6rem);
    max-width: none;
    line-height: 1.15;
  }

  .hero-lead {
    font-size: 1.02rem;
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 22px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
  }

  .section-head h2,
  .how-head h2,
  .who-head h2,
  .inside-head h2,
  .sit-head h2 {
    font-size: clamp(1.75rem, 6.5vw, 2.2rem);
    max-width: none;
  }

  .section-lead,
  .who-lead,
  .how-lead {
    font-size: 1rem;
    max-width: none;
  }

  .who-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .who-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .who-card {
    min-height: 0;
    width: 100%;
  }

  .who-card-visual {
    width: min(100%, 168px);
    height: 100px;
    margin: 24px 0 12px;
  }

  .how-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .how-stage {
    order: 2;
    width: 100%;
    max-width: 420px;
    margin: -28px auto 0;
    min-height: 290px;
  }

  .how-float {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .how-float svg {
    width: 30px;
    height: 30px;
  }

  .how-float--tg svg {
    width: 34px;
    height: 34px;
  }

  .how-float--doc {
    top: 5%;
    left: auto;
    right: 18%;
    width: 54px;
    height: 54px;
  }

  .how-float--cal {
    top: 36%;
    left: auto;
    right: 2%;
    width: 54px;
    height: 54px;
  }

  .how-float--tg {
    bottom: 10%;
    left: auto;
    right: 16%;
    width: 54px;
    height: 54px;
  }

  .how-visual {
    top: auto;
    left: auto;
    width: 100%;
    inset: 0;
    padding: 4px;
  }

  .how-visual img {
    width: min(100%, 440px);
  }

  .how-stage--art {
    min-height: 360px;
  }

  .how-float--doc {
    display: none;
  }

  .how-stage {
    overflow: visible;
  }

  .how-plant {
    display: none;
  }

  .how-copy {
    order: 1;
    max-width: none;
  }

  .steps li {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .step-num {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .steps li:not(:last-child)::after {
    left: 21px;
  }

  .inside-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .inside-stage {
    order: 2;
    width: 100%;
    min-height: 360px;
    max-width: 480px;
    margin: 0 auto;
  }

  .inside-copy {
    order: 1;
  }

  .result-card {
    width: 100%;
  }

  .sit-board {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 16px 28px 28px;
  }

  .sit-cards {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .sit-card {
    min-height: 0;
    width: 100%;
  }

  .sit-route-mobile {
    display: block;
    position: absolute;
    left: 4px;
    top: 20px;
    bottom: 12px;
    width: 28px;
    height: calc(100% - 32px);
    z-index: 1;
    pointer-events: none;
    overflow: visible;
  }

  .sit-finale {
    grid-column: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    max-width: none;
    margin-top: 8px;
    margin-left: 0;
    padding-left: 0;
    text-align: left;
    position: relative;
    z-index: 2;
  }

  .sit-finale-mark {
    margin-left: -2px;
  }

  .sit-finale-card {
    text-align: left;
  }

  .sit-route {
    display: none !important;
  }

  .sit-board-orb--peach,
  .sit-dot {
    display: none;
  }

  .book {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 36px var(--pad);
    margin-bottom: 28px;
  }

  .book .book-inner h2 {
    font-size: clamp(1.9rem, 7vw, 2.55rem);
    max-width: none;
  }

  .book-lead {
    font-size: 1.05rem;
    max-width: none;
    line-height: 1.6;
  }

  .book-cta {
    width: 100%;
    min-height: 52px;
    min-width: 0;
    justify-content: center;
    padding: 0.95rem 1.4rem;
    font-size: 1.05rem;
  }

  .book-visual {
    min-height: 260px;
    width: 100%;
  }

  .book-flight {
    display: none;
  }

  .book-flight--mobile {
    display: block;
  }

  .book-plane {
    top: -2%;
    left: 6%;
    bottom: auto;
    width: min(88px, 25vw);
    height: min(88px, 25vw);
    animation: none;
    transform: rotate(-22deg);
  }

  .book-checklist {
    right: 4%;
    top: 18%;
    width: min(240px, 68%);
    padding: 20px 18px;
  }

  .book-arcs {
    width: min(240px, 70%);
    right: -2%;
    opacity: 0.7;
  }

  .book-plant {
    opacity: 0.28;
    width: 90px;
    height: 114px;
  }

  .page-grid {
    opacity: 0.28;
  }

  .hero-visual,
  .how-stage,
  .inside-stage,
  .sit-board,
  .book,
  .book-visual {
    overflow-x: clip;
    max-width: 100%;
  }

  .how-visual {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section--who,
  .section--how,
  .section--inside,
  .section--situations {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .orb,
  .who-deco,
  .how-stage-orb--peach,
  .book-dot--c,
  .book-dot--d {
    display: none;
  }

  .flow-stage {
    min-height: 300px;
  }
}

@media (max-width: 430px) {
  :root {
    --pad: 20px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.5vw, 2.55rem);
  }

  .book .book-inner h2,
  .sit-head h2,
  .inside-head h2,
  .how-head h2,
  .who-head h2,
  .section-head h2 {
    font-size: clamp(1.8rem, 8vw, 2.15rem);
  }

  .how-stage {
    min-height: 280px;
    margin-top: -8px;
  }

  .inside-stage {
    min-height: 320px;
  }

  .inside-float {
    width: 64px;
    height: 64px;
  }

  .book-visual {
    min-height: 240px;
  }

  .book-plane {
    width: 80px;
    height: 80px;
    top: -4%;
    left: 4%;
    bottom: auto;
    animation: none;
    transform: rotate(-22deg);
  }

  .book-checklist {
    width: min(210px, 72%);
  }
}

@media (max-width: 390px) {
  :root {
    --pad: 18px;
  }

  .book-plant {
    display: none;
  }

  .book-arcs {
    opacity: 0.45;
  }

  .sit-board {
    padding-left: 24px;
  }

  .flow-card p {
    display: none;
  }
}

@media (max-width: 360px) {
  :root {
    --pad: 16px;
  }

  .header {
    padding-inline: 14px;
  }

  .section {
    padding-inline: 16px;
  }

  .book {
    padding-inline: 16px;
  }

  .hero-actions .btn,
  .book-cta {
    min-height: 50px;
    font-size: 1rem;
  }
}

/* Mobile book flight path — keep arc above/behind checklist */
@media (max-width: 899px) {
  .book-flight:not(.book-flight--mobile) {
    display: none !important;
  }

  .book-flight--mobile {
    display: block !important;
  }

  .book-flight-dash {
    stroke-width: 2.1;
  }
}
