/* Services: full-bleed panels that open one at a time (services.js). On phones they stack. */
.services { position: relative; z-index: 3; background: var(--ink); padding-top: clamp(80px, 10vw, 150px); overflow: clip; }
.svc-row { display: flex; height: min(84vh, 800px); min-height: 620px; }
.svc { --panel: var(--ink-2); --panel-text: var(--text); position: relative; flex: 1 1 0; min-width: 0; display: flex; overflow: hidden; background: var(--panel); color: var(--panel-text); border-left: 1px solid rgba(255, 255, 255, 0.14); transition: flex-grow 0.65s var(--ease), background 0.35s; }
.svc:first-child { border-left: 0; }
.svc.is-open { flex-grow: 7; border-left-color: transparent; }
.svc-ui.is-open { --panel: var(--ui); --panel-text: #000; }
.svc-light.is-open { --panel: #fff; --panel-text: #000; }
.svc-ai.is-open { --panel: var(--ai); --panel-text: #000; }

.svc-head { margin: 0; flex: none; font-size: inherit; font-weight: inherit; }
.svc-tab { display: flex; align-items: flex-end; justify-content: center; width: clamp(64px, 7vw, 110px); height: 100%; padding: 26px 0; color: inherit; transition: background 0.2s; }
.svc:not(.is-open) .svc-tab:hover { background: rgba(255, 255, 255, 0.08); }
.svc-name { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(20px, 2vw, 32px); font-weight: 700; white-space: nowrap; }

.svc-body { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 48px); padding: clamp(26px, 3vw, 48px) clamp(20px, 3vw, 48px) clamp(26px, 3vw, 48px) 0; opacity: 0; visibility: hidden; transition: opacity 0.2s; }
.svc:not(.is-open) .svc-body { position: absolute; width: 60vw; }
.svc.is-open .svc-body { opacity: 1; visibility: visible; transition: opacity 0.4s 0.22s; }
.svc-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-width: 0; }
.svc-title { font-size: clamp(36px, 4.7vw, 92px); line-height: 0.96; }
.svc-text { max-width: 36ch; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.28; font-weight: 500; }
.svc-demo { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }
.demo { position: relative; border-radius: 18px; background: #000; color: #fff; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6); }
.demo-tip { font-size: 15px; font-weight: 600; }

.audit { height: min(56vh, 480px); cursor: crosshair; touch-action: pan-y; }
.audit-page { display: flex; flex-direction: column; gap: 3.5%; height: 100%; padding: 6%; }
.audit-page i { display: block; border-radius: 8px; background: #26262c; }
.audit-page b { display: block; height: 7%; width: 72%; border-radius: 6px; background: #1a1a1f; }
.audit-scan { position: absolute; left: 0; right: 0; height: 3px; background: var(--ui); box-shadow: 0 0 30px 8px rgba(25, 194, 255, 0.55); pointer-events: none; }
.audit-pin { position: absolute; display: flex; align-items: center; gap: 8px; transform: translate(-50%, -50%) scale(0); transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); pointer-events: none; }
.audit-pin.is-found { transform: translate(-50%, -50%) scale(1); }
.audit-pin span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ai); color: #000; font-weight: 800; }
.audit-pin em { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 190px; padding: 5px 10px; border-radius: 8px; background: #fff; color: #000; font-size: 14px; font-style: normal; font-weight: 600; }

.kit { --kit: var(--ui); --kit-r: 999px; display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 14px; min-height: min(46vh, 400px); padding: 28px; }
.kit.is-sharp { --kit-r: 2px; }
.kit-btn { min-height: 50px; padding: 0 26px; border-radius: var(--kit-r); background: var(--kit); color: #000; font-weight: 700; transition: border-radius 0.35s, background 0.3s; cursor: default; }
.kit-btn-line { background: none; border: 2px solid var(--kit); color: var(--kit); }
.kit-toggle { position: relative; width: 66px; height: 36px; border-radius: var(--kit-r); background: #33333b; transition: background 0.25s, border-radius 0.35s; }
.kit-toggle i { position: absolute; left: 4px; top: 4px; width: 28px; height: 28px; border-radius: var(--kit-r); background: #fff; transition: transform 0.25s var(--ease), border-radius 0.35s; }
.kit-toggle.is-on { background: var(--kit); }
.kit-toggle.is-on i { transform: translateX(30px); }
.kit-card { display: grid; gap: 8px; width: 100%; padding: 14px; border-radius: min(var(--kit-r), 18px); background: #1a1a1f; transition: border-radius 0.35s; }
.kit-card i { display: block; height: 70px; border-radius: min(var(--kit-r), 12px); background: var(--kit); transition: background 0.3s, border-radius 0.35s; }
.kit-card b { display: block; height: 9px; width: 70%; border-radius: 4px; background: #3b3b44; }
.kit-field { flex: 1 1 200px; padding: 13px 18px; border: 2px solid #3b3b44; border-radius: var(--kit-r); color: var(--muted); transition: border-radius 0.35s; }
.kit-chip { padding: 6px 14px; border-radius: var(--kit-r); background: color-mix(in srgb, var(--kit) 22%, transparent); color: var(--kit); font-size: 14px; font-weight: 700; transition: border-radius 0.35s, color 0.3s; }
.kit-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-themes button { min-height: 44px; padding: 0 16px; border: 2px solid #000; border-radius: 999px; font-weight: 700; transition: background 0.2s, color 0.2s; }
.kit-themes button:hover, .kit-themes button[aria-pressed='true'] { background: #000; color: #fff; }

.chat { display: flex; flex-direction: column; gap: 16px; min-height: min(46vh, 400px); padding: clamp(20px, 2.4vw, 34px); }
.chat-suggest { font-size: clamp(25px, 2.7vw, 44px); font-weight: 800; line-height: 1.02; }
.chat-answer { flex: 1; min-height: 88px; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.3; color: #ffd3e5; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-actions button { min-height: 46px; padding: 0 18px; border-radius: 999px; background: #fff; color: #000; font-weight: 700; transition: transform 0.2s var(--ease), background 0.2s; }
.chat-actions button:hover { background: var(--ai); transform: translateY(-2px); }

.ship { --split: 52%; height: min(56vh, 480px); }
.ship-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; clip-path: inset(0 0 0 var(--split)); }
.ship-code { position: absolute; inset: 0; margin: 0; padding: 26px; overflow: hidden; color: var(--ui); font: 500 clamp(14px, 1.15vw, 18px)/1.65 ui-monospace, Menlo, monospace; white-space: pre; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.ship-handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 4px; margin-left: -2px; background: #fff; pointer-events: none; }
.ship-handle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: #fff; }
.ship-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }

@media (max-width: 980px) {
  .svc-row { flex-direction: column; height: auto; min-height: 0; }
  .svc { display: block; flex: none; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .svc-tab { width: 100%; height: 70px; padding: 0 var(--gutter); justify-content: flex-start; align-items: center; }
  .svc-name { writing-mode: horizontal-tb; transform: none; font-size: 22px; }
  .svc-body { display: none; grid-template-columns: minmax(0, 1fr); padding: 2px var(--gutter) 26px; opacity: 1; visibility: visible; }
  .svc.is-open .svc-body { display: grid; }
  .svc-title { font-size: 12vw; }
  .audit, .ship { height: 320px; }
}
@media (prefers-reduced-motion: reduce) { .svc, .svc-body, .audit-pin, .kit * { transition: none; } }
