@font-face {
  font-family:Lexend;
  src:url('assets/lexend.ttf') format('truetype');
  font-style:normal;
  font-weight:100 900;
  font-display:swap
}
:root {
  font-family:system-ui,sans-serif;
  color:#30241e;
  background:#f4f1eb;
  color-scheme:light
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,a,summary,input {
  touch-action:manipulation
}
button {
  font:inherit;
  cursor:pointer
}
button:where(:not(.screen-button)) {
  border:1px solid #cdbeb1;
  border-radius:8px;
  background:#fffaf5;
  padding:10px 13px;
  color:#493027
}
a {
  color:#743e2d
}
p {
  font-size:15px;
  line-height:1.55;
  margin:0
}
h1,h2,h3 {
  margin:0
}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:3px solid #1262a3;
  outline-offset:3px
}
[hidden] {
  display:none!important
}
.demo-app {
  height:100vh;
  height:100dvh;
  min-height:320px;
  max-width:1500px;
  margin:auto;
  padding:16px 24px 24px;
  display:flex;
  flex-direction:column;
  gap:16px
}
.app-header {
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}
.website-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-shrink:0;
  gap:12px;
  padding:4px 10px;
  border:1px solid #ded5ca;
  border-radius:10px;
  background:#fff
}
.website-brand {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  font-size:14px;
  font-weight:650;
  line-height:1.2;
  color:#30241e;
  text-decoration:none
}
.website-brand img {
  flex-shrink:0
}
.website-brand-subtitle {
  display:block;
  margin-top:2px;
  font-size:9px;
  letter-spacing:.17em;
  text-transform:uppercase;
  color:#743e2d
}
.exit-demo {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:44px;
  padding:8px 12px;
  border:1px solid #743e2d;
  border-radius:7px;
  font-size:13px;
  font-weight:650;
  white-space:nowrap;
  text-decoration:none
}
.exit-demo:hover {
  background:#f8ede4
}
.demo-main {
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
  gap:12px
}
.brand {
  display:flex;
  align-items:center;
  gap:14px
}
h1 {
  font-size:23px;
  letter-spacing:-.035em;
  line-height:1.2
}
.demo-badge {
  font-size:11px;
  font-weight:650;
  white-space:nowrap;
  color:#85533d;
  background:#ebe3d8;
  border-radius:20px;
  padding:6px 10px
}
.patent-notice {
  margin-top:3px;
  font-size:12px;
  line-height:1.3;
  font-weight:500;
  color:#6b5549
}
.workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(285px,360px);
  gap:24px;
  flex:1;
  min-height:0
}
.device-panel {
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  border:1px solid #ded5ca;
  border-radius:16px;
  background:#e9e4dc;
  overflow:hidden
}
.device-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:10px 14px;
  border-bottom:1px solid #ded5ca;
  background:#f9f6f0;
  flex-shrink:0
}
.device-actions {
  display:flex;
  gap:8px
}
.device-toolbar button {
  font-size:12px;
  min-height:36px;
  padding:7px 10px;
  background:transparent
}
.device-toolbar #device-size {
  border-color:transparent;
  color:#795344
}
.device-toolbar #device-size[aria-pressed=true] {
  background:#eee2d7
}
.device-stage {
  flex:1;
  min-height:0;
  min-width:0;
  container-type:size;
  display:grid;
  place-items:center;
  overflow:auto;
  padding:12px;
  scrollbar-width:thin
}
.screen {
  position:relative;
  width:min(100cqw,calc(100cqh * .463022508));
  aspect-ratio:720/1555;
  flex-shrink:0;
  isolation:isolate;
  background:#fff8f5;
  overflow:hidden;
  border-radius:3px;
  box-shadow:0 3px 20px #37251b22;
  outline:1px solid #3d281214
}
.device-stage.enlarged {
  display:block;
  text-align:center
}
.device-stage.enlarged .screen {
  width:min(100%,520px);
  margin:0 auto
}
.screen-art {
  display:block;
  width:100%;
  height:100%
}
.screen-button {
  display:block;
  width:100%;
  height:100%;
  padding:0;
  margin:0;
  border:0;
  border-radius:0;
  line-height:0;
  background:transparent;
  appearance:none;
  overflow:hidden
}
.screen-button svg {
  display:block;
  width:100%;
  height:100%
}
.screen-button:focus-visible {
  outline:5px solid #1262a3;
  outline-offset:-5px
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  border:0;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap
}
.live-region {
  width:100%;
  height:100%;
  overflow:hidden;
  line-height:normal;
  font-family:Lexend,system-ui,sans-serif
}
.guidance {
  min-height:0;
  display:flex;
  flex-direction:column;
  background:#fffaf5;
  border:1px solid #e0d5c9;
  border-radius:16px;
  overflow:hidden
}
.guidance-heading {
  padding:24px 24px 18px;
  border-bottom:1px solid #eee3d8;
  flex-shrink:0
}
.eyebrow {
  font-size:10px;
  font-weight:750;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#93593e;
  margin-bottom:9px
}
.guidance h2 {
  font-size:23px;
  letter-spacing:-.025em;
  line-height:1.25;
  overflow-wrap:anywhere
}
.guidance-content {
  padding:22px 24px;
  overflow:auto;
  overscroll-behavior:contain;
  min-height:0;
  scrollbar-width:thin
}
#feedback {
  font-size:16px;
  line-height:1.65
}
.example-note {
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid #e9ded2
}
.example-note h3 {
  font-size:12px;
  font-weight:700;
  color:#7e5b47;
  margin-bottom:9px
}
#prepared-note {
  font-size:13px;
  line-height:1.6;
  color:#6d6259
}
.about-demo {
  margin-top:24px;
  border-top:1px solid #e9ded2;
  padding-top:12px
}
.about-demo summary {
  font-size:13px;
  font-weight:600;
  color:#795344;
  cursor:pointer;
  padding:8px 0
}
.about-demo p {
  font-size:13px;
  color:#6d6259;
  margin:10px 0;
  line-height:1.55
}
#guidance-toggle {
  display:none
}
dialog {
  position:fixed;
  inset:auto;
  margin:0;
  left:var(--explanation-left);
  top:var(--explanation-top);
  width:var(--explanation-width);
  max-width:calc(100vw - 24px);
  max-height:var(--explanation-height);
  border:1px solid #c8b5a3;
  border-radius:16px;
  padding:28px;
  background:#fffaf5;
  color:#30241e;
  box-shadow:0 12px 48px #28190d24;
  overflow:auto
}
dialog::backdrop {
  background:#30241e12
}
dialog h2 {
  font-size:23px;
  line-height:1.25;
  margin-bottom:18px
}
dialog p {
  line-height:1.65
}
dialog #close-explanation {
  margin-top:26px;
  background:#703f2e;
  color:#fff;
  border-color:#703f2e;
  min-height:44px
}
@media(min-width:1100px) {
  .workspace {
    gap:32px
  }
  .demo-app {
    padding:18px 32px 26px
  }
  .device-toolbar {
    padding:10px 18px
  }
}
@media(max-width:759px) {
  .demo-app {
    padding:10px 10px 12px;
    gap:10px;
    min-height:320px
  }
  .app-header {
    min-height:32px;
    gap:8px
  }
  .brand {
    gap:8px
  }
  h1 {
    font-size:18px
  }
  .demo-badge {
    display:none
  }
  .website-bar {
    padding:0 8px
  }
  .demo-main {
    gap:8px
  }
  .workspace {
    display:flex;
    flex-direction:column;
    gap:10px
  }
  .device-panel {
    flex:1;
    min-height:160px;
    border-radius:12px
  }
  .device-toolbar {
    padding:6px 8px;
    gap:4px
  }
  .device-toolbar button {
    font-size:11px;
    padding:6px 8px;
    min-height:32px
  }
  .device-actions {
    gap:4px
  }
  .device-stage {
    padding:8px
  }
  .guidance {
    flex-shrink:0;
    max-height:46%;
    border-radius:12px
  }
  .guidance-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 14px 0;
    border:0
  }
  .guidance-heading .eyebrow {
    display:none
  }
  .guidance h2 {
    font-size:15px;
    line-height:1.3
  }
  #guidance-toggle {
    display:block;
    flex-shrink:0;
    padding:6px 10px;
    min-height:32px;
    font-size:12px
  }
  .guidance-content {
    padding:6px 14px 12px
  }
  #feedback {
    font-size:13px;
    line-height:1.45;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden
  }
  #guidance-details {
    display:none
  }
  .guidance.expanded #guidance-details {
    display:block
  }
  .guidance.expanded #feedback {
    display:block
  }
  .example-note {
    margin-top:14px;
    padding-top:12px
  }
  .about-demo {
    margin-top:14px;
    padding-top:6px
  }
  dialog {
    left:10px;
    right:10px;
    bottom:10px;
    top:auto;
    width:auto;
    max-height:70dvh;
    max-width:none;
    padding:22px;
    border-radius:16px
  }
  dialog h2 {
    font-size:21px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important
  }
}
/* Keep toolbar actions out of the device's limited vertical space. */
.demo-app {
  max-width:1180px
}
.app-header>.device-toolbar {
  padding:0;
  border:0;
  background:transparent;
  gap:10px;
  margin-left:auto
}
.app-header {
  gap:20px
}
.brand {
  flex-shrink:0
}
.device-toolbar button {
  white-space:nowrap
}
dialog {
  height:var(--explanation-height)
}
dialog[open] {
  display:flex;
  flex-direction:column
}
dialog #close-explanation {
  margin-top:auto;
  align-self:flex-start;
  flex-shrink:0
}
dialog #explanation-body {
  margin-bottom:24px
}
@media(max-width:1099px) and (min-width:760px) {
  .demo-badge {
    display:none
  }
  .demo-app {
    padding:12px 16px 16px;
    gap:12px
  }
  .workspace {
    gap:18px;
    grid-template-columns:minmax(0,1fr) 310px
  }
  .app-header {
    gap:12px
  }
  .app-header>.device-toolbar {
    gap:6px
  }
  .device-toolbar button {
    font-size:11px;
    padding:7px 8px
  }
  .guidance-heading {
    padding:20px
  }
  .guidance-content {
    padding:18px 20px
  }
}
@media(max-width:759px) {
  .app-header {
    flex-wrap:wrap;
    gap:6px
  }
  .app-header>.device-toolbar {
    order:3;
    width:100%;
    margin:0;
    justify-content:space-between;
    padding-top:4px
  }
  .demo-app {
    gap:8px
  }
  dialog {
    height:auto;
    max-height:70dvh
  }
  dialog #close-explanation {
    margin-top:0
  }
}
@media(min-width:760px) and (max-height:480px) {
  .demo-app {
    padding:8px 12px;
    gap:8px
  }
  .guidance-heading {
    padding:12px 16px
  }
  .guidance h2 {
    font-size:19px
  }
  .guidance-content {
    padding:12px 16px
  }
  #feedback {
    font-size:14px
  }
  .example-note {
    margin-top:14px;
    padding-top:12px
  }
  .about-demo {
    margin-top:14px
  }
  .device-stage {
    padding:8px
  }
  dialog {
    padding:18px
  }
  dialog h2 {
    font-size:20px
  }
}
/* Short landscape screens need the device and guidance beside each other. */
@media(min-width:560px) and (max-width:759px) and (max-height:480px) {
  .app-header {
    flex-wrap:nowrap
  }
  .app-header>.device-toolbar {
    width:auto;
    margin-left:auto;
    padding:0
  }
  .workspace {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(250px,1fr)
  }
  .guidance {
    max-height:none
  }
}

.screen-features { margin-top:24px; padding-top:20px; border-top:1px solid #e9ded2; }
.screen-features h3 { font-size:14px; margin-bottom:9px; }
.screen-features p { font-size:14px; }
.screen-features button { margin-top:14px; font-size:13px; }
@media(max-width:759px) { .screen-features { margin-top:14px; padding-top:12px; } }

.demo-limit{font-size:16px;line-height:1.5;margin-bottom:18px;padding:12px;border-left:3px solid #954b3e;background:#f8ede4}
@media(max-width:759px){.demo-limit{font-size:13px;line-height:1.45;margin-bottom:8px;padding:8px}}
@media(max-width:759px) and (max-height:480px){.device-panel{min-height:140px}}
