/* Final layout rules: loaded after the shared theme and product illustrations. */
:root {
  --page-gutter: clamp(20px, 4vw, 48px);
  --shell: min(1360px, calc(100% - var(--page-gutter) - var(--page-gutter)));
  --header-height: 83px;
}

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 20px); }
body { overflow-wrap: break-word; }
main, section, figure, form { min-width: 0; }
:where(.hero-shell, .page-hero-shell, .problem-grid, .split, .workspace-grid,
  .card-grid, .persona-tabs, .persona-metrics, .pricing-grid, .credit-explainer,
  .contact-layout, .form-grid, .cta-panel, .footer-shell, .security-feature-wide,
  .security-pair-grid, .security-framework-grid, .architecture-row, .industry-card-wide) > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: anywhere; text-wrap: balance; }
p, li { text-wrap: pretty; }
button, a, input, select, textarea { touch-action: manipulation; }
.button { min-height: 48px; padding-block: 12px; line-height: 1.35; text-align: center; }
.arrow, .eyebrow::before { flex-shrink: 0; }
.eyebrow { line-height: 1.6; }
.brand img, .footer-brand img { height: auto; }
.industry-media picture, .hero-visual-editorial picture { display: block; width: 100%; height: 100%; }
.form-field input, .form-field select, .form-field textarea { min-width: 0; max-width: 100%; font-size: 16px; }
.contact-detail, .footer-column a { overflow-wrap: anywhere; }
.contact-recipient { margin: 12px 0 0; color: var(--muted); font-size: .94rem; }
.contact-recipient a, .contact-layout .split-copy > p a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-handoff { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact-handoff[hidden] { display: none; }
.contact-handoff p { margin: 0 0 12px; color: var(--muted); font-size: .94rem; }
.contact-handoff .text-link, .contact-handoff summary { min-height: 44px; padding-block: 12px; }
.contact-handoff summary { cursor: pointer; font-weight: 650; }
.contact-handoff .button { margin-top: 12px; }
.price-value { flex-wrap: wrap; }
.price-card > small { display: block; }
.price-badge { position: static; align-self: flex-start; margin-bottom: 12px; }
.price-card.frontier > small { max-width: none; }
.home-page .hero-shell { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; }
.price-card .button, .pricing-hero-switch button { min-height: 44px; }
.pricing-hero-switch { flex-wrap: wrap; gap: 4px; }
/* Keep supporting copy readable on desktop as well as touch screens. */
.price-description { font-size: .94rem; line-height: 1.55; min-height: 4.65em; }
.price-features li { font-size: .88rem; line-height: 1.55; }
.price-card .button { font-size: .9rem; padding-block: 12px; }
.price-value span, .price-note, .credit-allocation span, .frontier-note,
.pricing-footnote { font-size: .8rem; line-height: 1.55; }
.form-field label { font-size: .85rem; }
.product-capture a:focus-visible { outline-offset: -4px; }
.code-line { grid-template-columns: 24px minmax(0, 1fr); }
.code-line > span { overflow-wrap: anywhere; }
.architecture-row { grid-template-columns: 170px minmax(0, 1fr); }
.architecture-items span { min-width: 0; overflow-wrap: anywhere; }

/* Tables scroll inside their section at tablet widths as well as on phones. */
.comparison-wrap { max-width: 100%; margin-inline: 0; padding: 4px 0 12px; overflow-x: auto; overscroll-behavior-x: contain; }
.comparison { min-width: 1060px; }
.comparison th:first-child { position: sticky; left: 0; z-index: 1; min-width: 150px; max-width: 200px; background: #f1f5f6; box-shadow: 2px 0 0 var(--line); }
.comparison thead th:first-child { background: var(--navy); }
.table-scroll-hint { margin: 0 0 12px; color: var(--muted); font-size: .85rem; }

/* Navigation opens explicitly, keeping its visual and accessible states aligned. */
.nav-dropdown .dropdown-panel { visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-8px); }
.nav-dropdown.is-open .dropdown-panel { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.dropdown-panel::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-dropdown .nav-chevron { transform: translateY(-2px) rotate(45deg); }
.nav-dropdown.is-open .nav-chevron { transform: translateY(2px) rotate(225deg); }
.mobile-panel { top: var(--header-height); max-height: calc(100vh - var(--header-height)); max-height: calc(100dvh - var(--header-height)); overscroll-behavior-y: contain; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.mobile-panel a { min-height: 48px; }
.mobile-panel .button { color: var(--white); }
.footer-column a { display: inline-flex; align-items: center; min-height: 44px; }

/* The AI illustration has readable controls and a text alternative to its charts. */
.optimus-demo-header { flex-wrap: wrap; }
.optimus-demo .optimus-connection { font-size: .75rem; }
.optimus-demo .optimus-result-heading p, .optimus-demo .optimus-kpis span,
.optimus-demo .optimus-chart-legend { font-size: .75rem; color: #526548; }
.optimus-demo .optimus-chart { min-width: var(--chart-min-width, 640px); }
.optimus-chart-scroll { overscroll-behavior-x: contain; padding-bottom: 8px; }
.optimus-demo .optimus-bar-number { font-size: .625rem; color: #4c6340; }
.optimus-demo .optimus-axis-label { font-size: .7rem; color: #526548; }
.optimus-demo .optimus-source { font-size: .7rem; color: #66745a; }
.optimus-demo-footer { flex-wrap: wrap; }
.optimus-demo-footer button { min-height: 44px; min-width: 44px; font-size: .8rem; color: #4c643c; }
.optimus-example-buttons { gap: 8px; }
.optimus-scroll-hint { display: none; margin: 0 0 16px; color: #526548; font-size: .75rem; }
.optimus-can-scroll .optimus-scroll-hint { display: block; }
.optimus-data { margin-top: 12px; border-top: 1px solid #dfe7d7; }
.optimus-data summary { min-height: 44px; padding: 12px 0; cursor: pointer; color: #4b623e; font-size: .82rem; }
.optimus-data-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.optimus-data table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.optimus-data caption { text-align: left; color: #526548; padding: 8px 0; }
.optimus-data th, .optimus-data td { padding: 10px 8px; border-bottom: 1px solid #dfe7d7; text-align: right; }
.optimus-data th:first-child { text-align: left; }
.optimus-data td { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Content remains readable if animation observers or JavaScript are unavailable. */
.reveal { opacity: 1; transform: none; }

/* A compact film invitation in the hero opens a native, keyboard-accessible dialog. */
.hero-video-trigger { display: inline-flex; align-items: center; gap: 16px; max-width: 100%; margin-top: 26px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.32); border-radius: 8px; background: rgba(8,30,45,.76); color: #fff; text-align: left; }
.hero-video-trigger:hover { border-color: var(--lime-bright); background: #12384d; }
.hero-video-trigger strong, .hero-video-trigger small { display: block; }
.hero-video-trigger strong { font-size: 1rem; font-weight: 650; }
.hero-video-trigger small { margin-top: 3px; color: #b9cbd5; font-size: .78rem; }
.hero-video-trigger > .arrow { margin-left: 16px; }
.video-play-icon { display: grid; flex: 0 0 auto; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--lime-bright); color: #14291e; }
.video-play-icon svg { margin-left: 2px; }
body.video-open { overflow: hidden; }
.video-dialog { width: min(720px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #d7dfe3; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 28px 90px #07182766; }
.video-dialog::backdrop { background: rgba(4,17,28,.78); backdrop-filter: blur(5px); }
.video-dialog-shell { padding: 32px; }
.video-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.video-dialog-header > div { min-width: 0; }
.video-dialog-header h2 { margin: 10px 0 0; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 620; line-height: 1.15; letter-spacing: -.04em; }
.video-dialog-close { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: #f3f6f7; color: var(--ink); font-size: 1.8rem; line-height: 1; }
.video-gate-panel > p { margin: 20px 0 0; font-size: 1rem; color: var(--muted); }
.video-gate-panel > .video-availability-note { margin-top: 8px; color: var(--lime-dark); font-size: .86rem; }
.video-gate-form { display: grid; gap: 18px; margin-top: 24px; }
.video-gate-form .form-field label { font-size: .9rem; }
.video-field-help { font-size: .8rem; color: var(--muted); }
.video-gate-note { margin: -4px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.video-viewer { margin-top: 24px; }
.video-viewer video { display: block; width: 100%; max-height: 65vh; max-height: 65dvh; aspect-ratio: 16 / 9; border-radius: 8px; background: #071827; }
.video-placeholder { display: grid; justify-items: center; align-content: center; min-height: 330px; padding: 38px 28px; border: 1px solid #23465a; border-radius: 8px; background: radial-gradient(ellipse at top, #20455a, #091c2c 75%); color: #fff; text-align: center; }
.video-placeholder .video-play-icon { width: 64px; height: 64px; }
.video-placeholder h3 { margin: 24px 0 12px; font-size: 1.6rem; line-height: 1.2; font-weight: 620; }
.video-placeholder p { max-width: 450px; margin: 0; color: #bccdd7; font-size: .98rem; line-height: 1.6; }
.video-dialog [hidden] { display: none; }

@media (max-width: 1180px) {
  .problem-grid { gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .split { gap: 48px; }
  .page-hero-shell { gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr); }
  .contact-layout { gap: 36px; }
  .security-feature-copy { padding: 32px 24px; }
  .security-frameworks { padding: 36px; }
}

@media (max-width: 1080px) {
  /* A backdrop-filter on the header would contain its fixed mobile panel. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .page-hero-shell, .problem-grid, .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .page-hero-shell { min-height: auto; padding: 68px 0; }
  .page-hero-aside { max-width: 760px; }
  .problem-statement { position: static; }
  .problem-statement p { max-width: 720px; }
  .home-page .hero-shell { grid-template-columns: minmax(0, 1fr); min-height: 680px; }
  .home-page .hero { min-height: 0; }
  .home-page .hero-copy { max-width: 760px; }
  .home-page .hero-visual-editorial::after { background: linear-gradient(90deg, #091c2c 0%, rgba(9,28,44,.94) 55%, rgba(9,28,44,.6) 100%); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .credit-explainer { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-shell { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 840px) {
  .section { padding-block: 72px; }
  .section-tight { padding-block: 48px; }
  .split, .card-grid.two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .page-hero h1, .hero h1 { font-size: clamp(2.5rem, 6.5vw, 3.8rem); line-height: 1.08; }
  .problem-statement h2, .section-head h2, .split-copy h2, .cta-panel h2,
  .security-section-heading h2 { font-size: clamp(2rem, 5.3vw, 3rem); line-height: 1.12; letter-spacing: -.04em; }
  .section-head { margin-bottom: 32px; }
  .home-page .hero, .home-page .hero-shell { min-height: 0; }
  .home-page .hero-shell { padding-block: 72px; }
  .hero-lead { max-width: 640px; }
  .workspace-card { min-height: 0; }
  .feature-card { padding: 26px; }
  .journey { gap: 24px; }
  .journey-step { padding-left: 80px; }
  .cta-panel { padding: 36px; gap: 28px; }
  .security-content { padding-block: 72px; }
  .security-feature-wide, .security-feature-copy, .security-pair-card { min-height: 0; }
  .security-feature-wide.reverse .security-feature-copy, .security-feature-wide.reverse .security-visual { order: initial; }
  .security-hero { min-height: 0; }
  .security-hero-inner { padding-block: 72px; }
  .security-hero h1 { font-size: clamp(2.8rem, 7vw, 4rem); line-height: 1.08; }
  .security-feature-copy { padding: 28px 22px; }
  .security-visual { min-height: 320px; }
  .security-frameworks, .security-review-card { padding: 32px; }
  .security-review-card h2 { font-size: clamp(2rem, 5.3vw, 3rem); line-height: 1.12; }
}

@media (max-width: 620px) {
  :root { --page-gutter: 20px; --header-height: 73px; }
  .nav-shell { gap: 16px; }
  .hero-video-trigger { width: 100%; gap: 12px; padding: 14px 12px; }
  .hero-video-trigger > .arrow { margin-left: auto; }
  .hero-video-trigger strong { font-size: .94rem; }
  .video-dialog-shell { padding: 22px 18px; }
  .video-dialog-header { gap: 12px; }
  .video-dialog-header .eyebrow { font-size: .63rem; }
  .video-dialog-header .eyebrow::before { display: none; }
  .video-placeholder { min-height: 300px; padding: 28px 18px; }
  .section { padding-block: 56px; }
  .section-tight { padding-block: 40px; }
  .hero h1, .page-hero h1 { font-size: clamp(2.15rem, 8.8vw, 3rem); letter-spacing: -.04em; }
  .home-page .hero-shell { padding: 48px 0 56px; }
  .home-page .hero-copy { max-width: 100%; }
  .home-page .hero-visual-editorial::after { background: linear-gradient(90deg, rgba(9,28,44,.98), rgba(9,28,44,.86)); }
  .page-hero-shell { padding: 48px 0; gap: 28px; }
  .hero-lead, .page-hero p, .problem-statement p, .section-head p, .split-copy > p { font-size: 1rem; line-height: 1.7; }
  .hero-actions, .cta-actions { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .trust-line { gap: 8px 16px; margin-top: 24px; line-height: 1.6; }
  .page-hero-aside { padding: 22px; }
  .problem-statement h2, .section-head h2, .split-copy h2, .cta-panel h2,
  .security-section-heading h2 { font-size: clamp(1.85rem, 7.5vw, 2.6rem); }
  .problem-grid { gap: 28px; }
  .outcome-card { min-height: 0; padding: 24px 22px 24px 64px; }
  .outcome-number { top: 25px; left: 20px; }
  .outcome-card::before { left: 49px; top: 24px; bottom: 24px; }
  .workspace-grid, .card-grid, .card-grid.two, .industry-grid, .pricing-grid,
  .credit-points, .persona-tabs, .persona-buttons, .persona-metrics, .form-grid,
  .security-pair-grid, .security-framework-grid, .optimus-boundary-grid { grid-template-columns: minmax(0, 1fr); }
  .workspace-card, .feature-card { padding: 24px; min-height: 0; }
  .workspace-card p, .feature-card p, .feature-list li, .industry-card p,
  .industry-card li, .metric-strip span, .footer-brand p { font-size: .95rem; line-height: 1.65; }
  .card-mark { margin-bottom: 26px; }
  .workspace-card:nth-child(4), .workspace-card:nth-child(5) { grid-column: auto; }
  .persona-panel { padding: 24px 20px; }
  .persona-button { min-height: 48px; padding: 14px 18px; text-align: left; }
  .architecture { padding: 10px; }
  .architecture-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 12px; }
  .architecture-items { gap: 6px; }
  .code-surface { padding: 20px 16px; }
  .code-line { font-size: .78rem; line-height: 1.65; }
  .industry-body, .industry-card-wide .industry-body { padding: 24px; }
  .industry-grid-visual .industry-card h3 { font-size: 1.6rem; }
  .product-capture figcaption { padding: 20px; }
  .product-capture img { aspect-ratio: auto; }
  .price-card { padding: 24px; min-height: 0; }
  .price-description { min-height: 0; font-size: .94rem; line-height: 1.55; }
  .price-features li { font-size: .88rem; line-height: 1.55; }
  .price-card .button { font-size: .9rem; min-height: 48px; }
  .price-value strong { font-size: 2.2rem; }
  .price-value span, .price-note, .credit-allocation span, .frontier-note { font-size: .8rem; }
  .credit-explainer { padding: 24px 20px; }
  .credit-points span { font-size: .87rem; }
  .topup-strip { grid-template-columns: minmax(0, 1fr); }
  .topup-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topup-packs span { font-size: .75rem; }
  .comparison th:first-child { min-width: 132px; max-width: 148px; }
  .comparison th, .comparison td { padding: 14px 12px; }
  .faq-question { gap: 14px; font-size: .98rem; }
  .faq-answer { padding-right: 12px; font-size: .94rem; }
  .contact-form { padding: 24px 20px; }
  .form-field label { font-size: .85rem; }
  .form-note { font-size: .8rem; }
  .form-actions { align-items: stretch; }
  .cta-wrap { padding-bottom: 56px; }
  .cta-panel { padding: 30px 24px; }
  .footer-shell { grid-template-columns: minmax(0, 1fr); padding-top: 40px; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-column { gap: 0; }
  .footer-column a { font-size: .94rem; }
  .footer-bottom { line-height: 1.65; }
  .security-hero-inner { width: var(--shell); padding: 52px 0; }
  .security-hero h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .security-hero-lead { font-size: 1rem; }
  .security-content { padding-block: 56px; }
  .security-visual { padding: 14px; min-height: 0; }
  .security-feature-copy { padding: 24px 16px; }
  .security-feature-copy h3 { font-size: 1.65rem; line-height: 1.2; }
  .security-pair-card, .security-frameworks, .security-review-card { padding: 26px 20px; }
  .security-ui-header { flex-wrap: wrap; gap: 8px; padding-block: 12px; }
  .identity-list { padding: 8px; }
  .identity-row { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; padding: 10px; }
  .identity-role { grid-column: 2; justify-self: start; }
  .identity-row strong, .deployment-option strong { font-size: .85rem; }
  .identity-row span, .identity-role, .deployment-option span { font-size: .75rem; }
  .deployment-option { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .deployment-option b { grid-column: 2; }
  .deployment-icon { width: 36px; height: 36px; }
  .security-audit-visual .audit-row { grid-template-columns: 1fr; gap: 5px; padding: 12px; font-size: .8rem; }
  .audit-row span:last-child { text-align: left; }
  .optimus-boundary { padding: 20px; width: 100%; }
  .optimus-boundary-grid span { font-size: .9rem; padding: 14px; }
  .optimus-demo, .optimus-page-demo .optimus-demo { padding: 16px 12px; }
  .optimus-demo-header { gap: 8px 16px; }
  .optimus-demo .optimus-question { margin: 20px 0 22px; min-height: 0; font-size: 1rem; }
  .optimus-demo .optimus-response { min-height: 0; }
  .optimus-demo .optimus-response p { font-size: 1rem; line-height: 1.6; }
  .optimus-demo .optimus-response-label { font-size: .75rem; }
  .optimus-demo .optimus-result { padding: 16px 10px 8px; }
  .optimus-demo .optimus-kpis { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .optimus-kpis > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e2e8dc; }
  .optimus-demo .optimus-kpis strong { font-size: 1.3rem; white-space: nowrap; }
  .optimus-demo .optimus-kpis span { max-width: 54%; text-align: right; margin: 0; }
  .optimus-demo-footer { flex-direction: column; align-items: stretch; gap: 12px; }
  .optimus-example-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .optimus-demo-footer button { padding: 10px 4px; }
  .optimus-playback { align-self: flex-start; }
  .report-motion-frame figcaption { font-size: .8rem; padding: 16px; }
  .report-motion-frame figcaption a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
