/* Otto landing — PORTRAIT TABLET (768–959px).
   The approved phone stylesheet remains unchanged. This sheet imports its
   compact structural layout only inside the tablet band, then scales the
   composition for the wider canvas. */

@import url("mobile.css?v=60") (min-width: 768px) and (max-width: 959px);

@media (min-width: 768px) and (max-width: 959px) {
  :root {
    --tablet-gutter: clamp(40px, 6.25vw, 60px);
  }

  /* styles.css hides these from desktop at 768px; tablet intentionally uses
     the compact DOM instead of squeezing the 1180px desktop canvas. */
  .m-only { display: block !important; }

  /* Tablet uses a normal hero -> audience-section flow. The shared desktop/
     phone stage otherwise contributes a second full viewport as a sticky
     dissolve runway, which reads as dead space in a portrait-tablet page. */
  .stage-wrap {
    height: auto;
  }

  .stage {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .stage .hero {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 720px;
  }

  .strip {
    --W: 100vw;
    position: relative;
    inset: auto;
    width: 100%;
    height: calc(0.69609 * var(--W) - 20px - var(--scene-drop));
    min-height: 0;
    opacity: 1;
    pointer-events: auto;
  }

  /* ---------- Header + hero ---------- */

  .hero-bg img.bg-day {
    top: -14%;
    height: 122%;
  }

  .hero-bg img.bg-night {
    top: -9%;
    height: 116%;
  }

  .mh {
    display: flex !important;
    padding: calc(24px + env(safe-area-inset-top))
      max(var(--tablet-gutter), env(safe-area-inset-right))
      calc(28px + env(safe-area-inset-bottom))
      max(var(--tablet-gutter), env(safe-area-inset-left));
  }

  .mh-logo,
  .mh-burger {
    width: 48px;
    height: 48px;
  }

  .mh-logo img { height: 29px; }

  .mh-burger span { width: 23px; }

  .mh-menu {
    top: calc(84px + env(safe-area-inset-top));
    left: auto;
    right: max(var(--tablet-gutter), env(safe-area-inset-right));
    width: min(360px, calc(100% - var(--tablet-gutter) - var(--tablet-gutter)));
    border-radius: 20px;
    padding: 10px;
  }

  .mh-menu a {
    min-height: 48px;
    padding: 0 16px;
    font-size: 15px;
  }

  .mh-head {
    width: 100%;
    max-width: 680px;
    margin-top: clamp(28px, 4dvh, 44px);
  }

  .mh-scrim {
    left: -56px;
    top: -150px;
    right: -80px;
    bottom: -46px;
  }

  .mh-head h1 {
    max-width: 660px;
    font-size: clamp(42px, 5.75vw, 54px);
    line-height: 1.07;
    letter-spacing: -1.1px;
  }

  .mh-sub {
    max-width: 610px;
    margin-top: 14px;
    font-size: clamp(16px, 2.1vw, 18px);
    line-height: 1.5;
    text-wrap: pretty;
  }

  .mh-stack {
    align-self: center;
    width: min(100%, 640px);
    margin-bottom: clamp(48px, 6dvh, 72px);
    gap: 14px;
  }

  .mh-card-w {
    align-self: center;
    width: min(100%, 580px);
  }

  .mh-card { border-radius: 24px; }

  .mh-card-head { padding: 13px 16px; }

  .mh-avatar {
    width: 34px;
    height: 34px;
  }

  .mh-avatar img { height: 16px; }

  .mh-biz { font-size: 13.5px; }

  .mh-win {
    height: 112px;
    margin: 10px 14px 14px;
  }

  .mh-flow .bubble {
    font-size: 14px;
    padding: 10px 14px;
  }

  .mh-replay {
    padding: 10px 18px;
    font-size: 10px;
  }

  .mh-cta {
    align-self: center;
    width: min(100%, 620px);
    gap: 14px;
  }

  .mh-btn-primary,
  .mh-btn-glass {
    font-size: 16px;
  }

  .mh-btn-primary { padding: 17px 0; }
  .mh-btn-glass { padding: 16px 0; }

  .otto-launcher {
    right: calc(28px + env(safe-area-inset-right));
    bottom: calc(28px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }

  .otto-launcher.dock-hero {
    bottom: calc(200px + env(safe-area-inset-bottom));
    box-shadow: 0 10px 24px rgba(10, 16, 22, .3);
  }

  /* ---------- Hero transition + lower-section containment ---------- */

  .strip-bg {
    display: block !important;
  }

  .strip-scene .ss-bg {
    display: none !important;
  }

  .strip-head {
    gap: 16px;
    padding: clamp(72px, 8dvh, 92px) var(--tablet-gutter) 24px;
    padding-top: 40px;
  }

  .strip-head h2 {
    max-width: 690px;
    font-size: clamp(38px, 4.9vw, 46px);
    line-height: 1.12;
    letter-spacing: -1px;
  }

  .strip-sub {
    max-width: 620px;
    font-size: 16.5px;
  }

  .qb-1 { bottom: calc(0.268 * var(--W) - var(--scene-drop)); }
  .qb-3 { bottom: calc(0.253 * var(--W) - var(--scene-drop)); }
  .qb-4 { bottom: calc(0.236 * var(--W) - var(--scene-drop)); }

  .offplate {
    padding: 196px var(--tablet-gutter) 84px;
  }

  .op-wrap,
  .tm-rise,
  .dfy-wrap,
  .pr-wrap,
  .faq-wrap,
  .cs-wrap,
  .cs-footer-wrap {
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .op-h,
  .dfy-h,
  .pr-h,
  .faq-h {
    font-size: clamp(36px, 4.8vw, 42px);
    line-height: 1.1;
    letter-spacing: -1px;
  }

  .op-sub,
  .dfy-sub,
  .pr-sub,
  .faq-sub {
    max-width: 610px;
    font-size: 16px;
    line-height: 1.55;
  }

  .op-cards {
    margin-top: 26px;
    gap: 11px;
  }

  .op-card {
    padding: 13px 16px 13px 13px;
  }

  .op-illo {
    width: 60px;
    height: 60px;
  }

  .op-card[data-scenario="0"] .op-illo img,
  .op-card[data-scenario="1"] .op-illo img,
  .op-card[data-scenario="2"] .op-illo img {
    width: 48px;
    height: 48px;
  }

  .op-card-title { font-size: 15px; }
  .op-card-tag { font-size: 13.5px; }

  .op-right { margin-top: 28px; }

  .demo-window { height: 320px; }

  .testimonial {
    padding: 100px var(--tablet-gutter) 180px;
  }

  .tm-quote {
    font-size: clamp(22px, 3vw, 26px);
    line-height: 1.55;
  }

  .dfy {
    padding: 120px var(--tablet-gutter) 140px;
  }

  .dfy-grid {
    margin-top: 32px;
    gap: 14px;
  }

  .dfy-step {
    padding: 18px 20px;
  }

  .dfy-step-t { font-size: 14.5px; }
  .dfy-step-b { font-size: 13px; }

  .dfy-bar {
    margin-top: 14px;
    padding: 20px 22px;
  }

  .pricing {
    padding: 54px var(--tablet-gutter) 80px;
  }

  .pr-card { border-radius: 28px; }

  .pr-left,
  .pr-right {
    padding-left: 32px;
    padding-right: 32px;
  }

  .pr-desc { max-width: 560px; }

  .faq {
    padding: 60px var(--tablet-gutter) 128px;
  }

  .faq-wrap { gap: 24px; }

  .faq-q { padding: 19px 2px; }
  .faq-qt { font-size: 16px; }
  .faq-a { font-size: 14.5px; }

  .faq-scene-m {
    height: 150px;
  }

  .faq-scene-m img {
    top: -48px;
    width: 500px;
  }

  .closing {
    min-height: min(105vh, 860px);
    min-height: min(105dvh, 860px);
  }

  .cs-wrap {
    padding: 140px var(--tablet-gutter) 280px;
  }

  .cs-copy { max-width: 610px; }

  .cs-h {
    font-size: clamp(42px, 5.5vw, 50px);
  }

  .cs-sub {
    max-width: 560px;
    font-size: 16px;
  }

  .cs-footer {
    padding-left: max(var(--tablet-gutter), env(safe-area-inset-left));
    padding-right: max(var(--tablet-gutter), env(safe-area-inset-right));
  }
}
