:root {
  --saas-paper: #f5f2eb;
  --saas-paper-soft: #ece8df;
  --saas-ink: #18191b;
  --saas-muted: #6e6c67;
  --saas-line: #c8c4bb;
  --saas-violet: #7848dd;
  --saas-violet-light: #d8c8ff;
  --saas-blue: #2b62e8;
  --saas-pink: #ef3fb4;
  --saas-dark: #191a1d;
}

html { scroll-behavior: smooth; }

body.pisell-case {
  min-width: 0;
  color: var(--saas-ink);
  background: var(--saas-paper);
  font-family: Inter, "PingFang SC", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
}

.pisell-case main { padding-top: 72px; }
.pisell-case button { font: inherit; }
.saas-shell { width: min(1320px, calc(100% - 80px)); margin: 0 auto; }

.saas-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 76% 38%, rgba(120,72,221,.34), transparent 28%),
    linear-gradient(125deg, #121315 0%, #1d1f23 62%, #151519 100%);
  border-bottom: 1px solid #3d3f43;
}

.saas-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.saas-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(470px, .86fr) minmax(560px, 1.14fr);
  gap: 72px;
  align-items: center;
  min-height: 760px;
  padding: 82px 0 72px;
}

.saas-eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }
.saas-eyebrow span { padding: 6px 9px; border: 1px solid #4a4d52; color: #b9bbc0; font-size: 9px; font-weight: 680; letter-spacing: .14em; }
.saas-kicker { margin: 0 0 18px; color: var(--saas-violet-light); font-size: 12px; font-weight: 680; letter-spacing: .08em; }
.saas-hero h1 { margin: 0; font-size: clamp(58px, 5vw, 82px); font-weight: 720; line-height: .98; letter-spacing: -.075em; }
.saas-hero h1 em { color: var(--saas-violet-light); font-style: normal; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; }
.saas-lead { max-width: 610px; margin: 34px 0 0; color: #bfc1c5; font-size: 16px; line-height: 1.85; }
.saas-hero-actions { display: flex; gap: 10px; margin-top: 34px; }
.saas-hero-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #64666b; color: #fff !important; font-size: 12px; font-weight: 650; }
.saas-hero-actions a:first-child { color: #17181b !important; background: var(--saas-violet-light); border-color: var(--saas-violet-light); }
.saas-hero-actions a:hover { transform: translate(-2px, -2px); }

.saas-hero-visual { position: relative; min-height: 610px; }
.saas-hero-visual-ai { display: flex; align-items: center; isolation: isolate; }
.saas-hero-visual-ai::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% 4% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 96, 255, .26), rgba(63, 91, 217, .1) 42%, transparent 72%);
  filter: blur(34px);
}
.hero-ecosystem {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(189, 177, 255, .42);
  border-radius: 18px;
  background: #0c0e17;
  box-shadow: 0 42px 90px rgba(0, 0, 0, .48), 0 0 0 1px rgba(255, 255, 255, .035) inset;
}
.hero-ecosystem::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.08), transparent 24%, transparent 76%, rgba(126,94,255,.08));
}
.hero-ecosystem img { display: block; width: 100%; height: auto; aspect-ratio: 1624 / 975; object-fit: cover; }
.hero-ecosystem figcaption {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 5px;
  max-width: 310px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  background: rgba(10, 11, 17, .72);
  backdrop-filter: blur(14px);
}
.hero-ecosystem figcaption span { color: #b9a9ff; font-size: 8px; font-weight: 760; letter-spacing: .14em; }
.hero-ecosystem figcaption strong { font-size: 11px; letter-spacing: .015em; }
.hero-ecosystem figcaption small { color: rgba(255,255,255,.55); font-size: 8px; }
.hero-frame { position: absolute; margin: 0; overflow: hidden; border: 1px solid #6a6c73; background: #24262a; box-shadow: 0 32px 70px rgba(0,0,0,.38); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-frame figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 9px; color: #fff; background: rgba(19,20,23,.82); font-size: 9px; font-weight: 700; letter-spacing: .09em; backdrop-filter: blur(8px); }
.hero-frame-main { z-index: 2; top: 50px; left: 0; width: 84%; aspect-ratio: 1.33 / 1; transform: rotate(-1.25deg); }
.hero-frame-side { z-index: 3; right: 0; bottom: 6px; width: 43%; aspect-ratio: 1 / .86; transform: rotate(2.2deg); }
.hero-frame-side img { object-position: center; }
.hero-orbit { position: absolute; z-index: 4; display: flex; align-items: center; justify-content: center; height: 34px; padding: 0 12px; border-radius: 999px; color: #17181b; font-size: 8px; font-weight: 760; letter-spacing: .12em; }
.hero-orbit-a { top: 22px; right: 8%; background: #fff; }
.hero-orbit-b { left: -4%; bottom: 90px; background: var(--saas-violet-light); }
.hero-orbit-c { right: 15%; top: 0; color: #fff; background: var(--saas-blue); }

.saas-facts { border-bottom: 1px solid var(--saas-line); background: #fff; }
.saas-fact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--saas-line); }
.saas-fact-grid > div { min-height: 150px; padding: 26px 24px; border-right: 1px solid var(--saas-line); }
.saas-fact-grid span { display: block; color: #898780; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.saas-fact-grid strong { display: block; margin-top: 18px; font-size: 23px; letter-spacing: -.035em; }
.saas-fact-grid p { margin: 8px 0 0; color: var(--saas-muted); font-size: 11px; line-height: 1.6; }

.saas-jump { position: sticky; top: 72px; z-index: 120; border-bottom: 1px solid var(--saas-line); background: rgba(245,242,235,.94); backdrop-filter: blur(14px); }
.saas-jump .saas-shell { display: flex; align-items: center; gap: 28px; height: 50px; }
.saas-jump a { flex: 0 0 auto; color: #6c6a65 !important; font-size: 10px; font-weight: 650; letter-spacing: .04em; white-space: nowrap; }
.saas-jump a:hover { color: var(--saas-violet) !important; }
.saas-jump a.is-active { color: var(--saas-ink) !important; }
.saas-jump a.is-active::after { content: ""; display: block; height: 2px; margin-top: 5px; background: var(--saas-violet); }

.saas-section { padding: 112px 0 124px; scroll-margin-top: 118px; }
.saas-section-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; margin-bottom: 70px; padding-bottom: 24px; border-bottom: 1px solid var(--saas-line); }
.saas-section-head > p { color: var(--saas-violet); font-size: 10px; font-weight: 760; letter-spacing: .15em; }
.saas-section-head h2 { max-width: 920px; margin: 0; font-size: clamp(42px, 4.2vw, 64px); font-weight: 700; line-height: 1.08; letter-spacing: -.06em; }
.saas-section-head-light { border-color: #4a4c51; }
.saas-section-head-light > p { color: var(--saas-violet-light); }
.saas-section-head-light h2 { color: #fff; }

.saas-context-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); gap: 96px; align-items: start; }
.saas-context-copy > p { max-width: 720px; margin: 0 0 24px; color: #55544f; font-size: 15px; line-height: 1.95; }
.saas-dropcap::first-letter { float: left; margin: 7px 10px 0 0; color: var(--saas-violet); font-family: Georgia, serif; font-size: 78px; line-height: .68; }
.saas-note { margin-top: 46px; padding: 25px 28px; border-top: 3px solid var(--saas-ink); border-bottom: 1px solid var(--saas-line); background: #fff; }
.saas-note strong { display: block; margin-bottom: 11px; font-size: 12px; }
.saas-note p { margin: 0; color: var(--saas-muted); font-size: 13px; line-height: 1.8; }
.saas-tension-list { border-top: 1px solid var(--saas-line); }
.saas-tension-list article { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding: 24px 0 28px; border-bottom: 1px solid var(--saas-line); }
.saas-tension-list span { grid-row: 1 / 3; color: var(--saas-violet); font-family: Georgia, serif; font-size: 28px; }
.saas-tension-list h3 { margin: 0 0 9px; font-size: 19px; letter-spacing: -.025em; }
.saas-tension-list p { margin: 0; color: var(--saas-muted); font-size: 12px; line-height: 1.75; }

.saas-map-section { color: #fff; background: var(--saas-dark); }
.saas-layer-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #4b4d51; border-left: 1px solid #4b4d51; }
.saas-layer-map article { min-height: 280px; padding: 24px; border-right: 1px solid #4b4d51; border-bottom: 1px solid #4b4d51; background: linear-gradient(180deg, rgba(255,255,255,.035), transparent); }
.saas-layer-map article::before { content: ""; display: block; width: 34px; height: 5px; margin-bottom: 50px; background: var(--layer-accent); }
.saas-layer-map .layer-core { --layer-accent: var(--saas-violet-light); }
.saas-layer-map .layer-channel { --layer-accent: var(--saas-pink); }
.saas-layer-map .layer-app { --layer-accent: #5dd8c3; }
.saas-layer-map .layer-touchpoint { --layer-accent: #5b8dff; }
.saas-layer-map span { color: #999ca2; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.saas-layer-map h3 { margin: 12px 0 22px; color: #fff; font-size: 21px; }
.saas-layer-map li { padding: 6px 0; color: #bfc1c5; font-size: 11px; border-bottom: 1px solid #323438; }

.saas-system-map { position: relative; padding: 18px; border: 1px solid #4b4d51; background: #17181b; }
.system-map-topline { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; min-height: 70px; padding: 18px 22px; border: 1px solid #4b4d51; background: #26282d; }
.system-map-topline span, .system-foundation > span { color: var(--saas-violet-light); font-size: 9px; font-weight: 760; letter-spacing: .14em; }
.system-map-topline strong { color: #e7e8eb; font-size: 12px; font-weight: 560; letter-spacing: .02em; }
.system-endpoint-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 1px; background: #4b4d51; }
.system-endpoint-grid article { min-height: 190px; padding: 22px; background: #202126; }
.system-endpoint-grid article::before { content: ""; display: block; width: 28px; height: 4px; margin-bottom: 34px; background: var(--endpoint-color); }
.system-endpoint-grid article[data-end="b2b"] { --endpoint-color: #d8c8ff; }
.system-endpoint-grid article[data-end="store"] { --endpoint-color: #ff6abf; }
.system-endpoint-grid article[data-end="ops"] { --endpoint-color: #5dd8c3; }
.system-endpoint-grid article[data-end="c2c"] { --endpoint-color: #6f9cff; }
.system-endpoint-grid article[data-end="staff"] { --endpoint-color: #f4c859; }
.system-endpoint-grid article[data-end="builder"] { --endpoint-color: #fff; }
.system-endpoint-grid span { color: #8f9299; font-size: 8px; font-weight: 720; letter-spacing: .13em; }
.system-endpoint-grid h3 { margin: 10px 0 13px; color: #fff; font-size: 18px; letter-spacing: -.03em; }
.system-endpoint-grid p { margin: 0; color: #aeb0b5; font-size: 10px; line-height: 1.7; }
.system-core-hub { display: grid; grid-template-columns: 1fr 1.35fr; gap: 30px; align-items: center; margin: 18px 0; padding: 28px; color: #17181b; background: var(--saas-violet-light); }
.system-core-hub small { display: block; margin-bottom: 8px; font-size: 8px; font-weight: 740; letter-spacing: .14em; }
.system-core-hub strong { display: block; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.055em; }
.system-core-hub ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.system-core-hub li { padding: 11px 12px; border: 1px solid rgba(24,25,27,.26); font-size: 10px; font-weight: 680; }
.system-foundation { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 24px; align-items: center; min-height: 82px; padding: 18px 22px; border: 1px solid #4b4d51; }
.system-foundation div { display: flex; flex-wrap: wrap; gap: 8px; }
.system-foundation b { padding: 8px 10px; color: #cacbd0; border: 1px solid #46484d; font-size: 9px; font-weight: 620; }
.system-foundation a { color: var(--saas-violet-light) !important; font-size: 10px; font-weight: 680; }
.saas-map-proof { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, .75fr); gap: 70px; align-items: center; margin-top: 74px; }
.saas-map-proof > div { padding-right: 20px; }
.saas-proof-label { color: var(--saas-violet-light); font-size: 9px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.saas-map-proof h3 { margin: 18px 0; color: #fff; font-size: 31px; line-height: 1.25; letter-spacing: -.035em; }
.saas-map-proof > div > p:not(.saas-proof-label) { color: #b4b6ba; font-size: 13px; line-height: 1.85; }
.saas-map-proof ul { margin-top: 26px; border-top: 1px solid #4b4d51; }
.saas-map-proof li { padding: 13px 0; color: #aaaeb4; font-size: 11px; line-height: 1.6; border-bottom: 1px solid #3a3c40; }
.saas-map-proof li strong { color: #fff; }

.case-media { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--saas-line); border-radius: 0; background: #e8e5de; box-shadow: none; cursor: zoom-in; }
.case-media:hover { box-shadow: none; }
.case-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.case-media:hover img { transform: scale(1.014); filter: saturate(1.04); }
.case-media > span { position: absolute; right: 10px; bottom: 10px; padding: 7px 9px; color: var(--saas-ink); background: rgba(245,242,235,.94); font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.case-media-dark { border-color: #42454a; background: #111; }
.case-media-dark > span { color: #fff; background: rgba(23,24,27,.9); }
.saas-map-proof .case-media { height: 520px; border-color: #4a4c51; background: #fff; }
.saas-map-proof .case-media img { object-fit: cover; object-position: 43% 70%; }

.saas-decisions { background: var(--saas-paper); }
.decision-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--saas-line); border-left: 1px solid var(--saas-line); }
.decision-grid article { min-height: 330px; display: flex; flex-direction: column; padding: 24px; border-right: 1px solid var(--saas-line); border-bottom: 1px solid var(--saas-line); transition: background .25s ease; }
.decision-grid article:hover { background: #fff; }
.decision-grid span { color: var(--saas-violet); font-family: Georgia, serif; font-size: 30px; }
.decision-grid h3 { margin: 48px 0 16px; font-size: 22px; line-height: 1.3; letter-spacing: -.035em; }
.decision-grid p { margin: 0; color: var(--saas-muted); font-size: 12px; line-height: 1.75; }
.decision-grid em { margin-top: auto; color: var(--saas-violet); font-size: 10px; font-style: normal; font-weight: 700; }

.saas-theme-section { background: #eae5da; }
.theme-story-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr); gap: 72px; align-items: center; }
.theme-story-copy > p { margin: 0 0 22px; color: #56544f; font-size: 14px; line-height: 1.9; }
.theme-layer-list { margin-top: 34px; border-top: 1px solid var(--saas-line); }
.theme-layer-list > div { display: grid; grid-template-columns: 38px 90px 1fr; gap: 12px; align-items: center; min-height: 58px; border-bottom: 1px solid var(--saas-line); }
.theme-layer-list span { color: var(--saas-violet); font-family: Georgia, serif; font-size: 20px; }
.theme-layer-list b { font-size: 11px; }
.theme-layer-list p { margin: 0; color: var(--saas-muted); font-size: 10px; }
.theme-source-shot { aspect-ratio: 1.62 / 1; background: #fff; }
.theme-source-shot img { object-fit: cover; object-position: center top; }

.theme-demo {
  --demo-primary: #7c4dff;
  --demo-primary-hover: #6637ef;
  --demo-primary-soft: #eee7ff;
  --demo-ink: #182034;
  --demo-muted: #6d7485;
  --demo-canvas: #f3f5f9;
  --demo-surface: #fff;
  --demo-line: #dde2eb;
  --demo-success: #1ea56c;
  --demo-radius: 12px;
  --demo-radius-sm: 8px;
  --demo-card-shadow: 0 14px 34px rgba(55, 40, 99, .08);
  --demo-mobile-shadow: 0 22px 48px rgba(42, 31, 76, .14);
  --demo-control: 40px;
  --demo-main-padding: 24px;
  --demo-nav-padding: 22px 14px;
  --demo-nav-gap: 5px;
  --demo-brand-margin: 0 10px 26px;
  --demo-kpi-gap: 10px;
  --demo-kpi-margin: 26px;
  --demo-kpi-padding: 16px;
  --demo-kpi-min-height: 118px;
  --demo-row-extra-height: 16px;
  --demo-row-padding: 0 15px;
  --demo-mobile-padding: 20px;
  --demo-mobile-margin: 24px 22px 24px 0;
  --demo-app-min-height: 590px;
  --demo-nav-column: 190px;
  --demo-mobile-column: 280px;
  --demo-title-size: 22px;
  --demo-number-size: 21px;
  --demo-body-size: 9px;
  --demo-nav-size: 10px;
  --demo-label-size: 8px;
  margin-top: 86px;
  overflow: hidden;
  border: 1px solid #bdb8ae;
  background: #fff;
}
.theme-demo[data-demo-theme="retail"] {
  --demo-primary: #1769e0;
  --demo-primary-hover: #0d56c3;
  --demo-primary-soft: #e5f0ff;
  --demo-ink: #13233b;
  --demo-muted: #64748b;
  --demo-canvas: #f3f7fc;
  --demo-surface: #fff;
  --demo-line: #cfdbeb;
  --demo-success: #06876f;
  --demo-radius: 6px;
  --demo-radius-sm: 4px;
  --demo-card-shadow: 0 8px 22px rgba(18, 78, 154, .075);
  --demo-mobile-shadow: 0 16px 36px rgba(18, 78, 154, .13);
}
.theme-demo[data-demo-theme="hospitality"] {
  --demo-primary: #ec5b48;
  --demo-primary-hover: #d84937;
  --demo-primary-soft: #fff0e9;
  --demo-ink: #31211d;
  --demo-muted: #806d66;
  --demo-canvas: #faf5ef;
  --demo-surface: #fffdf9;
  --demo-line: #ead8cf;
  --demo-success: #2d8b62;
  --demo-radius: 18px;
  --demo-radius-sm: 12px;
  --demo-card-shadow: 0 18px 44px rgba(112, 60, 43, .11);
  --demo-mobile-shadow: 0 28px 62px rgba(112, 60, 43, .18);
}
.theme-demo[data-demo-density="compact"] {
  --demo-control: 32px;
  --demo-main-padding: 18px;
  --demo-nav-padding: 18px 12px;
  --demo-nav-gap: 3px;
  --demo-brand-margin: 0 8px 18px;
  --demo-kpi-gap: 8px;
  --demo-kpi-margin: 18px;
  --demo-kpi-padding: 12px;
  --demo-kpi-min-height: 98px;
  --demo-row-extra-height: 10px;
  --demo-row-padding: 0 12px;
  --demo-mobile-padding: 16px;
  --demo-mobile-margin: 18px 18px 18px 0;
  --demo-app-min-height: 540px;
  --demo-nav-column: 168px;
  --demo-mobile-column: 252px;
  --demo-title-size: 19px;
  --demo-number-size: 19px;
  --demo-body-size: 8px;
  --demo-nav-size: 9px;
  --demo-label-size: 7px;
}
.theme-demo[data-demo-density="spacious"] {
  --demo-control: 44px;
  --demo-main-padding: 30px;
  --demo-nav-padding: 28px 18px;
  --demo-nav-gap: 8px;
  --demo-brand-margin: 0 12px 34px;
  --demo-kpi-gap: 14px;
  --demo-kpi-margin: 32px;
  --demo-kpi-padding: 20px;
  --demo-kpi-min-height: 132px;
  --demo-row-extra-height: 18px;
  --demo-row-padding: 0 18px;
  --demo-mobile-padding: 24px;
  --demo-mobile-margin: 30px 28px 30px 0;
  --demo-app-min-height: 630px;
  --demo-nav-column: 210px;
  --demo-mobile-column: 300px;
  --demo-title-size: 24px;
  --demo-number-size: 23px;
  --demo-body-size: 10px;
  --demo-nav-size: 11px;
  --demo-label-size: 9px;
}
.theme-demo-head { display: grid; grid-template-columns: 1fr 450px; gap: 60px; padding: 32px; border-bottom: 1px solid #dedbd3; }
.theme-demo-head h3 { max-width: 680px; margin: 12px 0 10px; font-size: 28px; line-height: 1.25; letter-spacing: -.04em; }
.theme-demo-head p:not(.saas-proof-label) { max-width: 720px; margin: 0; color: var(--saas-muted); font-size: 11px; line-height: 1.75; }
.theme-demo-head .saas-proof-label { color: var(--saas-violet); }
.theme-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.theme-controls button { display: flex; align-items: center; justify-content: flex-start; gap: 9px; min-height: 40px; padding: 0 12px; border: 1px solid #d4d0c8; color: #4d4c48; background: #fff; font-size: 10px; font-weight: 650; box-shadow: none; }
.theme-controls button.is-active { color: #fff; border-color: #252629; background: #252629; }
.theme-controls i { width: 12px; height: 12px; border-radius: 999px; background: var(--swatch); }
.theme-controls .density-toggle { grid-column: 1 / -1; justify-content: center; }
.theme-token-live { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #dedbd3; }
.theme-token-live > div { min-height: 66px; padding: 14px 18px; border-right: 1px solid #dedbd3; }
.theme-token-live > div:last-child { border-right: 0; }
.theme-token-live span { display: block; color: #898780; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.theme-token-live b { display: block; margin-top: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.theme-preview-app { display: grid; grid-template-columns: var(--demo-nav-column) minmax(0, 1fr) var(--demo-mobile-column); min-height: var(--demo-app-min-height); color: var(--demo-ink); background: var(--demo-canvas); transition: grid-template-columns .32s ease, min-height .32s ease, background-color .32s ease, color .32s ease; }
.theme-preview-nav { display: flex; flex-direction: column; gap: var(--demo-nav-gap); padding: var(--demo-nav-padding); border-right: 1px solid var(--demo-line); background: var(--demo-surface); transition: gap .32s ease, padding .32s ease, border-color .32s ease, background-color .32s ease; }
.theme-preview-nav strong { margin: var(--demo-brand-margin); color: var(--demo-primary); font-size: calc(var(--demo-title-size) * .96); letter-spacing: -.05em; transition: margin .32s ease, color .32s ease, font-size .32s ease; }
.theme-preview-nav span { min-height: var(--demo-control); display: flex; align-items: center; padding: 0 11px; border-radius: var(--demo-radius-sm); color: var(--demo-muted); font-size: var(--demo-nav-size); font-weight: 620; transition: min-height .32s ease, border-radius .32s ease, color .32s ease, background-color .32s ease, font-size .32s ease; }
.theme-preview-nav span.is-selected { color: var(--demo-primary); background: var(--demo-primary-soft); }
.theme-preview-nav small { margin: auto 10px 0; color: var(--demo-muted); font-size: var(--demo-label-size); line-height: 1.5; transition: color .32s ease, font-size .32s ease; }
.theme-preview-main { min-width: 0; padding: var(--demo-main-padding); transition: padding .32s ease; }
.theme-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.theme-preview-toolbar small { color: var(--demo-muted); font-size: var(--demo-label-size); letter-spacing: .11em; transition: color .32s ease, font-size .32s ease; }
.theme-preview-toolbar h4 { margin: 6px 0 0; font-size: var(--demo-title-size); letter-spacing: -.04em; transition: font-size .32s ease; }
.theme-preview-toolbar button, .theme-preview-mobile button { min-height: var(--demo-control); padding: 0 15px; border: 0; border-radius: var(--demo-radius); color: #fff; background: var(--demo-primary); font-size: var(--demo-nav-size); font-weight: 680; box-shadow: 0 8px 18px color-mix(in srgb, var(--demo-primary) 22%, transparent); transition: min-height .32s ease, border-radius .32s ease, background-color .32s ease, box-shadow .32s ease, font-size .32s ease, transform .18s ease; }
.theme-preview-toolbar button:hover, .theme-preview-mobile button:hover { background: var(--demo-primary-hover); transform: translateY(-1px); }
.theme-kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--demo-kpi-gap); margin-top: var(--demo-kpi-margin); transition: gap .32s ease, margin-top .32s ease; }
.theme-kpi-grid article { min-height: var(--demo-kpi-min-height); padding: var(--demo-kpi-padding); border: 1px solid var(--demo-line); border-radius: var(--demo-radius); background: var(--demo-surface); box-shadow: var(--demo-card-shadow); transition: min-height .32s ease, padding .32s ease, border-color .32s ease, border-radius .32s ease, background-color .32s ease, box-shadow .32s ease; }
.theme-kpi-grid span { display: block; color: var(--demo-muted); font-size: var(--demo-body-size); transition: color .32s ease, font-size .32s ease; }
.theme-kpi-grid strong { display: block; margin-top: 22px; font-size: var(--demo-number-size); letter-spacing: -.04em; transition: font-size .32s ease; }
.theme-kpi-grid em { display: block; margin-top: 7px; color: var(--demo-success); font-size: var(--demo-label-size); font-style: normal; transition: color .32s ease, font-size .32s ease; }
.theme-data-card { margin-top: calc(var(--demo-kpi-gap) + 2px); overflow: hidden; border: 1px solid var(--demo-line); border-radius: var(--demo-radius); background: var(--demo-surface); box-shadow: var(--demo-card-shadow); transition: margin-top .32s ease, border-color .32s ease, border-radius .32s ease, background-color .32s ease, box-shadow .32s ease; }
.theme-data-head, .theme-data-row { display: grid; grid-template-columns: 1.1fr .9fr .6fr .7fr; gap: var(--demo-kpi-gap); align-items: center; min-height: calc(var(--demo-control) + var(--demo-row-extra-height)); padding: var(--demo-row-padding); border-bottom: 1px solid var(--demo-line); font-size: var(--demo-body-size); transition: gap .32s ease, min-height .32s ease, padding .32s ease, border-color .32s ease, font-size .32s ease; }
.theme-data-head { grid-template-columns: 1fr auto; color: var(--demo-muted); }
.theme-data-row:last-child { border-bottom: 0; }
.theme-data-row span { color: var(--demo-muted); }
.theme-data-row i { width: fit-content; padding: 5px 7px; border-radius: 999px; color: var(--demo-success); background: color-mix(in srgb, var(--demo-success) 14%, #fff); font-style: normal; }
.theme-data-row strong { text-align: right; }
.theme-preview-mobile { align-self: center; margin: var(--demo-mobile-margin); padding: var(--demo-mobile-padding); border: 1px solid var(--demo-line); border-radius: calc(var(--demo-radius) * 1.3); background: var(--demo-surface); box-shadow: var(--demo-mobile-shadow); transition: margin .32s ease, padding .32s ease, border-color .32s ease, border-radius .32s ease, background-color .32s ease, box-shadow .32s ease; }
.theme-preview-mobile > small { color: var(--demo-muted); font-size: var(--demo-label-size); letter-spacing: .11em; transition: color .32s ease, font-size .32s ease; }
.theme-preview-mobile > strong { display: block; margin-top: 28px; color: var(--demo-primary); font-size: calc(var(--demo-number-size) * 1.38); letter-spacing: -.05em; transition: color .32s ease, font-size .32s ease; }
.theme-preview-mobile > p { margin: 6px 0 24px; color: var(--demo-muted); font-size: var(--demo-body-size); transition: color .32s ease, font-size .32s ease; }
.theme-preview-mobile > div { display: flex; justify-content: space-between; align-items: center; min-height: calc(var(--demo-control) + 14px); margin-top: 8px; padding: 0 11px; border: 1px solid var(--demo-line); border-radius: var(--demo-radius); font-size: var(--demo-body-size); transition: min-height .32s ease, border-color .32s ease, border-radius .32s ease, font-size .32s ease; }
.theme-preview-mobile > div:first-of-type { border-color: var(--demo-primary); }
.theme-preview-mobile i { width: 12px; height: 12px; border: 1px solid var(--demo-primary); border-radius: 999px; }
.theme-preview-mobile button { width: 100%; margin-top: 24px; }

.saas-system-section { color: #fff; background: #151619; }
.system-proof-intro { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: end; margin-bottom: 54px; }
.system-proof-intro p { max-width: 820px; margin: 0; color: #b9bbc0; font-size: 14px; line-height: 1.9; }
.system-proof-intro a { color: var(--saas-violet-light) !important; font-size: 11px; font-weight: 680; }
.presentation-board { width: 100%; aspect-ratio: 16 / 9; border-color: #4b4e56; background: #090a0e; box-shadow: 0 34px 90px rgba(0,0,0,.22); }
.presentation-board img { width: 100%; height: 100%; object-fit: contain; background: #090a0e; }
.presentation-board > span { color: #d9dbe4; border: 1px solid rgba(255,255,255,.14); background: rgba(11,12,17,.78); backdrop-filter: blur(10px); }
.system-proof-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid #44464b; border-left: 1px solid #44464b; }
.system-proof-notes article { min-width: 0; min-height: 214px; padding: 24px 22px; border-right: 1px solid #44464b; border-bottom: 1px solid #44464b; }
.system-proof-notes b { color: var(--saas-violet-light); font-size: 8px; letter-spacing: .14em; }
.system-proof-notes h3 { margin: 48px 0 12px; color: #fff; font-size: 19px; letter-spacing: -.035em; }
.system-proof-notes p { margin: 0; color: #aeb0b5; font-size: 10px; line-height: 1.75; }

.analytics-suite { padding: 100px 0; border-top: 1px solid #4a4c51; }
.analytics-suite-head { display: grid; grid-template-columns: 190px minmax(0, .82fr) minmax(320px, .58fr); gap: 42px; align-items: start; margin-bottom: 48px; }
.analytics-suite-head h3 { margin: 0; color: #fff; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15; letter-spacing: -.05em; }
.analytics-suite-head > p:last-child { margin: 0; color: #aeb0b5; font-size: 12px; line-height: 1.85; }
.analytics-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #4b4d52; border-left: 1px solid #4b4d52; }
.analytics-tabs button { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 3px 12px; min-height: 92px; padding: 18px 20px; border: 0; border-right: 1px solid #4b4d52; border-bottom: 1px solid #4b4d52; border-radius: 0; color: #8f9299; background: transparent; text-align: left; box-shadow: none; }
.analytics-tabs button::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: transparent; transform: scaleX(0); transform-origin: left; transition: transform .28s ease, background .28s ease; }
.analytics-tabs button:hover { color: #fff; background: #26282d; box-shadow: none; transform: none; }
.analytics-tabs button.is-active { color: #fff; background: #2a2c31; }
.analytics-tabs button.is-active::after { background: var(--saas-violet-light); transform: scaleX(1); }
.analytics-tabs span { grid-row: 1 / 3; color: var(--saas-violet-light); font-family: Georgia, "Times New Roman", serif; font-size: 25px; }
.analytics-tabs strong { align-self: end; font-size: 13px; letter-spacing: -.02em; }
.analytics-tabs small { color: #8f9299; font-size: 8px; letter-spacing: .06em; }
.analytics-panel { border-right: 1px solid #4b4d52; border-bottom: 1px solid #4b4d52; border-left: 1px solid #4b4d52; background: #18191d; }
.analytics-stage-media { width: 100%; aspect-ratio: 1.56 / 1; border: 0; border-bottom: 1px solid #4b4d52; background: #090a0e; transition: opacity .18s ease, transform .18s ease; }
.analytics-stage-media.is-changing { opacity: .28; transform: scale(.996); }
.analytics-stage-media img { object-fit: contain; background: #090a0e; }
.analytics-stage-media > span { color: #d9dbe4; border: 1px solid rgba(255,255,255,.14); background: rgba(11,12,17,.82); backdrop-filter: blur(10px); }
.analytics-panel-copy { display: grid; grid-template-columns: minmax(0, .78fr) minmax(320px, .62fr); gap: 70px; align-items: end; min-height: 176px; padding: 28px 30px 30px; }
.analytics-panel-copy p { margin: 0; }
.analytics-panel-copy [data-analytics-kicker] { margin-bottom: 14px; color: var(--saas-violet-light); font-size: 8px; font-weight: 760; letter-spacing: .15em; }
.analytics-panel-copy h4 { margin: 0; color: #fff; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -.045em; }
.analytics-panel-copy > p { color: #aeb0b5; font-size: 11px; line-height: 1.8; }
.analytics-context-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid #484a4f; border-left: 1px solid #484a4f; }
.analytics-context-grid article { min-height: 180px; padding: 22px; border-right: 1px solid #484a4f; border-bottom: 1px solid #484a4f; }
.analytics-context-grid b { color: var(--saas-violet-light); font-size: 8px; letter-spacing: .12em; }
.analytics-context-grid h4 { margin: 42px 0 10px; color: #fff; font-size: 20px; letter-spacing: -.035em; }
.analytics-context-grid p { margin: 0; color: #9fa2a8; font-size: 10px; line-height: 1.7; }

.device-continuum { padding: 100px 0 20px; border-top: 1px solid #4a4c51; }
.device-continuum-head { display: grid; grid-template-columns: 190px minmax(0, .82fr) minmax(320px, .58fr); gap: 42px; align-items: start; margin-bottom: 48px; }
.device-continuum-head h3, .evidence-library-head h3 { margin: 0; color: #fff; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15; letter-spacing: -.05em; }
.device-continuum-head > p:last-child { margin: 0; color: #aeb0b5; font-size: 12px; line-height: 1.85; }
.device-continuum-grid { display: block; }
.device-continuum-grid .case-media { border-color: #44464a; }

.evidence-library { padding: 110px 0 10px; }
.evidence-library-head { display: grid; grid-template-columns: 1fr 420px; gap: 70px; align-items: end; padding-top: 28px; border-top: 1px solid #4a4c51; }
.evidence-library-head h3 { max-width: 780px; }
.evidence-library-head > p { margin: 0; color: #aeb0b5; font-size: 12px; line-height: 1.85; }
.evidence-network-board { margin-top: 46px; }
.evidence-source-details { margin-top: 22px; border: 1px solid #484a4f; background: #1a1b1f; }
.evidence-source-details > summary { display: flex; justify-content: space-between; align-items: center; min-height: 72px; padding: 0 22px; color: #fff; cursor: pointer; list-style: none; }
.evidence-source-details > summary::-webkit-details-marker { display: none; }
.evidence-source-details > summary::after { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; border: 1px solid #555861; color: var(--saas-violet-light); font-size: 20px; line-height: 1; }
.evidence-source-details[open] > summary::after { content: "−"; }
.evidence-source-details > summary span { font-size: 12px; font-weight: 720; }
.evidence-source-details > summary small { margin-left: 18px; margin-right: 18px; color: #858991; font-size: 9px; }
.evidence-source-details .evidence-filters { justify-content: flex-start; padding: 20px 22px 0; border-top: 1px solid #35373c; }
.evidence-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.evidence-filters button { min-height: 34px; padding: 0 11px; border: 1px solid #53555b; color: #b9bbc0; background: transparent; font-size: 9px; box-shadow: none; }
.evidence-filters button.is-active { color: #17181b; border-color: var(--saas-violet-light); background: var(--saas-violet-light); }
.source-ledger { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 24px 22px 0; border-top: 1px solid #484a4f; border-left: 1px solid #484a4f; }
.source-ledger > div { display: flex; flex-direction: column; min-height: 136px; padding: 16px; border-right: 1px solid #484a4f; border-bottom: 1px solid #484a4f; }
.source-ledger span { min-height: 34px; color: #b8bbc1; font-size: 9px; line-height: 1.5; }
.source-ledger strong { margin-top: auto; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 400; }
.source-ledger small { margin-top: 6px; color: #7e8188; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.evidence-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 10px; margin: 32px 22px 0; }
.evidence-tile { border-color: #45474c; background: #111; }
.evidence-tile img { object-fit: cover; object-position: top center; }
.evidence-tile-phone img { object-fit: contain; background: #f7f7f7; }
.evidence-tile > span { right: auto; left: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; color: #fff; background: rgba(20,21,24,.88); backdrop-filter: blur(9px); }
.evidence-tile > span b { color: #aaaeb5; font-size: 7px; font-weight: 620; letter-spacing: .1em; text-transform: uppercase; }
.evidence-tile[hidden] { display: none; }
.evidence-count { margin: 16px 22px 22px; color: #878a91; font-size: 9px; text-align: right; }

.saas-states { background: #ebe7de; }
.state-intro { display: grid; grid-template-columns: 220px 1fr; gap: 48px; margin-bottom: 46px; }
.state-intro::before { content: "STATE COVERAGE"; color: var(--saas-violet); font-size: 9px; font-weight: 740; letter-spacing: .14em; }
.state-intro p { max-width: 800px; margin: 0; color: #5e5c57; font-size: 14px; line-height: 1.85; }
.state-matrix { border-top: 1px solid var(--saas-line); border-left: 1px solid var(--saas-line); background: #fff; }
.state-row { display: grid; grid-template-columns: .7fr 1.15fr 1.45fr .8fr; }
.state-row > span { min-height: 76px; padding: 18px; border-right: 1px solid var(--saas-line); border-bottom: 1px solid var(--saas-line); color: #66645f; font-size: 10px; line-height: 1.6; }
.state-row b { color: var(--saas-ink); font-size: 11px; }
.state-row-head > span { min-height: 42px; padding-top: 13px; padding-bottom: 13px; color: #85827b; background: #f4f2ed; font-size: 8px; font-weight: 720; letter-spacing: .1em; }
.state-visuals { display: block; margin-top: 56px; }
.state-visuals .presentation-board { border-color: #cbc6bb; }

.saas-evidence { color: #fff; background: #202125; }
.evidence-story { display: grid; gap: 70px; padding: 90px 0; border-top: 1px solid #4a4c51; }
.evidence-story:first-of-type { padding-top: 0; border-top: 0; }
.evidence-story-pos { grid-template-columns: minmax(360px, .68fr) minmax(0, 1.32fr); align-items: center; }
.evidence-story-terminal { grid-template-columns: minmax(360px, .72fr) minmax(0, 1.28fr); align-items: center; }
.evidence-story-booking { grid-template-columns: minmax(0, 1.28fr) minmax(360px, .72fr); align-items: center; }
.evidence-story-ecosystem { grid-template-columns: minmax(360px, .7fr) minmax(0, 1.3fr); align-items: center; }
.evidence-story-client { grid-template-columns: minmax(0, .88fr) minmax(430px, 1.12fr); align-items: center; }
.evidence-index { margin: 0 0 22px; color: var(--saas-violet-light); font-size: 9px; font-weight: 760; letter-spacing: .15em; }
.evidence-copy h3 { margin: 0 0 22px; color: #fff; font-size: clamp(30px, 3.2vw, 47px); line-height: 1.14; letter-spacing: -.05em; }
.evidence-copy > p:not(.evidence-index) { margin: 0; color: #b8babf; font-size: 13px; line-height: 1.9; }
.evidence-copy dl { margin: 30px 0 0; border-top: 1px solid #494b50; }
.evidence-copy dl div { display: grid; grid-template-columns: 94px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid #3b3d42; }
.evidence-copy dt { color: #8e9198; font-size: 9px; }
.evidence-copy dd { margin: 0; color: #dddfe3; font-size: 11px; line-height: 1.55; }
.evidence-story-pos .case-media { aspect-ratio: 1.33 / 1; }
.evidence-callout { margin-top: 28px; padding: 18px 20px; border-left: 3px solid var(--saas-violet-light); color: #b9bbc0; background: #2a2c31; font-size: 11px; line-height: 1.75; }
.evidence-callout strong { color: #fff; }
.terminal-pair { display: grid; grid-template-columns: 1fr .84fr; gap: 14px; align-items: end; }
.terminal-pair .case-media:first-child { aspect-ratio: 1.43 / 1; }
.terminal-pair .case-media:last-child { aspect-ratio: 1.1 / 1; }
.booking-visuals { position: relative; min-height: 560px; }
.booking-visuals .case-media:first-child { position: absolute; inset: 0 90px 60px 0; }
.booking-visuals .booking-time-card { position: absolute; right: 0; bottom: 0; width: 48%; height: 48%; box-shadow: 0 26px 55px rgba(0,0,0,.34); }
.evidence-bullets { margin-top: 28px; border-top: 1px solid #46484d; }
.evidence-bullets li { padding: 12px 0; color: #b7b9bd; font-size: 11px; line-height: 1.6; border-bottom: 1px solid #37393e; }
.ecosystem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ecosystem-grid .case-media { min-height: 360px; }
.ecosystem-grid .case-media img { object-fit: cover; object-position: center; }
.lowcode-story { padding: 100px 0; border-top: 1px solid #4a4c51; }
.lowcode-story-head { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 72px; align-items: end; }
.lowcode-story-head h3 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(38px, 4.4vw, 66px); line-height: 1.08; letter-spacing: -.06em; }
.lowcode-story-summary p { margin: 0; color: #b8babf; font-size: 13px; line-height: 1.9; }
.lowcode-story-summary a { display: inline-flex; margin-top: 24px; padding-bottom: 5px; color: #c4aaff !important; border-bottom: 1px solid #7951df; font-size: 10px; font-weight: 720; }
.lowcode-builder-media { width: 100%; margin-top: 52px; aspect-ratio: 1.94 / 1; background: #f1f1f1; }
.lowcode-builder-media img { object-fit: contain !important; background: #f1f1f1; }
.lowcode-capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; border-top: 1px solid #4a4c51; border-left: 1px solid #4a4c51; }
.lowcode-capability-grid article { min-height: 190px; padding: 22px; border-right: 1px solid #4a4c51; border-bottom: 1px solid #4a4c51; background: #24262b; }
.lowcode-capability-grid span { color: #aa8cff; font-size: 9px; font-weight: 760; }
.lowcode-capability-grid strong { display: block; margin-top: 34px; color: #fff; font-size: 18px; }
.lowcode-capability-grid p { margin: 12px 0 0; color: #aeb0b5; font-size: 10px; line-height: 1.7; }
.lowcode-proof-grid { display: grid; grid-template-columns: 1.25fr .875fr .875fr; gap: 14px; margin-top: 14px; }
.lowcode-proof-grid .case-media { min-height: 330px; background: #f1f1f1; }
.lowcode-proof-grid .case-media img { object-fit: contain !important; background: #f1f1f1; }
.client-screen-wrap { display: flex; justify-content: center; height: 760px; overflow: hidden; border: 1px solid #4a4c51; background: #17181b; }
.client-screen { width: min(610px, 100%); height: 100%; border: 0; }
.client-screen img { object-fit: cover; object-position: top; }
.evidence-copy blockquote { margin: 38px 0 0; padding: 26px 0 0; border-top: 1px solid #4b4d51; color: #fff; font-family: Georgia, "Songti SC", serif; font-size: 24px; line-height: 1.5; }

.saas-result { background: var(--saas-paper); }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--saas-line); border-left: 1px solid var(--saas-line); }
.result-grid article { min-height: 280px; padding: 26px; border-right: 1px solid var(--saas-line); border-bottom: 1px solid var(--saas-line); }
.result-grid span { color: var(--saas-violet); font-size: 9px; font-weight: 740; letter-spacing: .12em; }
.result-grid h3 { margin: 56px 0 16px; font-size: 25px; line-height: 1.25; letter-spacing: -.035em; }
.result-grid p { margin: 0; color: var(--saas-muted); font-size: 12px; line-height: 1.75; }
.reflection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 70px; border-top: 1px solid var(--saas-line); border-left: 1px solid var(--saas-line); }
.reflection-grid > div { min-height: 300px; padding: 30px; border-right: 1px solid var(--saas-line); border-bottom: 1px solid var(--saas-line); }
.reflection-grid .saas-proof-label { color: var(--saas-violet); }
.reflection-grid h3 { max-width: 520px; margin: 46px 0 17px; font-size: 30px; line-height: 1.26; letter-spacing: -.045em; }
.reflection-grid p:not(.saas-proof-label) { max-width: 550px; margin: 0; color: var(--saas-muted); font-size: 12px; line-height: 1.8; }
.case-source-note { display: grid; grid-template-columns: 1.35fr .65fr; gap: 46px; margin-top: 32px; padding: 24px 26px; color: #dddfe3; background: var(--saas-dark); }
.case-source-note strong { display: block; margin-bottom: 9px; color: #fff; font-size: 11px; }
.case-source-note p { margin: 0; color: #aeb0b4; font-size: 10px; line-height: 1.65; }
.case-source-note a { color: var(--saas-violet-light) !important; }

.saas-next { padding: 88px 0; color: #fff; background: linear-gradient(105deg, #6d37cf 0%, #834be5 52%, #5d2eb5 100%); }
.saas-next-grid { display: grid; grid-template-columns: 1fr 390px; gap: 80px; align-items: end; }
.saas-next p { margin: 0 0 24px; color: #d8c8ff; font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.saas-next h2 { margin: 0; color: #fff; font-size: clamp(40px, 4vw, 58px); line-height: 1.08; letter-spacing: -.06em; }
.saas-next a { display: flex; flex-direction: column; gap: 14px; padding: 24px 0 6px; color: #fff !important; border-top: 1px solid rgba(255,255,255,.5); }
.saas-next a span { color: #ddd0ff; font-size: 9px; letter-spacing: .1em; }
.saas-next a strong { font-size: 17px; }
.saas-footer { color: #a9abb0; background: #111214; }
.saas-footer .saas-shell { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.saas-footer span, .saas-footer a { color: #a9abb0 !important; font-size: 10px; }

.media-dialog { width: min(1420px, calc(100vw - 40px)); max-width: none; max-height: calc(100vh - 40px); padding: 0; overflow: auto; color: #fff; border: 1px solid #5a5c61; background: #16171a; box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.media-dialog::backdrop { background: rgba(8,9,11,.86); backdrop-filter: blur(8px); }
.media-dialog img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.media-dialog p { margin: 0; padding: 16px 60px 18px 18px; color: #c5c7cb; font-size: 11px; line-height: 1.6; }
.media-dialog-close { position: sticky; z-index: 2; top: 10px; float: right; margin: 10px 10px -52px 0; min-height: 34px; padding: 0 12px; border: 1px solid #6a6c70; border-radius: 0; color: #fff; background: rgba(20,21,24,.9); box-shadow: none; }

/* 2026-08-12 · selected Figma evidence, rebuilt as live compositions */
.hero-frame-main img,
.hero-frame-side img,
.source-clean img,
.theme-source-shot img,
.client-screen img { object-fit: contain !important; background: #111216; }
.hero-frame-main { background: #0e0f12; }
.hero-frame-side { width: 29%; background: #101115; }
.hero-frame-side img { padding: 12px 8px 0; }
.source-clean { background: #111216; }
.source-phone img { padding: 18px; }
.theme-source-shot { background: #f4f2ed; }
.theme-source-shot img { background: #f6f5f2; }
.client-screen-wrap { height: auto; min-height: 540px; }
.client-screen { width: 100%; min-height: 540px; }

.source-constellation {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  grid-template-rows: repeat(2, minmax(300px, 1fr));
  gap: 14px;
  min-height: 760px;
  padding: 54px;
  overflow: hidden;
  border: 1px solid #41434a;
  background:
    radial-gradient(circle at 50% 48%, rgba(141,96,255,.22), transparent 28%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #121318;
  background-size: auto, 30px 30px, 30px 30px, auto;
}
.source-window {
  position: relative;
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr);
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  border: 1px solid #50535b;
  border-radius: 12px;
  background: #f6f6f6;
  box-shadow: 0 24px 52px rgba(0,0,0,.32);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.source-window:hover,
.source-window:focus-visible { transform: translateY(-5px); border-color: #9d79ff; box-shadow: 0 30px 70px rgba(0,0,0,.44); }
.source-window img { width: 100%; height: 100%; object-fit: contain; background: #f5f5f5; }
.source-window-bar { display: flex; align-items: center; gap: 6px; padding: 0 12px; color: #b8bbc2; background: #1d1f24; }
.source-window-bar i { width: 6px; height: 6px; border-radius: 50%; background: #555861; }
.source-window-bar i:first-child { background: #ff725f; }
.source-window-bar i:nth-child(2) { background: #f7bd4f; }
.source-window-bar i:nth-child(3) { background: #4fc783; }
.source-window-bar b { margin-left: auto; font-size: 7px; letter-spacing: .12em; }
.constellation-core {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 200px;
  padding: 18px 20px;
  color: #fff;
  border: 1px solid rgba(177,148,255,.62);
  border-radius: 14px;
  background: rgba(19,20,25,.94);
  box-shadow: 0 22px 60px rgba(0,0,0,.5), 0 0 0 8px rgba(134,87,255,.08);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.constellation-core small { display: block; color: #bba5f6; font-size: 7px; letter-spacing: .16em; }
.constellation-core strong { display: block; margin-top: 10px; font-size: 20px; line-height: 1.13; }
.constellation-core span { display: block; margin-top: 10px; color: #979aa2; font-size: 8px; line-height: 1.5; }

.kiosk-story {
  display: grid;
  grid-template-columns: minmax(310px, .55fr) minmax(0, 1.45fr);
  gap: 48px;
  align-items: center;
  padding: 100px 0;
  border-top: 1px solid #4a4c51;
}
.kiosk-story-copy h3 { margin: 0 0 22px; color: #fff; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.12; letter-spacing: -.05em; }
.kiosk-story-copy > p:not(.evidence-index) { margin: 0; color: #b8babf; font-size: 13px; line-height: 1.9; }
.kiosk-story-copy dl { margin: 28px 0 0; border-top: 1px solid #484a4f; }
.kiosk-story-copy dl div { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid #383a40; }
.kiosk-story-copy dt { color: #b89cff; font-size: 9px; font-weight: 760; }
.kiosk-story-copy dd { margin: 0; color: #c2c4c9; font-size: 10px; line-height: 1.65; }
.kiosk-story-link { display: inline-flex; margin-top: 30px; padding-bottom: 6px; color: #c4aaff !important; border-bottom: 1px solid #7951df; font-size: 11px; font-weight: 700; }
.kiosk-floorstanding-wrap { min-width: 0; }
.kiosk-floorstanding-hero { width: 100%; aspect-ratio: 1586 / 992; border-color: #565960; background: #090a0d; box-shadow: 0 34px 90px rgba(0,0,0,.36), 0 0 0 1px rgba(186,158,255,.08); }
.kiosk-floorstanding-hero img { object-fit: contain; object-position: center; }
.kiosk-floorstanding-hero > span { color: #ece8f7; border: 1px solid rgba(255,255,255,.16); background: rgba(12,13,17,.74); backdrop-filter: blur(12px); }
.kiosk-flow-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-right: 1px solid #44464b; border-bottom: 1px solid #44464b; border-left: 1px solid #44464b; }
.kiosk-flow-strip > div { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; min-height: 76px; padding: 15px 16px; border-right: 1px solid #44464b; background: #18191d; }
.kiosk-flow-strip > div:last-child { border-right: 0; }
.kiosk-flow-strip b { grid-row: 1 / 3; align-self: start; color: #b99dff; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.kiosk-flow-strip span { align-self: end; color: #fff; font-size: 11px; font-weight: 720; }
.kiosk-flow-strip small { color: #8f9299; font-size: 8px; }

.product-network-live {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "admin admin admin device device device"
    "consumer consumer core core mobile mobile"
    "platform platform resource resource kiosk kiosk";
  grid-template-rows: 250px 220px 260px;
  gap: 14px;
  min-height: 0;
  margin-top: 34px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid #45474e;
  background:
    radial-gradient(circle at 50% 50%, rgba(130,79,255,.2), transparent 30%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #111216;
  background-size: auto, 32px 32px, 32px 32px, auto;
}
.network-core { grid-area: core; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 0; padding: 20px; text-align: center; border: 1px solid #8d69e7; background: rgba(25,22,33,.92); box-shadow: 0 0 60px rgba(124,77,255,.22); }
.network-core small { color: #bda5ff; font-size: 8px; letter-spacing: .18em; }
.network-core strong { margin-top: 12px; color: #fff; font-size: 34px; line-height: .95; letter-spacing: -.04em; }
.network-core span { max-width: 330px; margin-top: 16px; color: #9c9fa6; font-size: 8px; line-height: 1.55; }
.network-track { position: absolute; inset: 50%; width: 1px; height: 1px; box-shadow: 0 0 0 240px rgba(146,102,255,.06), 0 0 0 241px rgba(146,102,255,.14); border-radius: 50%; }
.network-node { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) 42px; min-width: 0; min-height: 0; padding: 0; overflow: hidden; color: #fff; border: 1px solid #4c4f56; background: #0c0d10; box-shadow: 0 18px 42px rgba(0,0,0,.28); transition: transform .24s ease, border-color .24s ease; }
.network-node:hover, .network-node:focus-visible { z-index: 3; transform: translateY(-5px); border-color: #a482ff; }
.network-node img { width: 100%; height: 100%; object-fit: contain; background: #f5f5f5; }
.network-node > span { display: flex; align-items: center; gap: 10px; padding: 0 14px; color: #d7d9dd; font-size: 10px; text-align: left; }
.network-node > span b { color: #9b9ea6; font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
.network-admin { grid-area: admin; }
.network-device { grid-area: device; }
.network-consumer { grid-area: consumer; }
.network-mobile { grid-area: mobile; }
.network-resource { grid-area: resource; }
.network-platform { grid-area: platform; }
.network-kiosk { grid-area: kiosk; grid-template-columns: minmax(0, 1fr); }
.network-kiosk img { object-position: 50% 16%; }
.network-mobile img { object-fit: contain; object-position: top center; background: #0c0d10; }
.network-kiosk img { object-fit: cover; object-position: top center; background: #0c0d10; }

.evidence-gallery { grid-auto-rows: 270px; }
.evidence-tile img { object-fit: contain !important; background: #f5f5f5; }
.evidence-tile-phone img { padding: 12px; background: #ececec; }

.state-source-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 42px; border: 1px solid #cbc6bb; background: #202125; }
.state-source { display: grid; grid-template-rows: minmax(0, 1fr) 54px; height: 620px; padding: 0; overflow: hidden; color: #fff; border: 1px solid #51545b; border-radius: 26px; background: #0c0d10; box-shadow: 0 22px 44px rgba(0,0,0,.3); transition: transform .24s ease, border-color .24s ease; }
.state-source:hover, .state-source:focus-visible { transform: translateY(-7px); border-color: #a486ff; }
.state-source img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 25px 25px 8px 8px; background: #f4f5f7; }
.state-source > span { display: flex; align-items: center; gap: 9px; padding: 0 8px; color: #d2d4d9; font-size: 9px; text-align: left; }
.state-source > span b { color: #a889ff; font-size: 7px; letter-spacing: .11em; }

@media (max-width: 1100px) {
  .saas-shell { width: min(100% - 48px, 1040px); }
  .saas-hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 54px; padding: 70px 0 60px; }
  .saas-hero-copy { max-width: 780px; }
  .saas-hero-visual { min-height: 570px; }
  .hero-frame-main { width: 76%; }
  .hero-frame-side { width: 38%; }
  .saas-context-grid { gap: 54px; }
  .saas-layer-map { grid-template-columns: repeat(2, 1fr); }
  .system-endpoint-grid { grid-template-columns: repeat(2, 1fr); }
  .system-foundation { grid-template-columns: 1fr; }
  .decision-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-story-grid { grid-template-columns: 1fr; }
  .theme-demo-head { grid-template-columns: 1fr; gap: 28px; }
  .theme-preview-app { grid-template-columns: 160px minmax(0, 1fr); }
  .theme-preview-mobile { grid-column: 1 / -1; width: min(420px, calc(100% - 48px)); margin: 0 auto 28px; }
  .system-proof-intro { grid-template-columns: 1fr; gap: 20px; }
  .analytics-suite-head { grid-template-columns: 1fr 1.4fr; }
  .analytics-suite-head > p:last-child { grid-column: 2; }
  .analytics-panel-copy { grid-template-columns: 1fr; gap: 24px; }
  .device-continuum-head { grid-template-columns: 1fr 1.4fr; }
  .device-continuum-head > p:last-child { grid-column: 2; }
  .evidence-library-head { grid-template-columns: 1fr; gap: 30px; }
  .evidence-filters { justify-content: flex-start; }
  .source-ledger { grid-template-columns: repeat(3, 1fr); }
  .evidence-gallery { grid-template-columns: repeat(3, 1fr); }
  .system-proof-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .state-visuals { height: auto; }
  .source-constellation { min-height: 680px; padding: 36px; grid-template-rows: repeat(2, minmax(260px, 1fr)); }
  .kiosk-story { grid-template-columns: 1fr; }
  .kiosk-floorstanding-wrap { width: 100%; }
  .product-network-live { min-height: 760px; padding: 30px; }
  .state-source-grid { grid-template-columns: repeat(2, 1fr); }
  .evidence-story-pos,
  .evidence-story-terminal,
  .evidence-story-booking,
  .evidence-story-ecosystem,
  .evidence-story-client { grid-template-columns: 1fr; gap: 44px; }
  .lowcode-story-head { grid-template-columns: 1fr; gap: 30px; }
  .lowcode-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lowcode-proof-grid { grid-template-columns: 1fr 1fr; }
  .lowcode-proof-grid .case-media:first-child { grid-column: 1 / -1; }
  .evidence-story-booking .booking-visuals,
  .evidence-story-client .client-screen-wrap { order: 2; }
  .saas-map-proof { grid-template-columns: 1fr; }
  .saas-map-proof .case-media { height: 620px; }
}

@media (max-width: 768px) {
  .pisell-case main { padding-top: 62px; }
  .saas-shell { width: min(100% - 28px, 720px); }
  .saas-hero-grid { padding: 50px 0 38px; }
  .saas-eyebrow { margin-bottom: 30px; }
  .saas-hero h1 { font-size: clamp(48px, 14vw, 66px); }
  .saas-lead { font-size: 14px; line-height: 1.75; }
  .saas-hero-actions { flex-direction: column; }
  .saas-hero-actions a { justify-content: center; }
  .saas-hero-visual { min-height: 390px; margin-top: 6px; }
  .saas-hero-visual-ai { min-height: 0; margin-top: 26px; }
  .hero-ecosystem { border-radius: 12px; }
  .hero-ecosystem figcaption { right: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 10px 12px; }
  .hero-frame-main { top: 36px; width: 86%; }
  .hero-frame-side { width: 48%; }
  .hero-orbit-b { left: 0; bottom: 42px; }
  .saas-fact-grid { grid-template-columns: 1fr 1fr; }
  .saas-fact-grid > div { min-height: 132px; padding: 20px 16px; border-bottom: 1px solid var(--saas-line); }
  .saas-fact-grid strong { margin-top: 12px; font-size: 19px; }
  .saas-jump { top: 62px; overflow-x: auto; }
  .saas-jump .saas-shell { width: max-content; min-width: calc(100% - 28px); gap: 22px; }
  .saas-section { padding: 74px 0 82px; }
  .saas-section-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 44px; }
  .saas-section-head h2 { font-size: clamp(38px, 11vw, 50px); }
  .saas-context-grid { grid-template-columns: 1fr; gap: 40px; }
  .saas-dropcap::first-letter { font-size: 62px; }
  .saas-layer-map { grid-template-columns: 1fr; }
  .saas-layer-map article { min-height: 230px; }
  .saas-layer-map article::before { margin-bottom: 34px; }
  .saas-system-map { padding: 10px; }
  .system-map-topline { grid-template-columns: 1fr; gap: 8px; }
  .system-endpoint-grid { grid-template-columns: 1fr; }
  .system-endpoint-grid article { min-height: 160px; }
  .system-endpoint-grid article::before { margin-bottom: 24px; }
  .system-core-hub { grid-template-columns: 1fr; }
  .system-core-hub ul { grid-template-columns: repeat(2, 1fr); }
  .saas-map-proof { gap: 36px; margin-top: 48px; }
  .saas-map-proof .case-media { height: 390px; }
  .decision-grid { grid-template-columns: 1fr; }
  .decision-grid article { min-height: 260px; }
  .decision-grid h3 { margin-top: 34px; }
  .theme-story-grid { gap: 42px; }
  .theme-demo { margin-top: 58px; }
  .theme-demo-head { padding: 22px; }
  .theme-controls { grid-template-columns: 1fr; }
  .theme-controls .density-toggle { grid-column: auto; }
  .theme-token-live { grid-template-columns: 1fr 1fr; }
  .theme-token-live > div:nth-child(2) { border-right: 0; }
  .theme-token-live > div:nth-child(-n+2) { border-bottom: 1px solid #dedbd3; }
  .theme-preview-app { grid-template-columns: 1fr; }
  .theme-preview-nav { display: grid; grid-template-columns: repeat(5, max-content); overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--demo-line); }
  .theme-preview-nav strong, .theme-preview-nav small { display: none; }
  .theme-preview-nav span { justify-content: center; }
  .theme-preview-main { padding: 18px; }
  .theme-preview-mobile { grid-column: auto; width: auto; margin: 0 18px 18px; }
  .theme-kpi-grid { grid-template-columns: 1fr 1fr; }
  .theme-kpi-grid article:last-child { grid-column: 1 / -1; }
  .system-proof-notes { grid-template-columns: 1fr 1fr; }
  .evidence-story { padding: 66px 0; }
  .evidence-copy h3 { font-size: 34px; }
  .terminal-pair { grid-template-columns: 1fr; }
  .booking-visuals { min-height: 410px; }
  .booking-visuals .case-media:first-child { inset: 0 40px 42px 0; }
  .booking-visuals .booking-time-card { width: 54%; height: 48%; }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .ecosystem-grid .case-media { min-height: 270px; }
  .lowcode-story { padding: 76px 0; }
  .lowcode-builder-media { margin-top: 36px; }
  .lowcode-proof-grid .case-media { min-height: 260px; }
  .client-screen-wrap { height: 580px; }
  .analytics-suite { padding: 72px 0; }
  .analytics-suite-head { grid-template-columns: 1fr; gap: 22px; }
  .analytics-suite-head > p:last-child { grid-column: auto; }
  .analytics-tabs { grid-template-columns: 1fr; }
  .analytics-tabs button { min-height: 74px; }
  .analytics-stage-media { aspect-ratio: 1.5 / 1; }
  .analytics-panel-copy { min-height: 0; padding: 24px 20px 26px; }
  .analytics-context-grid { grid-template-columns: 1fr; }
  .analytics-context-grid article { min-height: 150px; }
  .analytics-context-grid h4 { margin-top: 28px; }
  .device-continuum { padding-top: 72px; }
  .device-continuum-head { grid-template-columns: 1fr; gap: 22px; }
  .device-continuum-head > p:last-child { grid-column: auto; }
  .evidence-library { padding-top: 76px; }
  .source-ledger { grid-template-columns: repeat(2, 1fr); }
  .evidence-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 230px; }
  .state-intro { grid-template-columns: 1fr; gap: 14px; }
  .state-matrix { overflow-x: auto; }
  .state-row { min-width: 760px; }
  .state-visuals { height: auto; }
  .source-constellation { grid-template-columns: 1fr; grid-template-rows: repeat(4, 280px); min-height: 0; padding: 20px; }
  .constellation-core { position: static; grid-row: 1; width: auto; transform: none; }
  .source-window-admin { grid-row: 2; }
  .source-window-resource { grid-row: 3; }
  .source-window-consumer { grid-row: 4; }
  .source-window-terminal { grid-row: 5; }
  .kiosk-flow-strip > div { padding: 14px 12px; }
  .product-network-live { grid-template-columns: 1fr 1fr; grid-template-areas: "core core" "admin device" "consumer mobile" "resource resource" "platform kiosk"; grid-template-rows: none; min-height: 0; }
  .network-node { min-height: 260px; }
  .state-source-grid { padding: 22px; }
  .state-source { height: 560px; }
  .result-grid, .reflection-grid { grid-template-columns: 1fr; }
  .result-grid article { min-height: 240px; }
  .case-source-note { grid-template-columns: 1fr; gap: 22px; }
  .saas-next-grid { grid-template-columns: 1fr; gap: 42px; }
  .saas-next { padding: 70px 0; }
}

@media (max-width: 480px) {
  .saas-shell { width: calc(100% - 24px); }
  .saas-eyebrow span:nth-child(3) { display: none; }
  .saas-hero h1 { font-size: 47px; }
  .saas-hero-visual { min-height: 310px; }
  .saas-hero-visual-ai { min-height: 0; }
  .hero-ecosystem figcaption strong { font-size: 9px; }
  .hero-ecosystem figcaption small { display: none; }
  .hero-frame-main { top: 28px; width: 92%; }
  .hero-frame-side { width: 52%; }
  .hero-orbit { height: 28px; padding: 0 9px; font-size: 7px; }
  .hero-orbit-a { display: none; }
  .saas-fact-grid { grid-template-columns: 1fr; }
  .saas-fact-grid > div { min-height: 112px; }
  .saas-map-proof .case-media { height: 310px; }
  .booking-visuals { min-height: 330px; }
  .booking-visuals .case-media:first-child { inset: 0 20px 32px 0; }
  .booking-visuals .booking-time-card { width: 58%; }
  .client-screen-wrap { height: 500px; }
  .lowcode-story-head h3 { font-size: 38px; }
  .lowcode-builder-media { aspect-ratio: 1.55 / 1; }
  .lowcode-capability-grid,
  .lowcode-proof-grid { grid-template-columns: 1fr; }
  .lowcode-proof-grid .case-media:first-child { grid-column: auto; }
  .lowcode-capability-grid article { min-height: 150px; }
  .theme-layer-list > div { grid-template-columns: 34px 74px 1fr; }
  .theme-preview-toolbar { align-items: flex-start; }
  .theme-preview-toolbar h4 { font-size: 18px; }
  .theme-preview-toolbar button { padding: 0 10px; }
  .theme-kpi-grid { grid-template-columns: 1fr; }
  .theme-kpi-grid article:last-child { grid-column: auto; }
  .theme-data-head, .theme-data-row { grid-template-columns: .8fr 1fr .7fr; }
  .theme-data-row strong { display: none; }
  .system-proof-notes { grid-template-columns: 1fr; }
  .system-proof-notes article { min-height: 180px; }
  .system-proof-notes h3 { margin-top: 34px; }
  .source-ledger { grid-template-columns: 1fr 1fr; }
  .source-ledger > div { min-height: 116px; }
  .evidence-gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .kiosk-floorstanding-hero { aspect-ratio: 1586 / 992; }
  .kiosk-floorstanding-hero img { object-position: center; }
  .kiosk-flow-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kiosk-flow-strip > div:nth-child(2) { border-right: 0; }
  .kiosk-flow-strip > div:nth-child(-n+2) { border-bottom: 1px solid #44464b; }
  .product-network-live { grid-template-columns: 1fr; grid-template-areas: "core" "admin" "device" "consumer" "mobile" "resource" "platform" "kiosk"; grid-template-rows: none; padding: 16px; }
  .network-core { min-height: 170px; }
  .network-node { min-height: 230px; }
  .state-source-grid { grid-template-columns: 1fr; padding: 16px; }
  .state-source { height: 540px; }
  .evidence-source-details > summary small { display: none; }
  .saas-footer .saas-shell { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case-media img, .saas-hero-actions a { transition: none; }
}

/* 2026-08-14 · source-ratio media pass
   Product UI is evidence, so each primary screenshot keeps its native frame.
   Fixed-height cropping remains reserved for small overview thumbnails only. */
.evidence-story-pos .case-media {
  min-height: 0;
  aspect-ratio: 1448 / 1086;
}

.terminal-pair {
  grid-template-columns: minmax(0, 1.432fr) minmax(0, .463fr);
  align-items: start;
}
.terminal-pair .case-media:first-child {
  min-height: 0;
  aspect-ratio: 3582 / 2502;
}
.terminal-pair .case-media:last-child {
  min-height: 0;
  aspect-ratio: 853 / 1844;
}
.terminal-pair .case-media:first-child img,
.terminal-pair .source-phone img {
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.booking-visuals {
  min-height: 0;
  aspect-ratio: 1.22 / 1;
}
.booking-visuals .case-media:first-child {
  inset: auto;
  top: 0;
  left: 0;
  width: 86%;
  height: auto;
  aspect-ratio: 1419 / 1108;
}
.booking-visuals .booking-time-card {
  right: 0;
  bottom: 0;
  width: 58%;
  height: auto;
  aspect-ratio: 938 / 614;
  border-width: 7px;
}
.booking-visuals .case-media:first-child img,
.booking-visuals .booking-time-card img {
  object-fit: cover !important;
  object-position: center !important;
}

.ecosystem-grid { align-items: start; }
.ecosystem-grid .case-media {
  min-height: 0;
  height: auto;
}
.ecosystem-grid .case-media:first-child { aspect-ratio: 2880 / 1800; }
.ecosystem-grid .case-media:last-child { aspect-ratio: 1520 / 1034; }
.ecosystem-grid .case-media img {
  object-fit: cover !important;
  object-position: center !important;
}

.lowcode-builder-media {
  min-height: 0;
  aspect-ratio: 1745 / 901;
}
.lowcode-builder-media img {
  object-fit: cover !important;
  object-position: center !important;
}

.lowcode-proof-grid { align-items: start; }
.lowcode-proof-grid .case-media {
  min-height: 0;
  height: auto;
}
.lowcode-proof-grid .case-media:nth-child(1) { aspect-ratio: 1485 / 1059; }
.lowcode-proof-grid .case-media:nth-child(2) { aspect-ratio: 4320 / 2700; }
.lowcode-proof-grid .case-media:nth-child(3) { aspect-ratio: 2880 / 2048; }
.lowcode-proof-grid .case-media img {
  object-fit: cover !important;
  object-position: center !important;
}

.client-screen {
  height: auto;
  aspect-ratio: 2880 / 2048;
}
.client-screen img {
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 1100px) {
  .terminal-pair .case-media:first-child,
  .terminal-pair .case-media:last-child,
  .ecosystem-grid .case-media,
  .lowcode-proof-grid .case-media { min-height: 0; }
  .booking-visuals { min-height: 0; }
}

@media (max-width: 768px) {
  .terminal-pair { grid-template-columns: minmax(0, 1fr); }
  .terminal-pair .case-media:first-child,
  .terminal-pair .case-media:last-child { min-height: 0; }
  .terminal-pair .case-media:last-child {
    width: min(58%, 340px);
    justify-self: center;
  }
  .booking-visuals {
    min-height: 0;
    aspect-ratio: 1.08 / 1;
  }
  .booking-visuals .case-media:first-child {
    inset: auto;
    top: 0;
    left: 0;
    width: 92%;
  }
  .booking-visuals .booking-time-card {
    width: 64%;
    height: auto;
  }
  .ecosystem-grid .case-media,
  .lowcode-proof-grid .case-media { min-height: 0; }
}

@media (max-width: 480px) {
  .booking-visuals {
    min-height: 0;
    aspect-ratio: .98 / 1;
  }
  .booking-visuals .booking-time-card { width: 70%; }
  .lowcode-builder-media { aspect-ratio: 1745 / 901; }
  .client-screen { aspect-ratio: 2880 / 2048; }
}

/* Final media-fit enforcement. Keep this after the historical responsive
   rules so no fixed thumbnail height can reintroduce crop or inner whitespace. */
.network-node {
  --network-image: none;
  background: #0d0e12;
}
.network-admin { --network-image: url("/img/pisell-saas/sales-workspace-en-v2.png"); }
.network-device { --network-image: url("/img/pisell-saas/figma-selected/terminal-1344-14174.png"); }
.network-consumer { --network-image: url("/img/pisell-saas/figma-selected/client-1431-10190.png"); }
.network-mobile { --network-image: url("/img/pisell-saas/merchant-dashboard-mobile.png"); }
.network-resource { --network-image: url("/img/pisell-saas/resource-week-view-en-v2.png"); }
.network-platform { --network-image: url("/img/picoding-case/concept-page-builder.png"); }
.network-kiosk { --network-image: url("/img/pisell-saas/rainbow-kiosk-menu-v2.png"); }
.network-node::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 42px;
  background-image: linear-gradient(rgba(10, 11, 15, .2), rgba(10, 11, 15, .34)), var(--network-image);
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(.82);
  opacity: .66;
  transform: scale(1.09);
  pointer-events: none;
}
.network-node img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .24));
}
.network-node > span { position: relative; z-index: 2; background: #0d0e12; }

.source-window { --media-stage-image: none; isolation: isolate; }
.source-window::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 42px 0 0;
  background-image: linear-gradient(rgba(12, 13, 17, .2), rgba(12, 13, 17, .32)), var(--media-stage-image);
  background-position: center;
  background-size: cover;
  filter: blur(16px) saturate(.8);
  opacity: .62;
  transform: scale(1.08);
  pointer-events: none;
}
.source-window-bar { position: relative; z-index: 2; }
.source-window img {
  position: relative;
  z-index: 1;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
}

.evidence-gallery {
  display: block;
  columns: 4;
  column-gap: 14px;
  margin-top: 32px;
}
.evidence-tile {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0 0 14px;
  break-inside: avoid;
  aspect-ratio: auto;
}
.evidence-tile img,
.evidence-tile-phone img {
  display: block;
  width: 100%;
  height: auto;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #f3f3f3 !important;
}

@media (max-width: 1100px) { .evidence-gallery { columns: 3; } }
@media (max-width: 768px) { .evidence-gallery { columns: 2; } }
@media (max-width: 480px) { .evidence-gallery { columns: 1; } }

/* Product network is an overview made from mixed desktop, tablet and phone
   sources. Keep every source frame intact, then use a restrained enlargement
   of the same image behind it so portrait assets never read as empty cards. */
.network-node {
  --network-image: none;
  background: #0d0e12;
}
.network-admin { --network-image: url("/img/pisell-saas/sales-workspace-en-v2.png"); }
.network-device { --network-image: url("/img/pisell-saas/figma-selected/terminal-1344-14174.png"); }
.network-consumer { --network-image: url("/img/pisell-saas/figma-selected/client-1431-10190.png"); }
.network-mobile { --network-image: url("/img/pisell-saas/merchant-dashboard-mobile.png"); }
.network-resource { --network-image: url("/img/pisell-saas/resource-week-view-en-v2.png"); }
.network-platform { --network-image: url("/img/picoding-case/concept-page-builder.png"); }
.network-kiosk { --network-image: url("/img/pisell-saas/rainbow-kiosk-menu-v2.png"); }
.network-node::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 42px;
  background-image:
    linear-gradient(rgba(10, 11, 15, .2), rgba(10, 11, 15, .34)),
    var(--network-image);
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(.82);
  opacity: .66;
  transform: scale(1.09);
  pointer-events: none;
}
.network-node img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .24));
}
.network-node > span { position: relative; z-index: 2; background: #0d0e12; }

/* The four system proof windows also mix source ratios. Preserve the complete
   screen and turn the unavoidable remainder into an intentional media stage. */
.source-window { --media-stage-image: none; isolation: isolate; }
.source-window::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 42px 0 0;
  background-image:
    linear-gradient(rgba(12, 13, 17, .2), rgba(12, 13, 17, .32)),
    var(--media-stage-image);
  background-position: center;
  background-size: cover;
  filter: blur(16px) saturate(.8);
  opacity: .62;
  transform: scale(1.08);
  pointer-events: none;
}
.source-window-bar { position: relative; z-index: 2; }
.source-window img {
  position: relative;
  z-index: 1;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
}

/* The complete evidence archive used one fixed thumbnail height, which cut
   wide product screens and padded phone screens. A masonry flow lets every
   source keep its actual width/height ratio. */
.evidence-gallery {
  display: block;
  columns: 4;
  column-gap: 14px;
  margin-top: 32px;
}
.evidence-tile {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0 0 14px;
  break-inside: avoid;
  aspect-ratio: auto;
}
.evidence-tile img,
.evidence-tile-phone img {
  display: block;
  width: 100%;
  height: auto;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #f3f3f3 !important;
}

@media (max-width: 1100px) {
  .evidence-gallery { columns: 3; }
}

@media (max-width: 768px) {
  .evidence-gallery { columns: 2; }
}

@media (max-width: 480px) {
  .evidence-gallery { columns: 1; }
}

/* 2026-08-14 · flagship case polish */
.case-scroll-progress {
  position: fixed;
  z-index: 500;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
}
.case-scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #6a4cff 0%, #b69aff 60%, #f2a7d7 100%);
  box-shadow: 0 0 16px rgba(131, 91, 255, .55);
  transform: scaleX(var(--case-scroll, 0));
  transform-origin: left center;
  will-change: transform;
}

.saas-hero-copy,
.hero-ecosystem { animation: caseHeroIn .8s cubic-bezier(.2,.75,.24,1) both; }
.hero-ecosystem { animation-delay: .12s; transition: transform .55s cubic-bezier(.2,.75,.24,1), border-color .35s ease, box-shadow .55s ease; }
.hero-ecosystem:hover { transform: translateY(-7px) scale(1.008); border-color: rgba(209,199,255,.74); box-shadow: 0 54px 110px rgba(0,0,0,.56), 0 0 0 1px rgba(255,255,255,.06) inset; }
@keyframes caseHeroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.case-media,
.source-window,
.network-node,
.state-source { outline-offset: 4px; }
.case-media::after,
.source-window::after,
.network-node::after {
  content: "查看大图 ↗";
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  padding: 7px 9px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(12,13,17,.74);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: .08em;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .24s ease, transform .24s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
}
.case-media:hover::after,
.case-media:focus-visible::after,
.source-window:hover::after,
.source-window:focus-visible::after,
.network-node:hover::after,
.network-node:focus-visible::after { opacity: 1; transform: translateY(0); }

.theme-story-grid { grid-template-columns: minmax(0, .74fr) minmax(560px, 1.26fr); gap: 54px; }
.theme-source-shot {
  aspect-ratio: 1485 / 1059;
  background: #fff;
  box-shadow: 0 28px 64px rgba(47,42,33,.14);
  overflow: hidden;
}
.theme-source-shot img {
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #fff !important;
}

.source-constellation {
  gap: 18px;
  min-height: 820px;
  padding: 42px;
}
.source-window { grid-template-rows: 42px minmax(0, 1fr); }
.source-window img { padding: 0 !important; object-fit: cover; object-position: top center; }
.source-window-admin img { object-position: 50% 18%; }
.source-window-resource img { object-position: 50% 16%; }

.saas-evidence { background: #18191d; }
.evidence-journey {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: -20px 0 70px;
  border-top: 1px solid #494b50;
  border-left: 1px solid #494b50;
}
.evidence-journey > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 3px 10px;
  min-height: 88px;
  padding: 17px 18px;
  border-right: 1px solid #494b50;
  border-bottom: 1px solid #494b50;
  background: #202126;
}
.evidence-journey span { grid-row: 1 / 3; color: #b9a0ff; font-family: Georgia, serif; font-size: 21px; }
.evidence-journey b { align-self: end; color: #fff; font-size: 11px; }
.evidence-journey small { color: #8e9198; font-size: 8px; }
.evidence-story { gap: 80px; padding: 116px 0; }
.evidence-story-pos { grid-template-columns: minmax(330px, .54fr) minmax(0, 1.46fr); }
.evidence-story-terminal { grid-template-columns: minmax(330px, .56fr) minmax(0, 1.44fr); }
.evidence-story-booking { grid-template-columns: minmax(0, 1.48fr) minmax(330px, .52fr); }
.evidence-story-ecosystem { grid-template-columns: minmax(330px, .56fr) minmax(0, 1.44fr); }
.evidence-copy h3 { font-size: clamp(29px, 2.85vw, 44px); }

.terminal-pair { grid-template-columns: minmax(0, 1.46fr) minmax(280px, .54fr); align-items: stretch; }
.terminal-pair .case-media:first-child,
.terminal-pair .case-media:last-child { aspect-ratio: auto; min-height: 520px; }
.terminal-pair .case-media:first-child img { object-fit: cover !important; object-position: top center; background: #111216; }
.terminal-pair .source-phone { background: radial-gradient(circle at 50% 45%, #262335 0%, #111216 66%); }
.terminal-pair .source-phone img { padding: 24px !important; object-fit: contain !important; background: transparent !important; }

.booking-visuals { min-height: 680px; }
.booking-visuals .case-media:first-child { inset: 0 112px 72px 0; }
.booking-visuals .case-media:first-child img { object-fit: cover !important; object-position: top center; }
.booking-visuals .booking-time-card { width: 56%; height: 52%; border: 10px solid #18191d; }
.booking-visuals .booking-time-card img { object-fit: cover !important; object-position: top center; }

.ecosystem-grid { grid-template-columns: 1.08fr .92fr; gap: 18px; }
.ecosystem-grid .case-media { min-height: 460px; background: #fff; }
.ecosystem-grid .case-media img { padding: 0 !important; object-fit: cover !important; object-position: top center; background: #fff !important; }

.lowcode-story { padding: 126px 0; }
.lowcode-builder-stage {
  position: relative;
  margin-top: 60px;
}
.lowcode-builder-media {
  margin-top: 0;
  aspect-ratio: 1745 / 901;
  border-color: #575a61;
  background: #f2f2f2;
  box-shadow: 0 36px 90px rgba(0,0,0,.26);
}
.lowcode-builder-media img {
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #f2f2f2 !important;
}
.lowcode-builder-legend {
  position: absolute;
  z-index: 3;
  right: 2.2%;
  bottom: 4.5%;
  width: 31%;
  padding: 20px 22px;
  color: #fff;
  border: 1px solid rgba(192,169,255,.6);
  border-radius: 12px;
  background: rgba(18,19,24,.94);
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
  backdrop-filter: blur(16px);
  pointer-events: none;
}
.lowcode-builder-legend > p {
  margin: 0 0 12px;
  color: #bca7f7;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .16em;
}
.lowcode-builder-legend ol { margin: 0; padding: 0; list-style: none; }
.lowcode-builder-legend li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 2px 9px;
  padding: 9px 0;
  border-top: 1px solid #3e4047;
}
.lowcode-builder-legend li b {
  grid-row: 1 / 3;
  color: #9d7bef;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 400;
}
.lowcode-builder-legend li span { color: #fff; font-size: 10px; font-weight: 690; }
.lowcode-builder-legend li small { color: #9699a1; font-size: 7px; }
.lowcode-proof-grid { grid-template-columns: 1.16fr .92fr .92fr; gap: 18px; }
.lowcode-proof-grid .case-media { min-height: 430px; border-color: #565960; background: #fff; }
.lowcode-proof-grid .case-media img { padding: 0 !important; object-fit: cover !important; object-position: top center; background: #f4f4f4 !important; }

.client-screen-wrap { min-height: 0; height: auto; overflow: visible; background: #111216; }
.client-screen { width: 100%; min-height: 0; aspect-ratio: 2880 / 2048; }
.client-screen img { object-fit: cover !important; object-position: top center; background: #f3f3f3; }

.product-network-live {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "admin admin admin device device device"
    "consumer consumer core core mobile mobile"
    "platform platform resource resource kiosk kiosk";
  grid-template-rows: 250px 220px 260px;
  gap: 14px;
  min-height: 0;
}
.network-core,
.network-node,
.network-consumer,
.network-resource { min-height: 0; }
.network-node img { padding: 0 !important; object-fit: cover; object-position: top center; background: #f5f5f5; }
.network-platform img { object-position: center; }
.network-mobile img { object-fit: contain; object-position: top center; background: #0c0d10; }
.network-kiosk img { object-fit: cover; object-position: top center; background: #0c0d10; }

.evidence-source-details { border-radius: 14px; overflow: hidden; }
.evidence-source-details > summary { transition: background .22s ease; }
.evidence-source-details > summary:hover { background: #23252a; }
.evidence-gallery { grid-auto-rows: 300px; gap: 14px; }
.evidence-tile img { padding: 0 !important; object-fit: cover !important; object-position: top center; background: #f5f5f5; }
.evidence-tile-phone img { padding: 18px !important; object-fit: contain !important; background: #17181d; }

.case-media,
.source-window,
.network-node {
  isolation: isolate;
  transition: border-color .24s ease, box-shadow .24s ease, transform .32s cubic-bezier(.2,.75,.24,1);
}
.case-media:hover,
.source-window:hover,
.network-node:hover {
  z-index: 4;
  border-color: #8e72d7;
  box-shadow: 0 26px 70px rgba(0,0,0,.28);
  transform: translateY(-3px);
}
.case-media:active,
.source-window:active,
.network-node:active { transform: translateY(-1px) scale(.997); }

.case-reveal-ready [data-case-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s cubic-bezier(.2,.75,.24,1), transform .65s cubic-bezier(.2,.75,.24,1);
}
.case-reveal-ready [data-case-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .theme-story-grid { grid-template-columns: 1fr; }
  .evidence-journey { grid-template-columns: repeat(3, 1fr); }
  .evidence-story-pos,
  .evidence-story-terminal,
  .evidence-story-booking,
  .evidence-story-ecosystem { grid-template-columns: 1fr; }
  .terminal-pair .case-media:first-child,
  .terminal-pair .case-media:last-child { min-height: 420px; }
  .booking-visuals { min-height: 620px; }
  .product-network-live { grid-template-columns: 1fr 1fr; grid-template-areas: "core core" "admin device" "consumer mobile" "resource resource" "platform kiosk"; grid-template-rows: none; min-height: 0; padding: 26px; }
  .network-node { min-height: 280px; }
}

@media (max-width: 768px) {
  .evidence-journey { grid-template-columns: 1fr 1fr; margin-bottom: 30px; }
  .evidence-story { gap: 40px; padding: 76px 0; }
  .terminal-pair { grid-template-columns: 1fr; }
  .terminal-pair .case-media:first-child { min-height: 360px; }
  .terminal-pair .case-media:last-child { min-height: 520px; }
  .booking-visuals { min-height: 460px; }
  .booking-visuals .case-media:first-child { inset: 0 36px 44px 0; }
  .booking-visuals .booking-time-card { width: 58%; height: 48%; border-width: 6px; }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .ecosystem-grid .case-media { min-height: 320px; }
  .lowcode-story { padding: 80px 0; }
  .lowcode-builder-media { aspect-ratio: 1745 / 901; }
  .lowcode-builder-legend { right: 2%; bottom: 4%; width: 38%; padding: 14px 16px; }
  .lowcode-builder-legend li { padding: 6px 0; }
  .lowcode-proof-grid { grid-template-columns: 1fr; }
  .lowcode-proof-grid .case-media { min-height: 300px; }
  .product-network-live { grid-template-columns: 1fr; grid-template-areas: "core" "admin" "device" "consumer" "mobile" "resource" "platform" "kiosk"; grid-template-rows: none; min-height: 0; }
  .network-node { min-height: 300px; }
  .evidence-gallery { grid-auto-rows: 250px; }
}

@media (max-width: 480px) {
  .evidence-journey { grid-template-columns: 1fr; }
  .theme-source-shot { aspect-ratio: 1485 / 1059; }
  .terminal-pair .case-media:first-child { min-height: 280px; }
  .terminal-pair .case-media:last-child { min-height: 460px; }
  .booking-visuals { min-height: 360px; }
  .lowcode-builder-media { aspect-ratio: 1.45 / 1; }
  .lowcode-builder-media img { object-position: left center !important; }
  .lowcode-builder-stage { display: grid; gap: 10px; }
  .lowcode-builder-legend {
    position: static;
    width: auto;
    padding: 16px 18px;
    border-radius: 0;
    background: #202126;
  }
  .lowcode-builder-legend ol { display: grid; grid-template-columns: 1fr 1fr; }
  .lowcode-builder-legend li:nth-child(even) { padding-left: 12px; border-left: 1px solid #3e4047; }
  .client-screen { aspect-ratio: 1.25 / 1; }
  .evidence-gallery { grid-auto-rows: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .saas-hero-copy,
  .hero-ecosystem { animation: none; }
  .case-reveal-ready [data-case-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-ecosystem:hover { transform: none; }
}

/* Mixed-ratio overview and archive enforcement. This sits after the legacy
   thumbnail rules and before the primary-evidence ratio map. */
.network-node { --network-image: none; background: #0d0e12; }
.network-admin { --network-image: url("/img/pisell-saas/sales-workspace-en-v2.png"); }
.network-device { --network-image: url("/img/pisell-saas/figma-selected/terminal-1344-14174.png"); }
.network-consumer { --network-image: url("/img/pisell-saas/figma-selected/client-1431-10190.png"); }
.network-mobile { --network-image: url("/img/pisell-saas/merchant-dashboard-mobile.png"); }
.network-resource { --network-image: url("/img/pisell-saas/resource-week-view-en-v2.png"); }
.network-platform { --network-image: url("/img/picoding-case/concept-page-builder.png"); }
.network-kiosk { --network-image: url("/img/pisell-saas/rainbow-kiosk-menu-v2.png"); }
.network-node::before {
  content: ""; position: absolute; z-index: 0; inset: 0 0 42px;
  background-image: linear-gradient(rgba(10,11,15,.2), rgba(10,11,15,.34)), var(--network-image);
  background-position: center; background-size: cover;
  filter: blur(18px) saturate(.82); opacity: .66; transform: scale(1.09); pointer-events: none;
}
.network-node img {
  position: relative; z-index: 1; width: 100%; height: 100%; padding: 0 !important;
  object-fit: contain !important; object-position: center !important;
  background: transparent !important; filter: drop-shadow(0 12px 24px rgba(0,0,0,.24));
}
.network-node > span { position: relative; z-index: 2; background: #0d0e12; }

.source-window { --media-stage-image: none; isolation: isolate; }
.source-window::before {
  content: ""; position: absolute; z-index: 0; inset: 42px 0 0;
  background-image: linear-gradient(rgba(12,13,17,.2), rgba(12,13,17,.32)), var(--media-stage-image);
  background-position: center; background-size: cover;
  filter: blur(16px) saturate(.8); opacity: .62; transform: scale(1.08); pointer-events: none;
}
.source-window-bar { position: relative; z-index: 2; }
.source-window img {
  position: relative; z-index: 1; padding: 0 !important;
  object-fit: contain !important; object-position: center !important; background: transparent !important;
}

.evidence-gallery { display: block; columns: 4; column-gap: 14px; margin-top: 32px; }
.evidence-tile {
  display: block; width: 100%; height: auto; min-height: 0; margin: 0 0 14px;
  break-inside: avoid; aspect-ratio: auto;
}
.evidence-tile img,
.evidence-tile-phone img {
  display: block; width: 100%; height: auto; padding: 0 !important;
  object-fit: contain !important; object-position: center !important; background: #f3f3f3 !important;
}
@media (max-width: 1100px) { .evidence-gallery { columns: 3; } }
@media (max-width: 768px) { .evidence-gallery { columns: 2; } }
@media (max-width: 480px) { .evidence-gallery { columns: 1; } }

/* Native source ratios: primary product evidence must never inherit the
   fixed-height crop rules used by overview thumbnails. */
.evidence-story-pos .case-media {
  min-height: 0;
  aspect-ratio: 1448 / 1086;
}

.terminal-pair {
  grid-template-columns: minmax(0, 1.432fr) minmax(0, .463fr);
  align-items: start;
}
.terminal-pair .case-media:first-child {
  min-height: 0;
  aspect-ratio: 3582 / 2502;
}
.terminal-pair .case-media:last-child {
  min-height: 0;
  aspect-ratio: 853 / 1844;
}
.terminal-pair .case-media:first-child img,
.terminal-pair .source-phone img {
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.booking-visuals {
  min-height: 0;
  aspect-ratio: 1.22 / 1;
}
.booking-visuals .case-media:first-child {
  inset: auto;
  top: 0;
  left: 0;
  width: 86%;
  height: auto;
  aspect-ratio: 1419 / 1108;
}
.booking-visuals .booking-time-card {
  right: 0;
  bottom: 0;
  width: 58%;
  height: auto;
  aspect-ratio: 938 / 614;
  border-width: 7px;
}
.booking-visuals .case-media:first-child img,
.booking-visuals .booking-time-card img {
  object-fit: cover !important;
  object-position: center !important;
}

.ecosystem-grid { align-items: start; }
.ecosystem-grid .case-media {
  min-height: 0;
  height: auto;
}
.ecosystem-grid .case-media:first-child { aspect-ratio: 2880 / 1800; }
.ecosystem-grid .case-media:last-child { aspect-ratio: 1520 / 1034; }
.ecosystem-grid .case-media img {
  object-fit: cover !important;
  object-position: center !important;
}

.lowcode-builder-media {
  min-height: 0;
  aspect-ratio: 1745 / 901;
}
.lowcode-builder-media img {
  object-fit: cover !important;
  object-position: center !important;
}

.lowcode-proof-grid { align-items: start; }
.lowcode-proof-grid .case-media {
  min-height: 0;
  height: auto;
}
.lowcode-proof-grid .case-media:nth-child(1) { aspect-ratio: 1485 / 1059; }
.lowcode-proof-grid .case-media:nth-child(2) { aspect-ratio: 4320 / 2700; }
.lowcode-proof-grid .case-media:nth-child(3) { aspect-ratio: 2880 / 2048; }
.lowcode-proof-grid .case-media img {
  object-fit: cover !important;
  object-position: center !important;
}

.client-screen {
  height: auto;
  aspect-ratio: 2880 / 2048;
}
.client-screen img {
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 1100px) {
  .terminal-pair .case-media:first-child,
  .terminal-pair .case-media:last-child,
  .ecosystem-grid .case-media,
  .lowcode-proof-grid .case-media { min-height: 0; }
  .booking-visuals { min-height: 0; }
}

@media (max-width: 768px) {
  .terminal-pair { grid-template-columns: minmax(0, 1fr); }
  .terminal-pair .case-media:first-child,
  .terminal-pair .case-media:last-child { min-height: 0; }
  .terminal-pair .case-media:last-child {
    width: min(58%, 340px);
    justify-self: center;
  }
  .booking-visuals {
    min-height: 0;
    aspect-ratio: 1.08 / 1;
  }
  .booking-visuals .case-media:first-child {
    inset: auto;
    top: 0;
    left: 0;
    width: 92%;
  }
  .booking-visuals .booking-time-card {
    width: 64%;
    height: auto;
  }
  .ecosystem-grid .case-media,
  .lowcode-proof-grid .case-media { min-height: 0; }
}

@media (max-width: 480px) {
  .booking-visuals {
    min-height: 0;
    aspect-ratio: .98 / 1;
  }
  .booking-visuals .booking-time-card { width: 70%; }
  .lowcode-builder-media { aspect-ratio: 1745 / 901; }
  .client-screen { aspect-ratio: 2880 / 2048; }
}
