/* Keramore ROBO-Siivous — kartoitus. Kaikki säännöt on rajattu .robo-survey-juureen. */
.robo-survey {
  --robo-paper: #f9f5f1;
  --robo-ink: #002f43;
  --robo-muted: #405964;
  --robo-line: #bdb9aa;
  --robo-panel: #dfdacb;
  --robo-field: #f4f0e5;
  --robo-ink-hover: #164356;
  --robo-control-border: #6b7775;
  --robo-focus: #916444;
  --robo-error: #8c3226;
  --robo-success: #286452;
  --robo-warm: #816d57;
  --robo-sky: #a8c6d9;
  --robo-copper: #d2ad86;
  --robo-font-body: 'DM Sans', Arial, sans-serif;
  --robo-font-display: 'Libre Caslon Display', Georgia, serif;
  --robo-radius: 2px;
  --robo-duration-fast: 160ms;
  --robo-duration-step: 280ms;
  --robo-ease: cubic-bezier(.2, .65, .3, 1);

  margin: 0;
  background: var(--robo-paper);
  color: var(--robo-ink);
  font: 400 18px/1.6 var(--robo-font-body);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  position: relative;
}
.robo-survey *, .robo-survey *::before, .robo-survey *::after { box-sizing: border-box; }
/* Hienovarainen paperirakeisuus sisällön alla, ei kenttien päällä. */
.robo-survey::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23g)' opacity='.65' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.robo-survey a { color: inherit; text-underline-offset: 4px; }
.robo-survey button { font: inherit; color: inherit; cursor: pointer; }
.robo-survey :focus-visible { outline: 3px solid var(--robo-focus); outline-offset: 3px; }
.robo-survey [tabindex="-1"]:focus { outline: none; }
.robo-survey .rs-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.robo-survey .rs-skip { position: fixed; top: -100px; left: 16px; z-index: 20; background: var(--robo-paper); padding: 12px 16px; border: 1px solid var(--robo-ink); }
.robo-survey .rs-skip:focus { top: 16px; }

.robo-survey .rs-page { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.robo-survey .rs-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--robo-line); }
.robo-survey .rs-brand { display: block; width: 142px; padding: 8px 0; }
.robo-survey .rs-brand img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.robo-survey .rs-main { padding: 40px 0 72px; min-height: 60vh; }
.robo-survey #app:focus { outline: none; }

/* Typografia */
.robo-survey .rs-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--robo-muted); margin: 0 0 18px; }
.robo-survey .rs-display { font: 400 clamp(42px, 6.4vw, 84px)/1.02 var(--robo-font-display); letter-spacing: -.035em; margin: 0; }
.robo-survey .rs-display em, .robo-survey .rs-result-title em, .robo-survey .rs-block-title em { font-style: italic; }
.robo-survey .rs-q-title { font: 400 clamp(32px, 4vw, 52px)/1.08 var(--robo-font-display); letter-spacing: -.025em; margin: 0 0 14px; max-width: 18ch; text-wrap: balance; }
.robo-survey .rs-result-title { font: 400 clamp(36px, 4.6vw, 62px)/1.06 var(--robo-font-display); letter-spacing: -.03em; margin: 0 0 18px; text-wrap: balance; }
.robo-survey .rs-lead { font-size: 18px; line-height: 1.6; color: var(--robo-muted); margin: 0 0 32px; max-width: 58ch; }
.robo-survey .rs-note { font-size: 14px; color: var(--robo-muted); margin: 16px 0 0; }
.robo-survey .rs-optional { font-weight: 400; font-size: 13px; color: var(--robo-muted); margin-left: 6px; }

/* Painikkeet */
.robo-survey .rs-primary, .robo-survey .rs-secondary {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 52px; padding: 14px 22px; border-radius: var(--robo-radius); font-size: 16px; font-weight: 500;
  text-decoration: none; transition: background var(--robo-duration-fast), transform var(--robo-duration-fast), border-color var(--robo-duration-fast);
}
.robo-survey .rs-primary { background: var(--robo-ink); color: var(--robo-paper); border: 1px solid var(--robo-ink); }
.robo-survey .rs-primary:hover { background: var(--robo-ink-hover); }
.robo-survey .rs-primary:active { transform: translateY(1px); }
.robo-survey .rs-primary[disabled] { cursor: progress; background: var(--robo-ink-hover); }
.robo-survey .rs-primary > span, .robo-survey .rs-secondary > span { font-size: 20px; line-height: 1; }
.robo-survey .rs-secondary { background: transparent; color: var(--robo-ink); border: 1px solid var(--robo-control-border); gap: 12px; }
.robo-survey .rs-secondary:hover { background: var(--robo-panel); }
.robo-survey .rs-wide { width: 100%; }
.robo-survey .rs-linkbutton { background: none; border: 0; padding: 12px 0; min-height: 44px; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; gap: 10px; align-items: center; }
.robo-survey .rs-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--robo-line); }

/* Aloitus */
.robo-survey .rs-start { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: stretch; }
.robo-survey .rs-start-copy { padding: 24px 0 8px; display: flex; flex-direction: column; justify-content: center; }
.robo-survey .rs-start-copy .rs-lead { margin-top: 28px; }
.robo-survey .rs-chapters { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid var(--robo-line); max-width: 560px; }
.robo-survey .rs-chapters li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--robo-line); }
.robo-survey .rs-chapters li > span { font: italic 24px/1.2 var(--robo-font-display); color: var(--robo-warm); }
.robo-survey .rs-chapters b { display: block; font-weight: 500; font-size: 17px; }
.robo-survey .rs-chapters small { font-size: 14px; color: var(--robo-muted); }
.robo-survey .rs-start-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.robo-survey .rs-start-visual { margin: 0; position: relative; background: var(--robo-ink); overflow: hidden; min-height: 520px; }
.robo-survey .rs-start-visual picture, .robo-survey .rs-start-visual img { display: block; width: 100%; height: 100%; }
.robo-survey .rs-start-visual img { object-fit: cover; object-position: 60% center; position: absolute; inset: 0; }
.robo-survey .rs-start-visual figcaption { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #f0eadc; }

/* Eteneminen */
.robo-survey .rs-progress { margin-bottom: 40px; }
.robo-survey .rs-progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.robo-survey .rs-progress-top .rs-eyebrow { margin: 0 0 12px; color: var(--robo-ink); }
.robo-survey .rs-count { font-size: 13px; color: var(--robo-muted); margin: 0; }
.robo-survey .rs-bar { height: 3px; background: var(--robo-line); }
.robo-survey .rs-bar span { display: block; height: 100%; background: var(--robo-ink); transition: width var(--robo-duration-step) var(--robo-ease); }
.robo-survey .rs-sections { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 0; margin: 12px 0 0; font-size: 13px; color: var(--robo-muted); }
.robo-survey .rs-sections li.is-done { color: var(--robo-ink); }
.robo-survey .rs-sections li.is-done::before { content: '✓ '; }
.robo-survey .rs-sections li.is-current { color: var(--robo-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Vaihe */
.robo-survey .rs-step-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.robo-survey .rs-form { max-width: 680px; }
.robo-survey fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.robo-survey .rs-legend-main { padding: 0; margin: 0; width: 100%; }
.robo-survey .rs-field { margin: 0 0 32px; }
.robo-survey .rs-field:last-of-type { margin-bottom: 0; }
.robo-survey .rs-legend { display: block; font-size: 16px; font-weight: 500; margin: 0 0 12px; padding: 0; }
.robo-survey .rs-help { font-size: 15px; line-height: 1.5; color: var(--robo-muted); margin: -2px 0 18px; max-width: 60ch; }
.robo-survey .rs-counter { white-space: nowrap; color: var(--robo-ink); font-weight: 500; margin-left: 4px; }
.robo-survey .rs-error { color: var(--robo-error); font-size: 14px; line-height: 1.5; margin: 10px 0 0; }
.robo-survey .rs-error:empty { display: none; }
.robo-survey .rs-error:not(:empty)::before { content: '! '; font-weight: 600; }

.robo-survey .rs-options { display: grid; gap: 10px; }
.robo-survey .rs-options.cols-2 { grid-template-columns: 1fr 1fr; }
.robo-survey .rs-option {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 18px;
  background: var(--robo-field); border: 1px solid var(--robo-control-border); border-radius: var(--robo-radius);
  cursor: pointer; transition: background var(--robo-duration-fast), color var(--robo-duration-fast), border-color var(--robo-duration-fast);
}
@media (hover: hover) { .robo-survey .rs-option:hover { background: var(--robo-panel); } }
.robo-survey .rs-option input, .robo-survey .rs-scale-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.robo-survey .rs-option:has(input:focus-visible), .robo-survey .rs-scale-option:has(input:focus-visible), .robo-survey .rs-check:has(input:focus-visible) { outline: 3px solid var(--robo-focus); outline-offset: 3px; }
.robo-survey .rs-option-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.robo-survey .rs-option-label { font-size: 17px; font-weight: 500; line-height: 1.3; }
.robo-survey .rs-option-hint { font-size: 14px; color: var(--robo-muted); }
.robo-survey .rs-mark { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--robo-control-border); background: #fff8; display: grid; place-items: center; }
.robo-survey .rs-mark-radio { border-radius: 50%; }
.robo-survey .rs-mark-checkbox { border-radius: 1px; }
.robo-survey .rs-icon { flex: none; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.robo-survey .rs-selected { display: none; font-size: 12px; letter-spacing: .04em; }
.robo-survey .rs-option.is-checked { background: var(--robo-ink); color: var(--robo-paper); border-color: var(--robo-ink); }
@media (hover: hover) { .robo-survey .rs-option.is-checked:hover, .robo-survey .rs-scale-option.is-checked:hover { background: var(--robo-ink-hover); } }
.robo-survey .rs-option.is-checked .rs-option-hint { color: #cdd5d3; }
.robo-survey .rs-option.is-checked .rs-mark { border-color: var(--robo-paper); background: var(--robo-paper); }
.robo-survey .rs-option.is-checked .rs-mark-radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--robo-ink); }
.robo-survey .rs-option.is-checked .rs-mark-checkbox::after { content: ''; width: 10px; height: 5px; border: solid var(--robo-ink); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.robo-survey .rs-option.is-checked .rs-selected { display: inline; }
.robo-survey .rs-option.is-checked .rs-icon { opacity: 1; }
.robo-survey .cols-2 .rs-option.is-checked .rs-selected { display: none; }
.robo-survey .has-error .rs-option { border-color: var(--robo-error); }

/* Lattiapintojen näytteet */
.robo-survey .rs-swatch { flex: none; width: 26px; height: 26px; border: 1px solid #0003; display: inline-block; }
.robo-survey .sw-concrete { background: radial-gradient(#0002 1px, transparent 1.5px) 0 0/5px 5px, radial-gradient(#fff4 1px, transparent 1.5px) 2px 3px/7px 7px, #aeaaa0; }
.robo-survey .sw-vinyl { background: linear-gradient(135deg, #9fb3b1, #7f9a9a); }
.robo-survey .sw-tile { background: linear-gradient(#0003 1px, transparent 1px) 0 0/9px 9px, linear-gradient(90deg, #0003 1px, transparent 1px) 0 0/9px 9px, #e3ddd0; }
.robo-survey .sw-linoleum { background: radial-gradient(ellipse at 30% 40%, #c79c76 20%, transparent 50%), radial-gradient(ellipse at 70% 70%, #9e7655 15%, transparent 45%), #b4896a; }
.robo-survey .sw-epoxy { background: linear-gradient(160deg, #8fa8b2 0%, #56717c 55%, #6d8892 100%); }
.robo-survey .sw-rubber { background: radial-gradient(#ffffff26 1.5px, transparent 2px) 0 0/6px 6px, #3a4446; }
.robo-survey .sw-wood { background: repeating-linear-gradient(90deg, #a77a52 0 5px, #8f6643 5px 6px, #b88a60 6px 11px); }
.robo-survey .sw-textile { background: repeating-linear-gradient(45deg, #5d6c7a 0 2px, #6f7e8c 2px 4px), #5d6c7a; }

/* Asteikko */
.robo-survey .rs-scale-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.robo-survey .rs-scale-option { position: relative; min-height: 64px; display: grid; place-items: center; background: var(--robo-field); border: 1px solid var(--robo-control-border); border-radius: var(--robo-radius); cursor: pointer; font: 28px var(--robo-font-display); transition: background var(--robo-duration-fast); }
@media (hover: hover) { .robo-survey .rs-scale-option:hover { background: var(--robo-panel); } }
.robo-survey .rs-scale-option.is-checked { background: var(--robo-ink); color: var(--robo-paper); border-color: var(--robo-ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.robo-survey .rs-scale-labels { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--robo-muted); margin-top: 10px; }

/* Numero- ja tekstikentät */
.robo-survey .rs-input-unit { display: flex; align-items: center; gap: 12px; background: var(--robo-field); border: 1px solid var(--robo-control-border); border-radius: var(--robo-radius); min-height: 60px; padding: 0 16px; max-width: 360px; }
.robo-survey .rs-input-unit:focus-within { outline: 3px solid var(--robo-focus); outline-offset: 3px; }
.robo-survey .rs-input-unit input { flex: 1; min-width: 0; border: 0; background: none; font: 28px/1.2 var(--robo-font-display); color: var(--robo-ink); padding: 10px 0; }
.robo-survey .rs-input-unit input:focus { outline: none; }
.robo-survey .rs-input-unit span { font-size: 15px; color: var(--robo-muted); white-space: nowrap; }
.robo-survey .rs-number .rs-help { margin: 10px 0 0; font-size: 14px; }
.robo-survey .rs-text textarea, .robo-survey .rs-summary-text { width: 100%; font: 18px/1.5 var(--robo-font-body); color: var(--robo-ink); background: var(--robo-field); border: 1px solid var(--robo-control-border); border-radius: var(--robo-radius); padding: 14px 16px; resize: vertical; min-height: 104px; }
.robo-survey .rs-text textarea::placeholder { color: #6b7775; }
.robo-survey .rs-calc { display: block; margin: 28px 0 0; padding: 18px 20px; background: var(--robo-panel); border-left: 3px solid var(--robo-ink); font-size: 17px; }
.robo-survey .rs-calc b { font: 400 28px var(--robo-font-display); }
.robo-survey .rs-calc small { display: block; font-size: 13px; color: var(--robo-muted); margin-top: 4px; }

/* Kohdekuva */
.robo-survey .rs-visual { position: sticky; top: 24px; background: var(--robo-ink); color: var(--robo-paper); padding: 24px 24px 20px; }
.robo-survey .rs-visual-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.robo-survey .rs-visual .rs-eyebrow { color: var(--robo-sky); margin: 0; font-size: 11px; }
.robo-survey .rs-visual-site { font: 400 22px/1.2 var(--robo-font-display); margin: 0; text-align: right; }
.robo-survey .rs-plan svg { display: block; width: 100%; height: auto; }
.robo-survey .p-grid path { stroke: #f9f5f112; stroke-width: 1; }
.robo-survey .p-outline { fill: none; stroke: var(--robo-paper); stroke-width: 2; }
.robo-survey .p-outline.is-placeholder { stroke-dasharray: 6 6; opacity: .45; }
.robo-survey .p-empty { fill: #f9f5f1b0; font: 14px var(--robo-font-body); }
.robo-survey .p-ghost { fill: none; stroke: #f9f5f166; stroke-width: 1.5; stroke-dasharray: 4 4; }
.robo-survey .p-wall { fill: none; stroke: #f9f5f1b8; stroke-width: 1.5; }
.robo-survey .p-fixture { fill: #f9f5f11c; stroke: #f9f5f188; stroke-width: 1; }
.robo-survey .p-column { fill: #f9f5f188; }
.robo-survey .p-route { fill: none; stroke: var(--robo-sky); stroke-width: 2.2; stroke-dasharray: 5 5; stroke-linecap: round; stroke-linejoin: round; }
.robo-survey .p-route.is-animated { animation: rs-route 1.6s linear infinite; }
.robo-survey .p-robot { fill: var(--robo-sky); stroke: var(--robo-ink); stroke-width: 2; }
.robo-survey .p-dock rect { fill: var(--robo-ink); stroke: var(--robo-sky); stroke-width: 1.5; }
.robo-survey .p-dock path { fill: none; stroke: var(--robo-sky); stroke-width: 1.3; }
.robo-survey .p-dock.is-open rect { stroke-dasharray: 3 2; }
.robo-survey .p-water { fill: var(--robo-sky); }
.robo-survey .p-signal path { fill: none; stroke: var(--robo-paper); stroke-width: 1.5; stroke-linecap: round; }
.robo-survey .p-signal circle { fill: var(--robo-paper); }
.robo-survey .p-tag { fill: #f9f5f1d0; font: 500 10px var(--robo-font-body); letter-spacing: .02em; }
.robo-survey .p-area { fill: var(--robo-paper); font: 500 12px var(--robo-font-body); letter-spacing: .04em; }
.robo-survey .p-hatch { stroke: var(--robo-copper); stroke-width: 1.5; }
.robo-survey .p-ramp { fill: url(#hatch); stroke: var(--robo-copper); stroke-width: 1; }
.robo-survey .p-mark { stroke: var(--robo-copper); stroke-width: 4; }
.robo-survey .p-door, .robo-survey .p-stairs { fill: none; stroke: var(--robo-copper); stroke-width: 1.5; }
.robo-survey .p-mask { fill: var(--robo-ink); }
.robo-survey .p-glass { stroke: #cfe0ea; stroke-width: 3; stroke-dasharray: 10 3; }
.robo-survey .p-traffic rect { fill: var(--robo-copper); }
.robo-survey .p-traffic path { fill: none; stroke: var(--robo-copper); stroke-width: 1.5; }
@keyframes rs-route { to { stroke-dashoffset: -20; } }

.robo-survey .rs-swatches { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 14px 0 0; margin: 12px 0 0; border-top: 1px solid #f9f5f12e; font-size: 13px; }
.robo-survey .rs-swatches li { display: inline-flex; align-items: center; gap: 8px; }
.robo-survey .rs-swatches .rs-swatch { width: 16px; height: 16px; border-color: #f9f5f155; }
.robo-survey .day { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f9f5f12e; }
.robo-survey .day-bar { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 22px; }
.robo-survey .day-cell { position: relative; }
.robo-survey .day-cell.is-active { background: #f9f5f15c; }
.robo-survey .day-cell.is-varies { background: #f9f5f133; }
.robo-survey .day-cell.is-window { background: repeating-linear-gradient(135deg, var(--robo-sky) 0 2px, transparent 2px 5px); opacity: .85; }
.robo-survey .day-cell i { position: absolute; left: 0; right: 0; top: -6px; height: 4px; background: var(--robo-copper); }
.robo-survey .day-scale { display: flex; justify-content: space-between; font-size: 10px; color: #f9f5f1a8; margin-top: 4px; }
.robo-survey .day-legend { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; }
.robo-survey .day-legend li { display: inline-flex; align-items: center; gap: 6px; }
.robo-survey .day-legend b { width: 14px; height: 10px; display: inline-block; }
.robo-survey .lg-active { background: #f9f5f15c; }
.robo-survey .lg-window { background: repeating-linear-gradient(135deg, var(--robo-sky) 0 2px, transparent 2px 5px); }
.robo-survey .lg-clean { background: var(--robo-copper); height: 4px !important; }
.robo-survey .day-note { font-size: 13px; line-height: 1.5; color: #f9f5f1d8; margin: 8px 0 0; }
.robo-survey .rs-facts { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #f9f5f12e; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.robo-survey .rs-facts div { min-width: 0; }
.robo-survey .rs-facts dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--robo-sky); }
.robo-survey .rs-facts dd { margin: 2px 0 0; font-size: 14px; line-height: 1.4; }
.robo-survey .rs-visual-note { font-size: 11px; color: #f9f5f199; margin: 16px 0 0; }

/* Profiili */
.robo-survey .rs-profile-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.robo-survey .rs-dims { border-top: 1px solid var(--robo-line); }
.robo-survey .rs-dim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--robo-line); align-items: baseline; }
.robo-survey .rs-dim-name { font-size: 15px; color: var(--robo-muted); margin: 0; }
.robo-survey .rs-dim-level { margin: 0; display: flex; align-items: center; gap: 14px; font: 400 24px/1.2 var(--robo-font-display); }
.robo-survey .rs-dim-why { grid-column: 2; margin: 0; font-size: 14px; color: var(--robo-muted); }
.robo-survey .rs-meter { display: inline-flex; gap: 4px; flex: none; }
.robo-survey .rs-meter i { width: 18px; height: 6px; border: 1px solid var(--robo-ink); }
.robo-survey .rs-meter i.on { background: var(--robo-ink); }
.robo-survey .rs-block { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--robo-line); }
.robo-survey .rs-block-title { font: 400 clamp(30px, 3.4vw, 44px)/1.08 var(--robo-font-display); letter-spacing: -.025em; margin: 0 0 28px; max-width: 22ch; }
.robo-survey .rs-answers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.robo-survey .rs-answers li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--robo-line); }
.robo-survey .rs-num { font: italic 24px/1.2 var(--robo-font-display); color: var(--robo-warm); }
.robo-survey .rs-answers h3 { font: 400 24px/1.2 var(--robo-font-display); letter-spacing: -.01em; margin: 0 0 8px; }
.robo-survey .rs-answers p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--robo-muted); }
.robo-survey .rs-badge { display: inline-block; vertical-align: middle; font: 500 11px/1 var(--robo-font-body); letter-spacing: .1em; text-transform: uppercase; background: var(--robo-ink); color: var(--robo-paper); padding: 5px 8px; margin-left: 6px; }
.robo-survey .rs-checks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.robo-survey .rs-checks li { padding: 14px 0 14px 34px; border-top: 1px solid var(--robo-line); position: relative; font-size: 16px; }
.robo-survey .rs-checks li::before { content: ''; position: absolute; left: 0; top: 16px; width: 16px; height: 16px; border: 1.5px solid var(--robo-control-border); }
.robo-survey .rs-disclaimer { margin: 48px 0 0; padding: 16px 20px; background: var(--robo-panel); font-size: 14px; line-height: 1.6; color: var(--robo-muted); max-width: 820px; }

/* Tarkistus */
.robo-survey .rs-review-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 8px; }
.robo-survey .rs-sum-section { margin-bottom: 32px; }
.robo-survey .rs-sum-section h2 { font: 400 28px/1.2 var(--robo-font-display); margin: 0 0 4px; }
.robo-survey .rs-sum-row { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-top: 1px solid var(--robo-line); }
.robo-survey .rs-sum-row dl { margin: 0; display: grid; gap: 10px; }
.robo-survey .rs-sum-row dt { font-size: 13px; color: var(--robo-muted); }
.robo-survey .rs-sum-row dd { margin: 2px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.robo-survey .rs-edit { flex: none; align-self: start; background: none; border: 0; padding: 8px 0; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.robo-survey .rs-contact { position: sticky; top: 24px; background: var(--robo-panel); border: 1px solid var(--robo-line); padding: 32px; }
.robo-survey .rs-contact-title { font: 400 32px/1.1 var(--robo-font-display); margin: 0 0 20px; }
.robo-survey .rs-contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.robo-survey .rs-cfield.is-full { grid-column: 1 / -1; }
.robo-survey .rs-cfield label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.robo-survey .rs-cfield input { width: 100%; min-width: 0; min-height: 52px; font: 18px var(--robo-font-body); color: var(--robo-ink); background: var(--robo-field); border: 1px solid var(--robo-control-border); border-radius: var(--robo-radius); padding: 10px 14px; }
.robo-survey .rs-cfield input[aria-invalid="true"] { border-color: var(--robo-error); border-width: 2px; }
.robo-survey .rs-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.robo-survey .rs-check { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; font-size: 14px; line-height: 1.5; cursor: pointer; }
.robo-survey .rs-check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--robo-ink); }
.robo-survey .rs-privacy { font-size: 14px; line-height: 1.6; color: var(--robo-muted); margin: 18px 0 22px; }
.robo-survey .rs-status { font-size: 14px; color: var(--robo-muted); margin: 10px 0 0; }
.robo-survey .rs-status:empty { display: none; }
.robo-survey .rs-banner { padding: 14px 16px; margin: 0 0 20px; font-size: 15px; line-height: 1.5; border-left: 3px solid; background: var(--robo-field); }
.robo-survey .rs-banner.is-error { border-color: var(--robo-error); color: var(--robo-error); }
.robo-survey .rs-banner.is-warn { border-color: var(--robo-warm); }

/* Tulos */
.robo-survey .rs-result { max-width: 780px; }
.robo-survey .rs-result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 32px; }
.robo-survey .rs-summary-text { font-size: 15px; min-height: 260px; margin-top: 4px; }

/* Siirtymä */
.robo-survey .rs-enter { animation: rs-in var(--robo-duration-step) var(--robo-ease); }
@keyframes rs-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .robo-survey .rs-page { padding: 0 28px; }
  .robo-survey .rs-step-grid, .robo-survey .rs-profile-grid, .robo-survey .rs-review-grid { grid-template-columns: 1fr; gap: 40px; }
  .robo-survey .rs-visual, .robo-survey .rs-contact { position: static; }
  .robo-survey .rs-visual { max-width: 640px; }
  .robo-survey .rs-start { grid-template-columns: 1fr; gap: 32px; }
  .robo-survey .rs-start-visual { min-height: 0; aspect-ratio: 1648 / 922; order: -1; }
}
@media (max-width: 650px) {
  .robo-survey { font-size: 16px; }
  .robo-survey .rs-page { padding: 0 16px; }
  .robo-survey .rs-header { min-height: 80px; }
  .robo-survey .rs-brand { width: 122px; }
  .robo-survey .rs-main { padding: 24px 0 48px; }
  .robo-survey .rs-display { font-size: clamp(38px, 11vw, 50px); }
  .robo-survey .rs-q-title { font-size: clamp(30px, 8.6vw, 38px); }
  .robo-survey .rs-result-title { font-size: clamp(34px, 9.4vw, 44px); }
  .robo-survey .rs-lead { font-size: 16px; margin-bottom: 24px; }
  .robo-survey .rs-progress { margin-bottom: 28px; }
  .robo-survey .rs-sections { display: none; }
  .robo-survey .rs-options.cols-2 { grid-template-columns: 1fr; }
  .robo-survey .rs-option { min-height: 60px; padding: 12px 14px; }
  .robo-survey .rs-option-label { font-size: 16px; }
  .robo-survey .rs-icon { width: 24px; height: 24px; }
  .robo-survey .rs-option.is-checked .rs-selected { display: none; }
  .robo-survey .rs-scale-option { min-height: 56px; font-size: 24px; }
  .robo-survey .rs-nav { position: sticky; bottom: 0; z-index: 3; background: var(--robo-paper); margin: 28px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .robo-survey .rs-nav .rs-secondary { padding: 14px; }
  .robo-survey .rs-nav .rs-primary { flex: 1; }
  .robo-survey .rs-start-actions .rs-primary { width: 100%; }
  .robo-survey .rs-start-visual figcaption span:first-child { display: none; }
  .robo-survey .rs-start-visual figcaption { justify-content: flex-end; font-size: 11px; }
  .robo-survey .rs-nav.rs-nav-final { position: static; margin: 32px 0 0; padding: 20px 0 0; flex-direction: column-reverse; align-items: stretch; }
  .robo-survey .rs-nav.rs-nav-final > * { width: 100%; }
  .robo-survey .rs-visual { padding: 18px 16px 16px; }
  .robo-survey .rs-visual-site { font-size: 18px; }
  .robo-survey .rs-dim { grid-template-columns: 1fr; }
  .robo-survey .rs-dim-why { grid-column: 1; }
  .robo-survey .rs-dim-level { font-size: 22px; }
  .robo-survey .rs-answers, .robo-survey .rs-checks ul { grid-template-columns: 1fr; }
  .robo-survey .rs-block { margin-top: 44px; }
  .robo-survey .rs-contact { padding: 22px 16px; margin: 0 -16px; border-width: 1px 0; }
  .robo-survey .rs-contact-fields { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .robo-survey .rs-nav .rs-secondary { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .robo-survey *, .robo-survey *::before, .robo-survey *::after { animation: none !important; transition: none !important; }
}
