/* Phone layouts have their own rhythm; desktop composition stays in the base sheets. */
@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .container { width: calc(100% - 40px); }
  .header-inner { height: 68px; gap: 12px; }
  .header-inner .brand { min-height: 44px; }
  .brand-logo { width: 154px; }
  .header-actions { gap: 4px; }
  .header-inner .button-small { min-height: 44px; padding: 10px 13px; font-size: 12px; gap: 8px; }
  .renew-full-label { display: none; }
  .menu-button { width: 44px; height: 44px; flex-shrink: 0; }
  .header-inner nav { top: 68px; padding: 12px 20px 20px; font-size: 16px; }
  .header-inner nav a { min-height: 48px; padding: 12px 4px; }
  .section { padding-block: 56px; }
  h2, .workflow-copy h2, .pricing-copy h2, .faq-section h2 { font-size: clamp(29px, 7.5vw, 38px); line-height: 1.15; letter-spacing: -1px; }
  .section-intro, .benefit p, .workflow-copy>p:not(.eyebrow), .pricing-copy>p:not(.eyebrow),
  .getting-started p:not(.eyebrow), .faq-section>div>p:not(.eyebrow), .faq-list details>div {
    font-size: 15px; line-height: 1.65; color: #716377;
  }
  .text-link { min-height: 48px; font-size: 14px; }

  .hero { gap: 20px; padding-top: 28px; padding-bottom: 24px; }
  .hero-copy { padding-bottom: 0; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .85px; gap: 8px; }
  .hero h1 { font-size: clamp(53px, 14.5vw, 77px); line-height: 1.03; letter-spacing: -2.8px; margin: 18px 0 28px; }
  .hero-description { font-size: 15px; line-height: 1.6; margin-bottom: 21px; max-width: 450px; }
  .hero-buttons { display: grid; grid-template-columns: 1fr; gap: 5px; }
  .hero-buttons .button { min-height: 54px; font-size: 15px; padding: 16px 20px; }
  .hero-buttons .text-button { justify-content: center; min-height: 44px; font-size: 13px; }
  .hero-buttons .play { width: 23px; height: 23px; }
  .hero-micro { font-size: 10px; justify-content: center; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
  .hero-micro>span { padding-inline: 0; }

  /* Real screens can be swiped and opened individually without overlapping. */
  .hero-product.real-showcase {
    display: flex; gap: 16px; align-items: flex-start;
    width: calc(100% + 40px); max-width: none; height: auto; min-width: 0;
    margin-inline: -20px; padding: 16px 20px 30px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    scrollbar-width: none; overscroll-behavior-x: contain; overflow-anchor: none; perspective: none;
    scroll-margin-top: 0;
  }
  .real-showcase::-webkit-scrollbar { display: none; }
  .real-showcase .showcase-halo, .real-showcase .showcase-orbit,
  .real-showcase .brand-orb, .real-showcase .floating-note { display: none; }
  .real-showcase .screen-card {
    position: relative; inset: auto; flex: 0 0 clamp(194px, 56vw, 240px);
    width: clamp(194px, 56vw, 240px); max-width: none; padding: 6px;
    scroll-snap-align: start; scroll-snap-stop: always; border-radius: 22px;
    --card-angle: 0deg; transform: none; animation: none;
    box-shadow: 0 9px 22px -12px #4d25544d; background: #e3d6e9;
  }
  .real-showcase .screen-card>img { border-radius: 16px; }
  .real-showcase .screen-caption { position: static; display: block; font-size: 12px; padding: 12px 0 7px; white-space: normal; color: #53345e; }
  .real-showcase .screen-zoom { bottom: 56px; right: 13px; width: 32px; height: 32px; }
  .real-showcase .screen-zoom svg { width: 15px; height: 15px; }
  .real-showcase .screen-card:active { transform: scale(.985); }

  .proof-bar { grid-template-columns: 1fr; gap: 14px; padding-block: 22px; }
  .proof-intro { display: none; }
  .proof-bar>div:not(:first-child) { font-size: 13px; gap: 12px; }
  .proof-bar svg { width: 21px; height: 21px; }
  .possibilities.section { padding-top: 44px; }
  .section-heading { margin-bottom: 24px; }
  .section-intro { margin-top: 16px; }
  .section-intro br { display: none; }
  .benefits-grid { gap: 14px; }
  .benefit { display: grid; grid-template-columns: minmax(0, 1fr) 108px; align-items: center; gap: 13px 6px; padding: 22px; border-radius: 16px; }
  .benefit h3 { grid-column: 1; grid-row: 1; font-size: 24px; line-height: 1.18; margin: 0; letter-spacing: -.6px; }
  .benefit h3 br { display: contents; }
  .benefit p { grid-column: 1 / -1; margin: 0; max-width: none; }
  .benefit-caption { grid-column: 1 / -1; font-size: 8px; letter-spacing: .75px; margin: 3px 0 0; }
  .benefit .object-stage { grid-column: 2; grid-row: 1; width: 108px; height: 118px; margin: 0; }
  .benefit .tape-measure { top: 0; scale: .55; }
  .benefit .material-stack { top: 15px; scale: .59; }
  .benefit .document-object { top: -12px; scale: .61; }
  .benefit .object-shadow { width: 80px; height: 14px; left: 14px; bottom: 5px; }

  .workflow { padding-block: 46px 28px; }
  .workflow-grid { gap: 0; }
  .workflow-copy h2 { max-width: 420px; margin-bottom: 16px; }
  .workflow-copy h2 br { display: none; }
  .workflow-copy>p:not(.eyebrow) { max-width: 440px; }
  .workflow-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 23px 0 0; }
  .workflow-tabs button { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 12px 5px; border: 1px solid #dccfe3; border-radius: 12px; min-height: 92px; color: #7b6287; }
  .workflow-tabs button[aria-selected=true] { background: #530a60; border-color: #530a60; color: #fff; }
  .workflow-tabs .step-number { width: auto; height: auto; border: 0; font-size: 11px; line-height: 1; color: inherit; opacity: .7; }
  .workflow-tabs button[aria-selected=true] .step-number { background: transparent; color: inherit; }
  .workflow-tabs strong { font-size: 13px; line-height: 1.2; max-width: 96px; }
  .workflow-tabs small, .workflow-tabs svg { display: none; }
  .workflow-visual { min-height: 0; max-width: none; padding: 29px 0 60px; }
  .workflow-visual .phone-device { width: clamp(180px, 50vw, 220px); transform: none; animation: none; box-shadow: 0 17px 30px -12px #3c274242, 0 0 0 2px #a08ea7; }
  .workflow-visual .device-caption, .workflow-visual .card-upper, .workflow-visual .device-bottom { display: none; }
  .workflow-visual .downlight-object { scale: .64; top: 4%; right: -9px; }
  .workflow-visual .card-lower { bottom: 31px; left: 50%; right: auto; width: max-content; max-width: 100%; translate: -50% 0; transform: none; animation: none; padding: 11px 14px; }
  .workflow-visual .card-lower small { font-size: 10px; }
  .workflow-visual .card-lower strong { font-size: 12px; }
  .workflow-visual .orbit-one { width: 80%; aspect-ratio: 1; height: auto; }
  .workflow-visual .orbit-two { width: 98%; aspect-ratio: 1; height: auto; }
  .workflow-grid>.text-link { justify-self: center; font-size: 14px; }

  /* Cost and renewal come first; trial and platform details follow the tariff. */
  .pricing.section { padding-top: 48px; gap: 0; }
  .pricing-copy>p:not(.eyebrow) { margin: 16px 0 24px; }
  .price-card { padding: 24px; border-radius: 18px; max-width: none; }
  .price-card-top { gap: 8px; margin-bottom: 22px; }
  .price-logo { width: 150px; }
  .price-badge { font-size: 9px; padding: 5px 7px; }
  .billing-toggle button { min-height: 46px; font-size: 14px; }
  .billing-toggle button>span { font-size: 10px; }
  .price-number { margin-top: 22px; gap: 11px; }
  .price-number>strong { font-size: clamp(67px, 19vw, 88px); letter-spacing: -4px; }
  .price-number>span { font-size: 26px; white-space: nowrap; }
  .price-number small { font-size: 13px; }
  .price-description { font-size: 14px; }
  .price-card hr { margin: 23px 0 18px; }
  .price-features { font-size: 14px; line-height: 1.45; margin-bottom: 24px; }
  .price-features li { align-items: flex-start; gap: 9px; margin: 12px 0; }
  .price-features svg { margin-top: 2px; }
  .price-card>.button { font-size: 15px; min-height: 54px; padding-inline: 17px; }
  .license-link { font-size: 13px; line-height: 1.5; min-height: 48px; margin-top: 12px; padding: 7px 0; }
  .price-footnote { font-size: 11px; line-height: 1.5; margin-top: 8px; }
  .pricing>.trial-line { margin: 24px 0 18px; padding: 18px 0; max-width: none; gap: 16px; }
  .trial-line strong { font-size: 54px; }
  .trial-line>span { font-size: 14px; line-height: 1.5; }
  .pricing>.pricing-note { margin-bottom: 8px; align-items: flex-start; }
  .pricing-note p { font-size: 13px; line-height: 1.65; }
  .pricing>.text-link { justify-self: start; }

  .getting-started { padding: 24px 22px 36px; border-radius: 16px; gap: 20px; }
  .getting-started .eyebrow { display: none; }
  .getting-started h2 { font-size: 30px; margin-top: 0; }
  .getting-started p:not(.eyebrow) { margin-top: 13px; }
  .promo-copy { padding: 17px 20px; margin-bottom: 13px; }
  .promo-copy strong { font-size: 36px; }
  .promo-copy small { font-size: 10px; }
  .copy-caption { font-size: 11px; }
  .faq-section { gap: 24px; }
  .faq-section>div>p:not(.eyebrow) { margin: 17px 0 8px; }
  .faq-list summary { font-size: 15px; line-height: 1.4; min-height: 76px; padding: 20px 0; gap: 15px; }
  .faq-list summary>span { flex-shrink: 0; }
  .final-cta { padding-block: 30px 36px; }
  .cta-topline>span { display: none; }
  .final-cta h2 { font-size: clamp(40px, 10.5vw, 62px); letter-spacing: -1.8px; margin: 28px 0 20px; }
  .final-cta h2>svg { display: none; }
  .cta-bottom p { font-size: 15px; line-height: 1.6; }
  .cta-bottom .button { font-size: 15px; margin-top: 23px; }
  .footer-top { gap: 18px; padding-bottom: 20px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; font-size: 13px; }
  .footer-links>a, .footer-links>button { min-height: 44px; display: flex; align-items: center; text-align: left; }
  .footer-bottom { padding-top: 14px; gap: 8px 18px; font-size: 11px; align-items: center; }
  .footer-bottom>a { min-height: 44px; display: flex; align-items: center; }
  .footer-bottom>span:last-child { font-size: 8px; }

  #start-dialog, #renew-dialog { width: min(540px, calc(100% - 16px)); max-width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 20px; }
  .start-inner, .renew-inner { padding: 22px; }
  .dialog-close, .screen-dialog-close { width: 44px; height: 44px; top: 12px; right: 12px; }
  .dialog-inner>.dialog-brand { width: 148px; margin-bottom: 21px; }
  .dialog-inner>.eyebrow { display: none; }
  .dialog-inner h2 { font-size: 29px; margin: 0 0 9px; line-height: 1.15; }
  .dialog-inner>p { font-size: 14px; line-height: 1.55; }
  .start-promo { margin-top: 20px; padding: 18px; gap: 12px; }
  .start-promo>div { min-width: 0; }
  .start-promo>div>span { font-size: 9px; letter-spacing: .6px; }
  .start-promo strong { font-size: 43px; }
  .start-promo p { font-size: 12px; line-height: 1.5; }
  .start-promo button { min-width: 82px; font-size: 10px; min-height: 82px; }
  .download-options.branded-stores { gap: 10px; margin-top: 15px; }
  .download-options.branded-stores>a { flex-direction: column; align-items: flex-start; gap: 9px; min-height: 112px; padding: 15px; }
  .download-options.branded-stores strong { font-size: 15px; }
  .download-options.branded-stores small { font-size: 12px; margin-top: 1px; }
  .download-options.branded-stores>a>svg { width: 15px; height: 15px; top: 14px; right: 12px; }
  .start-inner>.start-promo-note { font-size: 12px; margin-top: 15px; }
  .renew-inner .dialog-brand { margin-bottom: 22px; }
  .renew-field { margin-top: 20px; }
  .renew-label { font-size: 13px; }
  .renew-platforms button { min-height: 48px; font-size: 14px; gap: 7px; }
  .renew-periods { gap: 9px; }
  .renew-periods button { padding: 13px 11px; }
  .renew-periods button>span { font-size: 13px; }
  .renew-periods strong { font-size: 27px; }
  .renew-periods small { font-size: 11px; line-height: 1.4; }
  .renew-summary { font-size: 14px; margin-top: 20px; }
  .renew-pay { min-height: 54px; font-size: 15px; }
  .renew-inner>.renew-hint { font-size: 12px; line-height: 1.5; margin-top: 13px; }
  .renew-help { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 12px; margin-top: 8px; }
  #screen-dialog { max-width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; }
  .screen-dialog-inner { padding: 17px 16px 12px; }
  .screen-dialog-top { align-items: center; gap: 12px; margin-bottom: 14px; }
  .screen-dialog-top h2 { font-size: 20px; }
  .screen-dialog-top p { font-size: 11px; }
  #large-screen { max-height: calc(100dvh - 188px); }
  #screen-lesson { min-height: 44px; font-size: 11px; line-height: 1.4; }
  .toast { max-width: calc(100% - 32px); width: max-content; font-size: 12px; white-space: normal; }
}

@media (max-width: 370px) {
  .container { width: calc(100% - 32px); }
  .brand-logo { width: 133px; }
  .header-inner { gap: 6px; }
  .header-inner .button-small { padding-inline: 10px; }
  .hero .eyebrow { font-size: 8px; }
  .hero h1 { font-size: 51px; }
  .hero-micro { font-size: 9px; }
  .hero-product.real-showcase { width: calc(100% + 32px); margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .benefit { padding: 20px; grid-template-columns: minmax(0, 1fr) 92px; }
  .benefit h3 { font-size: 22px; }
  .benefit .object-stage { width: 92px; }
  .price-card { padding: 22px 19px; }
  .price-logo { width: 128px; }
  .price-badge { font-size: 8px; }
  .price-number { gap: 7px; }
  .price-number>strong { font-size: 62px; letter-spacing: -3px; }
  .price-number>span { font-size: 24px; }
  .price-number small { font-size: 12px; }
  .price-card>.button { font-size: 14px; }
  .start-inner, .renew-inner { padding-inline: 18px; }
  .dialog-inner h2 { font-size: 27px; }
  .start-promo { padding: 16px 13px; gap: 8px; }
  .start-promo strong { font-size: 39px; }
  .start-promo p { font-size: 11px; }
  .start-promo button { min-width: 75px; font-size: 9px; }
  .renew-periods strong { font-size: 25px; }
}

@media (max-width: 340px) {
  .brand-logo { width: 120px; }
  .header-actions { gap: 0; }
  .header-inner .button-small { padding-inline: 8px; font-size: 11px; }
  .start-promo strong { font-size: 34px; }
  .start-promo>div>span { font-size: 8px; }
}

@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .site-header { position: relative; }
  html { scroll-padding-top: 16px; }
  #start-dialog, #renew-dialog { max-height: calc(100dvh - 16px); }
  #screen-dialog { width: min(660px, calc(100% - 24px)); }
  .screen-dialog-inner { display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: 24px; }
  .screen-dialog-top { grid-column: 1; grid-row: 1; }
  #large-screen { grid-column: 2; grid-row: 1 / 3; max-height: calc(100dvh - 68px); }
  #screen-lesson { grid-column: 1; grid-row: 2; align-self: end; font-size: 12px; justify-content: flex-start; }
}
