/* ============================================================
   desk.cloud — cloud tiers + deck configurator styles
   ============================================================ */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
@media (max-width: 880px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px 22px; background: var(--bg-elevated, #07151a);
  box-shadow: inset 0 0 0 1px var(--line, rgba(0, 245, 255, 0.22));
  transition: box-shadow 0.25s, transform 0.25s;
}
.tier:hover { box-shadow: inset 0 0 0 1px var(--line-strong, #4fe), 0 0 26px var(--glow, rgba(0, 245, 255, 0.1)); }
.tier::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 11px; height: 11px;
  border-top: 1px solid var(--frame-deco, #ffd166); border-right: 1px solid var(--frame-deco, #ffd166); opacity: 0.6;
}
.tier.featured { box-shadow: inset 0 0 0 1px var(--accent, #ffd166), 0 0 34px rgba(255, 209, 102, 0.14); }
.tier.featured:hover { box-shadow: inset 0 0 0 1px var(--accent, #ffd166), 0 0 40px rgba(255, 209, 102, 0.22); }
.tier.sel { box-shadow: inset 0 0 0 1px var(--line-strong, #4fe), inset 3px 0 0 var(--line-strong, #4fe), 0 0 26px var(--glow); }
.tier.featured.sel { box-shadow: inset 0 0 0 1px var(--accent), inset 3px 0 0 var(--accent), 0 0 34px rgba(255, 209, 102, 0.2); }
.tier-flag {
  position: absolute; top: -1px; right: 18px; padding: 3px 10px;
  font-size: 8.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  color: #021014; background: var(--accent, #ffd166); box-shadow: 0 0 14px rgba(255, 209, 102, 0.4);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px));
}
.tier-head { display: flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--line-strong, #4fe); }
.tier.featured .tier-head { color: var(--accent, #ffd166); }
.tier-head svg { width: 14px; height: 14px; }
.tier-price { display: flex; align-items: baseline; gap: 9px; }
.tier-price b { font-size: 2.1rem; font-weight: 800; letter-spacing: -1px; color: var(--text, #cdeef0); font-variant-numeric: tabular-nums; }
.tier-price span { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-dim, #6aa); }
.tier ul { list-style: none; margin: 0; padding: 0; font-size: 11px; line-height: 2; color: var(--text-dim, #6aa); }
.tier ul li::before { content: "▸ "; color: var(--accent, #ffd166); }
.tier .btn { margin-top: auto; justify-content: center; }

/* ---------- Configurator shell ---------- */
.cfg {
  margin-top: 16px; background: var(--bg-elevated, #07151a);
  box-shadow: inset 0 0 0 1px var(--line, rgba(0, 245, 255, 0.22)), 0 0 40px var(--glow, rgba(0, 245, 255, 0.08));
  position: relative;
}
.cfg::before, .cfg::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--accent, #ffd166); opacity: 0.85; pointer-events: none;
}
.cfg::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.cfg::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.cfg-head {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 18px;
  border-bottom: 1px solid var(--line, rgba(0, 245, 255, 0.22));
}
.cfg-title { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--line-strong, #4fe); }
.cfg-head .seg { margin-left: auto; }

/* segmented control */
.seg { display: inline-flex; box-shadow: inset 0 0 0 1px var(--line, rgba(0, 245, 255, 0.3)); }
.seg button {
  font-family: inherit; font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 8px 16px; border: 0; background: transparent; color: var(--text-dim, #6aa); cursor: pointer;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}
.seg button + button { border-left: 1px solid var(--line, rgba(0, 245, 255, 0.3)); }
.seg button:hover { color: var(--accent, #ffd166); background: var(--glow, rgba(0, 245, 255, 0.06)); }
.seg button.on { color: #021014; background: var(--line-strong, #4fe); font-weight: 700; box-shadow: 0 0 16px var(--glow-strong, rgba(0, 245, 255, 0.35)); }
.seg-wide { display: flex; width: 100%; }
.seg-wide button { flex: 1; display: grid; gap: 3px; padding: 10px 12px; }
.seg-wide button small { font-size: 8.5px; letter-spacing: 1px; text-transform: none; opacity: 0.72; font-weight: 400; }
.seg button.entonly:not(.on)::after { content: " ⬡"; color: var(--accent, #ffd166); }
.seg button:disabled { opacity: 0.35; cursor: not-allowed; }

.cfg-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; }
@media (max-width: 880px) { .cfg-grid { grid-template-columns: 1fr; } }
.cfg-controls { display: grid; gap: 20px; align-content: start; padding: 20px; border-right: 1px solid var(--line, rgba(0, 245, 255, 0.22)); }
@media (max-width: 880px) { .cfg-controls { border-right: 0; border-bottom: 1px solid var(--line); } }
.cfg-row label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 9px;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim, #6aa);
}
.cfg-row output { font-size: 13px; color: var(--accent, #ffd166); font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }
.cfg-row.dim { opacity: 0.4; pointer-events: none; transition: opacity 0.25s; }
.cfg-row { transition: opacity 0.25s; }

/* range sliders */
input[type="range"].rng {
  -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 0;
  background: transparent; cursor: pointer;
}
input[type="range"].rng::-webkit-slider-runnable-track {
  height: 2px; background: linear-gradient(90deg, var(--line-strong, #4fe) var(--fill, 50%), var(--line, rgba(0, 245, 255, 0.25)) var(--fill, 50%));
}
input[type="range"].rng::-webkit-slider-thumb {
  -webkit-appearance: none; width: 15px; height: 15px; margin-top: -6.5px;
  background: var(--line-strong, #4fe); box-shadow: 0 0 12px var(--glow-strong, rgba(0, 245, 255, 0.45));
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}
input[type="range"].rng:hover::-webkit-slider-thumb, input[type="range"].rng:focus::-webkit-slider-thumb { background: var(--accent, #ffd166); }
input[type="range"].rng::-moz-range-track { height: 2px; background: var(--line, rgba(0, 245, 255, 0.25)); }
input[type="range"].rng::-moz-range-progress { height: 2px; background: var(--line-strong, #4fe); }
input[type="range"].rng::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 0; background: var(--line-strong, #4fe); box-shadow: 0 0 12px var(--glow-strong); }
input[type="range"].rng:focus { outline: none; }

/* option toggles */
.optlist { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  font-family: inherit; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px;
  background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--line, rgba(0, 245, 255, 0.3));
  color: var(--text-dim, #6aa); cursor: pointer; transition: color 0.15s, box-shadow 0.15s;
}
.opt::before { content: "○"; color: var(--text-dim, #6aa); font-size: 9px; }
.opt:hover { color: var(--accent, #ffd166); box-shadow: inset 0 0 0 1px var(--line-strong, #4fe); }
.opt.on { color: var(--text, #cdeef0); box-shadow: inset 0 0 0 1px var(--ok, #21f7a3), inset 3px 0 0 var(--ok, #21f7a3); }
.opt.on::before { content: "✓"; color: var(--ok, #21f7a3); }
.opt i { font-style: normal; font-size: 9px; color: var(--accent, #ffd166); }
.opt.locked { opacity: 0.45; }
.opt.locked i { letter-spacing: 1.5px; }

/* output column: yaml + price */
.cfg-out { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.cfg-yaml { padding: 16px 18px; background: var(--term-bg, #02080a); font-size: 11.5px; line-height: 1.85; overflow-x: auto; }
.yl { white-space: pre; }
.yl.chg { animation: ychg 0.9s ease both; }
@keyframes ychg { 0% { background: var(--glow, rgba(0, 245, 255, 0.12)); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .yl.chg { animation: none; } }
.yl .yc { color: var(--text-dim, #6aa); font-style: italic; }
.yl .yk { color: var(--line-strong, #4fe); }
.yl .yv { color: var(--text, #cdeef0); }
.yl .ya { color: var(--accent, #ffd166); }
.cfg-price { display: grid; gap: 10px; padding: 16px 18px; border-top: 1px solid var(--line, rgba(0, 245, 255, 0.22)); }
.cp-line { display: flex; align-items: baseline; gap: 10px; }
.cp-line > span { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim, #6aa); }
.cp-line b { font-size: 2.1rem; font-weight: 800; letter-spacing: -1px; color: var(--text, #cdeef0); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px var(--glow, rgba(0, 245, 255, 0.12)); }
.cp-line .permo { color: var(--accent, #ffd166); }
.cp-sub { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-dim, #6aa); font-variant-numeric: tabular-nums; }
.cfg-price .btn { justify-content: center; width: 100%; }
.cfg-price .btn.deploying { pointer-events: none; color: #021014; }
.cfg-price .btn.deploying::after { animation: btnscan 1s linear infinite; left: -40%; }
@keyframes btnscan { from { left: -40%; } to { left: 110%; } }
.cp-status { min-height: 34px; font-size: 11px; line-height: 1.6; }
.cp-status .g { color: var(--ok, #21f7a3); }
.cp-status .d { color: var(--text-dim, #6aa); }
.cp-status .a { color: var(--accent, #ffd166); }

/* ---------- enterprise compliance & security (slim strip + drawer) ---------- */
.sec {
  position: relative; margin-top: 16px;
  background: var(--bg-elevated, #07151a);
  box-shadow: inset 0 0 0 1px var(--line, rgba(0, 245, 255, 0.22));
}
.sec-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 11px 16px;
}
.sec-title { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--ok, #21f7a3); white-space: nowrap; }
.sec-title svg { width: 13px; height: 13px; }
.sec-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.sec-toggle {
  margin-left: auto; font-family: inherit; font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase;
  padding: 6px 12px; border: 0; cursor: pointer; color: var(--text-dim, #6aa);
  background: transparent; box-shadow: inset 0 0 0 1px var(--line, rgba(0, 245, 255, 0.3));
  transition: color 0.15s, box-shadow 0.15s; white-space: nowrap;
}
.sec-toggle:hover { color: var(--accent, #ffd166); box-shadow: inset 0 0 0 1px var(--line-strong, #4fe); }
.sec-toggle b { font-weight: 400; color: var(--accent, #ffd166); }
.sec-facts {
  padding: 0 16px 11px; font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim, #6aa);
}
.sec-facts code { color: var(--line-strong, #4fe); font-size: 9.5px; letter-spacing: 0.5px; }
.sec-more { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s; }
.sec.open .sec-more { max-height: 900px; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sec-more { transition: none; } }
.sbadge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  font-size: 9px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text, #cdeef0);
  background: rgba(33, 247, 163, 0.04);
  box-shadow: inset 0 0 0 1px var(--line, rgba(0, 245, 255, 0.3));
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 7px 100%, 0 50%);
  transition: box-shadow 0.2s, color 0.2s;
}
.sbadge::before { content: "⬡"; color: var(--ok, #21f7a3); font-size: 10px; }
.sbadge:hover { color: var(--ok, #21f7a3); box-shadow: inset 0 0 0 1px var(--ok, #21f7a3), 0 0 18px rgba(33, 247, 163, 0.2); }
.sbadge small { font-size: 7.5px; font-weight: 400; letter-spacing: 1px; color: var(--text-dim, #6aa); }
.sbadge.soon { opacity: 0.55; }
.sbadge.soon::before { content: "◌"; color: var(--accent, #ffd166); }

.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; border-top: 1px solid var(--line, rgba(0, 245, 255, 0.16)); background: var(--line, rgba(0, 245, 255, 0.16)); }
@media (max-width: 1080px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-item { display: grid; grid-template-columns: auto 1fr; gap: 6px 11px; align-items: start; padding: 14px 16px; background: var(--bg-elevated, #07151a); transition: background 0.2s; }
.sec-item:hover { background: var(--term-bg, #02080a); }
.sec-item svg { width: 14px; height: 14px; margin-top: 1px; color: var(--line-strong, #4fe); }
.sec-item:hover svg { color: var(--ok, #21f7a3); filter: drop-shadow(0 0 7px rgba(33, 247, 163, 0.45)); }
.sec-item b { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text, #cdeef0); align-self: center; }
.sec-item p { grid-column: 2; margin: 0; font-size: 10.5px; line-height: 1.65; color: var(--text-dim, #6aa); }
.sec-item p code { color: var(--line-strong, #4fe); font-size: 10px; }
.sec-foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 11px 18px;
  border-top: 1px solid var(--line, rgba(0, 245, 255, 0.22));
  font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-dim, #6aa);
}
.sec-foot a { color: var(--line-strong, #4fe); transition: color 0.15s; }
.sec-foot a:hover { color: var(--accent, #ffd166); text-shadow: 0 0 10px var(--glow, rgba(0, 245, 255, 0.2)); }
