/* Predis Model Studio 2.0 landing page. Loaded after ../assets/css/styles2.min.css (Bootstrap 5.3.3 + site styles).
   Everything is scoped under .ms-page so it cannot leak into shared site styles. Dark theme. */

.ms-page {
  --ms-bg: #00111f;
  --ms-card: #0b2238;
  --ms-card-2: #06233f;
  --ms-blue: #1a6aff;
  --ms-blue-hover: #1555cc;
  --ms-blue-soft: #75a5ff;
  --ms-text-2: rgba(255, 255, 255, 0.72);
  --ms-text-3: rgba(255, 255, 255, 0.6);
  --ms-line: rgba(255, 255, 255, 0.1);
  --ms-gradient: linear-gradient(304.7deg, #f41a58 12.59%, #2b75ff 100%);
  background: var(--ms-bg);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
html:has(.ms-page) { scroll-behavior: smooth; }

.ms-page h1, .ms-page h2, .ms-page h3 { color: #fff; margin: 0; }
.ms-page p { margin: 0; }
.ms-page a { text-decoration: none; }
.ms-page video, .ms-page img { display: block; }

.ms-wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.ms-section { padding: 56px 0; }
.ms-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ms-blue-soft); }
.ms-h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.ms-sub { font-size: 18px; line-height: 1.55; color: var(--ms-text-2); }
.ms-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.ms-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ms-link { font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--ms-blue-soft); }
.ms-link:hover { color: #fff; }
.ms-stack { display: flex; flex-direction: column; gap: 20px; }
.ms-media { position: relative; background: var(--ms-card); overflow: hidden; }
.ms-media video, .ms-media img { width: 100%; height: 100%; object-fit: cover; }

/* Buttons */
.ms-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font-weight: 600; white-space: nowrap; flex-shrink: 0; transition: background .15s ease-in-out; }
.ms-btn-blue { background: var(--ms-blue); color: #fff; font-size: 15px; padding: 11px 20px; }
.ms-btn-blue:hover { background: var(--ms-blue-hover); color: #fff; }
.ms-btn-white { background: #fff; color: #001f3c; font-size: 17px; padding: 16px 32px; }
.ms-btn-white:hover { background: #e9ecef; color: #001f3c; }
.ms-page a:focus-visible, .ms-page button:focus-visible, .ms-page input:focus-visible, .ms-page textarea:focus-visible { outline: 3px solid rgba(117, 165, 255, .6); outline-offset: 2px; }

/* Header */
.ms-header { background: rgba(0, 17, 31, 0.94); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.ms-page .ms-header .navbar { background: transparent; box-shadow: none !important; }
.ms-page .ms-header .navbar-brand { margin-right: 0; padding: 0; }
.ms-page .ms-header .logo { height: 30px; width: auto; max-width: none; }
.ms-page .ms-header .nav-link { color: rgba(255, 255, 255, 0.75); font-size: 15px; font-weight: 500; }
.ms-page .ms-header .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.ms-page .ms-header .navbar-toggler { color: #fff; }
.ms-page .ms-header .navbar-toggler { --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.ms-bar { display: flex; align-items: center; justify-content: space-between; height: 61px; }
.ms-nav-right { display: flex; align-items: center; gap: 20px; }
.ms-login { color: rgba(255, 255, 255, 0.75); font-size: 15px; font-weight: 500; white-space: nowrap; }
.ms-login:hover { color: #fff; }
@media (min-width: 992px) { .ms-nav-right { margin-left: auto; } }
@media (max-width: 991.98px) {
  .ms-page .ms-header .navbar-collapse { background: var(--ms-bg); }
  .ms-nav-right { flex-direction: column; align-items: flex-start; padding: 12px .75rem; }
}

/* Hero */
.ms-hero { position: relative; height: calc(100vh - 61px); min-height: 640px; max-height: 900px; z-index: 5; }
.ms-mosaic-clip { position: absolute; inset: 0; overflow: hidden; }
.ms-mosaic { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: max(100%, 1180px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 0 12px; }
.ms-mosaic-m { display: none; }
.ms-col { display: flex; flex-direction: column; gap: 12px; padding-top: var(--off); }
.ms-tile { height: var(--h); border-radius: 16px; }
.ms-hero-fade { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(0, 17, 31, 0.9) 0%, rgba(0, 17, 31, 0.55) 55%, rgba(0, 17, 31, 0.2) 100%); pointer-events: none; }
.ms-hero-fade-b { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(180deg, rgba(0, 17, 31, 0) 0%, #00111f 100%); pointer-events: none; }
.ms-hero-body { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(680px, calc(100% - 32px)); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.ms-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; white-space: nowrap; }
.ms-badge i { width: 6px; height: 6px; border-radius: 50%; background: #f41a58; }
.ms-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.ms-grad { background: var(--ms-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ms-hero-note { font-size: 15px; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 10px rgba(0, 17, 31, 0.9); }
.ms-br-m { display: none; }

/* Prompt bar */
.ms-prompt { width: 100%; background: rgba(5, 24, 42, 0.92); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35); text-align: left; }
.ms-modes { display: flex; gap: 4px; flex-wrap: wrap; }
.ms-mode { font-family: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap; background: transparent; color: rgba(255, 255, 255, 0.6); }
.ms-mode[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
.ms-prompt-row { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.05); border-radius: 14px; padding: 8px 8px 8px 16px; }
.ms-prompt-row input, .ms-prompt-row textarea { flex: 1; min-width: 0; resize: none; overflow: hidden; display: block; background: transparent; border: 0; outline: none; font-family: inherit; font-size: 16px; color: #fff; padding: 8px 0; caret-color: var(--ms-blue-soft); }
.ms-prompt-row input::placeholder, .ms-prompt-row textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.ms-prompt-row input:focus-visible, .ms-prompt-row textarea:focus-visible { outline: none; }
@media (min-width: 576px) { .ms-prompt-row textarea { white-space: nowrap; } }
.ms-menu { position: relative; }
.ms-menu-btn { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: 14px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); padding: 9px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.ms-menu-btn svg { width: 10px; height: 10px; opacity: .7; }
.ms-menu-list { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: 280px; background: var(--ms-card-2); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; padding: 6px; box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; gap: 2px; text-align: left; }
.ms-menu-list[hidden] { display: none; }
.ms-menu-title { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); padding: 8px 10px 6px; }
.ms-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; cursor: pointer; font-family: inherit; text-align: left; background: transparent; color: #fff; }
.ms-opt:hover { background: rgba(255, 255, 255, 0.08); }
.ms-opt[aria-selected="true"] { background: rgba(26, 106, 255, 0.18); }
.ms-opt b { display: block; font-size: 14px; font-weight: 600; }
.ms-opt small { display: block; font-size: 12px; color: var(--ms-text-3); }
.ms-opt svg { width: 12px; height: 12px; color: var(--ms-blue-soft); visibility: hidden; flex-shrink: 0; }
.ms-opt[aria-selected="true"] svg { visibility: visible; }
@media (max-width: 575.98px) {
  .ms-prompt-row { flex-wrap: wrap; padding: 10px; }
  .ms-prompt-row input, .ms-prompt-row textarea { flex-basis: 100%; padding: 4px 0 8px; }
  .ms-prompt-row textarea { line-height: 1.4; height: calc(2.8em + 12px); }
  .ms-prompt-row .ms-btn-blue { margin-left: auto; }
  .ms-menu-list { right: auto; left: 0; max-width: calc(100vw - 64px); }
}

/* Models + presets rails */
.ms-rail { display: grid; grid-auto-flow: column; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ms-rail-models { grid-auto-columns: minmax(min(85vw, 380px), 1fr); }
.ms-rail-presets { grid-auto-columns: minmax(190px, 1fr); }
.ms-model { position: relative; display: block; min-width: 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); }
.ms-model .ms-media { position: absolute; inset: 0; }
.ms-scrim { position: absolute; inset: 0; pointer-events: none; }
.ms-model-label { position: absolute; max-width: 70%; display: flex; flex-direction: column; gap: 6px; }
.ms-model-label img { height: 18px; width: auto; }
.ms-model-label span { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: #fff; line-height: 1.1; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.ms-pos-bl .ms-scrim { background: linear-gradient(45deg, rgba(0, 17, 31, 0.85) 0%, rgba(0, 17, 31, 0) 55%); }
.ms-pos-tl .ms-scrim { background: linear-gradient(135deg, rgba(0, 17, 31, 0.85) 0%, rgba(0, 17, 31, 0) 55%); }
.ms-pos-br .ms-scrim { background: linear-gradient(315deg, rgba(0, 17, 31, 0.85) 0%, rgba(0, 17, 31, 0) 55%); }
.ms-pos-tr .ms-scrim { background: linear-gradient(225deg, rgba(0, 17, 31, 0.85) 0%, rgba(0, 17, 31, 0) 55%); }
.ms-pos-bl .ms-model-label { left: 18px; bottom: 18px; align-items: flex-start; }
.ms-pos-tl .ms-model-label { left: 18px; top: 18px; align-items: flex-start; }
.ms-pos-br .ms-model-label { right: 18px; bottom: 18px; align-items: flex-end; text-align: right; }
.ms-pos-tr .ms-model-label { right: 18px; top: 18px; align-items: flex-end; text-align: right; }
.ms-preset { display: block; min-width: 0; }
.ms-preset .ms-media { aspect-ratio: 9 / 16; border-radius: 16px; }
.ms-preset-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 4px 0; }
.ms-preset-foot span:first-child { font-size: 15px; font-weight: 600; color: #fff; }
.ms-preset-foot span:last-child { font-size: 13px; font-weight: 600; color: var(--ms-blue-soft); white-space: nowrap; }

/* Create bento */
.ms-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); grid-auto-rows: 280px; gap: 12px; }
.ms-bento a { position: relative; border-radius: 20px; display: block; min-width: 0; overflow: hidden; }
.ms-bento .ms-media { position: absolute; inset: 0; }
.ms-bento-big { grid-row: span 2; grid-column: span 2; }
.ms-bento-wide { grid-column: 1 / -1; }
.ms-cap { position: absolute; inset: auto 0 0 0; padding: 20px; background: linear-gradient(180deg, rgba(0, 17, 31, 0) 0%, rgba(0, 17, 31, 0.92) 100%); display: flex; flex-direction: column; gap: 4px; }
.ms-cap b { font-size: 19px; font-weight: 700; color: #fff; }
.ms-cap span { font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.ms-cap em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--ms-blue-soft); }
.ms-bento-big .ms-cap { padding: 28px; gap: 6px; }
.ms-bento-big .ms-cap b { font-size: 26px; }
.ms-bento-big .ms-cap em, .ms-bento-wide .ms-cap em { margin-top: 6px; }
.ms-bento-wide .ms-cap { inset: 0 auto 0 0; width: min(100%, 460px); padding: 28px; justify-content: flex-end; gap: 6px; background: linear-gradient(90deg, rgba(0, 17, 31, 0.92) 0%, rgba(0, 17, 31, 0) 100%); }
.ms-bento-wide .ms-cap b { font-size: 24px; }
@media (max-width: 767.98px) {
  .ms-bento { grid-auto-rows: 240px; }
  .ms-bento-big { grid-column: auto; }
}

/* Showcase wall */
.ms-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 12px; }
.ms-wall-item { position: relative; height: auto; min-width: 0; border-radius: 16px; }
/* 10 tiles fill a 4 x 3 grid exactly: tiles 1 and 5 are double height */
.ms-wall-item:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.ms-wall-item:nth-child(2) { grid-column: 1; grid-row: 3; }
.ms-wall-item:nth-child(3) { grid-column: 2; grid-row: 1; }
.ms-wall-item:nth-child(5) { grid-column: 2; grid-row: 2 / span 2; }
.ms-wall-item:nth-child(4) { grid-column: 3; grid-row: 1; }
.ms-wall-item:nth-child(6) { grid-column: 3; grid-row: 2; }
.ms-wall-item:nth-child(7) { grid-column: 3; grid-row: 3; }
.ms-wall-item:nth-child(8) { grid-column: 4; grid-row: 1; }
.ms-wall-item:nth-child(9) { grid-column: 4; grid-row: 2; }
.ms-wall-item:nth-child(10) { grid-column: 4; grid-row: 3; }
@media (max-width: 991.98px) {
  /* 2 columns: tiles 1 and 5 stay double height and the grid fills 6 rows with no holes */
  .ms-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 190px; }
  .ms-wall-item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .ms-wall-item:nth-child(1), .ms-wall-item:nth-child(5) { grid-row: span 2; }
}
.ms-wall-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(0, 17, 31, 0.88); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.ms-wall-cap span:first-child { font-size: 12px; font-weight: 600; color: var(--ms-blue-soft); }
.ms-wall-cap span:last-child { font-size: 13px; line-height: 1.35; color: #fff; }

/* Publish */
.ms-publish { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.ms-steps { display: flex; flex-direction: column; list-style: none; padding: 0; margin: 0; }
.ms-steps li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--ms-line); }
.ms-steps .n { font-size: 14px; font-weight: 600; color: var(--ms-blue-soft); min-width: 24px; }
.ms-steps b { display: block; font-size: 18px; font-weight: 600; }
.ms-steps span.s { display: block; font-size: 15px; color: rgba(255, 255, 255, 0.7); margin-top: 4px; }
.ms-shot { border-radius: 24px; background: var(--ms-card); border: 1px solid var(--ms-line); padding: 12px; }
.ms-shot img { width: 100%; height: auto; border-radius: 14px; }

/* Pricing */
.ms-pricing-wrap { max-width: 1140px; }
.ms-toggle { display: inline-flex; gap: 4px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 4px; }
.ms-toggle button { font-family: inherit; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap; background: transparent; color: rgba(255, 255, 255, 0.8); }
.ms-toggle button[aria-pressed="true"] { background: #fff; color: #001f3c; }
.ms-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 28px; }
.ms-plan { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--ms-line); }
.ms-plan.is-featured { background: var(--ms-card-2); border-color: var(--ms-blue); }
.ms-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ms-plan-top h3 { font-size: 20px; font-weight: 700; }
.ms-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--ms-blue); color: #fff; white-space: nowrap; }
.ms-plan-blurb { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.ms-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.ms-price b { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; }
.ms-price span { font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.ms-price s { font-size: 15px; color: rgba(255, 255, 255, 0.5); }
.ms-price s[hidden] { display: none; }
.ms-credits { font-size: 14px; font-weight: 600; }
.ms-plan-cta { display: block; text-align: center; margin: 12px 0 8px; padding: 13px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.ms-plan-cta:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.is-featured .ms-plan-cta { background: var(--ms-blue); border-color: var(--ms-blue); }
.is-featured .ms-plan-cta:hover { background: var(--ms-blue-hover); }
.ms-feats { display: flex; flex-direction: column; gap: 10px; padding: 16px 0 0; margin: 0; list-style: none; border-top: 1px solid var(--ms-line); }
.ms-feats li { display: flex; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.ms-feats li::before { content: ""; flex: 0 0 14px; height: 14px; margin-top: 3px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2375A5FF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E"); }
@media (max-width: 991.98px) {
  .ms-plan-rise { order: 1; } .ms-plan-core { order: 2; } .ms-plan-ent { order: 3; }
}

/* Final CTA */
.ms-final { padding: 56px 0 96px; }
.ms-final-card { position: relative; border-radius: 32px; overflow: hidden; min-height: 420px; display: flex; align-items: center; justify-content: center; background: var(--ms-card); }
.ms-final-card .ms-media { position: absolute; inset: 0; }
.ms-final-shade { position: absolute; inset: 0; background: rgba(0, 17, 31, 0.62); }
.ms-final-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding: 64px 24px; max-width: 720px; }
.ms-final-body h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.ms-final-body p { font-size: 18px; line-height: 1.55; color: #fff; }
/* Desktop: video on the right half so a portrait clip keeps the creator's face in view; text on the left */
@media (min-width: 768px) {
  .ms-final-card { justify-content: flex-start; }
  .ms-final-card .ms-media { inset: 0 0 0 auto; width: 52%; }
  .ms-final-shade { background: linear-gradient(90deg, var(--ms-card) 0%, var(--ms-card) 48%, rgba(11, 34, 56, 0) 62%); }
  .ms-final-body { align-items: flex-start; text-align: left; width: 52%; max-width: none; padding: 64px 48px; }
}

/* Shared site footer sits on the dark page */
/* The shared footer is a light card; keep its own dark text instead of this page's white. */
.ms-page .footer-new { padding-top: 0 !important; color: #001f3c; }

@media (max-width: 767.98px) {
  .ms-section { padding: 40px 0; }
  .ms-wrap { padding: 0 16px; }
  .ms-final-card { border-radius: 24px; }
  .ms-sub { font-size: 16px; }
  .ms-publish { gap: 28px; }

  /* Rails bleed to the screen edge and snap card by card */
  .ms-rail { margin: 0 -16px; padding: 0 16px 8px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; -webkit-overflow-scrolling: touch; }
  .ms-model, .ms-preset { scroll-snap-align: start; }

  /* Wide bento card: text sits on the bottom, not the left half */
  .ms-bento-wide .ms-cap { inset: auto 0 0 0; width: auto; padding: 20px; background: linear-gradient(180deg, rgba(0, 17, 31, 0) 0%, rgba(0, 17, 31, 0.92) 100%); }
  .ms-bento-wide .ms-cap b { font-size: 19px; }
  .ms-bento-big .ms-cap { padding: 20px; }
  .ms-bento-big .ms-cap b { font-size: 22px; }

  /* Showcase wall: two columns instead of one 3000px column */
  .ms-wall { grid-auto-rows: 150px; gap: 10px; }
  .ms-wall-item { border-radius: 14px; }
  .ms-wall-cap { left: 6px; right: 6px; bottom: 6px; padding: 8px 10px; }
  .ms-wall-cap span:last-child { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  .ms-plan { padding: 22px; }
  .ms-final { padding: 40px 0 64px; }
  /* Phone: video on top, text below, so the text never covers the face */
  .ms-final-card { min-height: 0; flex-direction: column; justify-content: flex-start; align-items: stretch; }
  .ms-final-card .ms-media { position: relative; inset: auto; width: 100%; height: 300px; }
  .ms-final-shade { display: none; }
  .ms-final-body { padding: 28px 20px 36px; }
  .ms-final-body p { font-size: 16px; }
}
@media (max-width: 575.98px) {
  /* Hero background on phones: only videos. The wide desktop grid would show mostly stills in its middle columns. */
  .ms-mosaic { display: none; }
  .ms-mosaic-m { position: absolute; top: -30px; left: 0; right: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 8px; }
  .ms-mosaic-m .ms-col { gap: 8px; }
  .ms-mosaic-m .ms-tile { border-radius: 14px; }
  /* Hero: use the visible height (phone address bars), stronger fade so text stays readable over the tiles */
  .ms-hero { height: calc(100svh - 61px); min-height: 600px; }
  .ms-hero-fade { background: radial-gradient(ellipse 100% 65% at 50% 50%, rgba(0, 17, 31, 0.93) 0%, rgba(0, 17, 31, 0.72) 60%, rgba(0, 17, 31, 0.4) 100%); }
  .ms-hero-body { gap: 16px; width: calc(100% - 16px); }
  .ms-hero h1 { font-size: clamp(30px, 9vw, 40px); }
  .ms-hero-note { font-size: clamp(12px, 3.2vw, 14px); }
  .ms-br-m { display: inline; }

  /* Mode tabs: one scrollable line, bigger tap area */
  .ms-modes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
  .ms-modes::-webkit-scrollbar { display: none; }
  .ms-mode { padding: 9px 13px; }

  .ms-model-label span { font-size: 20px; }
  .ms-pos-bl .ms-model-label, .ms-pos-tl .ms-model-label { left: 14px; }
  .ms-pos-bl .ms-model-label, .ms-pos-br .ms-model-label { bottom: 14px; }
  .ms-pos-tl .ms-model-label, .ms-pos-tr .ms-model-label { top: 14px; }
  .ms-pos-br .ms-model-label, .ms-pos-tr .ms-model-label { right: 14px; }

  /* Billing toggle: fills the row so the long label never overflows on 320px phones */
  .ms-toggle { display: flex; width: 100%; }
  .ms-toggle button { flex: 1; padding: 10px 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-page, html:has(.ms-page) { scroll-behavior: auto; }
  .ms-page * { transition: none !important; }
}
