@font-face {
  font-family: OpenRunde;
  src: url('demo/OpenRunde-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: OpenRunde;
  src: url('demo/OpenRunde-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: OpenRunde;
  src: url('demo/OpenRunde-Bold.woff2') format('woff2');
  font-weight: 700 900;
  font-display: swap;
}

.phone-demo {
  --phone-ink: #184a44;
  --phone-muted: #466861;
  --phone-border: #c9ddd3;
  --phone-accent: #bddece;
  --phone-action: #efbd90;
  --phone-card: #fdfefd;
  align-self: start;
}
.phone-demo-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  max-width: 360px;
  margin: 0 auto 14px;
  padding: 4px;
  border: 1px solid #a7c4b5;
  border-radius: 18px;
  background: #f4f7f4a3;
}
.phone-demo-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  padding: 5px 7px;
  background: transparent;
  color: var(--phone-ink);
  font-weight: 700;
  font-size: clamp(12px,1.45vw,14px);
  line-height: 1.2;
  transition: color .2s, background .2s;
}
.phone-demo-tabs button[aria-selected=true] {
  color: white;
  background: var(--phone-ink);
}
.phone-demo-tabs button:hover:not([aria-selected=true]) { background: #e2ede7; }
.phone-demo-stage {
  --playback-size: 44px;
  display: grid;
  grid-template-columns: minmax(0,330px) var(--playback-size);
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.phone-demo-stage:has(.phone-demo-playback[hidden]) { grid-template-columns: minmax(0,330px); }
.phone-demo-playback {
  display: grid;
  place-items: center;
  width: var(--playback-size);
  height: 44px;
  padding: 0;
  border: 1px solid #a7c4b5;
  border-radius: 50%;
  background: #f5f8f5;
  color: var(--phone-ink);
  cursor: pointer;
  transition: background .2s ease;
}
.phone-demo-playback[hidden] { display: none; }
.phone-demo-playback:hover { background: var(--phone-accent); }
.phone-demo-playback svg { width: 19px; height: 19px; }
.phone-demo-playback[data-paused=true] .phone-icon-pause,
.phone-demo-playback[data-paused=false] .phone-icon-play { display: none; }
.phone-playback-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.phone-demo-frame {
  width: 100%;
  max-width: 330px;
  margin-inline: auto;
  aspect-ratio: 390 / 844;
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(0,1fr);
  container-type: inline-size;
  background: #e1efe8;
}
.phone-demo-screen {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(#d0ebe0,#eff5f1 72%);
  color: var(--phone-ink);
  font: 400 clamp(12px,4.35cqw,16px)/1.35 OpenRunde,system-ui,sans-serif;
}
.phone-demo-screen[data-view=odon] { background: linear-gradient(#e6e8d2,#eff5f1 72%); }
.phone-demo-screen[data-view=lujza] { background: linear-gradient(#d5e6ea,#eff5f1 72%); }
.phone-demo-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 40%, #f6fcf9 0%, transparent 68%);
  text-align: center;
}
.phone-demo-intro .phone-willo-art { width: 68%; max-width: 200px; }
.phone-demo-intro p {
  max-width: 230px;
  color: var(--phone-ink);
  font-size: clamp(17px, 6.6cqw, 23px);
  font-weight: 700;
  line-height: 1.2;
}
.phone-in-view .phone-demo-intro .phone-willo-art svg { animation-name: phone-intro-float; }
@keyframes phone-intro-float { 50% { transform: translateY(-8px) rotate(4deg); } }
.phone-demo-screen button, .phone-demo-screen input, .phone-demo-screen select { color: inherit; font: inherit; }
.phone-demo-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  animation: phone-demo-enter .23s ease-out both;
}
.phone-demo-content {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  flex: 1;
  padding: 7cqw 5cqw 10px;
}
.phone-demo-screen[data-view=parent] .phone-demo-content { padding-top: 4cqw; }
.phone-demo-content h3 {
  color: var(--phone-ink);
  font-size: clamp(20px,7.3cqw,28px);
  line-height: 1.07;
  margin: 0 0 13px;
  overflow-wrap: break-word;
  outline: none;
}
.phone-demo-content p { color: var(--phone-muted); }
.phone-demo-content .phone-eyebrow {
  margin-bottom: 6px;
  color: var(--phone-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.phone-demo-actions {
  display: grid;
  gap: 1px;
  flex: none;
  padding: 5px 5cqw 8cqw;
}
.phone-demo-screen .phone-primary,
.phone-demo-screen .phone-secondary,
.phone-demo-screen .phone-text-button {
  min-height: 38px;
  padding: 6px 10px;
  border: 0;
  border-radius: 11px;
  font-weight: 700;
}
.phone-demo-screen .phone-primary { background: var(--phone-action); }
.phone-demo-screen .phone-primary:disabled { background: var(--phone-accent); }
.phone-demo-screen .phone-secondary { background: #dcece4; }
.phone-demo-screen .phone-text-button { min-height: 31px; background: transparent; color: var(--phone-muted); font-size: 12px; }
.phone-demo-screen :focus-visible { outline: 2px solid #315d59; outline-offset: 2px; }
.phone-demo-screen h3[tabindex]:focus-visible { outline: none; }
.phone-segments {
  display: flex;
  gap: 3px;
  flex: none;
  margin: 8px 8px 0;
  padding: 3px;
  background: #e9f2ec;
  border-radius: 12px;
}
.phone-segments button {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 9px;
  min-height: 34px;
  padding: 4px 1px;
  font-weight: 700;
  font-size: clamp(10px,3.5cqw,13px);
  background: transparent;
}
.phone-demo-content .phone-segments { margin: 0 0 10px; }
.phone-segments button[aria-pressed=true] { background: var(--phone-accent); }
.phone-capture {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  animation: phone-demo-enter .23s ease-out both;
}
.phone-capture video { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.phone-demo-card {
  display: grid;
  gap: 4px;
  margin-block: 7px;
  padding: 9px 10px;
  background: var(--phone-card);
  border: 1px solid var(--phone-border);
  border-radius: 12px;
}
.phone-demo-card small, .phone-answer-form label { display: block; color: var(--phone-muted); font-size: 11px; font-weight: 700; }
.phone-rule-form > label { display: grid; gap: 3px; margin-bottom: 4px; font-weight: 600; }
.phone-rule-form fieldset { margin: 0; padding: 4px 0 0; border: 0; }
.phone-rule-form fieldset label { display: block; margin-top: 4px; }
.phone-rule-form input { accent-color: var(--phone-ink); }
.phone-rule-form select, .phone-answer-form input {
  background: var(--phone-card);
  padding: 7px;
  min-height: 37px;
  min-width: 0;
  border: 1px solid var(--phone-border);
  border-radius: 9px;
}
.phone-answer-form input { width: 100%; font-size: 16px; }
.phone-answer-form label { margin-bottom: 3px; }
.phone-question-count { font-size: 11px; font-weight: 600; }
.phone-demo-screen progress { display: block; width: 100%; height: 7px; margin: 5px 0 9px; accent-color: #4c8d77; }
.phone-answer-choices { display: grid; gap: 5px; }
.phone-answer-choices button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 8px;
  padding: 6px 8px;
  min-height: 34px;
  border: 1px solid var(--phone-border);
  border-radius: 10px;
  background: var(--phone-card);
}
.phone-answer-choices button[aria-pressed=true] { background: #d8e6df; border-color: #447466; }
.phone-answer-choices button b { font-size: 11px; }
.picture-choices { grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); }
.picture-choices button { flex-direction: column; padding: 3px; gap: 2px; }
.picture-choices img { display: block; width: 100%; height: auto; border-radius: 7px; }
.phone-willo {
  display: grid;
  grid-template-columns: min(20%,53px) 1fr;
  gap: 7px;
  align-items: center;
  margin-top: 9px;
  padding: 5px 8px;
  border: 1px solid var(--phone-border);
  border-radius: 12px;
  background: #fdfefd;
}
.phone-willo b { color: var(--phone-muted); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.phone-willo p { margin: 0; font-size: clamp(11px,4cqw,14px); }
.phone-willo-art svg { display:block; width:100%; overflow:visible; }
.phone-in-view .phone-willo-art svg { animation: phone-willo-float 3.2s ease-in-out infinite; }
.phone-paused .phone-willo-art svg { animation-play-state: paused; }
.phone-profile-progress { grid-template-columns: 1fr auto; align-items:center; }
.phone-profile-progress progress { grid-column:1; margin: 0; }
.phone-profile-progress button { min-height: 34px; }
.phone-rule-status { margin-top:7px; font-size:11px; font-weight:700; }
@keyframes phone-demo-enter { from { opacity:.55; transform: translateY(4px); } to { opacity:1; transform:none; } }
@keyframes phone-willo-float { 50% { transform: translateY(-3px) rotate(3deg); } }
@media (max-width:480px) {
  .phone-demo-stage { gap: 5px; }
  .phone-demo { padding-inline: 8px; }
  .phone-demo-frame { max-width: min(330px,100%); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-demo-page, .phone-capture, .phone-in-view .phone-willo-art svg,
  .phone-in-view .phone-demo-intro .phone-willo-art svg { animation:none; }
  .phone-demo-tabs button, .phone-demo-playback { transition:none; }
}
