/* v6.8 original brand system: midnight indigo, coral action color and a product-to-output narrative. */
:root {
  --brand-ink: #18213b;
  --brand-navy: #141e3d;
  --brand-navy-2: #202d55;
  --brand-coral: #f06f52;
  --brand-coral-soft: #fff0eb;
  --brand-cyan: #40bdd4;
  --brand-paper: #f6f7fb;
  --brand-white: #ffffff;
  --brand-line: #dfe3ed;
  --brand-muted: #69738d;
  --brand-shadow: 0 28px 80px rgba(28, 40, 76, .13);
}

/* Public navigation uses the brand system without borrowing the reference sites' green editorial look. */
.layer-public,
.layer-public .public-shell { max-width: 100%; overflow-x: clip; color: var(--brand-ink); background: var(--brand-paper); }
.layer-public .public-nav {
  min-height: 76px;
  box-sizing: border-box;
  grid-template-columns: minmax(190px,1fr) auto minmax(220px,1fr);
  max-width: 100vw;
  padding-inline: clamp(18px,3vw,56px);
  border-bottom-color: rgba(31, 43, 81, .09);
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 10px 34px rgba(30, 40, 72, .045);
}
.layer-public .public-site-brand { min-width: 0; color: var(--brand-ink); }
.layer-public .public-site-brand > span:last-child { min-width: 0; }
.layer-public .public-site-brand-mark {
  border-radius: 12px;
  background: var(--brand-navy);
  box-shadow: 0 8px 22px rgba(20, 30, 61, .2);
}
.layer-public .public-site-brand small { color: #8790a4; }
.layer-public .public-nav-links button { color: #66708a; }
.layer-public .public-nav-links button:hover,
.layer-public .public-nav-links button.active { color: var(--brand-navy); background: #eef1f8; }
.layer-public .public-theme-toggle,
.layer-public .public-login-link { border-color: var(--brand-line); color: var(--brand-navy); }
.layer-public .public-start-button {
  border-radius: 10px;
  color: #fff;
  background: var(--brand-navy);
  box-shadow: 0 13px 28px rgba(20, 30, 61, .19);
}
.layer-public .public-start-button:hover { background: #222f58; }

/* Landing hero: centered proposition followed by a horizontal product-production stage. */
.brand-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 0;
  background:
    radial-gradient(circle at 14% 20%, rgba(64, 189, 212, .09), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(240, 111, 82, .09), transparent 25%),
    linear-gradient(180deg, #fbfcff 0%, #f3f5fa 100%);
}
.brand-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(31, 45, 86, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 45, 86, .028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 72%);
}
.brand-hero-intro { position: relative; z-index: 2; width: min(960px, calc(100% - 48px)); margin: 0 auto; text-align: center; }
.brand-product-label { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; padding: 0 12px; border: 1px solid #dce1ec; border-radius: 999px; color: #5d6985; background: rgba(255,255,255,.76); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.brand-product-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-coral); box-shadow: 0 0 0 5px rgba(240,111,82,.1); }
.brand-product-label b { padding-left: 9px; border-left: 1px solid #dce1ec; color: var(--brand-coral); font-size: 9px; letter-spacing: .08em; }
.brand-hero-intro h1 { margin: 24px 0 0; color: var(--brand-ink); font-size: clamp(44px, 5.4vw, 78px); font-weight: 850; line-height: 1.04; letter-spacing: -.065em; }
.brand-hero-intro h1 em { color: var(--brand-coral); font-style: normal; }
.brand-hero-intro > p { max-width: 720px; margin: 22px auto 0; color: var(--brand-muted); font-size: 16px; line-height: 1.9; }
.brand-hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 27px; }
.brand-primary-action,
.brand-secondary-action { min-height: 50px; padding: 0 22px; border-radius: 10px; font-size: 13px; font-weight: 780; }
.brand-primary-action { border: 1px solid var(--brand-navy); color: #fff; background: var(--brand-navy); box-shadow: 0 15px 34px rgba(20,30,61,.2); }
.brand-primary-action span { margin-left: 12px; color: #ffb29f; }
.brand-primary-action:hover { background: #222f58; }
.brand-secondary-action { border: 1px solid var(--brand-line); color: var(--brand-navy); background: rgba(255,255,255,.82); }

.brand-pipeline { position: relative; z-index: 2; width: min(1320px, calc(100% - 80px)); height: clamp(360px, 38vw, 560px); margin: 58px auto 0; overflow: hidden; border: 8px solid rgba(255,255,255,.93); border-radius: 30px; background: var(--brand-navy); box-shadow: 0 38px 110px rgba(20,30,61,.2); }
.brand-pipeline::after { position: absolute; inset: 0; content: ""; pointer-events: none; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(10,18,42,.12); }
.brand-pipeline img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.brand-pipeline-label { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid rgba(255,255,255,.62); border-radius: 9px; color: #233052; background: rgba(255,255,255,.9); box-shadow: 0 12px 30px rgba(9,18,43,.18); backdrop-filter: blur(10px); font-size: 11px; font-weight: 780; }
.brand-pipeline-label b { color: var(--brand-coral); font-size: 9px; }
.brand-pipeline-label i { width: 7px; height: 7px; border-radius: 50%; background: #46c08a; box-shadow: 0 0 0 4px rgba(70,192,138,.14); }
.label-source { top: 18px; left: 18px; }
.label-lock { bottom: 18px; left: 31%; }
.label-output { top: 18px; right: 18px; }

.brand-hero-rail { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3,1fr); width: min(1160px, calc(100% - 80px)); margin: -27px auto 0; overflow: hidden; border: 1px solid var(--brand-line); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 18px 50px rgba(29,41,78,.1); }
.brand-hero-rail article { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 22px 24px; border-right: 1px solid #e8ebf2; }
.brand-hero-rail article:last-child { border-right: 0; }
.brand-hero-rail article > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; color: #fff; background: var(--brand-navy); font-size: 10px; font-weight: 800; }
.brand-hero-rail strong,
.brand-hero-rail small { display: block; }
.brand-hero-rail strong { color: var(--brand-ink); font-size: 13px; }
.brand-hero-rail small { margin-top: 4px; color: var(--brand-muted); font-size: 10px; line-height: 1.5; }

/* Interactive case gallery: one real product becomes a complete ecommerce image set. */
.brand-case-section { position: relative; width: min(1320px,calc(100% - 80px)); margin: 0 auto; padding: 88px 0 82px; }
.brand-case-section::before { position: absolute; inset: 45px -80px 25px; z-index: 0; content: ""; border-radius: 42px; background: linear-gradient(145deg,rgba(255,255,255,.78),rgba(239,243,250,.92)); box-shadow: inset 0 0 0 1px rgba(31,45,86,.055); }
.brand-case-ambient { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; filter: blur(2px); animation: brand-case-float 8s ease-in-out infinite; }
.brand-case-ambient.ambient-one { top: 86px; right: 2%; width: 190px; height: 190px; border: 34px solid rgba(64,189,212,.08); }
.brand-case-ambient.ambient-two { bottom: 54px; left: -3%; width: 120px; height: 120px; background: radial-gradient(circle,rgba(240,111,82,.12),transparent 68%); animation-delay: -3.6s; }
.brand-case-heading { position: relative; z-index: 2; display: flex; align-items: end; justify-content: space-between; gap: 54px; }
.brand-case-heading > div { max-width: 660px; }
.brand-case-heading p { margin: 0; color: var(--brand-coral); font-size: 10px; font-weight: 850; letter-spacing: .2em; }
.brand-case-heading h2 { max-width: 660px; margin: 13px 0 0; color: var(--brand-ink); font-size: clamp(34px,3.2vw,46px); font-weight: 830; line-height: 1.14; letter-spacing: -.045em; }
.brand-case-heading > span { max-width: 400px; padding-bottom: 4px; color: var(--brand-muted); font-size: 14px; line-height: 1.72; }
.brand-case-workbench { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1fr) minmax(410px,440px); gap: 18px; margin-top: 30px; padding: 14px; border: 1px solid rgba(31,45,86,.1); border-radius: 28px; background: rgba(255,255,255,.88); box-shadow: 0 32px 90px rgba(20,30,61,.13); backdrop-filter: blur(18px); }
.brand-case-compare { --case-compare: 56%; position: relative; min-height: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 19px; background: #e8ebf2; isolation: isolate; }
.brand-case-image { position: absolute; inset: 0; overflow: hidden; }
.brand-case-image img { position: absolute; display: block; width: 200%; height: auto; max-width: none; }
.brand-case-image.case-before img { top: -16.6667%; left: 0; }
.brand-case-image.case-after { clip-path: inset(0 0 0 var(--case-compare)); transition: clip-path .18s ease-out, filter .35s ease; }
.brand-case-compare.mode-white .case-after img { top: -16.6667%; left: -100%; }
.brand-case-compare.mode-scene .case-after img { top: -150%; left: 0; }
.brand-case-compare.mode-campaign .case-after img { top: -150%; left: -100%; }
.brand-case-compare::after { position: absolute; inset: 0; z-index: 2; content: ""; pointer-events: none; background: linear-gradient(180deg,rgba(8,15,35,.05),transparent 24%,transparent 72%,rgba(8,15,35,.16)); }
.brand-case-stage-label { position: absolute; z-index: 4; top: 17px; display: inline-flex; min-height: 34px; align-items: center; padding: 0 12px; border: 1px solid rgba(255,255,255,.58); border-radius: 9px; color: #fff; background: rgba(20,30,61,.72); box-shadow: 0 10px 24px rgba(8,15,35,.16); backdrop-filter: blur(9px); font-size: 11px; font-weight: 760; }
.brand-case-stage-label.label-before { left: 17px; }
.brand-case-stage-label.label-after { right: 17px; background: rgba(240,111,82,.86); }
.brand-case-divider { position: absolute; z-index: 5; top: 0; bottom: 0; left: var(--case-compare); width: 2px; pointer-events: none; background: rgba(255,255,255,.88); box-shadow: 0 0 0 1px rgba(20,30,61,.08),0 0 25px rgba(20,30,61,.22); transform: translateX(-1px); }
.brand-case-divider i { position: absolute; top: 50%; left: 50%; display: grid; width: 44px; height: 44px; place-items: center; border: 4px solid rgba(255,255,255,.84); border-radius: 50%; color: #fff; background: var(--brand-navy); box-shadow: 0 10px 30px rgba(8,15,35,.28); font-size: 15px; font-style: normal; transform: translate(-50%,-50%); }
.brand-case-range { position: absolute; z-index: 7; inset: 0; width: 100%; height: 100%; margin: 0; cursor: ew-resize; opacity: 0; }
.brand-case-preserve { position: absolute; z-index: 6; right: 17px; bottom: 17px; display: flex; max-width: min(370px,calc(100% - 34px)); align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 11px; color: #fff; background: rgba(20,30,61,.76); box-shadow: 0 13px 35px rgba(8,15,35,.2); backdrop-filter: blur(12px); }
.brand-case-preserve > i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #69dbb0; box-shadow: 0 0 0 5px rgba(105,219,176,.13); }
.brand-case-preserve small,
.brand-case-preserve strong { display: block; }
.brand-case-preserve small { color: #92e8d1; font-size: 9px; letter-spacing: .08em; }
.brand-case-preserve strong { margin-top: 3px; font-size: 11px; line-height: 1.45; }
.brand-case-panel { display: flex; min-width: 0; flex-direction: column; padding: 22px 20px 18px; }
.brand-case-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand-case-panel-head > span { color: #8a94aa; font-size: 11px; font-weight: 850; letter-spacing: .15em; }
.brand-case-panel-head button { border: 0; color: var(--brand-coral); background: none; font-size: 12px; font-weight: 780; }
.brand-case-panel-head button b { margin-left: 4px; }
.brand-case-panel > p { margin: 24px 0 0; color: var(--brand-coral); font-size: 11px; font-weight: 820; letter-spacing: .11em; }
.brand-case-panel > h3 { margin: 8px 0 0; color: var(--brand-ink); font-size: 29px; font-weight: 810; line-height: 1.22; letter-spacing: -.035em; }
.brand-case-mode-tabs { display: grid; gap: 9px; margin-top: 22px; }
.brand-case-mode-tabs button { display: grid; min-height: 76px; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #e0e4ed; border-radius: 13px; text-align: left; background: #f8f9fc; transition: transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease; }
.brand-case-mode-tabs button:hover { transform: translateX(3px); border-color: #cfd6e5; }
.brand-case-mode-tabs button.active { border-color: rgba(240,111,82,.42); background: var(--brand-coral-soft); box-shadow: 0 10px 22px rgba(240,111,82,.1); }
.brand-case-mode-tabs span { color: var(--brand-ink); font-size: 14px; font-weight: 790; }
.brand-case-mode-tabs small { color: var(--brand-muted); font-size: 11px; line-height: 1.5; }
.brand-case-mode-tabs button.active span { color: #bd4f38; }
.brand-case-idea { margin-top: 16px; padding: 15px; border: 1px solid #e2e5ed; border-radius: 13px; background: #fff; }
.brand-case-idea small { color: #8f99ae; font-size: 9px; font-weight: 760; letter-spacing: .09em; }
.brand-case-idea p { margin: 7px 0 0; color: #46516d; font-size: 12px; line-height: 1.65; }
.brand-case-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; color: #717b92; font-size: 10px; }
.brand-case-panel-foot span { display: flex; align-items: center; gap: 7px; }
.brand-case-panel-foot i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-cyan); box-shadow: 0 0 0 4px rgba(64,189,212,.11); }
.brand-case-panel-foot b { color: var(--brand-navy); }
.brand-case-picker { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 15px; }
.brand-case-picker > button { display: grid; min-width: 0; grid-template-columns: 64px minmax(0,1fr) 20px; align-items: center; gap: 12px; padding: 9px; border: 1px solid #dfe3ec; border-radius: 15px; text-align: left; background: rgba(255,255,255,.78); box-shadow: 0 10px 26px rgba(27,39,75,.045); transition: transform .24s ease,border-color .24s ease,box-shadow .24s ease; }
.brand-case-picker > button:hover { transform: translateY(-4px) rotate(-.35deg); border-color: #ccd3e2; box-shadow: 0 18px 36px rgba(27,39,75,.09); }
.brand-case-picker > button.active { border-color: rgba(240,111,82,.52); background: #fff; box-shadow: 0 15px 34px rgba(240,111,82,.12); }
.brand-case-thumb { display: block; width: 64px; height: 64px; overflow: hidden; border-radius: 10px; background: #eef1f6; }
.brand-case-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.brand-case-picker > button:hover img { transform: scale(1.06); }
.brand-case-picker-copy { min-width: 0; }
.brand-case-picker-copy small,
.brand-case-picker-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-case-picker-copy small { color: #929aaf; font-size: 9px; }
.brand-case-picker-copy strong { margin-top: 5px; color: var(--brand-ink); font-size: 11px; }
.brand-case-picker > button > i { color: #a2aabd; font-size: 13px; font-style: normal; }
.brand-case-picker > button.active > i { color: var(--brand-coral); }
.brand-case-lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 28px; background: rgba(8,14,32,.82); backdrop-filter: blur(14px); animation: brand-case-fade .22s ease both; }
.brand-case-lightbox-card { position: relative; display: grid; width: min(1080px,100%); max-height: calc(100vh - 56px); grid-template-columns: minmax(240px,.38fr) minmax(0,.62fr); gap: 22px; overflow: auto; padding: 22px; border: 1px solid rgba(255,255,255,.15); border-radius: 24px; background: #fff; box-shadow: 0 40px 120px rgba(0,0,0,.35); }
.brand-case-lightbox-card > img { display: block; width: 100%; border-radius: 15px; }
.brand-case-lightbox-copy { align-self: center; padding: 24px; }
.brand-case-lightbox-copy p { margin: 0; color: var(--brand-coral); font-size: 10px; font-weight: 830; letter-spacing: .14em; }
.brand-case-lightbox-copy h3 { margin: 12px 0 0; color: var(--brand-ink); font-size: 34px; line-height: 1.18; letter-spacing: -.04em; }
.brand-case-lightbox-copy span { display: block; margin-top: 18px; color: var(--brand-muted); font-size: 12px; line-height: 1.8; }
.brand-case-lightbox-close { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #e0e4ed; border-radius: 50%; color: var(--brand-navy); background: rgba(255,255,255,.92); font-size: 22px; box-shadow: 0 7px 20px rgba(20,30,61,.12); }
@keyframes brand-case-float { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-14px,0); } }
@keyframes brand-case-fade { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }

.brand-flow-section,
.brand-output-section { width: min(1320px, calc(100% - 80px)); margin: 0 auto; padding: 108px 0; }
.brand-flow-section { position: relative; padding-bottom: 86px; }
.brand-flow-section::after { position: absolute; right: 5%; bottom: 22px; width: 210px; height: 70px; content: ""; border-radius: 999px; background: radial-gradient(ellipse,rgba(64,189,212,.1),transparent 68%); filter: blur(8px); }
.brand-section-heading { max-width: 760px; }
.brand-section-heading > p,
.brand-control-copy > p,
.brand-final-cta p { margin: 0; color: var(--brand-coral); font-size: 10px; font-weight: 850; letter-spacing: .2em; }
.brand-section-heading h2,
.brand-control-copy h2,
.brand-final-cta h2 { margin: 13px 0 0; color: var(--brand-ink); font-size: clamp(32px, 3.5vw, 50px); font-weight: 820; line-height: 1.15; letter-spacing: -.045em; }
.brand-section-heading > span,
.brand-control-copy > span { display: block; margin-top: 15px; color: var(--brand-muted); font-size: 14px; line-height: 1.8; }
.brand-flow-grid { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 42px; padding-bottom: 22px; }
.brand-flow-grid::before { position: absolute; top: 29px; right: 11%; left: 11%; height: 2px; content: ""; background: linear-gradient(90deg,rgba(240,111,82,.12),rgba(64,189,212,.52),rgba(240,111,82,.22)); }
.brand-flow-grid article { position: relative; min-height: 230px; overflow: hidden; padding: 27px 28px 28px; border: 1px solid #dde2ed; border-radius: 22px; background: linear-gradient(155deg,#fff 0%,#fbfcff 100%); box-shadow: 0 18px 46px rgba(27,39,75,.065); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.brand-flow-grid article:nth-child(2) { transform: translateY(18px); background: linear-gradient(155deg,#f4fbfd 0%,#fff 100%); }
.brand-flow-grid article:nth-child(3) { background: linear-gradient(155deg,#fff8f5 0%,#fff 100%); }
.brand-flow-grid article:nth-child(4) { transform: translateY(18px); background: linear-gradient(155deg,#f7f8fd 0%,#fff 100%); }
.brand-flow-grid article::after { position: absolute; right: -46px; bottom: -58px; width: 130px; height: 130px; content: ""; border: 24px solid rgba(64,189,212,.06); border-radius: 50%; }
.brand-flow-grid article:nth-child(2)::after,
.brand-flow-grid article:nth-child(3)::after { border-color: rgba(240,111,82,.07); }
.brand-flow-grid article:hover { z-index: 2; border-color: #cdd5e5; box-shadow: 0 28px 60px rgba(27,39,75,.11); transform: translateY(-5px); }
.brand-flow-grid article:nth-child(2):hover,
.brand-flow-grid article:nth-child(4):hover { transform: translateY(11px); }
.brand-flow-grid article > b { position: relative; z-index: 2; display: grid; width: 48px; height: 48px; place-items: center; border: 6px solid var(--brand-paper); border-radius: 15px; color: #fff; background: var(--brand-navy); box-shadow: 0 9px 20px rgba(20,30,61,.17); font-size: 10px; }
.brand-flow-grid article:nth-child(2) > b,
.brand-flow-grid article:nth-child(4) > b { background: var(--brand-coral); box-shadow: 0 9px 20px rgba(240,111,82,.2); }
.brand-flow-grid article > i { display: grid; width: 42px; height: 42px; margin-top: 28px; place-items: center; border-radius: 13px; color: var(--brand-coral); background: var(--brand-coral-soft); font-family: inherit; font-size: 20px; font-style: normal; font-weight: 800; }
.brand-flow-grid article:nth-child(2) > i,
.brand-flow-grid article:nth-child(4) > i { color: #188ca0; background: #eaf9fc; }
.brand-flow-grid h3 { margin: 17px 0 0; color: var(--brand-ink); font-size: 17px; font-weight: 780; }
.brand-flow-grid p { margin: 10px 0 0; color: var(--brand-muted); font-size: 12px; line-height: 1.75; }

/* Login/register: remove the stale botanical-green theme and use the current brand identity. */
.layer-public .auth-shell { width: min(1160px,calc(100% - 40px)); max-width: 1160px !important; padding-top: 62px !important; }
.layer-public .auth-context-panel {
  position: relative;
  min-height: 600px !important;
  overflow: hidden;
  border-radius: 24px 0 0 24px !important;
  background:
    linear-gradient(138deg,rgba(20,30,61,.97),rgba(31,45,84,.91)),
    url("../images/commerce-visual-pipeline-v1.png") 39% center/cover !important;
  box-shadow: 0 32px 90px rgba(20,30,61,.16) !important;
}
.layer-public .auth-context-panel::before { position: absolute; top: -90px; right: -90px; width: 280px; height: 280px; content: ""; border: 54px solid rgba(64,189,212,.08); border-radius: 50%; }
.layer-public .auth-context-panel::after { position: absolute; right: 32px; bottom: 24px; width: 150px; height: 7px; content: ""; border-radius: 99px; background: linear-gradient(90deg,var(--brand-cyan),var(--brand-coral)); opacity: .78; }
.layer-public .auth-context-panel > * { position: relative; z-index: 2; }
.layer-public .auth-context-panel .auth-eyebrow { color: #7ed8e7 !important; }
.layer-public .auth-context-panel h2 { color: #fff; }
.layer-public .auth-context-panel p { color: rgba(235,239,249,.73) !important; }
.layer-public .auth-context-panel article { border-color: rgba(255,255,255,.12); }
.layer-public .auth-context-panel article > span { border-color: rgba(64,189,212,.46); color: #8de0ed; background: rgba(64,189,212,.08); }
.layer-public .auth-security-note { color: rgba(223,229,243,.64) !important; }
.layer-public .auth-form-panel { min-height: 600px; border-color: #e0e4ed !important; border-radius: 0 24px 24px 0 !important; background: linear-gradient(180deg,#fff 0%,#fcfcfe 100%) !important; box-shadow: 0 32px 90px rgba(20,30,61,.11) !important; }
.layer-public .auth-form-panel > .grid:first-child { border: 1px solid #dde2ec !important; border-radius: 12px !important; background: #f0f2f7 !important; }
.layer-public .auth-form-panel > .grid:first-child button { border-radius: 9px !important; color: #67718a !important; }
.layer-public .auth-form-panel > .grid:first-child button.bg-ai-blue { color: #fff !important; background: var(--brand-navy) !important; box-shadow: 0 7px 18px rgba(20,30,61,.16) !important; }
.layer-public .auth-form-panel input { border-color: #dce1eb !important; background: #f8f9fc !important; }
.layer-public .auth-form-panel input:focus { border-color: rgba(240,111,82,.72) !important; box-shadow: 0 0 0 4px rgba(240,111,82,.09); }
.layer-public .auth-form-panel .aurora-btn { border-color: var(--brand-coral) !important; background: var(--brand-coral) !important; box-shadow: 0 14px 32px rgba(240,111,82,.24) !important; }
.layer-public .auth-form-panel .aurora-btn:hover { background: #df6045 !important; }

.brand-control-section { display: grid; grid-template-columns: minmax(360px,.78fr) minmax(600px,1.22fr); align-items: center; gap: clamp(52px,7vw,110px); padding: 104px max(40px,calc((100vw - 1320px)/2)); color: #fff; background: var(--brand-navy); }
.brand-control-copy h2 { color: #fff; }
.brand-control-copy > span { color: #aeb7ce; }
.brand-control-copy ul { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.brand-control-copy li { display: flex; align-items: center; gap: 11px; color: #e8ebf4; font-size: 12px; }
.brand-control-copy li i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-coral); box-shadow: 0 0 0 5px rgba(240,111,82,.11); }
.brand-control-board { padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; color: var(--brand-ink); background: #f8f9fc; box-shadow: 0 34px 80px rgba(4,10,27,.28); }
.brand-board-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 20px; border-bottom: 1px solid var(--brand-line); }
.brand-board-head span small,
.brand-board-head span strong { display: block; }
.brand-board-head small { color: #7a849b; font-size: 9px; letter-spacing: .1em; }
.brand-board-head strong { margin-top: 5px; color: var(--brand-ink); font-size: 15px; }
.brand-board-head > b { padding: 8px 11px; border-radius: 8px; color: #fff; background: var(--brand-coral); font-size: 10px; }
.brand-board-source { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 74px; margin-top: 18px; overflow: hidden; padding: 0 18px; border: 1px solid #dce1ec; border-radius: 13px; background: #fff; }
.brand-board-source span { color: #7a849b; font-size: 10px; }
.brand-board-source strong { color: #2f3d60; font-size: 12px; }
.brand-board-source i { position: absolute; right: 0; bottom: 0; width: 96px; height: 5px; background: linear-gradient(90deg,var(--brand-cyan),var(--brand-coral)); }
.brand-board-options { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin-top: 14px; }
.brand-board-options span { display: grid; min-height: 58px; place-items: center; border: 1px solid #dce1ec; border-radius: 11px; color: #6a758f; background: #fff; font-size: 10px; font-weight: 700; }
.brand-board-options span.active { border-color: #ffd0c5; color: #bc4d37; background: var(--brand-coral-soft); }
.brand-board-idea { margin-top: 14px; padding: 16px; border: 1px solid #dce1ec; border-radius: 12px; background: #fff; }
.brand-board-idea small { color: #7a849b; font-size: 9px; }
.brand-board-idea p { margin: 7px 0 0; color: #394663; font-size: 11px; line-height: 1.7; }
.brand-board-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; color: #66718b; font-size: 10px; }
.brand-board-footer span i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #49b77e; }
.brand-board-footer strong { color: var(--brand-coral); }

.brand-output-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 44px; }
.brand-output-grid article { position: relative; min-height: 230px; overflow: hidden; padding: 30px; border: 1px solid var(--brand-line); border-radius: 18px; background: #fff; }
.brand-output-grid article::after { position: absolute; right: -50px; bottom: -70px; width: 150px; height: 150px; content: ""; border: 28px solid rgba(64,189,212,.07); border-radius: 50%; }
.brand-output-grid article:nth-child(2)::after,
.brand-output-grid article:nth-child(4)::after { border-color: rgba(240,111,82,.08); }
.brand-output-grid article > span { color: var(--brand-coral); font-size: 11px; font-weight: 850; }
.brand-output-grid h3 { margin: 28px 0 0; color: var(--brand-ink); font-size: 20px; font-weight: 790; }
.brand-output-grid p { margin: 12px 0 0; color: var(--brand-muted); font-size: 12px; line-height: 1.75; }
.brand-output-grid small { position: absolute; bottom: 28px; left: 30px; color: #9aa2b4; font-size: 8px; font-weight: 850; letter-spacing: .18em; }

.brand-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 50px; width: min(1320px,calc(100% - 80px)); margin: 0 auto 84px; padding: 48px 52px; border-radius: 22px; color: #fff; background: linear-gradient(115deg,#151f3e 0%,#202d55 70%,#2c3154 100%); box-shadow: var(--brand-shadow); }
.brand-final-cta h2 { color: #fff; }
.brand-final-cta > div > span { display: block; margin-top: 12px; color: #aeb7ce; font-size: 12px; }
.brand-final-cta > button { min-width: 210px; min-height: 50px; border: 0; border-radius: 10px; color: #fff; background: var(--brand-coral); font-size: 12px; font-weight: 800; box-shadow: 0 14px 34px rgba(240,111,82,.24); }
.brand-final-cta > button span { margin-left: 10px; }

/* Keep supporting public pages in the same original palette. */
.layer-public .glass { border-color: var(--brand-line); background: rgba(255,255,255,.9); box-shadow: 0 16px 48px rgba(28,40,76,.065); }
.layer-public .text-ai-blue { color: var(--brand-coral) !important; }
.layer-public .bg-ai-blue { background: var(--brand-navy) !important; }
.layer-public .bg-blue-50\/60,
.layer-public .bg-blue-50\/70 { background: #f0f3f9 !important; }

/* Merchant and admin keep the same family instead of a disconnected green theme. */
html:not(.layer-public) .web-design-sidebar,
html.portal-admin:not(.desktop-app):not(.layer-public) .workspace-sidebar { background: var(--brand-navy) !important; }
.web-design-sidebar .web-design-nav-item.active,
html.portal-admin:not(.desktop-app):not(.layer-public) .workspace-sidebar button.active { background: #2a365e !important; }
.web-design-sidebar .web-design-create-button,
html.portal-admin:not(.desktop-app):not(.layer-public) .app-topbar .bg-ai-blue { background: var(--brand-coral) !important; }

/* Old reveal classes must never create blank screens if the observer is delayed or unavailable. */
.layer-public .reveal { opacity: 1 !important; transform: none !important; }

@media (max-width: 1100px) {
  .layer-public .public-nav { grid-template-columns: 1fr auto; }
  .layer-public .public-nav-links { display: none; }
  .brand-pipeline { width: min(920px,calc(100% - 40px)); height: clamp(330px,52vw,500px); }
  .brand-hero-rail { width: min(880px,calc(100% - 40px)); }
  .brand-flow-section,
  .brand-output-section,
  .brand-case-section { width: min(880px,calc(100% - 40px)); padding: 82px 0; }
  .brand-case-section::before { inset-inline: -20px; }
  .brand-case-heading { align-items: start; flex-direction: column; gap: 16px; }
  .brand-case-workbench { grid-template-columns: 1fr; }
  .brand-case-compare { min-height: 0; }
  .brand-case-panel { min-height: 0; }
  .brand-case-picker { grid-template-columns: repeat(2,1fr); }
  .brand-flow-grid,
  .brand-output-grid { grid-template-columns: repeat(2,1fr); }
  .brand-flow-grid::before { display: none; }
  .brand-flow-grid article:nth-child(2),
  .brand-flow-grid article:nth-child(4) { transform: none; }
  .brand-control-section { grid-template-columns: 1fr; padding: 82px max(20px,calc((100vw - 880px)/2)); }
  .brand-final-cta { width: min(880px,calc(100% - 40px)); }
}

@media (max-width: 720px) {
  .layer-public .public-nav { width: 100%; padding-inline: 14px; }
  .layer-public .public-site-brand small { display: none; }
  .layer-public .public-nav-actions { gap: 6px; }
  .layer-public .public-login-link,
  .layer-public .public-theme-toggle { display: none; }
  .layer-public .public-start-button { min-height: 40px; padding-inline: 13px; }
  .brand-hero { padding-top: 48px; }
  .brand-hero-intro { width: calc(100% - 28px); text-align: left; }
  .brand-product-label { font-size: 9px; }
  .brand-hero-intro h1 { margin-top: 20px; font-size: clamp(39px,12vw,56px); line-height: 1.04; }
  .brand-hero-intro > p { margin-top: 19px; font-size: 14px; line-height: 1.8; }
  .brand-hero-actions { align-items: stretch; flex-direction: column; }
  .brand-primary-action,
  .brand-secondary-action { width: 100%; }
  .brand-pipeline { width: calc(100% - 28px); height: 320px; margin-top: 36px; border-width: 5px; border-radius: 19px; }
  .brand-pipeline img { object-position: 44% center; }
  .brand-pipeline-label { min-height: 30px; padding: 0 9px; font-size: 9px; }
  .label-source { top: 10px; left: 10px; }
  .label-lock { bottom: 10px; left: 10px; }
  .label-output { top: 10px; right: 10px; }
  .brand-hero-rail { grid-template-columns: 1fr; width: calc(100% - 28px); margin-top: 14px; }
  .brand-hero-rail article { padding: 17px 18px; border-right: 0; border-bottom: 1px solid #e8ebf2; }
  .brand-hero-rail article:last-child { border-bottom: 0; }
  .brand-flow-section,
  .brand-output-section,
  .brand-case-section { width: calc(100% - 28px); padding: 66px 0; }
  .brand-case-section::before { inset: 24px -8px 12px; border-radius: 24px; }
  .brand-case-heading h2 { font-size: 32px; }
  .brand-case-workbench { margin-top: 28px; padding: 7px; border-radius: 20px; }
  .brand-case-compare { min-height: 0; border-radius: 14px; }
  .brand-case-preserve { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .brand-case-panel { min-height: 0; padding: 18px 14px 14px; }
  .brand-case-panel > p { margin-top: 24px; }
  .brand-case-panel > h3 { font-size: 22px; }
  .brand-case-picker { grid-template-columns: 1fr; }
  .brand-case-lightbox { padding: 12px; }
  .brand-case-lightbox-card { max-height: calc(100vh - 24px); grid-template-columns: 1fr; padding: 14px; border-radius: 18px; }
  .brand-case-lightbox-copy { padding: 26px 10px 6px; }
  .brand-case-lightbox-copy h3 { font-size: 27px; }
  .brand-section-heading h2,
  .brand-control-copy h2,
  .brand-final-cta h2 { font-size: 31px; }
  .brand-flow-grid,
  .brand-output-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .brand-flow-grid article { min-height: 220px; }
  .brand-flow-grid article:nth-child(2),
  .brand-flow-grid article:nth-child(4) { transform: none; }
  .layer-public .auth-shell { width: 100%; padding-top: 28px !important; }
  .layer-public .auth-form-panel { min-height: auto; border: 1px solid #e0e4ed !important; border-radius: 18px !important; box-shadow: 0 18px 50px rgba(20,30,61,.08) !important; }
  .brand-control-section { padding: 66px 14px; }
  .brand-control-board { padding: 15px; border-radius: 16px; }
  .brand-board-options { grid-template-columns: repeat(2,1fr); }
  .brand-final-cta { align-items: stretch; flex-direction: column; width: calc(100% - 28px); margin-bottom: 50px; padding: 32px 24px; }
  .brand-final-cta > button { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-case-ambient,
  .brand-case-lightbox { animation: none; }
  .brand-case-picker > button,
  .brand-case-thumb img,
  .brand-case-mode-tabs button,
  .brand-case-image.case-after { transition: none; }
}
