/* Focused mobile UX and three-plan pricing additions. */
.mobile-header-cta { display: none; }
.screen-full-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: 14px; font-weight: 750; text-underline-offset: 4px; }
.hero-screen .screen-full-link, .product-screen .screen-full-link { color: #d6e1ea; }
.hero-video .visual-caption { color: #e8f5fa; text-decoration: none; }
.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { min-width: 0; padding: 30px 26px; }
.plan h3 { font-size: 25px; }
.plan-description { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.plan-description strong { display: block; margin-bottom: 12px; color: var(--ink); font-size: 16px; font-weight: 750; }
.plan-price { margin-top: 16px; color: var(--ink); font-size: 18px; font-weight: 800; }
.plan-position { margin-top: 10px; color: var(--cyan-dark); font-size: 13px; font-weight: 750; }
.plan.enterprise { border-color: #b7c2ce; box-shadow: none; }
.plan-note { margin-top: 22px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.plan-actions { margin-top: auto; padding-top: 24px; }
.plan-actions .button { margin-top: 0; }
.rd-summary-flow { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; }
.rd-summary-flow li { position: relative; }
.rd-summary-flow li + li::before { content: "→"; position: absolute; left: -19px; color: var(--cyan-dark); }
.rd-summary-flow li:last-child::after { content: " ↺"; color: var(--cyan-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--cyan-dark); outline-offset: 4px; }
@media (max-width: 1100px) {
    .plans { grid-template-columns: 1fr; }
    .plan { padding: 32px; }
}
@media (max-width: 860px) {
    :root { --header-height: 64px; }
    body { font-size: 16px; line-height: 1.75; }
    body.menu-open { position: fixed; width: 100%; overflow: hidden; }
    .nav-shell { gap: 8px; }
    .brand { min-height: 44px; }
    .brand-logo { height: 20px; }
    .mobile-header-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-left: auto; padding: 0 12px; border-radius: 4px; color: #07111f; background: var(--cyan); font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
    .menu-button { flex: 0 0 44px; }
    .mobile-nav { padding: 16px 20px 28px; padding-bottom: max(28px, env(safe-area-inset-bottom)); max-height: calc(100dvh - var(--header-height)); overscroll-behavior: contain; }
    .mobile-nav a { min-height: 52px; font-size: 16px; }
    .mobile-nav .mobile-portal-link { margin-top: 20px; padding: 14px; border: 1px solid #506779; border-radius: 4px; color: #8ad9f6; }
    section { padding: 64px 0; }
    .container { width: min(calc(100% - 40px), var(--container)); }
    .hero { min-height: 0; height: auto; padding: calc(var(--header-height) + 32px) 0 48px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hero h1 { font-size: 42px; line-height: 1.22; word-break: keep-all; text-wrap: balance; }
    .hero-copy { margin-top: 20px; font-size: 16px; line-height: 1.8; }
    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
    .hero-actions .button { width: 100%; }
    .button { min-height: 48px; font-size: 14px; }
    .hero-visual, .hero-screen { width: 100%; }
    .hero-links { gap: 8px 16px; margin-top: 12px; }
    .hero-links a, .footer-links a, .footer-email, .contact-direct, .rd-detail-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
    .section-title { font-size: 36px; line-height: 1.3; text-wrap: balance; }
    .section-copy { margin-top: 20px; font-size: 16px; line-height: 1.8; }
    .steps { display: grid; grid-template-columns: 1fr; margin: 32px 0 0 16px; border: 0; }
    .step { min-height: 0; padding: 0 0 30px 52px; border-left: 1px solid #506779; }
    .step + .step, .step:nth-child(n+4) { padding-top: 18px; border-top: 0; border-left: 1px solid #506779; }
    .step-number { position: absolute; left: -16px; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #506779; border-radius: 50%; background: var(--navy-2); font-size: 14px; }
    .step + .step .step-number { top: 18px; }
    .step h3 { margin-top: 0; font-size: 21px; }
    .step p { margin-top: 8px; font-size: 15px; line-height: 1.8; color: #aebdcb; }
    .step + .step::before, .step:nth-child(4)::before { content: "↓"; display: block; top: -12px; left: 14px; background: var(--navy-2); }
    .step:last-child { padding-bottom: 8px; }
    .rd-label, .rd-tools p, .rd-tools li, .rd-flow span, .rd-human-stages, .rd-repeat { font-size: 14px; line-height: 1.75; }
    .rd-feature { gap: 24px; margin-top: 36px; padding-top: 32px; }
    .rd-feature h3, .rd-loop-heading { font-size: 27px; line-height: 1.45; }
    .rd-agent-flow { grid-template-columns: 1fr; gap: 10px; }
    .rd-agent-flow strong { font-size: 18px; }
    .rd-arrow { font-size: 0; }
    .rd-arrow::after { content: "↓"; font-size: 20px; }
    .rd-agent { width: 100%; padding: 12px; }
    .rd-tools { margin-top: 20px; }
    .rd-tools::before { display: none; }
    .rd-tools ul { display: grid; grid-template-columns: 1fr 1fr; }
    .rd-tools li { text-align: center; }
    .rd-tools li:last-child { grid-column: 1 / -1; }
    .rd-flow, .rd-loop .rd-flow { grid-template-columns: 1fr; }
    .rd-flow li, .rd-loop .rd-flow li { display: block; padding: 20px 24px; border-top: 0; }
    .rd-flow li:first-child, .rd-loop .rd-flow li:first-child { border-top: 2px solid var(--cyan-dark); }
    .rd-flow li + li::before, .rd-loop .rd-flow li + li::before { content: "↓"; top: -13px; left: 4px; background: var(--soft); }
    .rd-loop .rd-flow li + li::before { background: var(--white); }
    .rd-flow strong, .rd-loop .rd-flow strong { font-size: 17px; }
    .rd-flow span, .rd-loop .rd-flow span { margin-top: 4px; }
    .rd-summary-flow { display: grid; grid-template-columns: 1fr; gap: 20px; padding-left: 20px; }
    .rd-summary-flow li + li::before { content: "↓"; left: 0; top: -24px; }
    .rd-human, .rd-loop .rd-human { margin-top: 28px; }
    .rd-human strong { font-size: 16px; }
    .rd-human p { font-size: 15px; }
    .rd-human-stages { line-height: 2; }
    .plan ul { font-size: 15px; line-height: 1.8; }
    .plan-fit, .plan-fit strong, .plan-position, .addon-list li, .academic-note { font-size: 14px; line-height: 1.75; }
    .support-category span, .support-category small, .support-card ul, .reference-note, .form-status { font-size: 14px; line-height: 1.75; }
    .reference-type, .section-kicker, .kicker, .focus-label, .form-group label, footer { font-size: 14px; }
    .demo-tab { min-height: 52px; font-size: 14px; }
    .demo-stage figcaption { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.75; }
    .support-summary { margin-top: 28px; }
    .addon-list li + li { border-left: 0; }
}
@media (max-width: 580px) {
    .container { width: calc(100% - 40px); }
    .hero h1 { font-size: 34px; }
    .section-title, .business .section-title, .references .section-title { font-size: 30px; }
    .hero-actions { grid-template-columns: 1fr; gap: 10px; }
    .hero-visual { width: 100%; }
    .hero-video { aspect-ratio: 4/3; }
    .hero-video > img { object-position: 64% center; }
    .hero-screen { overflow: hidden; padding: 0; }
    .hero-screen img, .product-screen img, .demo-stage img { aspect-ratio: 4/3; object-fit: cover; object-position: 60% center; }
    .hero-screen img { object-position: 72% center; }
    .visual-caption { left: 8px; bottom: 8px; font-size: 14px; }
    .plan { padding: 28px 22px; }
    .plan-actions .button { width: 100%; }
    .plans { gap: 24px; margin-top: 32px; }
    .rd-diagram { padding: 24px 18px; }
    .rd-loop { margin-top: 36px; padding-top: 32px; }
    .rd-loop .rd-human { padding: 20px; }
    .addon-list { display: grid; grid-template-columns: 1fr; }
    .addon-list li + li { border-top: 1px solid var(--line); }
    .contact-form { padding: 24px 18px; }
    .form-group input, .form-group textarea { font-size: 16px; }
}
