* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  color: #eff3ff; background: radial-gradient(ellipse at 75% 12%, #253463, transparent 49%), radial-gradient(ellipse at 12% 80%, #1f3150, transparent 56%), #0b1120;
  font: 16px/1.45 Arial, sans-serif;
}
button, .primary {
  min-height: 44px; min-width: 44px; font: inherit; color: inherit;
  border: 1px solid #637394; border-radius: 9px; background: #17243c; padding: 7px 12px; cursor: pointer;
}
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #c3d7ff; outline-offset: 3px; }
button[aria-pressed="true"] { color: #142043; background: #dce7ff; border-color: #dce7ff; }
a { color: #bed1ff; }
#landing { max-width: 760px; margin: auto; padding: 38px 18px 46px; }
.intro { border-bottom: 1px solid #536282; padding-bottom: 25px; }
.intro img { display: block; border-radius: 15px; }
h1 { font-size: 54px; margin: 8px 0 0; line-height: 1.1; }
h2 { font-size: 20px; margin: 0 0 10px; }
p { margin: 8px 0; }
.primary { display: inline-flex; align-items: center; text-decoration: none; background: #c6d7ff; color: #142043; font-weight: bold; margin-top: 9px; }
.launch, .history { margin-top: 24px; }
#profiles, .sizes, .toolbar > div { display: flex; flex-wrap: wrap; gap: 7px; }
.sizes, details { margin-top: 10px; }
details label { display: block; }
details input { display: block; max-width: 100%; }
#ruler { width: 50mm; border: 1px solid #dbebff; margin: 9px 0; }
.statistics { display: flex; gap: 25px; border-block: 1px solid #536282; padding: 14px 0; margin-top: 23px; }
.statistics strong, .statistics span { display: block; }
.statistics strong { font-size: 27px; font-variant-numeric: tabular-nums; }
.statistics span { color: #c2d0ea; font-size: 14px; }
.toolbar { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; padding: 10px; }
.stage { overflow: auto; padding: 12px; min-height: 60vh; }
.footprint { position: relative; margin: auto; }
.device {
  position: absolute; left: 0; top: 0; transform-origin: top left;
  background: #171e30; outline: 1px solid #64748f; border-radius: 14px;
  box-shadow: 0 16px 42px #0009; padding: 0 8px 8px;
}
.device-top { height: 19px; display: grid; place-items: center; }
.device-top i { width: 30px; height: 3px; background: #8495ad; border-radius: 3px; }
.glass { position: relative; background: #080c15; overflow: hidden; border-radius: 5px; }
iframe { display: block; border: 0; transform-origin: left top; position: absolute; left: 0; top: 0; background: #fafbff; }
#screen-off { position: absolute; inset: 0; background: #080c15; }
.side { position: absolute; left: 100%; top: 42px; display: grid; gap: 5px; }
.side button { padding: 0; min-width: 44px; font-size: 16px; border-radius: 0 8px 8px 0; }
#keypad { padding-top: 6px; }
.directions, .digits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-bottom: 3px; }
#keypad button { min-height: 17px; min-width: 0; padding: 0; font-size: 11px; border-radius: 3px; }
.digits button:last-child { grid-column: 2; }
#landing {
  position: absolute; inset: 0 auto auto 0; overflow-y: auto;
  transform-origin: left top; margin: 0; padding: 22px 18px 30px;
  background: radial-gradient(ellipse at 90% 10%, #2b4076, transparent 70%), #0e172a;
}
.glass { position: absolute; left: 50%; transform: translateX(-50%); }
.device {
  padding: 0; outline: 0; border: 1px solid #8791a5;
  background: #111621; box-shadow: inset 0 0 0 2px #303747, 0 16px 42px #0009;
}
.device.smartphone { border-radius: 10% / 5%; }
.device.smartphone .glass { border-radius: 9% / 4.5%; }
.device.touch { border-radius: 6% / 3%; }
.device.touch .glass { border-radius: 5% / 2.5%; }
.device.keys { border-radius: 9% / 3.7%; }
.device-top { position: absolute; top: 1%; left: 0; right: 0; height: 3px; z-index: 1; pointer-events: none; }
.device-top i { background: #626978; height: 2px; width: 12%; }
.side { left: auto; right: 0; top: 21%; z-index: 2; gap: 4px; }
.side button { min-width: 0; min-height: 27px; width: 8px; font-size: 0; border-radius: 3px 0 0 3px; background: #778196; border: 0; }
.side button:focus-visible { outline-offset: -1px; }
.smartphone .side button:not(#power) { transform: translateX(calc(-1 * var(--button-span, 0px))); }
#power { margin-top: 9px; background: #aab2c4; }
#keypad { position: absolute; inset: 51% 5% 2%; display: grid; grid-template-rows: 38% 62%; padding: 0; }
#keypad button { background: #202b40; border-color: #53627b; }
.directions, .digits { margin: 0; }
