/* Internal: dedicated ShiftOptimizer marketing page and preserved HTML demo shell. */
:root {
  --so-ink: #112634;
  --so-muted: #5c6d79;
  --so-navy: #123b53;
  --so-blue: #175c80;
  --so-teal: #0c7768;
  --so-gold: #f2bd44;
  --so-pale: #eef4f6;
  --so-soft: #f7fafb;
  --so-line: #d7e1e6;
  --so-white: #ffffff;
  --so-radius: 22px;
  --so-shadow: 0 24px 70px rgba(18, 59, 83, 0.13);
}

.shiftoptimizer-app-page,
.shiftoptimizer-app-page * { box-sizing: border-box; }
.shiftoptimizer-app-page {
  background: var(--so-white);
  color: var(--so-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.shiftoptimizer-app-page img { max-width: 100%; height: auto; }
.shiftoptimizer-app-page button,
.shiftoptimizer-app-page a { font: inherit; }

.so-product-nav {
  position: relative;
  z-index: 5;
  background: #071f34;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.so-product-nav__inner { padding-top: .85rem; }
.so-product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: .8rem;
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  font-weight: 750;
}
.so-product-breadcrumb a { color: #ffe7ad; text-decoration: none; }
.so-product-breadcrumb a:hover { text-decoration: underline; }
.so-product-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  max-width: 760px;
}
.so-product-tab {
  appearance: none;
  display: grid;
  gap: .15rem;
  padding: .9rem 1.05rem;
  border: 1px solid rgba(255,255,255,.17);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: rgba(255,255,255,.06);
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.so-product-tab span { font-size: 1rem; font-weight: 900; }
.so-product-tab small { color: rgba(255,255,255,.72); font-size: .74rem; line-height: 1.35; }
.so-product-tab:hover { background: rgba(255,255,255,.11); }
.so-product-tab.is-active { background: #fff; color: #102a43; border-color: #fff; }
.so-product-tab.is-active small { color: #526d82; }
.so-product-tab:focus-visible { outline: 3px solid #f3bd48; outline-offset: 3px; }

.so-product-panel[hidden],
.so-demo-panel[hidden] { display: none; }
.so-demo-panel { min-height: 70vh; padding: clamp(4rem, 7vw, 7rem) 0; background: #f4f8fb; }
.so-demo-shell {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.so-demo-eyebrow {
  margin: 0 0 .75rem;
  color: #17669d;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.so-demo-copy h2 {
  max-width: 17ch;
  margin: 0 0 1rem;
  color: #102a43;
  font-size: clamp(2.1rem, 4.8vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.so-demo-copy > p:not(.so-demo-eyebrow) { color: #526d82; font-size: 1.05rem; line-height: 1.75; }
.so-demo-safeguard {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(176,121,26,.35);
  border-left: 5px solid #c99b3b;
  border-radius: 12px;
  background: #fffaf0;
}
.so-demo-safeguard strong { display: block; margin-bottom: .3rem; color: #6f4d13; }
.so-demo-safeguard p { margin: 0; color: #594b34; line-height: 1.62; }
.so-demo-points { display: grid; gap: .65rem; margin: 1.35rem 0 1.8rem; padding-left: 1.2rem; color: #344e62; }
.so-demo-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.so-demo-preview { margin: 0; min-width: 0; }
.so-demo-browser { overflow: hidden; border: 1px solid #cbdbe6; border-radius: 18px; background: #fff; box-shadow: 0 28px 75px rgba(16,42,67,.18); }
.so-demo-browser__bar { display: flex; align-items: center; gap: .35rem; padding: .68rem .8rem; background: #eef4f8; border-bottom: 1px solid #d8e4ed; }
.so-demo-browser__bar span { width: .58rem; height: .58rem; border-radius: 50%; background: #9fb3c2; }
.so-demo-browser__bar span:first-child { background: #f28c83; }
.so-demo-browser__bar span:nth-child(2) { background: #f2bd44; }
.so-demo-browser__bar span:nth-child(3) { background: #70c0a3; }
.so-demo-browser__bar small { margin-left: auto; color: #637b8d; font-size: .68rem; font-weight: 800; }
.so-demo-browser img { display: block; width: 100%; height: auto; }
.so-demo-browser .screenshot-zoom-trigger { border-radius: 0; }
.so-demo-preview figcaption { margin-top: .75rem; color: #61798b; font-size: .76rem; text-align: center; }

.so-shot-button { border-radius: 0; }
.so-hero-visual .so-shot-button { border-radius: 0; }
.so-product-shot .so-shot-button { border-radius: 18px 18px 0 0; }
.so-product-shot-secondary .so-shot-button { border-radius: 12px 12px 0 0; }

  .so-page { overflow: hidden; background: var(--so-white); color: var(--so-ink); }
  .so-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
  .so-section { padding: 104px 0; }
  .so-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--so-teal);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .so-kicker span { width: 28px; height: 3px; border-radius: 999px; background: var(--so-gold); }
  .so-kicker-light { color: #d8e7ee; }
  .so-section-heading { max-width: 780px; margin-bottom: 42px; }
  .so-section-heading h2,
  .so-cta h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
  }
  .so-section-heading > p:last-child { margin: 18px 0 0; color: var(--so-muted); font-size: 1.08rem; }
  .so-section-heading-light h2 { color: var(--so-white); }

  .so-hero {
    position: relative;
    padding: 92px 0 72px;
    background:
      radial-gradient(circle at 8% 18%, rgba(242, 189, 68, 0.18), transparent 24rem),
      radial-gradient(circle at 88% 8%, rgba(41, 145, 156, 0.17), transparent 30rem),
      linear-gradient(145deg, #eff6f7 0%, #ffffff 45%, #edf4f6 100%);
  }
  .so-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    pointer-events: none;
    background-image: linear-gradient(rgba(18, 59, 83, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 59, 83, 0.045) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
  }
  .so-hero-grid { position: relative; display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 56px; align-items: center; }
  .so-hero-copy h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(2.7rem, 5.3vw, 5.25rem);
    line-height: 0.99;
    letter-spacing: -0.065em;
  }
  .so-lead { margin: 25px 0 0; max-width: 680px; color: var(--so-muted); font-size: clamp(1.05rem, 1.7vw, 1.24rem); }
  .so-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
  .so-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 820;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  }
  .so-button:hover { transform: translateY(-2px); }
  .so-button:focus-visible, .so-tab-list button:focus-visible, summary:focus-visible { outline: 3px solid var(--so-gold); outline-offset: 3px; }
  .so-button-primary { background: var(--so-navy); color: var(--so-white); box-shadow: 0 12px 26px rgba(18, 59, 83, 0.22); }
  .so-button-secondary { background: rgba(255,255,255,0.78); color: var(--so-navy); border-color: #bfcfd7; }
  .so-button-gold { background: var(--so-gold); color: #17212b; white-space: nowrap; }
  .so-proof-list { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; padding: 0; margin: 26px 0 0; color: #344b59; font-size: 0.9rem; font-weight: 720; }
  .so-proof-list li::before { content: "✓"; margin-right: 7px; color: var(--so-teal); font-weight: 950; }

  .so-hero-visual {
    margin: 0;
    border: 1px solid rgba(18, 59, 83, 0.17);
    border-radius: 22px;
    overflow: hidden;
    background: var(--so-white);
    box-shadow: var(--so-shadow);
    transform: rotate(0.45deg);
  }
  .so-window-bar { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; color: #59707d; background: #f7fafb; border-bottom: 1px solid var(--so-line); font-size: 0.76rem; }
  .so-window-bar span { width: 9px; height: 9px; border-radius: 50%; background: #d8e1e6; }
  .so-window-bar span:first-child { background: #f28c83; }
  .so-window-bar span:nth-child(2) { background: #f2bd44; }
  .so-window-bar span:nth-child(3) { background: #70c0a3; }
  .so-window-bar strong { margin-left: 7px; font-weight: 760; }
  .so-hero-visual img { display: block; width: 100%; }
  .so-hero-visual figcaption { padding: 10px 15px; color: var(--so-muted); background: var(--so-white); font-size: 0.78rem; }

  .so-value-strip { background: var(--so-navy); color: var(--so-white); }
  .so-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .so-value-grid article { padding: 30px 34px; border-left: 1px solid rgba(255,255,255,0.14); }
  .so-value-grid article:last-child { border-right: 1px solid rgba(255,255,255,0.14); }
  .so-value-grid strong { display: block; font-size: 1.05rem; }
  .so-value-grid span { display: block; margin-top: 5px; color: #c8dae3; font-size: 0.9rem; }

  .so-tour { background: var(--so-white); }
  .so-tabs { border: 1px solid var(--so-line); border-radius: 26px; overflow: hidden; box-shadow: 0 22px 64px rgba(18, 59, 83, 0.09); }
  .so-tab-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 9px;
    background: #eef4f6;
    border-bottom: 1px solid var(--so-line);
  }
  .so-tab-list button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 10px 12px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #526773;
    cursor: pointer;
    font-weight: 810;
  }
  .so-tab-list button span { color: #80929c; font-size: 0.7rem; }
  .so-tab-list button[aria-selected="true"] { background: var(--so-white); color: var(--so-navy); box-shadow: 0 6px 18px rgba(18,59,83,0.1); }
  .so-tab-list button[aria-selected="true"] span { color: var(--so-teal); }
  .so-tabs [role="tabpanel"] { padding: 44px; }
  .so-tabs [role="tabpanel"][hidden] { display: none; }
  .so-panel-grid { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 46px; align-items: center; }
  .so-panel-copy h3 { margin: 0; font-size: clamp(1.8rem, 3.3vw, 2.75rem); line-height: 1.12; letter-spacing: -0.04em; }
  .so-panel-copy > p:not(.so-eyebrow) { color: var(--so-muted); font-size: 1rem; }
  .so-eyebrow { margin: 0 0 10px; color: var(--so-teal); font-size: 0.74rem; font-weight: 870; letter-spacing: 0.09em; text-transform: uppercase; }
  .so-check-list { display: grid; gap: 9px; padding: 0; margin: 24px 0 0; list-style: none; }
  .so-check-list li { position: relative; padding-left: 28px; }
  .so-check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--so-teal); font-weight: 950; }
  .so-step-list { display: grid; gap: 13px; padding: 0; margin: 24px 0 0; list-style: none; counter-reset: workflow; }
  .so-step-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; padding: 13px 15px; border-radius: 13px; background: var(--so-soft); border: 1px solid #e4ebef; }
  .so-step-list strong { color: var(--so-navy); }
  .so-step-list span { grid-column: 1 / -1; color: var(--so-muted); font-size: 0.9rem; }
  .so-product-shot { margin: 0; overflow: hidden; border: 1px solid var(--so-line); border-radius: 18px; background: var(--so-white); box-shadow: 0 18px 45px rgba(18,59,83,0.13); }
  .so-product-shot img { display: block; width: 100%; }
  .so-product-shot figcaption { padding: 11px 14px; color: var(--so-muted); background: #fbfcfd; border-top: 1px solid var(--so-line); font-size: 0.8rem; }
  .so-shot-stack { position: relative; padding: 0 28px 54px 0; }
  .so-product-shot-secondary { position: absolute; z-index: 2; width: 48%; right: 0; bottom: 0; border: 5px solid var(--so-white); }
  .so-rule-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
  .so-rule-columns article { padding: 17px; border-radius: 15px; background: var(--so-soft); border: 1px solid #e3eaee; }
  .so-rule-columns h4, .so-boundaries h4 { margin: 0 0 9px; color: var(--so-navy); }
  .so-rule-columns ul { padding-left: 18px; margin: 0; color: var(--so-muted); font-size: 0.86rem; }
  .so-boundaries { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
  .so-boundaries article { padding: 16px; border-radius: 15px; border: 1px solid var(--so-line); background: var(--so-soft); }
  .so-boundaries p { margin: 0; color: var(--so-muted); font-size: 0.88rem; }
  .so-tech-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  .so-tech-facts span { padding: 11px 12px; border-radius: 11px; color: var(--so-muted); background: #eef4f6; font-size: 0.82rem; }
  .so-tech-facts strong { display: block; color: var(--so-navy); }

  .so-workflow { background: var(--so-navy); color: var(--so-white); }
  .so-workflow-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding: 0; margin: 0; list-style: none; }
  .so-workflow-grid li { position: relative; min-height: 210px; padding: 24px 20px; border: 1px solid rgba(255,255,255,0.15); border-radius: 18px; background: rgba(255,255,255,0.055); }
  .so-workflow-grid li:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; z-index: 2; color: var(--so-gold); font-size: 1.15rem; }
  .so-workflow-grid span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #162431; background: var(--so-gold); font-weight: 900; }
  .so-workflow-grid strong { display: block; margin-top: 22px; font-size: 1.03rem; }
  .so-workflow-grid p { margin: 8px 0 0; color: #c9dbe4; font-size: 0.88rem; }

  .so-outcomes { background: #f5f9fa; }
  .so-outcome-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .so-outcome-grid article { padding: 26px; border: 1px solid var(--so-line); border-radius: 20px; background: var(--so-white); }
  .so-outcome-grid article > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--so-navy); background: #dfeef1; font-size: 1.25rem; font-weight: 900; }
  .so-outcome-grid h3 { margin: 20px 0 7px; font-size: 1.08rem; }
  .so-outcome-grid p { margin: 0; color: var(--so-muted); font-size: 0.91rem; }

  .so-faq-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 74px; align-items: start; }
  .so-faq .so-section-heading { position: sticky; top: 30px; margin: 0; }
  .so-accordion { border-top: 1px solid var(--so-line); }
  .so-accordion details { border-bottom: 1px solid var(--so-line); }
  .so-accordion summary { position: relative; padding: 23px 44px 23px 0; cursor: pointer; color: var(--so-navy); font-weight: 830; list-style: none; }
  .so-accordion summary::-webkit-details-marker { display: none; }
  .so-accordion summary::after { content: "+"; position: absolute; right: 5px; top: 18px; font-size: 1.5rem; font-weight: 450; }
  .so-accordion details[open] summary::after { content: "−"; }
  .so-accordion details p { margin: -6px 0 22px; color: var(--so-muted); }

  .so-cta { padding: 72px 0; color: var(--so-white); background: linear-gradient(115deg, #102f43, #16516d 62%, #0c7066); }
  .so-cta-inner { display: flex; gap: 36px; align-items: center; justify-content: space-between; }
  .so-cta h2 { max-width: 850px; }
  .so-cta p:not(.so-kicker) { max-width: 760px; margin: 18px 0 0; color: #d0e0e8; }

  @media (max-width: 1050px) {
    .so-hero-grid, .so-panel-grid { grid-template-columns: 1fr; }
    .so-hero { padding-top: 70px; }
    .so-hero-copy { max-width: 800px; }
    .so-hero-visual { transform: none; }
    .so-value-grid { grid-template-columns: 1fr; }
    .so-value-grid article { border-right: 1px solid rgba(255,255,255,0.14); border-bottom: 1px solid rgba(255,255,255,0.14); }
    .so-tab-list { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; }
    .so-tabs [role="tabpanel"] { padding: 34px; }
    .so-workflow-grid { grid-template-columns: repeat(3, 1fr); }
    .so-workflow-grid li:not(:last-child)::after { display: none; }
    .so-outcome-grid { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 760px) {
    .so-shell { width: min(100% - 28px, 1180px); }
    .so-section { padding: 74px 0; }
    .so-hero { padding: 58px 0 50px; }
    .so-hero-grid { gap: 38px; }
    .so-hero-copy h1 { font-size: clamp(2.45rem, 13vw, 4.2rem); }
    .so-hero-actions .so-button { width: 100%; }
    .so-proof-list { display: grid; }
    .so-window-bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .so-value-grid article { padding: 24px 22px; }
    .so-section-heading { margin-bottom: 30px; }
    .so-tab-list { display: flex; padding: 7px; }
    .so-tab-list button { min-width: max-content !important; flex: 0 0 auto; padding-inline: 14px; }
    .so-tabs [role="tabpanel"] { padding: 25px 18px 30px; }
    .so-panel-grid { gap: 28px; }
    .so-shot-stack { padding: 0; }
    .so-product-shot-secondary { position: static; width: 100%; margin-top: 16px; border-width: 1px; }
    .so-rule-columns, .so-boundaries, .so-tech-facts { grid-template-columns: 1fr; }
    .so-workflow-grid { grid-template-columns: 1fr; }
    .so-workflow-grid li { min-height: auto; }
    .so-outcome-grid { grid-template-columns: 1fr; }
    .so-faq-layout { grid-template-columns: 1fr; gap: 26px; }
    .so-faq .so-section-heading { position: static; }
    .so-cta-inner { display: grid; }
    .so-button-gold { width: 100%; }
  }

  @media print {
    .so-shell { width: 100%; max-width: none; padding-inline: 42px; }
    .so-hero-copy h1 { font-size: 3.25rem; line-height: 1.04; letter-spacing: -0.04em; }
    .so-section-heading h2, .so-cta h2 { font-size: 2.5rem; }
    .so-button { box-shadow: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .so-button { transition: none; }
  }


@media (max-width: 900px) {
  .so-demo-shell { grid-template-columns: 1fr; }
  .so-demo-copy h2 { max-width: 20ch; }
}
@media (max-width: 620px) {
  .so-product-tabs { grid-template-columns: 1fr 1fr; }
  .so-product-tab { padding: .75rem; }
  .so-product-tab small { display: none; }
  .so-demo-actions { display: grid; }
  .so-demo-actions .btn { width: 100%; text-align: center; }
  .so-demo-browser__bar small { display: none; }
}

/* Internal accessibility closure: explicitly protect text on dark gradients
   and the active light tab from legacy cascade changes. */
.so-cta h2,
.so-cta .so-kicker,
.so-workflow h2,
.so-workflow strong,
.so-value-strip strong {
  color: #ffffff !important;
}
.so-cta p:not(.so-kicker),
.so-workflow p,
.so-value-strip span {
  color: #d7e4ed !important;
}
.so-product-nav .so-product-tab.is-active,
.so-product-nav .so-product-tab.is-active span {
  color: #102a43 !important;
  background: #ffffff !important;
}
.so-product-nav .so-product-tab.is-active small {
  color: #526d82 !important;
}
