@font-face {
  font-family: Inter;
  src: url("assets/inter-regular.ttf") format("truetype");
  font-weight: 100 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/inter-semibold.ttf") format("truetype");
  font-weight: 550 900;
  font-display: swap;
}
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color-scheme: light;
  --bg: #f5f5ef;
  --surface: #fff;
  --text: #233f36;
  --muted: #586a60;
  --border: #dde3dc;
  --accent: #214e3e;
  --accent-text: #fff;
  --soft: #eaf0e8;
  --danger: #a83d36;
  --danger-soft: #fff0eb;
  --highlight: #e5edcb;
  --shadow: 0 18px 60px #1c3c3012;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #142720;
  --surface: #1c332a;
  --text: #eff4ed;
  --muted: #afc0b5;
  --border: #3c5548;
  --accent: #cee4ae;
  --accent-text: #163426;
  --soft: #294535;
  --danger: #ffaca1;
  --danger-soft: #452e29;
  --highlight: #3a5030;
  --shadow: 0 18px 60px #0003;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #e8ebe5;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
body:has([data-theme="dark"]) {
  background: #101e18;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.43;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #a86c2f;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.18;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 22px;
}
img,
video {
  max-width: 100%;
  object-fit: cover;
}
button {
  color: inherit;
}
button svg {
  width: 20px;
}
main:focus {
  outline: none;
}
.prototype-shell {
  max-width: 1600px;
  margin: auto;
  padding: 24px 24px 0;
}
.device-surface {
  min-height: calc(100dvh - 88px);
  border-radius: 24px;
  background: var(--bg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 42px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 36px;
  font-style: italic;
  line-height: 1;
}
.brand small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  color: var(--muted);
  margin-top: 7px;
  font-weight: 500;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  display: inline-grid;
  place-items: center;
}
.language {
  font-size: 13px;
  font-weight: 650;
}
.connection {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-right: 16px;
}
.connection i {
  width: 6px;
  height: 6px;
  background: #689275;
  border-radius: 100%;
}
main {
  flex: 1;
  padding: 42px;
  min-width: 0;
}
.app-footer {
  padding: 19px 42px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.privacy-dot {
  width: 7px;
  height: 8px;
  border: 1px solid var(--muted);
  border-radius: 2px;
  position: relative;
  flex: none;
}
.privacy-dot:before {
  content: "";
  position: absolute;
  width: 3px;
  height: 4px;
  left: 1px;
  top: -5px;
  border: 1px solid var(--muted);
  border-radius: 4px 4px 0 0;
}
.app-footer .text-button {
  margin-left: auto;
  white-space: nowrap;
}
.text-button {
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 0 6px;
  color: var(--text);
  font-weight: 500;
}
.prototype-bar {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #506255;
  font-size: 12px;
}
.prototype-bar strong {
  font-size: 14px;
  letter-spacing: -0.04em;
}
.prototype-label {
  padding-left: 14px;
  margin-left: 14px;
  border-left: 1px solid #c5cfc4;
}
.prototype-open {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f8faf5;
  border: 1px solid #cad2c8;
  border-radius: 10px;
  min-height: 44px;
  padding: 8px 15px;
  max-width: 55%;
  text-align: left;
  color: #304d3c;
}
.prototype-open > span {
  font-size: 21px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 550;
  font-size: 15px;
  text-decoration: none;
  line-height: 1.35;
  transition:
    background 0.15s,
    transform 0.1s;
}
.button.primary {
  background: var(--accent);
  color: var(--accent-text);
}
.button.primary:hover {
  filter: brightness(1.12);
}
.button.secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.button.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.button.danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 16px;
}
.screen-title {
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 620px;
}
.muted {
  color: var(--muted);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 550;
  min-width: 0;
}
.field input,
.field select,
.field textarea,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 14px;
  min-height: 50px;
  max-width: 100%;
}
input[type="checkbox"],
input[type="radio"] {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
  flex: none;
}
input[readonly] {
  background: var(--soft) !important;
  color: var(--muted) !important;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
.notice {
  padding: 17px 20px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.status-layout {
  max-width: 630px;
  margin: 32px auto 48px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.status-symbol {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  font-size: 37px;
  color: var(--accent);
  margin-bottom: 30px;
}
.status-symbol.small {
  width: 60px;
  height: 60px;
  font-size: 24px;
}
.status-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}
.loading-symbol {
  animation: spin 2s linear infinite;
}
.overlay,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #132b2270;
  backdrop-filter: blur(5px);
  z-index: 30;
}
.screen-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(480px, 100%);
  background: var(--bg);
  z-index: 31;
  padding: 28px;
  overflow-y: auto;
  box-shadow: -20px 0 70px #0002;
}
.drawer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.drawer-heading h2 {
  font-size: 27px;
}
.drawer-heading .eyebrow {
  margin-bottom: 10px;
}
.drawer-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 8px 0 24px;
}
.drawer-settings label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}
.screen-list h3 {
  margin: 28px 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.screen-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px;
  min-height: 48px;
  width: 100%;
  font-size: 14px;
}
.screen-link small {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.screen-link:hover,
.screen-link.active {
  background: var(--soft);
  border-color: var(--border);
}
.modal-backdrop {
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  max-width: 500px;
  width: 100%;
  padding: 36px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
.modal > .button {
  margin-top: 24px;
  width: 100%;
}
.modal .lead {
  font-size: 16px;
}
.modal h2 {
  font-size: 30px;
}
.qr-code {
  width: 184px;
  height: 184px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.portrait {
  max-width: 820px;
}
.landscape {
  max-width: 1280px;
}
.portrait .device-surface {
  min-height: 1080px;
}
.portrait main {
  padding: 28px;
}
.portrait .grid {
  grid-template-columns: 1fr;
}
.portrait .connection {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1400px) {
  main {
    padding: 48px 68px;
  }
  .app-header {
    padding-left: 68px;
    padding-right: 68px;
  }
  .app-footer {
    padding-left: 68px;
    padding-right: 68px;
  }
}
@media (max-width: 900px) {
  .prototype-shell {
    padding: 12px 12px 0;
  }
  .app-header {
    padding: 20px 26px;
  }
  main {
    padding: 30px 26px;
  }
  .app-footer {
    padding: 12px 26px;
  }
  .connection {
    display: none;
  }
  .screen-title {
    font-size: 38px;
  }
  .grid {
    gap: 16px;
  }
  .device-surface {
    min-height: calc(100dvh - 76px);
  }
}
@media (max-width: 600px) {
  .prototype-shell {
    padding: 0;
  }
  .device-surface {
    border-radius: 0;
    border: 0;
    min-height: calc(100dvh - 60px);
  }
  .app-header {
    padding: 16px 18px;
    gap: 10px;
  }
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand small {
    font-size: 8px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 29px;
  }
  .header-tools {
    gap: 5px;
  }
  .icon-button {
    width: 44px;
    height: 44px;
  }
  .header-tools .icon-button:last-child {
    display: none;
  }
  main {
    padding: 26px 20px;
  }
  .app-footer {
    padding: 12px 20px;
    font-size: 10px;
  }
  .app-footer .text-button {
    display: none;
  }
  .prototype-bar {
    padding: 8px 14px;
    min-height: 60px;
  }
  .prototype-label {
    display: none;
  }
  .prototype-open {
    font-size: 11px;
    max-width: 75%;
  }
  .screen-title {
    font-size: 34px;
  }
  .lead {
    font-size: 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 22px;
  }
  .status-layout {
    margin: 20px auto;
  }
  .status-actions {
    width: 100%;
    flex-direction: column;
  }
  .status-actions .button {
    width: 100%;
  }
  .button {
    min-height: 52px;
  }
  .modal {
    padding: 26px;
  }
  .screen-drawer {
    padding: 24px;
  }
  .portrait .device-surface {
    min-height: calc(100dvh - 60px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.device-surface:has(main[data-screen="idle"]) .app-header,
.device-surface:has(main[data-screen="idle"]) .app-footer {
  display: none;
}
.device-surface:has(main[data-screen="idle"]) main {
  padding: 0;
}
.device-surface:has(main[data-screen="idle"]) .c-idle {
  border-radius: 0;
  min-height: calc(100dvh - 90px);
}
.preview-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
  font-size: 13px;
}
.preview-controls:empty {
  display: none;
}
.preview-controls .c-home-toolbar {
  flex-wrap: wrap;
}
.preview-controls .c-segmented {
  flex-wrap: wrap;
}
.preview-controls > span {
  color: var(--muted);
}
.device-surface {
  container-type: inline-size;
}
@container (max-width:760px) {
  .c-welcome,
  .c-home-hero,
  .c-home-lower,
  .c-info-columns,
  .c-detail,
  .c-contact-grid,
  .c-block-layout,
  .s-mobile-card {
    grid-template-columns: 1fr;
  }
  .c-welcome {
    gap: 24px;
  }
  .c-welcome-image {
    height: 360px;
  }
  .c-services {
    grid-template-columns: 1fr;
  }
  .c-hero-photo {
    height: 300px;
  }
  .c-display {
    font-size: 42px;
  }
  .s-service-grid {
    grid-template-columns: 1fr;
  }
  .s-reader-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
#app:fullscreen {
  background: var(--bg);
  width: 100%;
  height: 100%;
  overflow: auto;
}
#app[data-fullscreen]:not([data-fullscreen=""]) .prototype-bar {
  display: none;
}
#app[data-fullscreen]:not([data-fullscreen=""]) .device-surface {
  container-type: normal;
}
.s-ui-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 20 !important;
  width: 100% !important;
  height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: var(--surface);
}
.connection-warning {
  color: var(--danger);
}
.connection-warning i {
  background: var(--danger);
}
.s-signature-shell.s-ui-fullscreen {background:#fff!important;color:#26332f}
.s-signature-shell.s-ui-fullscreen .s-canvas-wrap {background:#fff;min-height:0}
.s-signature-shell.s-ui-fullscreen .button {background:#fff;color:#234b3d;border-color:#ccd7ce}
