/* Mobile/tablet only: desktop styles and geometry remain owned by the existing sheets. */
@media (max-width:1023px) {
  body .gems-nav.has-hero-cta:not(.has-scroll) .gems-nav-account .gems-nav-cta {visibility:hidden;opacity:0;pointer-events:none}
  body .gems-guide-preview h2 {padding-left:0}
  body .gems-nav {padding:10px 20px}
  body .gems-nav .gems-nav-login {color:inherit!important}
  body .gems-nav.is-mobile-open {background:#fff!important;color:#24252c;backdrop-filter:none}
  body .gems-nav.is-mobile-open>.gems-nav-inner>.gems-nav-account {display:flex!important;position:static;opacity:1!important;pointer-events:auto!important}
  body .gems-nav.is-mobile-open>.gems-nav-inner>.gems-nav-links {display:flex!important}
  body .gems-nav.is-mobile-open>.gems-nav-inner>.gems-nav-dropdown:not([hidden]) {display:grid!important}
  body .gems-nav.is-mobile-open>.gems-nav-inner>.gems-nav-dropdown[hidden] {display:none!important}
  body .gems-nav.is-mobile-open>.gems-nav-inner>.gems-nav-dropdown>.gems-nav-column {background:#fff!important;padding:0;min-height:0}
  body .gems-nav.is-mobile-open .gems-nav-mark {filter:brightness(0)}
  body .gems-nav.is-mobile-open .gems-nav-links {top:calc(100% + 10px);padding:12px 16px;gap:4px 24px;background:#fff;color:#24252c;border-radius:0 0 16px 16px;box-shadow:0 12px 24px #0001}
  body .gems-nav .gems-nav-links :is(a,button) {min-height:44px}
  body .gems-nav.is-mobile-open>.gems-nav-inner>.gems-nav-dropdown {position:fixed;top:176px;left:20px;right:20px;width:auto;max-height:calc(100dvh - 196px);overflow-y:auto;overscroll-behavior:contain;grid-template-columns:repeat(2,minmax(0,1fr));border-radius:14px}
  body .gems-nav .gems-nav-column-intro {min-height:0;padding:16px 12px}
  body .gems-nav .gems-nav-column-links {padding:6px}
  body .gems-nav .gems-nav-column-links a {min-height:44px;padding:10px 6px;white-space:normal}
  body .gems-nav .gems-nav-dropdown a>svg {opacity:1;transform:none;flex-shrink:0}
  body .gems-nav-column {border:1px solid #e3e3e7!important;border-radius:0!important}
  body .gems-feature-hero {padding:112px 32px 56px}
  body .gems-feature-hero .gems-feature-hero-inner {grid-template-columns:minmax(0,1fr);gap:36px;max-width:720px}
  .gems-feature-hero-copy {max-width:640px}
  body .gems-feature-hero-art {width:100%;max-width:720px;margin-inline:auto;min-width:0}
  body .gems-feature-hero-art img {width:100%;height:auto;max-height:480px;object-fit:contain}
  body .gems-feature-hero h1 {font-size:clamp(34px,5.4vw,48px)!important;max-width:21ch;line-height:1.15}
  body .gems-feature-hero p {font-size:18px;margin:24px 0 28px;max-width:56ch}
  .gems-discovery-detail>div,.gems-publication-review>div>div {grid-template-columns:minmax(0,1fr);gap:32px}
  .gems-writing-intro,.gems-editing-workspace>div>div:first-child {display:block;margin-bottom:28px}
  .gems-writing-intro p,.gems-editing-workspace>div>div:first-child p {max-width:60ch}
  .gems-idea-path ol,.gems-writing-parts>div>div {gap:24px}
  body .gems-feature-capture {padding:20px;min-width:0}
  body .gems-feature-capture img {height:auto;max-width:100%;object-fit:contain}
  body .gems-subpage-capture {height:auto;min-height:0;padding:20px;aspect-ratio:1.8}
  body .gems-subpage-capture img {min-width:0;object-fit:contain}
  body .gems-studio-reel {padding-block:64px}
  body .gems-studio-reel>div:first-child {align-items:center;flex-wrap:wrap;gap:20px;padding-inline:24px!important}
  body .gems-studio-reel>div:first-child>div:first-child {flex:1 1 330px}
  body .gems-studio-reel [data-reel-card] {width:clamp(250px,64vw,350px)}
  body .gems-studio-reel [data-reel-card]>div {height:auto;aspect-ratio:4/5}
  body .gems-studio-reel [data-reel-card]>p {font-size:16px;line-height:1.5;margin-top:16px}
  body .gems-results-section .gems-gallery-stage {height:auto;aspect-ratio:1.65}
  body .gems-results-intro>div,.gems-process-heading {display:block}
  .gems-results-intro p,.gems-process-heading p {margin-top:18px;max-width:54ch}
  body .gems-subject-stack {padding-block:56px 64px}
  body .gems-subject-card {grid-template-columns:minmax(0,1fr)!important;gap:28px!important;max-width:680px;margin-inline:auto}
  .gems-subject-pin {margin-bottom:24px}
  body .gems-comparison-plans {top:62px!important}
  .gems-comparison [data-gems-accordion] {scroll-margin-top:190px}
  body .gems-subpage-steps .sticky {position:static}
  body .gems-footer {padding-inline:24px}
  body .gems-footer h2 {overflow-wrap:anywhere}
  body section:has(.gems-idea-cursor) {overflow-x:clip}
}

@media (min-width:768px) and (max-width:1023px) {
  body .gems-home-hero {min-height:700px;padding:120px 32px 64px}
  body .gems-home-hero>div>div {gap:24px;grid-template-columns:1fr 1fr;margin-top:0}
  body .gems-home-hero .gems-hero-copy {translate:none}
  body .gems-home-hero .lp-hero-h1 {font-size:38px;line-height:1.15}
  body .gems-home-hero .gems-hero-description {font-size:17px;line-height:1.5;margin-top:28px!important}
  body .gems-home-hero .gems-hero-action {margin-top:28px!important}
  body .gems-home-hero .gems-button {font-size:15px;min-height:48px;padding:12px 16px}
  body .gems-home-showcase {padding:64px 32px}
  body .gems-home-showcase img {min-height:240px;height:260px}
}

@media (max-width:767px) {
  body .gems-nav {padding:10px 16px}
  body .gems-nav.is-mobile-open>.gems-nav-inner>.gems-nav-dropdown {left:16px;right:16px}
  body .gems-nav .gems-nav-account {gap:8px}
  body .gems-nav .gems-nav-cta {min-height:40px}
  body .gems-nav .gems-mobile-toggle {height:44px}
  body .gems-home-hero {min-height:0;padding:92px 20px 56px}
  body .gems-home-hero>div>div {gap:24px;margin-top:0}
  body .gems-home-hero .lp-hero-factory {width:calc(100% + 24px);max-width:540px;margin:0 -12px}
  body .gems-home-hero .lp-hero-factory-video {width:100%;margin:0;aspect-ratio:1.25!important}
  body .gems-home-hero .lp-hero-h1 {font-size:clamp(29px,8vw,38px)!important;line-height:1.16}
  body .gems-home-hero p.md\:hidden {font-size:16px;line-height:1.5;margin-top:20px;max-width:34ch}
  body .gems-home-hero .gems-hero-copy>div:last-child>div:empty {display:none}
  body .gems-home-showcase {padding:48px 20px}
  body .gems-home-showcase>div>div:first-child {gap:24px;scroll-padding-inline:20px;margin-inline:-20px;padding:12px 20px;align-items:stretch}
  body .gems-home-showcase>div>div:first-child>div {width:calc(100vw - 72px);max-width:340px;flex-shrink:0}
  body .gems-home-showcase [style*="--tilt"] {transform:none!important;margin:0;width:100%}
  body .gems-home-showcase h3 {font-size:20px;min-height:0}
  body .gems-home-showcase img {min-height:0;height:260px;padding-top:12px!important;object-fit:contain}
  body .gems-journey {padding:48px 20px}
  body .gems-journey-mobile {gap:32px}
  body .gems-journey-mobile img {max-height:180px;object-fit:contain}
  body [data-gems-section="8"] {padding:48px 20px}
  body .gems-progress-grid {gap:20px;margin-top:28px}
  body .gems-progress-copy {min-height:0;padding:20px!important}
  body .gems-progress-copy p {font-size:15px;line-height:1.5}
  body .gems-capture-stage {height:auto;aspect-ratio:1.6;padding:16px;container-type:size}
  body .gems-capture-focus {width:min(100cqw,calc(100cqh * var(--capture-ratio)));aspect-ratio:var(--capture-ratio);transform:none}
  body .gems-results-section {padding:48px 20px}
  body .gems-results-section .gems-gallery-stage {aspect-ratio:1.55}
  body .gems-gallery-panel {padding:14px}
  body .gems-gallery-panel:has(figcaption) {padding-bottom:50px}
  body .gems-gallery-tabs {gap:8px 20px}
  body .gems-gallery-tabs button {min-height:44px;font-size:14px}
  body .gems-gallery-controls {gap:8px;align-items:center}
  body .gems-process-section {padding:48px 20px}
  body .gems-process-section .gems-gallery-stage {aspect-ratio:1.45}
  body .gems-subject-stack {padding-inline:20px}
  body .gems-subject-stack .lp-soft-card.relative.grid {padding:24px 20px!important;gap:24px!important}
  body .gems-subject-stack h3 {font-size:26px!important;line-height:1.2}
  body .gems-subject-stack p {font-size:16px;line-height:1.5}
  body .gems-studio-reel {padding-block:48px}
  body .gems-studio-reel>div:first-child {padding-inline:20px!important;gap:16px}
  body .gems-studio-reel>div:first-child>div:first-child {flex-basis:100%}
  body .gems-studio-reel [data-gems-auto-reel] {margin-top:24px;gap:16px}
  body .gems-studio-reel [data-reel-card] {width:78vw;max-width:330px}
  body .gems-tools-overview {padding:48px 20px}
  body .gems-tools-overview h2 {font-size:29px;margin-bottom:28px}
  body .gems-tools-overview .gems-tool-shortcut-art {gap:10px}
  body .gems-tool-shortcut {font-size:13px;min-height:64px;padding:12px 10px;gap:8px}
  body .gems-help-card {min-height:220px}
  body .gems-help-card>div {max-width:65%}
  body .gems-help-art {display:block;width:40%}
  body [data-gems-section="21"] {padding:56px 20px 80px}
  body .gems-idea-cursor {display:none}
  body .gems-feature-hero {padding:100px 20px 48px}
  body .gems-feature-hero h1 {font-size:clamp(30px,8.2vw,38px)!important}
  body .gems-feature-hero p {font-size:16px;line-height:1.55;margin:20px 0 24px}
  body .gems-feature-hero .gems-feature-hero-inner {gap:28px}
  body .gems-feature-hero-art img {max-height:360px}
  body .gems-refined-subpage :is(.gems-discovery-detail,.gems-writing-workspace,.gems-editing-workspace,.gems-publication-review,.gems-performance-report,.gems-writing-parts,.gems-idea-path) {padding:48px 20px}
  body .gems-refined-subpage :is(.gems-discovery-detail,.gems-writing-workspace,.gems-editing-workspace,.gems-publication-review,.gems-performance-report,.gems-writing-parts,.gems-idea-path) h2 {font-size:29px;line-height:1.2;margin-bottom:20px}
  body .gems-refined-subpage :is(.gems-discovery-detail,.gems-writing-workspace,.gems-editing-workspace,.gems-publication-review,.gems-performance-report,.gems-writing-parts,.gems-idea-path) p {font-size:16px}
  body .gems-feature-capture {padding:12px}
  body .gems-writing-parts img {height:auto;max-height:280px;aspect-ratio:1.25}
  body .gems-subpage-hero {padding:100px 20px 48px}
  body .gems-subpage-intro h1 {font-size:clamp(30px,8.2vw,38px)!important}
  body .gems-subpage-intro p {font-size:16px;line-height:1.55}
  body .gems-subpage-capture {padding:12px;margin-top:28px}
  body .gems-subpage-closing {padding:48px 20px!important}
  body .gems-subpage-closing h2 {font-size:29px}
  body .gems-subpage-closing p {font-size:16px;margin:20px auto 24px}
  body .gems-subpage-card-grid article {padding:20px}
  body .gems-subpage-card-grid img {height:auto;aspect-ratio:1.25;max-height:280px}
  body .gems-about-story,body .gems-use-steps {padding:48px 20px}
  body .gems-about-parts {gap:32px}
  body .gems-about-parts img {height:auto;max-height:260px}
  body .gems-use-steps li {gap:16px}
  body[data-gems-page=tarifs] .gems-pricing-intro {padding:104px 20px 32px!important}
  body[data-gems-page=tarifs] .gems-pricing-intro h1 {font-size:clamp(30px,8.2vw,38px)!important}
  body .gems-pricing-plans {padding:0 20px 48px}
  body .gems-price-card {padding:24px}
  body .gems-price-card>p {min-height:0;font-size:16px}
  body .gems-comparison {padding-block:48px}
  body .gems-comparison>div {padding-inline:20px}
  body .gems-comparison-heading {font-size:28px;line-height:1.2}
  body .gems-comparison-plans {top:64px!important}
  body .gems-comparison [data-gems-accordion] {padding:16px 12px;gap:8px}
  body .gems-comparison [data-gems-accordion]>span {gap:8px}
  body .gems-comparison [data-gems-accordion]>span>span {font-size:16px}
  body .gems-guide-end {margin-top:32px;padding:24px 16px}
  body .gems-guide-figure {margin:24px 0 32px}
  body .gems-guide-screen {padding:10px}
  body .gems-guide-card h2,body .gems-guide-card h3 {font-size:24px;line-height:1.25}
  body .gems-guide-card p {font-size:16px;line-height:1.5}
  body .gems-guide-related {margin-top:40px;padding-top:28px}
  body .gems-footer {padding-inline:20px}
  body .gems-footer a {overflow-wrap:anywhere}
}

@media (max-width:359px) {
  body .gems-nav>.gems-nav-inner {gap:8px}
  body .gems-nav .gems-nav-cta {font-size:11px;padding-inline:10px}
  body .gems-nav.is-mobile-open .gems-nav-links {gap:4px 18px}
  body .gems-nav.is-mobile-open>.gems-nav-inner>.gems-nav-dropdown {grid-template-columns:minmax(0,1fr)}
  body .gems-billing-options {gap:6px;font-size:12px}
  body .gems-billing-options b {font-size:10px;padding:4px}
  body .gems-tool-shortcut {font-size:12px;gap:6px}
}

/* A dedicated touch navigation, rather than a compressed desktop mega-menu. */
@media (max-width:1023px) {
  html:has(.gems-nav.is-mobile-open) {overflow:hidden}
  body .gems-nav.is-mobile-open {height:100dvh;box-shadow:none;overflow:hidden}
  body .gems-nav.is-mobile-open>.gems-nav-inner>.gems-nav-links,
  body .gems-nav.is-mobile-open>.gems-nav-inner>.gems-nav-dropdown:not([hidden]),
  body .gems-nav.is-mobile-open>.gems-nav-inner>.gems-nav-account {display:none!important}
  body .gems-nav.is-mobile-open .gems-mobile-toggle {margin-left:auto}
  body .gems-nav .gems-mobile-panel:not([hidden]) {position:absolute;inset:76px 0 0;display:flex;flex-direction:column;gap:0;padding:8px 24px max(32px,env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;color:#24252c;background:#fff}
  body .gems-mobile-panel>details,body .gems-mobile-panel>a:not(.gems-mobile-action) {border-bottom:1px solid #e8e8ec}
  body .gems-mobile-panel summary,body .gems-mobile-panel>a:not(.gems-mobile-action) {display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:18px 0;font:500 23px/1.25 nextBook,sans-serif;color:#24252c!important;cursor:pointer;text-decoration:none}
  body .gems-mobile-panel summary {list-style:none}
  body .gems-mobile-panel summary::-webkit-details-marker {display:none}
  body .gems-mobile-panel summary svg {width:20px;height:20px;transition:transform .2s}
  body .gems-mobile-panel details[open] summary svg {transform:rotate(180deg)}
  body .gems-mobile-submenu {padding:0 0 16px 16px;display:grid;gap:0}
  body .gems-mobile-submenu a {display:flex;align-items:center;min-height:48px;padding:10px 0;color:#666672!important;font:400 17px/1.4 nextBook,sans-serif;text-decoration:none}
  body .gems-nav .gems-mobile-action {display:flex;justify-content:center;gap:16px;width:100%;min-height:50px;padding:14px 20px;margin:32px 0 0;font-size:15px}
  body .gems-shorts-section {padding:12px 20px 32px}
  body .gems-shorts-stage {--short-width:clamp(104px,28vw,140px);--short-radius:230px;height:280px;max-width:680px;border-radius:16px;contain:paint}
}

@media (max-width:1023px) {
  body .gems-home-showcase [style*="--tilt"] {filter:none!important;box-shadow:none!important}
  body .gems-journey-mobile .shrink-0 {filter:none!important}
  body :is(.lp-soft-card,.lp-soft-card-dark),body .gems-subject-card [style*="box-shadow"] {box-shadow:0 2px 6px #1718210a!important}
  body img[src*="/marketing/visuals/"],body img[src*="/marketing/screens/"] {filter:none!important;box-shadow:none!important}
  body :is(.gems-capture-focus,.gems-gallery-stage,.gems-feature-capture,.gems-subpage-capture,.gems-guide-screen) {box-shadow:0 3px 10px #1718210c!important}
  body .gems-nav .gems-mobile-panel .gems-mobile-action,
  body .gems-nav[data-theme=light] .gems-mobile-panel .gems-mobile-action,
  body .gems-nav .gems-mobile-panel .gems-mobile-action span {color:#f6f7fa!important;-webkit-text-fill-color:#f6f7fa!important}
  body .gems-nav .gems-mobile-panel [aria-current=page],
  body .gems-nav .gems-mobile-panel details.is-current>summary {color:#7350ab!important;font-weight:700}
  body .gems-shorts-section {padding:16px 0 32px}
  body .gems-shorts-stage {height:auto;max-width:none;border-radius:0;perspective:none;contain:paint;overflow:hidden}
  body .gems-shorts-ring {position:relative;left:auto;top:auto;width:max-content;height:auto;display:flex;gap:18px;padding:12px 20px;transform-style:flat;transform:translateX(var(--mobile-short-offset,0px))}
  body .gems-shorts-card {position:relative;left:auto;top:auto;flex:0 0 clamp(150px,42vw,190px);width:clamp(150px,42vw,190px);height:auto;aspect-ratio:9/16;transform:none;backface-visibility:visible;border-radius:12px}
  body .gems-studio-reel [data-gems-auto-reel] {padding-inline:calc((100% - min(64vw,350px))/2)!important}
}
@media (max-width:767px) {
  body div:has(>img[data-gems-reference*="saber-loop"]) {display:none!important}
  body .gems-studio-reel [data-gems-auto-reel] {padding-inline:calc((100% - min(78vw,330px))/2)!important}
}
@media (max-width:1023px) and (prefers-reduced-motion:reduce) {
  body .gems-shorts-stage {overflow-x:auto}
  body .gems-shorts-ring {transform:none}
}
@media (max-width:767px) {
  body .gems-home-hero {padding-top:112px;padding-bottom:40px}
  body .gems-home-hero .gems-hero-copy {order:0;display:flex;flex-direction:column}
  body .gems-home-hero .gems-hero-copy>div:first-child {display:contents}
  body .gems-home-hero .gems-hero-copy>div:first-child>div {order:3;margin:24px 0 0}
  body .gems-home-hero .gems-hero-copy h1 {order:1}
  body .gems-home-hero .gems-hero-copy p.md\:hidden {order:2}
  body .gems-home-hero .gems-hero-copy>div:not(:first-child) {display:none}
  body .gems-home-hero>div>div {gap:28px}
  body .gems-home-hero .lp-hero-factory-video {aspect-ratio:1.4!important}
  body div:has(>img[data-gems-reference*="saber-loop"]) {margin:0;padding:0 20px 20px;height:280px;align-items:center}
  body img[data-gems-reference*="saber-loop"] {width:100%!important;max-width:360px;height:260px;object-fit:contain;mask-image:none!important;-webkit-mask-image:none!important}
  body .gems-feature-hero-art {width:calc(100% + 40px);max-width:none;margin-inline:-20px;overflow:hidden}
  body .gems-feature-hero-art img {width:116%;max-width:none;max-height:none;margin-left:-8%;height:auto}
  body .gems-feature-hero--decouvrir .gems-feature-hero-art img {width:126%;margin-left:-13%}
  body .gems-feature-hero--performances .gems-feature-hero-art img {width:100%;margin-left:0}
  body .gems-feature-hero--scripts .gems-feature-hero-art {margin-top:0}
  body .gems-subpage-hero .gems-subpage-art {width:calc(100% + 24px);max-width:none;margin-inline:-12px}
}
