/* 111Robotics demo — carbon, white light and one ice-blue accent (same tokens as 111labs.net/robotics). */
:root {
  --bg: #0a0c0f;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f3f6f9;
  --muted: #9aa6b1;
  --soft: #6c7883;
  --ice: #8fe3ff;
  --ice-rgb: 143, 227, 255;
  --ok: #35e0a1;
  --warn: #ffb454;
  --shine: linear-gradient(100deg, #fff 0%, #dff6ff 30%, #8fe3ff 50%, #fff 70%, #dff6ff 100%);
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--ice); color: #06080a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.glow { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 50% -5%, rgba(var(--ice-rgb), .16), transparent 70%),
              radial-gradient(ellipse 50% 35% at 100% 100%, rgba(var(--ice-rgb), .07), transparent 70%); }

.shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; max-width: 860px; margin: auto; padding: clamp(18px, 3vh, 40px) clamp(20px, 5vw, 48px) clamp(16px, 3vh, 36px); }

/* Header: kept short so the question sits at the very top of the screen */
.top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; }
.wordmark { height: 20px; width: auto; filter: drop-shadow(0 0 10px rgba(var(--ice-rgb), .25)); }
.demo { opacity: .8; display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 40px; padding: 8px 13px; }
.live { margin-right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 1.6s steps(2, end) infinite; }

.card { width: 100%; padding: clamp(8px, 3vh, 40px) 0 0; text-align: center; }

.kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ice); }
.kicker span { color: var(--soft); }
h1 { margin: 12px 0 14px; font-size: clamp(34px, 6.4vw, 64px); font-weight: 560; line-height: 1.04; letter-spacing: -.055em; color: #fff; text-wrap: balance; }
h1 em { font-style: normal; background: var(--shine); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s ease-in-out infinite; }
.lead { margin: 0 auto; max-width: 32rem; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Waiting state */
.orb { position: relative; width: 128px; height: 128px; margin: clamp(10px, 6vh, 80px) auto 26px; border-radius: 50%; animation: float 4s ease-in-out infinite;
  background: radial-gradient(circle at 40% 35%, rgba(var(--ice-rgb), .35), rgba(var(--ice-rgb), .08) 60%, transparent 72%); box-shadow: 0 0 60px rgba(var(--ice-rgb), .22), inset 0 0 0 1px rgba(var(--ice-rgb), .35); }
.ring { position: absolute; top: -12px; right: -12px; bottom: -12px; left: -12px; border: 1px dashed rgba(var(--ice-rgb), .35); border-radius: 50%; animation: spin 14s linear infinite; }
.ring::after { content: ""; position: absolute; top: 12px; left: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 12px var(--ice); }
.face { position: absolute; top: 30px; right: 22px; bottom: 30px; left: 22px; display: flex; justify-content: center; padding-top: 30px; border-radius: 40% 40% 45% 45%; background: #11171c; box-shadow: inset 0 0 0 1px var(--line-2); }
.face i { margin: 0 11px; width: 9px; height: 14px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.face b { position: absolute; bottom: 19px; width: 18px; height: 9px; border-bottom: 3px solid var(--ice); border-radius: 50%; }
.progress { width: 150px; height: 3px; margin: 30px auto 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress span { display: block; width: 40%; height: 100%; border-radius: 3px; background: var(--ice); animation: load 2s infinite ease-in-out; }

/* Question + options: everything the visitor touches lives in the top half of the card */
.ask { margin-bottom: clamp(20px, 4vh, 44px); }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 2vw, 18px); border: 0; padding: 0; margin: 0; }
.opt { display: block; cursor: pointer; }
.opt__body { height: 100%; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__body { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: clamp(160px, 26vh, 320px); padding: 24px 14px;
  border: 1px solid var(--line-2); border-radius: 24px; background: rgba(255, 255, 255, .03); transition: transform .35s var(--ease), border-color .25s, background .25s, box-shadow .25s; }
.opt__body svg { width: 52px; height: 52px; margin-bottom: 4px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.opt--clean { --accent: var(--ok); --accent-rgb: 53, 224, 161; }
.opt--dirty { --accent: var(--warn); --accent-rgb: 255, 180, 84; }
.opt strong { font-size: clamp(20px, 3.2vw, 28px); font-weight: 600; letter-spacing: -.035em; color: #fff; }
.opt small { font-size: 14px; color: var(--muted); }
.tick { position: absolute; top: 12px; right: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 14px; font-weight: 700;
  background: var(--accent); color: #06080a; transform: scale(0); transition: transform .35s var(--ease); }
.opt:hover .opt__body { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .55); }
.opt:active .opt__body { transform: scale(.98); }
.opt input:checked + .opt__body { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); box-shadow: 0 0 0 1px var(--accent), 0 14px 50px rgba(var(--accent-rgb), .22); }
.opt input:checked + .opt__body .tick { transform: scale(1); }
.opt input:focus-visible + .opt__body { outline: 3px solid var(--ice); outline-offset: 3px; }

.send { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; margin-top: clamp(14px, 2.4vh, 28px); padding: 0 24px; border: 0; border-radius: 40px;
  background: #fff; color: #0a0c0f; font: inherit; font-size: 17px; font-weight: 650; cursor: pointer; box-shadow: 0 10px 40px rgba(var(--ice-rgb), .18); transition: box-shadow .3s, transform .35s var(--ease); }
.send:hover { box-shadow: 0 14px 50px rgba(var(--ice-rgb), .35); transform: translateY(-1px); }
.send:disabled { opacity: .55; cursor: default; }
.send:focus-visible, .note summary:focus-visible, textarea:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }
#error { min-height: 1.2em; margin: 10px 0 0; font-size: 14px; color: #ff8a7a; }

.note { margin-top: 8px; text-align: left; }
.note summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; list-style: none; }
.note summary::-webkit-details-marker { display: none; }
.note summary::before { content: "+"; margin-right: 10px; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ice); transition: transform .25s; }
.note[open] summary::before { transform: rotate(45deg); }
.note summary small { font-weight: 400; color: var(--soft); }
textarea { display: block; width: 100%; min-height: 84px; margin-top: 6px; padding: 14px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 15px; resize: vertical; }
textarea::placeholder { color: var(--soft); }

/* Footer: FMA Group on a clean white plate + 111Cloud signature */
.foot {  display: flex; flex-direction: column; align-items: center; padding: 28px 0 10px; }
.partner { display: flex; flex-direction: column; align-items: center; }
.plate { display: grid; place-items: center; width: 190px; padding: 12px 18px; border-radius: 18px; background: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }
.plate svg { display: block; width: 100%; height: auto; }
.partner small { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.powered { display: inline-flex; align-items: center; margin: 0; font-size: 13px; color: var(--muted); }
.powered svg { margin-right: 8px; width: 26px; height: 17px; fill: #172c39; stroke: var(--ice); stroke-width: 7; stroke-linejoin: round; }
.powered strong { color: #fff; font-weight: 600; }

@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes load { 50% { transform: translateX(150%); } }
@keyframes shine { 50% { background-position: 100% 0; } }
@keyframes blink { 50% { opacity: .25; } }

@media (max-width: 560px) {
  .wordmark { height: 17px; }
  .demo { font-size: 9px; padding: 7px 10px; }
  .card { border-radius: 22px; }
  .opt__body { min-height: 150px; border-radius: 20px; }
  .opt__body svg { width: 42px; height: 42px; }
}
@media (max-height: 640px) and (orientation: landscape) {
  .opt__body { min-height: 110px; flex-direction: row; }
  .opt__body svg { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Spacing without flex gap, for old WebViews (Chrome < 84) */
.shell > * + * { margin-top: clamp(16px, 4vh, 48px); }
.shell > .foot { margin-top: auto; }
.opt__body > * + * { margin-top: 6px; }
.send span { margin-left: 18px; }
.foot > * + * { margin-top: 18px; }
.partner > * + * { margin-top: 10px; }
@media (max-height: 640px) and (orientation: landscape) { .opt__body > * + * { margin: 0 0 0 12px; } }
.note summary small { margin-left: 10px; }
.powered strong { margin-left: 5px; }
