/* Shared styles for the dark product pages (/pixel, /mis, /frontliner-solutions, /manage-service).
   Builds on co.css tokens only. */

/* hero */
.p-hero { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(56px, 7vw, 96px); text-align: center; }
.p-hero .eyebrow { justify-content: center; }
.p-hero h1 { max-width: 15ch; margin-inline: auto; }
.p-hero .lead { margin: 24px auto 0; }
.p-hero .actions { justify-content: center; margin-top: 32px; }

/* framed media ("monitor") */
.p-media { position: relative; margin: clamp(48px, 6vw, 80px) auto 0; max-width: 920px; border-radius: var(--r-lg); overflow: hidden;
  background: #0A0B0D; box-shadow: var(--shadow-2); }
.p-media video, .p-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.p-media .hud { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); display: flex; justify-content: space-between; gap: 12px;
  font-size: var(--t-micro); font-weight: 500; color: rgba(255,255,255,.88); pointer-events: none; }
.p-media .hud .rec { display: inline-flex; align-items: center; gap: 6px; }
.p-media.tall video, .p-media.tall img { aspect-ratio: 4 / 3; }
.p-media.square img { aspect-ratio: 1; object-fit: contain; background: #000; }
.p-media figcaption { padding: 14px 18px; font-size: var(--t-small); color: var(--ink-2); border-top: 1px solid var(--line); }

/* pillars */
.pillar { padding: 28px 0 0; border-top: 1px solid var(--line-2); }
.pillar .num { font-size: var(--t-small); font-weight: 600; color: var(--accent); }
.pillar h3 { font-size: var(--t-h3); margin: 14px 0 10px; letter-spacing: -.02em; line-height: 1.2; }
.pillar p { color: var(--ink-2); margin: 0; }

/* name story: O W L */
.acro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.acro article { border-radius: var(--r-lg); background: var(--bg-2); padding: clamp(28px, 3vw, 40px); }
.acro .letter { font-size: clamp(3rem, 2.4rem + 2.6vw, 4.5rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.acro h3 { font-size: var(--t-h3); margin: 18px 0 10px; }
.acro p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .acro { grid-template-columns: 1fr; } }
.acro-line { font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); font-weight: 600; letter-spacing: -.02em; color: var(--ink-2); margin-top: 18px; }
.acro-line b { color: var(--ink); font-weight: 650; }
.acro-line .o { color: var(--accent); }

/* deep-dive rows */
.dive { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.dive + .dive { margin-top: clamp(80px, 10vw, 140px); }
.dive.flip > :first-child { order: 2; }
.dive .p-media { margin: 0; max-width: none; }
.dive h2 { margin-bottom: 18px; }
.dive .lead { margin-bottom: 26px; }
@media (max-width: 900px) { .dive { grid-template-columns: 1fr; } .dive.flip > :first-child { order: 0; } }

/* checklist */
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A2B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* product chips row */
.prod-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.prod { border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-1); padding: 22px; display: flex; flex-direction: column; gap: 6px; min-height: 168px;
  transition: transform var(--dur-ui) var(--ease-out); }
a.prod:hover { transform: translateY(-2px); }
a.prod:active { transform: scale(.98); }
.prod .k { font-size: var(--t-small); color: var(--ink-3); font-weight: 500; }
.prod b { font-size: 1.25rem; letter-spacing: -.02em; font-weight: 650; }
.prod span { color: var(--ink-2); font-size: var(--t-small); margin-top: auto; }
@media (max-width: 1080px) { .prod-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .prod-row { grid-template-columns: 1fr 1fr; } }

/* world teaser */
.world { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(28px, 4vw, 56px); border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-2); padding: clamp(32px, 4.4vw, 56px); }
.world-shot { display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1360 / 940; background: #000; }
.world-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .world-shot:hover img { transform: scale(1.02); } }
@media (max-width: 860px) { .world { grid-template-columns: 1fr; } }

/* section heading center helper */
.center-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 72px); }
.center-head .eyebrow { justify-content: center; }
.center-head .lead { margin: 18px auto 0; }

/* logos: dark variant rows for ecosystem */
[data-theme="dark"] .partner .pl { background: #F5F5F7; border-color: transparent; }

/* MIS: manual vs system */
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--bg-3); position: relative; }
.seg button { position: relative; z-index: 1; min-height: 40px; padding: 0 20px; border: 0; background: none; border-radius: var(--r-pill); cursor: pointer;
  font-size: var(--t-small); font-weight: 600; color: var(--ink-2); transition: color var(--dur-ui) var(--ease-out); }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg .thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: var(--r-pill); background: var(--card);
  box-shadow: 0 0 0 1px var(--line-2); transition: transform var(--dur-ui) var(--ease-out), width var(--dur-ui) var(--ease-out); }
.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.mod { background: var(--card); padding: 24px; min-height: 150px; display: flex; flex-direction: column; gap: 6px; }
.mod svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 10px; transition: opacity var(--dur-ui) var(--ease-out); }
.mod .sys, .mod .man { display: block; transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out); }
.mod .sys { font-weight: 650; font-size: 1.0625rem; letter-spacing: -.015em; }
.mod .man { font-size: var(--t-small); color: var(--ink-3); }
.modules[data-mode="manual"] .mod { background: #0B0B0C; }
.modules[data-mode="manual"] .mod .sys { opacity: .32; }
.modules[data-mode="manual"] .mod .man { color: #FFB067; transform: translateY(-2px); }
.modules[data-mode="manual"] .mod svg { opacity: .3; }
@media (max-width: 980px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Frontliner: channels */
.channel { border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-1); padding: 28px; display: flex; flex-direction: column; min-height: 220px; }
.channel .icon-tile { margin-bottom: 18px; }
.channel h3 { font-size: 1.25rem; margin-bottom: 8px; letter-spacing: -.02em; }
.channel p { color: var(--ink-2); margin: 0; font-size: var(--t-small); }

.channel .badge { align-self: flex-start; margin-top: auto; padding-top: 18px; font-size: var(--t-micro); font-weight: 600; color: #30D158; }
.wa-steps { counter-reset: w; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.wa-steps article { border-top: 1px solid var(--line-2); padding-top: 22px; }
.wa-steps .n { display: none; }
.wa-steps h3 { font-size: 1.125rem; margin: 12px 0 8px; letter-spacing: -.015em; }
.wa-steps p { color: var(--ink-2); font-size: var(--t-small); margin: 0; }
.wa-steps .star { color: #30D158; font-size: var(--t-micro); font-weight: 600; margin-left: 6px; }
@media (max-width: 980px) { .wa-steps { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 560px) { .wa-steps { grid-template-columns: 1fr; } }

/* Frontliner: phone + WhatsApp Flow demo */
.phone { width: min(340px, 100%); margin-inline: auto; aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 12px; background: #1C1C1E;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 80px rgba(0,0,0,.6); }
.phone-screen { height: 100%; border-radius: 36px; overflow: hidden; background: #0B141A; display: flex; flex-direction: column; position: relative; }
.wa-bar { display: flex; align-items: center; gap: 10px; padding: 34px 14px 10px; background: #1F2C34; color: #E9EDEF; }
.wa-bar .av { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex-shrink: 0; }
.wa-bar .av img { width: 24px; height: 24px; }
.wa-bar b { display: block; font-size: 14px; font-weight: 600; }
.wa-bar small { font-size: 11.5px; color: #8696A0; }
.wa-chat { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden;
  background: #0B141A radial-gradient(circle at 20% 20%, rgba(255,255,255,.025) 0 1px, transparent 2px) 0 0 / 18px 18px; }
.bub { max-width: 82%; padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height: 1.38; color: #E9EDEF; background: #202C33; align-self: flex-start; }
.bub.me { background: #005C4B; align-self: flex-end; }
.bub .cta-row { margin: 8px -10px -8px; border-top: 1px solid rgba(255,255,255,.08); }
.bub .cta-row button { width: 100%; min-height: 40px; border: 0; background: none; color: #53BDEB; font-size: 13px; font-weight: 600; cursor: pointer; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 84%; background: #111B21; color: #E9EDEF; border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column; transform: translateY(102%); transition: transform 300ms var(--ease-out); }
.sheet.open { transform: none; }
.sheet header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sheet header button { width: 32px; height: 32px; border: 0; background: none; color: #8696A0; font-size: 18px; cursor: pointer; border-radius: 50%; }
.sheet header b { font-size: 14px; flex: 1; text-align: center; margin-right: 32px; }
.sheet .pane { flex: 1; padding: 16px; display: none; flex-direction: column; gap: 12px; overflow: auto; }
.sheet .pane.on { display: flex; }
.sheet h4 { font-size: 16px; letter-spacing: -.01em; margin: 0; line-height: 1.3; }
.sheet .hint { font-size: 12px; color: #8696A0; margin: -6px 0 0; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.10);
  font-size: 13.5px; cursor: pointer; transition: border-color var(--dur-ui) var(--ease-out); }
.opt small { display: block; color: #8696A0; font-size: 11.5px; }
.opt input { accent-color: #00A884; width: 18px; height: 18px; }
.opt:has(input:checked) { border-color: #00A884; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #8696A0; }
.field input, .field select { min-height: 42px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: #202C33; color: #E9EDEF; padding: 0 12px; font: inherit; font-size: 14px; }
.field input:focus, .field select:focus { outline: 2px solid #00A884; outline-offset: 0; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.10); font-size: 13.5px; }
.stepper div { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: none; color: #E9EDEF; font-size: 16px; cursor: pointer; }
.stepper output { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.sheet footer { padding: 12px 16px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.sheet footer button { width: 100%; min-height: 44px; border: 0; border-radius: 999px; background: #00A884; color: #0B141A; font-weight: 650; font-size: 14px; cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), opacity var(--dur-ui) var(--ease-out); }
.sheet footer button:active { transform: scale(.97); }
.sheet footer button:disabled { opacity: .4; cursor: not-allowed; }
.sum { display: grid; gap: 8px; font-size: 13px; padding: 12px; border-radius: 10px; background: #202C33; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum div span:first-child { color: #8696A0; }
.sum .total { border-top: 1px solid rgba(255,255,255,.08); padding-top: 8px; font-weight: 650; }
.demo-note { text-align: center; color: var(--ink-3); font-size: var(--t-micro); margin-top: 16px; }

/* Managed services: sessions (native details) */
.sessions { border-top: 1px solid var(--line-2); }
.sessions details { border-bottom: 1px solid var(--line-2); }
.sessions summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 16px; align-items: center; padding: 24px 0; min-height: 44px; }
.sessions summary::-webkit-details-marker { display: none; }
.sessions summary .n { display: none; }
.sessions summary h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); letter-spacing: -.02em; line-height: 1.25; }
.sessions summary h3 small { display: block; margin-top: 6px; font-size: var(--t-small); font-weight: 400; color: var(--ink-2); letter-spacing: -.01em; }
.sessions summary .pm { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform var(--dur-ui) var(--ease-out); }
.sessions summary .pm::before, .sessions summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.sessions summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.sessions details[open] summary .pm { transform: rotate(45deg); }
.sessions .body { padding: 0 44px 28px 0; color: var(--ink-2); max-width: 820px; }
.sessions .body p:last-child { margin: 0; }
@media (max-width: 640px) { .sessions summary { grid-template-columns: 1fr 28px; } .sessions .body { padding: 0 0 24px 0; } }

/* principles list */
.principle { border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-1); padding: clamp(26px, 3vw, 36px); }
.principle .num { font-size: var(--t-small); font-weight: 600; color: var(--accent); }
.principle h3 { font-size: 1.25rem; margin: 14px 0 10px; letter-spacing: -.02em; line-height: 1.25; }
.principle p { color: var(--ink-2); margin: 0; }

/* xaas big statement */
.xaas-word { font-size: clamp(4rem, 2.6rem + 6vw, 8rem); font-weight: 600; letter-spacing: -.05em; line-height: .9; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .sheet, .seg .thumb, .mod .sys, .mod .man, .prod { transition: none; }
}
a.pillar { display: block; transition: border-color var(--dur-ui) var(--ease-out); }
a.pillar:hover { border-top-color: var(--accent); }
a.pillar:hover h3 { color: var(--ink); }
