:root {
  --navy: #082f55;
  --navy-dark: #041f39;
  --blue: #0d477a;
  --orange: #f47b00;
  --orange-dark: #d96800;
  --steel: #607181;
  --steel-dark: #384b5c;
  --ink: #142333;
  --muted: #607080;
  --line: #d8e0e6;
  --paper: #f3f6f8;
  --white: #ffffff;
  --red: #c93d3d;
  --green: #23825d;
  --shadow: 0 26px 70px rgba(4, 31, 57, .18);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 14px; color: #fff; background: var(--navy); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { width: min(calc(100% - 40px), var(--max)); height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; width: 226px; height: 62px; overflow: hidden; }
.brand img { width: 100%; }
.site-nav { display: flex; align-items: center; gap: 28px; color: #435363; font-size: .88rem; font-weight: 700; }
.site-nav > a:not(.nav-demo):not(.nav-app) { position: relative; padding: 30px 0; }
.site-nav > a:not(.nav-demo):not(.nav-app)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 22px; height: 2px; background: var(--orange); transition: right .2s ease; }
.site-nav > a:hover::after { right: 0; }
.nav-demo, .nav-app { padding: 12px 18px; border: 1px solid var(--navy); }
.nav-demo { color: var(--navy); }
.nav-app { color: #fff; background: var(--navy); }
.nav-app:hover { background: var(--blue); }
.menu-button { display: none; width: 45px; height: 42px; border: 1px solid var(--line); background: #fff; }
.menu-button span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--navy); }

.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: .55; background-image: linear-gradient(rgba(8,47,85,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(8,47,85,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000 0%, transparent 90%); }
.hero::before { content: ""; position: absolute; left: 0; top: 0; width: 43%; height: calc(100% - 110px); background: var(--navy-dark); clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
.hero-inner { position: relative; width: min(calc(100% - 40px), var(--max)); min-height: 720px; margin: 0 auto; display: grid; grid-template-columns: .72fr 1.28fr; gap: 32px; align-items: center; padding: 76px 0 86px; }
.hero-copy { position: relative; z-index: 2; max-width: 520px; color: #fff; padding-right: 20px; }
.overline { display: flex; align-items: center; gap: 12px; margin: 0 0 21px; color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.overline span { width: 32px; height: 3px; background: var(--orange); }
.hero-copy .overline, .overline.light { color: #b8cad8; }
.hero-copy h1 { margin: 0; font-size: clamp(3.4rem, 5.7vw, 6.2rem); line-height: .91; letter-spacing: -.065em; font-weight: 800; }
.hero-copy h1 strong { color: var(--orange); font-weight: 800; }
.hero-text { max-width: 470px; margin: 28px 0 0; color: #c9d5df; font-size: 1.08rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; font-size: .83rem; font-weight: 900; letter-spacing: .02em; }
.button.primary { color: #fff; background: var(--orange); }
.button.primary:hover { background: var(--orange-dark); }
.button.ghost { color: #fff; border-color: rgba(255,255,255,.42); }
.button.ghost:hover { border-color: #fff; background: rgba(255,255,255,.07); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 32px; color: #9fb2c0; font-size: .74rem; font-weight: 700; }
.hero-facts span::before { content: "✓"; margin-right: 7px; color: var(--orange); }

.app-window { position: relative; z-index: 4; margin-left: -10px; background: #fff; border: 1px solid #bdc9d2; box-shadow: var(--shadow); transform: perspective(1600px) rotateY(-2deg); transform-origin: center left; }
.app-window::after { content: "LIVE PRODUCT STRUCTURE"; position: absolute; right: -1px; top: -31px; padding: 8px 12px; color: #fff; background: var(--orange); font-size: .59rem; font-weight: 900; letter-spacing: .12em; }
.app-browserbar { height: 34px; display: grid; grid-template-columns: 90px 1fr 70px; align-items: center; padding: 0 12px; color: #788592; background: #e9eef2; border-bottom: 1px solid #ced8df; font-size: .61rem; }
.browser-dots { display: flex; gap: 5px; }
.browser-dots i { width: 8px; height: 8px; border-radius: 50%; background: #aeb9c1; }
.app-browserbar > span { justify-self: center; }
.app-browserbar > b { justify-self: end; color: var(--green); font-size: .56rem; }
.app-topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: #fff; background: var(--navy); }
.app-topbar img { width: 142px; padding: 5px 8px; background: #fff; }
.app-user { display: flex; align-items: center; gap: 8px; }
.app-user > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: #fff; font-size: .66rem; font-weight: 900; }
.app-user small { font-size: .56rem; }
.app-layout { min-height: 520px; display: grid; grid-template-columns: 160px minmax(0,1fr); }
.app-sidebar { padding: 14px 10px; background: #f5f7f9; border-right: 1px solid #dce3e8; }
.app-sidebar button { width: 100%; min-height: 38px; display: flex; align-items: center; gap: 9px; margin: 2px 0; padding: 0 10px; border: 0; color: #536474; background: transparent; text-align: left; font-size: .60rem; font-weight: 700; }
.app-sidebar button i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 4px; color: #6c7d8d; background: #e4e9ed; font-style: normal; font-size: .58rem; }
.app-sidebar button.active { color: #fff; background: var(--navy); }
.app-sidebar button.active i { color: var(--navy); background: #fff; }
.app-main { padding: 22px; background: #eef2f5; }
.app-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.app-heading small { color: #7c8b97; font-size: .55rem; }
.app-heading h2 { margin: 3px 0 0; color: var(--navy); font-size: 1.35rem; }
.app-heading button { min-height: 36px; padding: 0 14px; border: 0; color: #fff; background: var(--orange); font-size: .61rem; font-weight: 900; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 18px; }
.kpi-grid article { min-height: 104px; position: relative; padding: 13px; background: #fff; border: 1px solid #dbe2e7; }
.kpi-icon { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: #fff; font-size: .7rem; font-weight: 900; }
.kpi-icon.blue { background: var(--blue); }.kpi-icon.orange { background: var(--orange); }.kpi-icon.red { background: var(--red); }.kpi-icon.steel { background: var(--steel); }
.kpi-grid article > span { color: #667684; font-size: .58rem; font-weight: 800; }
.kpi-grid article > strong { display: block; margin-top: 13px; color: var(--navy); font-size: 1.7rem; }
.kpi-grid article > small { color: #8a969f; font-size: .52rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.55fr .75fr; gap: 12px; margin-top: 12px; }
.quick-panel, .status-panel { min-height: 255px; padding: 16px; background: #fff; border: 1px solid #dbe2e7; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #e5eaee; }
.panel-head h3 { margin: 0; color: var(--navy); font-size: .78rem; }
.panel-head small { color: #8b98a2; font-size: .52rem; }
.quick-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }
.quick-actions button { min-height: 160px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 5px; padding: 13px; border: 1px solid #dfe5e9; color: var(--navy); background: #f6f8f9; text-align: left; }
.quick-actions button b { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: auto; color: #fff; background: var(--navy); font-size: 1rem; }
.quick-actions button:nth-child(2) b { background: var(--orange); }
.quick-actions button:nth-child(3) b { background: var(--steel); }
.quick-actions button span { font-size: .62rem; font-weight: 900; }
.quick-actions button small { color: #7c8994; font-size: .49rem; line-height: 1.35; }
.status-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 2px; border-bottom: 1px solid #e6ebef; color: #667684; font-size: .61rem; }
.status-row b { color: var(--navy); font-size: .82rem; }
.status-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px; margin-top: 17px; }
.status-bar i { height: 7px; background: #dce3e8; }
.status-bar i:first-child { background: var(--orange); }

.hero-band { position: relative; z-index: 5; min-height: 110px; display: grid; grid-template-columns: repeat(4,1fr); background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-band div { display: flex; flex-direction: column; justify-content: center; padding: 20px calc((100vw - min(100vw - 40px, var(--max))) / 8 + 20px); border-right: 1px solid var(--line); }
.hero-band div:last-child { border-right: 0; }
.hero-band b { color: var(--navy); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.hero-band span { margin-top: 5px; color: #778692; font-size: .68rem; line-height: 1.4; }

.section-wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.modules-section { padding: 120px 0; background: #fff; }
.section-intro { max-width: 790px; }
.section-intro h2 { margin: 0; color: var(--navy); font-size: clamp(2.7rem, 5vw, 5.3rem); line-height: .98; letter-spacing: -.055em; }
.section-intro > p:last-child { max-width: 620px; margin-top: 22px; color: var(--muted); font-size: 1.03rem; line-height: 1.7; }
.section-intro.compact { max-width: 900px; }
.module-explorer { margin-top: 60px; border: 1px solid #cbd6de; box-shadow: 0 18px 54px rgba(8,47,85,.08); }
.module-tabs { display: grid; grid-template-columns: 1fr 1.3fr 1.15fr 1.4fr 1.1fr; background: #edf1f4; border-bottom: 1px solid #cbd6de; }
.module-tabs button { min-height: 66px; padding: 10px 12px; border: 0; border-right: 1px solid #cbd6de; color: #657584; background: transparent; font-size: .66rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.module-tabs button:last-child { border-right: 0; }
.module-tabs button.active { color: #fff; background: var(--navy); box-shadow: inset 0 -4px 0 var(--orange); }
.module-stage { min-height: 560px; display: grid; grid-template-columns: .72fr 1.28fr; }
.module-copy { padding: 54px 44px; color: #fff; background: var(--navy-dark); }
.module-number { margin: 0; color: var(--orange); font-size: .67rem; font-weight: 900; letter-spacing: .1em; }
.module-copy h3 { margin: 20px 0 14px; font-size: clamp(2rem, 3.4vw, 3.8rem); line-height: .98; letter-spacing: -.04em; }
.module-copy > p:not(.module-number) { color: #c5d2db; line-height: 1.7; }
.module-copy ul { margin: 30px 0 0; padding: 0; list-style: none; }
.module-copy li { position: relative; padding: 12px 0 12px 26px; border-top: 1px solid rgba(255,255,255,.13); color: #dbe4ea; font-size: .84rem; }
.module-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 900; }
.module-ui { padding: 38px; background: #f0f3f5; }
.ui-head { display: flex; align-items: center; justify-content: space-between; padding: 18px; background: #fff; border: 1px solid #d6dee4; }
.ui-head small { display: block; color: #7d8a94; font-size: .61rem; }
.ui-head strong { display: block; margin-top: 4px; color: var(--navy); font-size: 1.05rem; }
.ui-head button { padding: 9px 12px; border: 1px solid var(--navy); color: var(--navy); background: #fff; font-size: .62rem; font-weight: 900; }
.audit-type-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
.audit-type-grid span { min-height: 92px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px; color: var(--navy); background: #fff; border: 1px solid #d7dfe5; font-size: .70rem; font-weight: 800; }
.audit-type-grid b { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--navy); font-size: .8rem; }
.audit-type-grid span:nth-child(2) b, .audit-type-grid span:nth-child(5) b, .audit-type-grid span:nth-child(8) b, .audit-type-grid span:nth-child(11) b { background: var(--orange); }
.finding-list, .record-list, .admin-log, .daily-grid { margin-top: 14px; }
.finding-row { display: grid; grid-template-columns: 74px 1fr 120px; align-items: center; gap: 12px; padding: 15px; background: #fff; border: 1px solid #d8e0e6; border-top: 0; }
.finding-row:first-child { border-top: 1px solid #d8e0e6; }
.finding-row > b { padding: 7px 9px; color: #fff; background: var(--orange); font-size: .58rem; text-align: center; }
.finding-row strong { display: block; color: var(--navy); font-size: .76rem; }
.finding-row small { color: #7e8b96; font-size: .59rem; }
.finding-row span { justify-self: end; padding: 7px 10px; color: var(--navy); background: #eaf0f4; font-size: .57rem; font-weight: 900; }
.daily-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.daily-card { min-height: 165px; padding: 18px; background: #fff; border: 1px solid #d7dfe5; }
.daily-card > span { color: var(--orange); font-size: .61rem; font-weight: 900; }
.daily-card h4 { margin: 10px 0 14px; color: var(--navy); }
.daily-card div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid #e6eaed; color: #697987; font-size: .64rem; }
.daily-card div b { color: var(--green); }
.record-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.record-list article { min-height: 130px; padding: 18px; background: #fff; border: 1px solid #d7dfe5; }
.record-list article span { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--navy); font-weight: 900; }
.record-list article:nth-child(2) span { background: var(--orange); }
.record-list article h4 { margin: 13px 0 5px; color: var(--navy); }
.record-list article p { margin: 0; color: #75838e; font-size: .65rem; line-height: 1.5; }
.admin-log { background: #fff; border: 1px solid #d7dfe5; }
.log-toolbar { display: grid; grid-template-columns: 1fr 160px 140px; gap: 8px; padding: 12px; background: #f7f9fa; border-bottom: 1px solid #d7dfe5; }
.log-toolbar span { padding: 10px; color: #7b8993; background: #fff; border: 1px solid #d7dfe5; font-size: .59rem; }
.log-entry { display: grid; grid-template-columns: 90px 110px 1fr; gap: 12px; padding: 13px 15px; border-bottom: 1px solid #e7ebee; font-size: .62rem; }
.log-entry:last-child { border-bottom: 0; }
.log-entry b { color: var(--navy); }
.log-entry span { color: var(--orange); font-weight: 900; }
.log-entry p { margin: 0; color: #687885; }

.audit-flow { color: #fff; background: var(--navy); }
.flow-wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 115px 0; }
.flow-title { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.22); }
.flow-title p { margin: 0; color: var(--orange); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.flow-title h2 { max-width: 780px; margin: 0; font-size: clamp(2.7rem, 5vw, 5.4rem); line-height: .96; letter-spacing: -.05em; text-align: right; }
.flow-line { display: grid; grid-template-columns: repeat(5,1fr); }
.flow-line article { min-height: 330px; padding: 30px 24px; border-right: 1px solid rgba(255,255,255,.16); }
.flow-line article:first-child { border-left: 1px solid rgba(255,255,255,.16); }
.flow-line span { color: var(--orange); font-size: .68rem; font-weight: 900; }
.flow-line h3 { margin: 70px 0 14px; font-size: 1.15rem; }
.flow-line p { margin: 0; color: #b9c8d3; font-size: .78rem; line-height: 1.65; }

.mobile-section { padding: 120px 0; color: #fff; background: var(--navy-dark); overflow: hidden; }
.mobile-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 105px; align-items: center; }
.phone-shell { width: min(100%, 380px); margin: 0 auto; padding: 10px; color: var(--ink); background: #0d1823; border: 2px solid #344352; border-radius: 34px; box-shadow: 35px 40px 0 rgba(244,123,0,.12), 0 30px 70px rgba(0,0,0,.35); }
.phone-status { height: 27px; display: flex; justify-content: space-between; padding: 5px 18px; color: #fff; font-size: .58rem; }
.phone-appbar { min-height: 64px; display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; padding: 8px 10px; color: #fff; background: var(--navy); }
.phone-appbar button { border: 0; color: #fff; background: transparent; font-size: 1.2rem; }
.phone-appbar div { text-align: center; }
.phone-appbar small { display: block; color: #a8bbca; font-size: .54rem; }
.phone-appbar strong { font-size: .78rem; }
.progress-meta { display: flex; justify-content: space-between; padding: 16px 17px 8px; color: #687785; background: #f1f4f6; font-size: .59rem; }
.progress { height: 4px; background: #d8e0e6; }
.progress i { display: block; width: 33%; height: 100%; background: var(--orange); }
.question-card { padding: 22px 17px 17px; background: #f1f4f6; }
.question-card > small { color: var(--orange); font-size: .59rem; font-weight: 900; }
.question-card h3 { min-height: 74px; margin: 9px 0 15px; color: var(--navy); font-size: 1.05rem; line-height: 1.35; }
.rating-list { display: grid; gap: 7px; }
.rating-list button { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #d3dbe1; color: #536474; background: #fff; text-align: left; font-size: .66rem; font-weight: 800; }
.rating-list i { width: 14px; height: 14px; border: 2px solid #a6b2bb; border-radius: 50%; }
.rating-list button.selected { color: var(--navy); border-color: var(--orange); box-shadow: inset 4px 0 0 var(--orange); }
.rating-list button.selected i { border-color: var(--orange); background: radial-gradient(circle, var(--orange) 0 45%, transparent 50%); }
.evidence-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.evidence-tools button { min-height: 41px; border: 1px dashed #9eabb5; color: #657584; background: #f8fafb; font-size: .59rem; font-weight: 800; }
.phone-nav { display: grid; grid-template-columns: .65fr 1.35fr; gap: 7px; padding: 12px; background: #f1f4f6; border-radius: 0 0 24px 24px; }
.phone-nav button { min-height: 46px; border: 1px solid var(--navy); color: var(--navy); background: #fff; font-size: .66rem; font-weight: 900; }
.phone-nav button:last-child { color: #fff; background: var(--navy); }
.mobile-copy h2 { margin: 0; font-size: clamp(3rem, 5.2vw, 5.7rem); line-height: .96; letter-spacing: -.055em; }
.mobile-copy > p:not(.overline) { max-width: 650px; color: #bdcbd5; font-size: 1rem; line-height: 1.75; }
.mobile-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 40px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.mobile-features div { min-height: 125px; padding: 20px; background: var(--navy-dark); }
.mobile-features b { display: block; color: var(--orange); font-size: .81rem; }
.mobile-features span { display: block; margin-top: 8px; color: #aec0cc; font-size: .73rem; line-height: 1.5; }

.site-records { padding: 120px 0; background: var(--paper); }
.records-grid { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 55px; border-top: 1px solid #cbd5dc; border-left: 1px solid #cbd5dc; }
.records-grid article { min-height: 250px; padding: 24px; background: #fff; border-right: 1px solid #cbd5dc; border-bottom: 1px solid #cbd5dc; }
.records-grid span { color: var(--orange); font-size: .65rem; font-weight: 900; }
.records-grid h3 { margin: 65px 0 13px; color: var(--navy); font-size: 1.16rem; }
.records-grid p { margin: 0; color: #667785; font-size: .77rem; line-height: 1.6; }

.plans-section { padding: 110px 0; color: #fff; background: var(--steel-dark); }
.plans-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 95px; align-items: center; }
.plans-copy h2 { margin: 0; font-size: clamp(2.8rem, 4.8vw, 5rem); line-height: .98; letter-spacing: -.05em; }
.plans-copy > p:not(.overline) { color: #c7d1d9; line-height: 1.7; }
.plans-board { border: 1px solid rgba(255,255,255,.25); }
.plan-row { min-height: 82px; display: grid; grid-template-columns: 1fr 1fr 115px; align-items: center; gap: 14px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.19); }
.plan-row.heading { min-height: 44px; color: #aebbc4; font-size: .58rem; font-weight: 900; letter-spacing: .1em; }
.plan-row strong { font-size: 1.04rem; }
.plan-row span { color: #c8d2d8; font-size: .76rem; }
.plan-row b { padding: 8px; color: var(--navy); background: #dfe8ed; font-size: .56rem; text-align: center; }
.plan-row.featured { background: var(--navy); box-shadow: inset 5px 0 0 var(--orange); }
.plan-row.featured b { color: #fff; background: var(--orange); }
.plans-board > a { min-height: 62px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--orange); font-size: .75rem; font-weight: 900; }

.contact-section { padding: 110px 0; background: #fff; }
.contact-wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 95px; align-items: start; }
.contact-wrap > div > img { width: 250px; }
.contact-wrap h2 { margin: 35px 0 16px; color: var(--navy); font-size: clamp(2.5rem, 4.7vw, 5rem); line-height: .98; letter-spacing: -.05em; }
.contact-wrap > div > p { color: var(--muted); line-height: 1.7; }
#demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 28px; background: var(--paper); border-top: 7px solid var(--orange); }
#demo-form label { display: grid; gap: 7px; }
#demo-form label:nth-child(3), #demo-form label:nth-child(4), #demo-form button, #form-message { grid-column: 1 / -1; }
#demo-form label span { color: var(--navy); font-size: .66rem; font-weight: 900; }
#demo-form input, #demo-form textarea { width: 100%; padding: 13px; border: 1px solid #cbd5dc; border-radius: 0; color: var(--ink); background: #fff; outline: none; resize: vertical; }
#demo-form input:focus, #demo-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(244,123,0,.12); }
#demo-form button { min-height: 50px; border: 0; color: #fff; background: var(--navy); font-size: .73rem; font-weight: 900; }
#demo-form button:hover { background: var(--blue); }
#form-message { min-height: 18px; color: var(--green); font-size: .68rem; text-align: center; }

footer { color: #c1ced7; background: var(--navy-dark); }
.footer-inner { width: min(calc(100% - 40px), var(--max)); min-height: 160px; margin: 0 auto; display: grid; grid-template-columns: 210px 1fr auto auto; gap: 35px; align-items: center; }
.footer-inner > img { width: 190px; padding: 8px; background: #fff; }
.footer-inner p { font-size: .73rem; }
.footer-inner nav { display: flex; gap: 20px; font-size: .69rem; font-weight: 800; }
.footer-inner small { color: #7f94a3; font-size: .62rem; }

@media (max-width: 1120px) {
  .hero-inner { grid-template-columns: .62fr 1.38fr; }
  .hero-copy h1 { font-size: clamp(3rem, 5.1vw, 5rem); }
  .app-layout { grid-template-columns: 138px minmax(0,1fr); }
  .app-sidebar button { font-size: .55rem; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .status-panel { min-height: auto; }
  .module-stage { grid-template-columns: .8fr 1.2fr; }
  .flow-line { grid-template-columns: repeat(3,1fr); }
  .flow-line article:nth-child(4) { border-left: 1px solid rgba(255,255,255,.16); }
  .records-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 900px) {
  .menu-button { display: block; }
  .site-nav { position: absolute; left: 20px; right: 20px; top: 82px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 45px rgba(8,47,85,.16); }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.nav-demo):not(.nav-app) { padding: 13px 10px; border-bottom: 1px solid #e5eaee; }
  .site-nav > a:not(.nav-demo):not(.nav-app)::after { display: none; }
  .nav-demo, .nav-app { margin-top: 8px; text-align: center; }
  .hero::before { width: 100%; height: 590px; clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%); }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding-top: 65px; }
  .hero-copy { max-width: 760px; }
  .app-window { margin: 28px 0 0; transform: none; }
  .hero-band { grid-template-columns: 1fr 1fr; }
  .module-tabs { grid-template-columns: 1fr 1fr; }
  .module-tabs button:last-child { grid-column: 1 / -1; }
  .module-stage { grid-template-columns: 1fr; }
  .module-copy { padding: 42px 32px; }
  .flow-title { display: block; }
  .flow-title h2 { margin-top: 16px; text-align: left; }
  .mobile-wrap, .plans-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 65px; }
  .phone-shell { order: 2; }
  .records-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 35px 0; }
}

@media (max-width: 640px) {
  .header-inner, .hero-inner, .section-wrap, .flow-wrap, .contact-wrap, .footer-inner { width: min(calc(100% - 26px), var(--max)); }
  .header-inner { height: 72px; }
  .brand { width: 190px; height: 54px; }
  .site-nav { top: 72px; left: 13px; right: 13px; }
  .hero::before { height: 560px; }
  .hero-inner { padding: 50px 0 62px; }
  .hero-copy h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-text { font-size: .98rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .app-window::after { display: none; }
  .app-browserbar { display: none; }
  .app-topbar { height: 58px; }
  .app-topbar img { width: 125px; }
  .app-user small { display: none; }
  .app-layout { grid-template-columns: 57px minmax(0,1fr); min-height: 540px; }
  .app-sidebar { padding: 10px 6px; }
  .app-sidebar button { justify-content: center; padding: 0; }
  .app-sidebar button span { display: none; }
  .app-sidebar button i { width: 28px; height: 28px; }
  .app-main { padding: 13px; }
  .app-heading h2 { font-size: 1.05rem; }
  .app-heading button { padding: 0 9px; font-size: .53rem; }
  .kpi-grid { gap: 6px; }
  .kpi-grid article { min-height: 92px; padding: 10px; }
  .kpi-icon { width: 24px; height: 24px; }
  .quick-actions { grid-template-columns: 1fr; }
  .quick-actions button { min-height: 83px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; align-items: center; justify-content: start; }
  .quick-actions button b { grid-row: 1 / 3; margin: 0; }
  .quick-actions button small { grid-column: 2; }
  .status-panel { display: none; }
  .hero-band { grid-template-columns: 1fr; }
  .hero-band div { padding: 17px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .modules-section, .site-records, .mobile-section, .contact-section { padding: 85px 0; }
  .section-intro h2, .mobile-copy h2, .plans-copy h2, .contact-wrap h2 { font-size: clamp(2.5rem, 12vw, 4.4rem); }
  .module-tabs { display: flex; overflow-x: auto; }
  .module-tabs button { min-width: 150px; }
  .module-tabs button:last-child { grid-column: auto; }
  .module-copy, .module-ui { padding: 26px 18px; }
  .audit-type-grid { grid-template-columns: 1fr 1fr; }
  .finding-row { grid-template-columns: 60px 1fr; }
  .finding-row span { grid-column: 2; justify-self: start; }
  .daily-grid, .record-list { grid-template-columns: 1fr; }
  .log-toolbar { grid-template-columns: 1fr; }
  .log-entry { grid-template-columns: 1fr; gap: 4px; }
  .flow-wrap { padding: 85px 0; }
  .flow-line { grid-template-columns: 1fr; }
  .flow-line article, .flow-line article:nth-child(4) { min-height: auto; padding: 25px 18px; border-left: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
  .flow-line h3 { margin-top: 34px; }
  .mobile-features { grid-template-columns: 1fr; }
  .records-grid { grid-template-columns: 1fr; }
  .records-grid article { min-height: 210px; }
  .records-grid h3 { margin-top: 45px; }
  .plan-row { grid-template-columns: 1fr; gap: 5px; padding: 15px 18px; }
  .plan-row.heading { display: none; }
  .plan-row b { justify-self: start; }
  #demo-form { grid-template-columns: 1fr; padding: 20px; }
  #demo-form label, #demo-form label:nth-child(3), #demo-form label:nth-child(4), #demo-form button, #form-message { grid-column: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner nav { flex-wrap: wrap; }
}

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


.app-window-image {
  margin-left: -10px;
  padding: 20px 20px 16px;
  background: #ffffff;
  border: 1px solid #bdc9d2;
  box-shadow: var(--shadow);
  transform: perspective(1600px) rotateY(-2deg);
  transform-origin: center left;
}

.app-window-image::after {
  content: "LIVE PRODUCT PREVIEW";
}

.app-window-image > img {
  width: 100%;
  height: auto;
  border: 1px solid #dde4ea;
}

.app-window-image figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
}

.app-window-image figcaption span {
  color: var(--navy);
  font-size: .78rem;
  font-weight: 900;
}

.app-window-image figcaption small {
  color: #6f7f8c;
  font-size: .66rem;
  text-align: right;
}

@media (max-width: 900px) {
  .app-window-image {
    transform: none;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .app-window-image {
    padding: 10px 10px 12px;
  }

  .app-window-image figcaption {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-window-image figcaption small {
    text-align: left;
  }
}


/* V5 module section refinements to resemble the live app more closely */
.module-ui {
  padding: 26px;
  background: #e8edf1;
}

.app-shot {
  min-height: 500px;
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  background: #f8fafb;
  border: 1px solid #d2dbe2;
  border-radius: 18px;
  overflow: hidden;
}

.app-shot-sidebar {
  padding: 14px 12px;
  background: var(--navy);
}

.app-shot-brand {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  margin-bottom: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}

.app-shot-brand.small {
  grid-template-columns: 40px 1fr;
}

.app-shot-brand img {
  width: 100%;
  padding: 6px;
  background: #fff;
  border-radius: 12px;
}

.app-shot-brand strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.app-shot-brand span {
  display: block;
  margin-top: 4px;
  color: #d8e4ec;
  font-size: .68rem;
  line-height: 1.35;
}

.app-shot-sidebar button {
  width: 100%;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #ffffff;
  background: transparent;
  text-align: left;
  font-size: .82rem;
  font-weight: 800;
}

.app-shot-sidebar button.active {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.16);
}

.app-shot-sidebar button.active.secondary {
  background: rgba(255,255,255,.06);
}

.app-shot-main {
  padding: 18px;
  background: #dde4e9;
}

.app-shot-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.app-shot-topline.split {
  justify-content: space-between;
}

.app-shot-topline h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.1rem;
}

.shot-button {
  padding: 10px 14px;
  border-radius: 14px;
  color: #fff;
  background: var(--navy);
  font-size: .72rem;
  font-weight: 900;
}

.shot-button.pale {
  color: var(--navy);
  background: #eff3f6;
  border: 1px solid #d6dee5;
}

.audit-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.audit-card {
  min-height: 116px;
  display: grid;
  grid-template-columns: 64px 1fr 20px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid #d6dfe6;
  border-radius: 20px;
}

.audit-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eef1f5;
  font-size: 1.5rem;
}

.audit-icon.safety, .audit-icon.box, .audit-icon.clean {
  background: #f7efe7;
}

.audit-icon.dark {
  background: #e7ebf0;
}

.audit-icon.vehicle {
  background: #eef6ed;
}

.audit-icon.tool {
  background: #f1edf7;
}

.audit-card strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
}

.audit-card small {
  display: block;
  margin-top: 6px;
  color: #6f7f8c;
  font-size: .8rem;
  font-weight: 700;
}

.audit-card > b {
  color: #98a7b4;
  font-size: 2rem;
  font-weight: 400;
}

.list-card {
  display: grid;
  grid-template-columns: 120px 1fr 110px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #d6dfe6;
  border-radius: 18px;
}

.finding-status {
  padding: 9px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: .64rem;
  font-weight: 900;
  text-align: center;
}

.finding-status.open { background: #c96c14; }
.finding-status.progress { background: #6d7f91; }
.finding-status.closed { background: #2d8b64; }

.finding-card strong,
.log-shell-row b,
.record-shell-grid strong,
.daily-shell-card strong {
  color: var(--navy);
}

.finding-card small,
.record-shell-grid small,
.daily-shell-card div,
.log-shell-row p {
  color: #6f7f8c;
}

.list-card > span {
  justify-self: end;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--navy);
  background: #eef2f5;
  font-size: .68rem;
  font-weight: 900;
}

.daily-shell-grid,
.record-shell-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.daily-shell-card,
.record-shell-grid article {
  min-height: 210px;
  padding: 18px;
  background: #fff;
  border: 1px solid #d6dfe6;
  border-radius: 18px;
}

.daily-shell-card small {
  color: var(--orange);
  font-size: .66rem;
  font-weight: 900;
}

.daily-shell-card strong {
  display: block;
  margin: 12px 0 16px;
  font-size: 1rem;
}

.daily-shell-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid #e6ebef;
  font-size: .75rem;
}

.daily-shell-card div b {
  color: var(--green);
}

.record-shell-grid article span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eef1f5;
  font-size: 1.3rem;
}

.record-shell-grid strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 1rem;
}

.record-shell-grid small {
  display: block;
  font-size: .74rem;
  line-height: 1.55;
}

.log-filter-row {
  display: grid;
  grid-template-columns: 1fr 170px 150px;
  gap: 10px;
  margin-bottom: 12px;
}

.log-filter-row span {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d6dfe6;
  border-radius: 14px;
  color: #7b8993;
  font-size: .72rem;
}

.log-shell-row {
  display: grid;
  grid-template-columns: 120px 110px 1fr;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #d6dfe6;
  border-radius: 16px;
  font-size: .72rem;
}

.log-shell-row span {
  color: var(--orange);
  font-weight: 900;
}

.log-shell-row p {
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .app-shot {
    grid-template-columns: 155px minmax(0, 1fr);
  }

  .audit-card-grid,
  .daily-shell-grid,
  .record-shell-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .module-ui {
    padding: 14px;
  }

  .app-shot {
    grid-template-columns: 1fr;
  }

  .app-shot-sidebar {
    padding: 12px;
  }

  .app-shot-brand {
    grid-template-columns: 44px 1fr;
  }

  .app-shot-sidebar button {
    min-height: 40px;
    font-size: .74rem;
  }

  .app-shot-main {
    padding: 14px;
  }

  .list-card,
  .log-shell-row,
  .log-filter-row {
    grid-template-columns: 1fr;
  }

  .list-card > span {
    justify-self: start;
  }
}
