/* The former navigation panels now read as sections in the main page. */
.page-section { padding: 80px clamp(20px, 4vw, 64px); scroll-margin-top: 88px; }
.products-section { background: #fffef9; }
.services-section { background: #eff7ed; }
.solutions-section { background: #f9fbf6; }
.page-section > .section-heading-left { max-width: 1360px; margin: 0 auto 32px; text-align: left; }

.mega-layout {
  display: grid;
  grid-template-columns: minmax(0, 23fr) minmax(0, 77fr);
  max-width: 1360px;
  min-height: 560px;
  margin: 0 auto;
  background: #f1f6ed;
  text-align: left;
}
.services-section .mega-layout { background: #eff7ed; }
.solutions-section .mega-layout { background: #f1f6ed; }
.mega-services, .mega-solutions { border: 1px solid #dce6d6; border-radius: 24px; }
.mega-services > .mega-sidebar, .mega-solutions > .mega-sidebar { border-radius: 23px 0 0 23px; }
.mega-services > .mega-body, .mega-solutions > .mega-body { border-radius: 0 23px 23px 0; background: inherit; }
.mega-layout *, .mega-layout *::before, .mega-layout *::after { box-sizing: border-box; }
.mega-layout h2, .mega-layout h3, .mega-layout h4, .mega-layout p { margin: 0; }
.mega-layout h2, .mega-layout h3, .mega-layout h4 { color: #183e30; font-weight: 600; }
.mega-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px clamp(28px, 3.7vw, 70px) 38px;
  border-right: 1px solid #e0e7da;
  background: #fcfcf7;
}
.mega-eyebrow {
  color: #849473;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.6;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.mega-sidebar h2 {
  margin-top: 22px;
  font-size: clamp(26px, 2.1vw, 34px);
  line-height: 1.4;
  letter-spacing: -.5px;
}
.mega-sidebar .mega-summary {
  max-width: 25ch;
  margin-top: 19px;
  color: #73816d;
  font-size: 14px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.mega-note {
  max-width: 26ch;
  margin-top: auto !important;
  padding-top: 50px;
  color: #8b9782;
  font-size: 12px;
  line-height: 1.8;
}
.mega-body {
  position: relative;
  min-width: 0;
  padding: 48px clamp(28px, 4vw, 76px) 40px;
}

/* Products occupy three independent cards without an introductory sidebar. */
.mega-products { grid-template-columns: minmax(0, 1fr); min-height: 0; background: transparent; }
.mega-products > .mega-body { padding: 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1360px; margin: 0 auto; }
.product-card { min-width: 0; padding: 28px; border: 1px solid #dce5d4; border-radius: 18px; background: #fcfdf8; box-shadow: 0 7px 22px #233d2510; }
.product-card .product-kicker { margin-bottom: 12px; color: #81936f; font-size: 11px; line-height: 1.5; letter-spacing: 1px; }
.product-card h3 { font-size: 22px; line-height: 1.4; }
.product-card .product-description { min-height: 50px; margin-top: 12px; color: #6d7d65; font-size: 14px; line-height: 1.8; }
.product-preview {
  height: 180px;
  margin-top: 24px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid #dce5d3;
  border-radius: 14px;
  background: #fffffbbf;
  box-shadow: 0 7px 18px #263c2310;
  color: #486047;
  font-size: 11px;
  line-height: 1.5;
}
.preview-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; color: #8b9980; font-size: 10px; }
.preview-topline > :first-child { color: #59714e; font-weight: 600; }
.preview-topline > :last-child { text-align: right; }
.mini-task { position: relative; padding: 10px 11px; border: 1px solid #e3e9dc; border-radius: 8px; background: #fff; }
.mini-task strong { display: block; padding-right: 40px; color: #385336; font-size: 11px; font-weight: 550; }
.mini-task small { display: block; margin-top: 4px; color: #93a089; font-size: 9px; }
.mini-task-status { position: absolute; top: 12px; right: 9px; padding: 2px 5px; border-radius: 4px; background: #edf4e5; color: #749557; font-size: 9px; }
.mini-progress { height: 4px; margin-top: 13px; overflow: hidden; border-radius: 4px; background: #e6eddd; }
.mini-progress span { display: block; width: 62%; height: 100%; border-radius: inherit; background: #91b76a; }
.preview-footer { margin-top: 7px; color: #94a186; font-size: 9px; text-align: right; }
.mini-prompt { padding: 10px 11px; border: 1px solid #e1e8d8; border-radius: 8px; background: #fff; color: #5e7553; font-size: 11px; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.mini-chips span { padding: 2px 6px; border: 1px solid #e1e8d7; border-radius: 4px; color: #80906f; font-size: 9px; }
.mini-action { width: max-content; max-width: 100%; margin-top: 10px; padding: 4px 11px; border-radius: 5px; background: #617e4c; color: #fff; font-size: 10px; }
.preview-companion { position: relative; padding-left: 74px; padding-top: 39px; background: linear-gradient(120deg, #f8faf1, #fffef9); }
.voice-orb { position: absolute; top: 48px; left: 17px; display: flex; align-items: center; justify-content: center; gap: 3px; width: 44px; height: 44px; border: 1px solid #dde8cd; border-radius: 50%; background: #e9f2dd; box-shadow: 0 0 0 6px #eef4e766; }
.voice-orb i { width: 3px; height: 10px; border-radius: 4px; background: #92b271; }
.voice-orb i:nth-child(2), .voice-orb i:nth-child(4) { height: 19px; }
.voice-orb i:nth-child(3) { height: 27px; background: #739e50; }
.chat-line { width: fit-content; max-width: 100%; padding: 8px 10px; border: 1px solid #e4e9db; border-radius: 9px 9px 9px 2px; background: #fff; color: #738164; font-size: 10px; }
.chat-line.is-reply { margin-top: 10px; margin-left: auto; border-color: #dee8cf; border-radius: 9px 9px 2px 9px; background: #e8f0dc; color: #617b4c; }
.product-preview.preview-companion-image { padding: 0; background: #f5f5eb; }
.companion-scene { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-features { display: grid; gap: 12px; margin: 23px 0 0; padding: 0; list-style: none; }
.product-features li { position: relative; padding-left: 17px; color: #607559; font-size: 14px; line-height: 1.6; }
.product-features li::before { position: absolute; top: .61em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #8bb75f; content: ""; }

/* Services keep the capability statement prominent and the process secondary. */
.mega-services { min-height: 550px; }
.mega-contact { display: flex; flex-direction: column; gap: 8px; max-width: 100%; margin-top: auto; padding-top: 44px; }
.mega-contact small { color: #8a9780; font-size: 12px; line-height: 1.7; }
.mega-contact strong { color: #355d3c; font-size: clamp(19px, 1.6vw, 26px); font-weight: 550; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.mega-contact span { margin-top: 6px; color: #698351; font-size: 12px; }
.mega-contact:hover span { color: #294f2d; }
.service-heading { padding-right: 20px; }
.service-heading h3 { margin-top: 14px; font-size: clamp(26px, 2.3vw, 36px); line-height: 1.5; letter-spacing: -.5px; }
.service-heading > p:last-child { max-width: 66ch; margin-top: 15px; color: #74836c; font-size: 14px; line-height: 1.9; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.7vw, 52px); margin-top: 34px; }
.service-card { min-width: 0; padding: 22px 20px; border: 1px solid #d8e4d1; border-radius: 16px; background: #fcfdf8b3; }
.service-number { color: #8ca678; font-size: 12px; letter-spacing: 1px; }
.service-card h4 { margin-top: 15px; font-size: 18px; line-height: 1.6; }
.service-card p { margin-top: 9px; color: #798770; font-size: 13px; line-height: 1.9; }
.service-process { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 17px; margin-top: 34px; padding: 18px 20px; border: 1px solid #dce7d6; border-radius: 16px; background: #ffffff4d; color: #7a8f68; font-size: 12px; line-height: 1.8; }
.service-process i { color: #a5b598; font-style: normal; }

/* Solution tabs and open icon/text rows mirror the introductory rail. */
.scene-tabs { display: grid; gap: 5px; width: 100%; margin-top: 28px; }
.scene-tab { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: #819174; font-size: 14px; text-align: left; cursor: pointer; transition: background .16s ease, color .16s ease; }
.scene-tab > :first-child { min-width: 0; }
.scene-tab > :last-child { flex: none; font-size: 17px; opacity: .45; }
.scene-tab[aria-selected="true"] { border-color: #d7e5cc; background: #e9f1df; color: #385f33; }
.scene-tab[aria-selected="true"] > :last-child { opacity: 1; }
.scene-tab:hover { background: #eff4e8; color: #385f33; }
.scene-tab:focus-visible { outline-offset: 1px; }
.scene-panel { border-radius: 16px; }
.scene-panel[hidden] { display: none !important; }
.scene-heading { padding-right: 18px; }
.scene-heading h3 { margin-top: 12px; font-size: clamp(25px, 2.1vw, 33px); line-height: 1.5; }
.scene-heading > p:last-child { max-width: 68ch; margin-top: 12px; color: #76866c; font-size: 14px; line-height: 1.9; }
.scene-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 24px; margin-top: 28px; }
.scene-card { display: flex; align-items: flex-start; gap: 17px; min-width: 0; min-height: 112px; padding: 20px 18px; border: 1px solid #e2e9da; border-radius: 16px; background: #fffffb73; }
.scene-icon { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #e4edd8; color: #709555; }
.scene-icon svg { width: 24px; height: 24px; }
.scene-card > div { min-width: 0; }
.scene-card h4 { font-size: 17px; line-height: 1.6; }
.scene-card p { margin-top: 6px; color: #7a8872; font-size: 13px; line-height: 1.85; }
.scene-match { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 15px; margin-top: 26px; color: #89967e; font-size: 12px; line-height: 1.8; }
.scene-match strong { color: #698354; font-size: 13px; font-weight: 500; }

@media (min-width: 761px) and (max-width: 1100px) {
  .page-section { padding-top: 64px; padding-bottom: 64px; }
  .mega-sidebar { padding: 40px 25px 30px; }
  .mega-sidebar h2 { font-size: 26px; }
  .mega-sidebar .mega-summary { font-size: 13px; }
  .mega-contact strong { font-size: 18px; letter-spacing: 0; }
  .mega-body { padding: 42px 26px 32px; }
  .product-grid { gap: 20px; }
  .product-card { padding: 20px; }
  .product-card h3 { font-size: 20px; }
  .product-card .product-description { min-height: 70px; font-size: 13px; }
  .product-preview { padding: 12px; }
  .product-features li { font-size: 13px; }
  .preview-companion { padding-left: 49px; padding-top: 30px; }
  .voice-orb { top: 46px; left: 9px; width: 30px; height: 30px; gap: 2px; box-shadow: 0 0 0 4px #eef4e766; }
  .voice-orb i { width: 2px; height: 7px; }
  .voice-orb i:nth-child(2), .voice-orb i:nth-child(4) { height: 12px; }
  .voice-orb i:nth-child(3) { height: 18px; }
  .chat-line { padding: 7px; }
  .service-grid { gap: 14px; }
  .service-card { padding: 18px 14px; }
  .service-card h4 { font-size: 17px; }
  .scene-tab { padding: 12px 11px; font-size: 13px; }
  .scene-grid { gap: 14px; }
  .scene-card { gap: 11px; padding: 16px 12px; }
  .scene-icon { width: 35px; height: 35px; border-radius: 10px; }
  .scene-icon svg { width: 21px; height: 21px; }
  .scene-card h4 { font-size: 15px; }
  .scene-card p { font-size: 12px; }
}

@media (max-width: 760px) {
  .page-section { padding: 48px 20px; scroll-margin-top: 78px; }
  .page-section > .section-heading-left { margin-bottom: 26px; }
  .mega-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mega-services > .mega-sidebar, .mega-solutions > .mega-sidebar { border-radius: 23px 23px 0 0; }
  .mega-services > .mega-body, .mega-solutions > .mega-body { border-radius: 0 0 23px 23px; }
  .mega-sidebar { padding: 26px 20px; border-right: 0; border-bottom: 1px solid #e0e7da; }
  .mega-sidebar h2 { margin-top: 12px; font-size: 26px; }
  .mega-sidebar .mega-summary { max-width: 42ch; margin-top: 12px; font-size: 13px; line-height: 1.8; }
  .mega-note { max-width: none; margin-top: 16px !important; padding-top: 0; font-size: 11px; }
  .mega-body { padding: 28px 20px 30px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .mega-products > .mega-body { padding: 0; }
  .product-card { padding: 22px; }
  .product-card .product-kicker { margin-bottom: 8px; }
  .product-card h3 { font-size: 22px; }
  .product-card .product-description { min-height: 0; margin-top: 10px; font-size: 14px; }
  .product-preview { height: 170px; margin-top: 19px; }
  .product-features { gap: 10px; margin-top: 20px; }
  .product-features li { font-size: 13px; }
  .preview-companion { padding-top: 32px; padding-left: 84px; }
  .voice-orb { left: 22px; }
  .chat-line { font-size: 11px; }
  .mega-contact { gap: 5px; margin-top: 21px; padding-top: 18px; border-top: 1px solid #e4e9dc; }
  .mega-contact strong { font-size: 23px; }
  .mega-contact span { margin-top: 3px; }
  .service-heading { padding-right: 0; }
  .service-heading h3 { margin-top: 12px; font-size: 26px; }
  .service-heading > p:last-child { font-size: 13px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 29px; }
  .service-card { padding: 19px 18px; }
  .service-card h4 { margin-top: 10px; }
  .service-card p { margin-top: 6px; }
  .service-process { gap: 8px 12px; margin-top: 26px; font-size: 11px; }
  .scene-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 21px; }
  .scene-tab { min-height: 45px; padding: 10px 12px; border-color: #e3e9dc; font-size: 13px; }
  .scene-heading { padding-right: 0; }
  .scene-heading h3 { font-size: 25px; }
  .scene-heading > p:last-child { font-size: 13px; }
  .scene-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 22px; }
  .scene-card { min-height: 0; gap: 15px; padding: 18px 16px; }
  .scene-card h4 { font-size: 16px; }
  .scene-card p { font-size: 13px; }
  .scene-match { gap: 5px 12px; margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-tab { transition: none; }
}
