/* SEIDO public mobile shell and landing-page density pass. */

.seido-public-mobile-header,
.seido-public-mobile-drawer {
  display: none;
}

/* Desktop landing-page tightening without changing content or hierarchy. */
body.seido-static-home.seido-public-mobile .hero-section {
  min-height: 690px;
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: 58px;
  grid-template-columns: minmax(400px, .88fr) minmax(560px, 1.12fr);
  gap: clamp(40px, 5vw, 76px);
}

body.seido-static-home.seido-public-mobile .hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(58px, 6.6vw, 108px);
}

body.seido-static-home.seido-public-mobile .hero-lede {
  margin: 22px 0;
  line-height: 1.68;
}

body.seido-static-home.seido-public-mobile .hero-proof {
  margin-top: 22px;
}

body.seido-static-home.seido-public-mobile .hero-visual {
  min-height: 560px;
}

body.seido-static-home.seido-public-mobile .panel {
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(16, 43, 84, .075);
}

body.seido-static-home.seido-public-mobile .apps-section,
body.seido-static-home.seido-public-mobile .bundle-section,
body.seido-static-home.seido-public-mobile .system-section,
body.seido-static-home.seido-public-mobile .library-section,
body.seido-static-home.seido-public-mobile .admin-section {
  padding-top: clamp(62px, 7vw, 92px);
}

body.seido-static-home.seido-public-mobile .app-feature,
body.seido-static-home.seido-public-mobile .app-module,
body.seido-static-home.seido-public-mobile .offer-card,
body.seido-static-home.seido-public-mobile .system-card,
body.seido-static-home.seido-public-mobile .route-card,
body.seido-static-home.seido-public-mobile .library-card,
body.seido-static-home.seido-public-mobile .admin-card {
  padding: 22px;
}

body.seido-static-home.seido-public-mobile .app-feature,
body.seido-static-home.seido-public-mobile .app-module {
  min-height: 245px;
}

body.seido-static-home.seido-public-mobile .app-module-large {
  min-height: 500px;
}

body.seido-static-home.seido-public-mobile .offer-card {
  min-height: 285px;
}

body.seido-static-home.seido-public-mobile .system-card,
body.seido-static-home.seido-public-mobile .route-card,
body.seido-static-home.seido-public-mobile .library-card,
body.seido-static-home.seido-public-mobile .admin-card {
  min-height: 205px;
}

@media (max-width: 1180px) and (min-width: 821px) {
  body.seido-static-home.seido-public-mobile .hero-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.seido-static-home.seido-public-mobile .hero-visual {
    min-height: 540px;
  }
}

@media (max-width: 820px) {
  :root {
    --seido-public-mobile-header-height: 58px;
    --seido-public-mobile-gutter: 14px;
  }

  html {
    scroll-padding-top: calc(var(--seido-public-mobile-header-height) + env(safe-area-inset-top) + 10px);
  }

  body.seido-public-mobile {
    min-height: 100dvh;
    overflow-x: hidden;
  }

  body.seido-public-menu-open {
    overflow: hidden;
  }

  body.seido-public-mobile > .seido-page {
    padding-top: calc(var(--seido-public-mobile-header-height) + env(safe-area-inset-top));
  }

  body.seido-public-mobile .site-header {
    display: none !important;
  }

  .seido-public-mobile-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1080;
    min-height: calc(var(--seido-public-mobile-header-height) + env(safe-area-inset-top));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: calc(8px + env(safe-area-inset-top)) max(var(--seido-public-mobile-gutter), env(safe-area-inset-right)) 8px max(var(--seido-public-mobile-gutter), env(safe-area-inset-left));
    border-bottom: 1px solid rgba(15, 23, 42, .07);
    background: rgba(251, 253, 255, .94);
    box-shadow: 0 4px 18px rgba(15, 23, 42, .045);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .seido-public-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .seido-public-mobile-brand img {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    object-fit: cover;
  }

  .seido-public-mobile-brand > span {
    display: grid;
    line-height: 1;
  }

  .seido-public-mobile-brand strong {
    color: var(--ink, #09152d);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
  }

  .seido-public-mobile-brand small {
    margin-top: 3px;
    color: var(--blue, #2563eb);
    font-size: 8px;
    font-weight: 950;
    letter-spacing: .18em;
  }

  .seido-public-mobile-title {
    min-width: 0;
    overflow: hidden;
    color: var(--ink, #09152d);
    font-size: 13px;
    font-weight: 850;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .seido-public-mobile-menu-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 12px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink, #09152d);
  }

  .seido-public-mobile-menu-button svg,
  .seido-public-mobile-sheet header button svg,
  .seido-public-mobile-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .seido-public-mobile-drawer:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1120;
    display: block;
  }

  .seido-public-mobile-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(6, 15, 31, .46);
    opacity: 0;
    transition: opacity .18s ease;
  }

  .seido-public-mobile-sheet {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(88vw, 370px);
    display: grid;
    align-content: start;
    gap: 10px;
    padding: calc(14px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: #f8fbff;
    box-shadow: -18px 0 50px rgba(7, 22, 45, .18);
    transform: translateX(100%);
    transition: transform .2s ease;
  }

  .seido-public-mobile-drawer.is-open .seido-public-mobile-backdrop {
    opacity: 1;
  }

  .seido-public-mobile-drawer.is-open .seido-public-mobile-sheet {
    transform: translateX(0);
  }

  .seido-public-mobile-sheet > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 4px 2px 12px;
  }

  .seido-public-mobile-sheet > header > div {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .seido-public-mobile-sheet > header span,
  .seido-public-mobile-menu-label {
    color: var(--muted, #61708f);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .seido-public-mobile-sheet > header strong {
    overflow: hidden;
    color: var(--ink, #09152d);
    font-size: 19px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .seido-public-mobile-sheet > header button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 12px;
    background: #fff;
    color: var(--ink, #09152d);
  }

  .seido-public-mobile-sheet nav {
    display: grid;
    gap: 6px;
  }

  .seido-public-mobile-menu-label {
    margin: 9px 4px 0;
  }

  .seido-public-mobile-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid rgba(198, 215, 238, .72);
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink, #09152d);
    font-size: 14px;
    font-weight: 820;
  }

  .seido-public-mobile-link > span {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .seido-public-mobile-link small {
    overflow: hidden;
    color: var(--muted, #61708f);
    font-size: 11px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .seido-public-mobile-link svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: var(--muted, #61708f);
  }

  .seido-public-mobile-link.is-active {
    border-color: rgba(37, 99, 235, .18);
    background: rgba(234, 242, 255, .92);
    color: var(--blue, #2563eb);
  }

  .seido-public-mobile-link.is-primary {
    border-color: transparent;
    background: linear-gradient(180deg, var(--blue-2, #3b82f6), var(--blue, #2563eb));
    color: #fff;
  }

  .seido-public-mobile-link.is-primary svg {
    color: #fff;
  }

  .seido-public-mobile-link.is-danger {
    color: #b4233e;
  }

  /* Landing page: native mobile composition instead of stacked desktop windows. */
  body.seido-static-home.seido-public-mobile {
    background:
      radial-gradient(circle at 92% 0, rgba(37, 99, 235, .10), transparent 260px),
      linear-gradient(180deg, #fbfdff 0%, #f3f7fd 62%, #edf4ff 100%);
  }

  body.seido-static-home.seido-public-mobile .section-shell {
    width: calc(100% - 28px);
  }

  body.seido-static-home.seido-public-mobile .hero-section {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0 34px;
  }

  body.seido-static-home.seido-public-mobile .hero-copy h1 {
    max-width: 10.5ch;
    font-family: var(--sans);
    font-size: clamp(42px, 13.2vw, 58px);
    font-weight: 900;
    letter-spacing: -.058em;
    line-height: .96;
  }

  body.seido-static-home.seido-public-mobile .hero-lede {
    margin: 16px 0 18px;
    font-size: 15px;
    line-height: 1.58;
  }

  body.seido-static-home.seido-public-mobile .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  body.seido-static-home.seido-public-mobile .hero-actions .seido-btn {
    width: 100%;
    min-height: 46px;
  }

  body.seido-static-home.seido-public-mobile .hero-proof {
    width: calc(100vw - 14px);
    margin-top: 16px;
    padding-right: 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  body.seido-static-home.seido-public-mobile .hero-proof::-webkit-scrollbar {
    display: none;
  }

  body.seido-static-home.seido-public-mobile .proof-pill {
    min-height: 30px;
    flex: 0 0 auto;
    padding-inline: 11px;
    font-size: 11px;
  }

  body.seido-static-home.seido-public-mobile .hero-visual {
    min-height: 0;
    display: grid;
    gap: 10px;
  }

  body.seido-static-home.seido-public-mobile .hero-visual .panel {
    position: relative;
    inset: auto;
    width: 100%;
    margin: 0;
    border-radius: 17px;
  }

  body.seido-static-home.seido-public-mobile .blueprint-grid,
  body.seido-static-home.seido-public-mobile .layer-terminal,
  body.seido-static-home.seido-public-mobile .layer-tokens,
  body.seido-static-home.seido-public-mobile .layer-bundle {
    display: none;
  }

  body.seido-static-home.seido-public-mobile .code-window {
    min-height: 0;
    overflow: hidden;
  }

  body.seido-static-home.seido-public-mobile .code-window header {
    min-height: 42px;
    padding: 10px 12px;
    gap: 7px;
    font-size: 10px;
  }

  body.seido-static-home.seido-public-mobile .code-window pre {
    max-height: 190px;
    padding: 14px 16px 18px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.55;
  }

  body.seido-static-home.seido-public-mobile .api-card {
    padding: 15px;
  }

  body.seido-static-home.seido-public-mobile .api-card strong {
    margin: 7px 0;
  }

  body.seido-static-home.seido-public-mobile .media-strip {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
  }

  body.seido-static-home.seido-public-mobile .benefit-strip {
    width: calc(100% - 14px);
    display: flex;
    gap: 10px;
    margin: 0 0 0 14px;
    padding-right: 14px;
    overflow-x: auto;
    border: 0;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  body.seido-static-home.seido-public-mobile .benefit-strip::-webkit-scrollbar {
    display: none;
  }

  body.seido-static-home.seido-public-mobile .benefit-strip article {
    min-height: 112px;
    flex: 0 0 min(78vw, 280px);
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .88);
    scroll-snap-align: start;
  }

  body.seido-static-home.seido-public-mobile .benefit-strip strong {
    margin-bottom: 6px;
    font-size: 14px;
  }

  body.seido-static-home.seido-public-mobile .benefit-strip p {
    font-size: 12px;
  }

  body.seido-static-home.seido-public-mobile .apps-section,
  body.seido-static-home.seido-public-mobile .bundle-section,
  body.seido-static-home.seido-public-mobile .system-section,
  body.seido-static-home.seido-public-mobile .library-section,
  body.seido-static-home.seido-public-mobile .admin-section {
    padding-top: 52px;
  }

  body.seido-static-home.seido-public-mobile .section-heading,
  body.seido-static-home.seido-public-mobile .library-heading {
    margin-bottom: 18px;
  }

  body.seido-static-home.seido-public-mobile .split-heading,
  body.seido-static-home.seido-public-mobile .library-heading,
  body.seido-static-home.seido-public-mobile .final-cta,
  body.seido-static-home.seido-public-mobile .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  body.seido-static-home.seido-public-mobile .section-heading h2,
  body.seido-static-home.seido-public-mobile .system-intro h2,
  body.seido-static-home.seido-public-mobile .library-heading h2,
  body.seido-static-home.seido-public-mobile .final-cta h2 {
    font-family: var(--sans);
    font-size: clamp(31px, 9vw, 40px);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1;
  }

  body.seido-static-home.seido-public-mobile .app-showcase,
  body.seido-static-home.seido-public-mobile .bundle-layout,
  body.seido-static-home.seido-public-mobile .system-grid,
  body.seido-static-home.seido-public-mobile .library-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.seido-static-home.seido-public-mobile .app-feature,
  body.seido-static-home.seido-public-mobile .app-module,
  body.seido-static-home.seido-public-mobile .offer-card,
  body.seido-static-home.seido-public-mobile .system-card,
  body.seido-static-home.seido-public-mobile .route-card,
  body.seido-static-home.seido-public-mobile .library-card,
  body.seido-static-home.seido-public-mobile .admin-card {
    min-height: 0;
    padding: 17px;
    border-radius: 17px;
  }

  body.seido-static-home.seido-public-mobile .app-module-large {
    min-height: 0;
  }

  body.seido-static-home.seido-public-mobile .app-module::after,
  body.seido-static-home.seido-public-mobile .app-feature::after {
    display: none;
  }

  body.seido-static-home.seido-public-mobile .app-feature h3,
  body.seido-static-home.seido-public-mobile .app-module h3,
  body.seido-static-home.seido-public-mobile .offer-card h3,
  body.seido-static-home.seido-public-mobile .route-card h3,
  body.seido-static-home.seido-public-mobile .library-card h3,
  body.seido-static-home.seido-public-mobile .admin-card h3 {
    margin: 16px 0 7px;
    font-family: var(--sans);
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -.035em;
  }

  body.seido-static-home.seido-public-mobile .system-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.seido-static-home.seido-public-mobile .system-intro {
    padding: 0;
  }

  body.seido-static-home.seido-public-mobile .final-cta {
    padding: 22px;
    border-radius: 18px;
  }

  body.seido-static-home.seido-public-mobile .admin-shortcuts {
    min-width: 0;
    width: 100%;
  }

  body.seido-static-home.seido-public-mobile .admin-shortcuts a {
    min-height: 47px;
    padding-inline: 14px;
    border-radius: 13px;
  }

  body.seido-static-home.seido-public-mobile .site-footer {
    padding: 42px 0 28px;
  }

  body.seido-static-home.seido-public-mobile .site-footer nav {
    gap: 14px;
  }

  /* Other public/account surfaces receive the same compact top rhythm. */
  body.seido-commerce-page.seido-public-mobile .commerce-main,
  body.seido-legal-page.seido-public-mobile .seido-legal-main {
    padding-top: 20px;
  }

  body.seido-account-billing-page.seido-public-mobile .seido-account-layout,
  body.seido-account-delete-page.seido-public-mobile .seido-account-layout {
    padding-top: 14px;
  }

  body.seido-account-billing-page.seido-public-mobile .seido-account-footer,
  body.seido-account-delete-page.seido-public-mobile .seido-account-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .seido-public-mobile-backdrop,
  .seido-public-mobile-sheet {
    transition: none !important;
  }
}
