:root{
  --topbar-h: 56px;
  --bg: #0b0b0c;
  --panel: #111114;
  --text: #eaeaf1;
  --muted: #b9b9c6;
  --accent: #ff7a1a; /* AuthWriter orange */
  --stroke: #232329;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.4;
  overflow: hidden; /* keep the page locked, the iframe scrolls */
}

/* Top bar */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--topbar-h);
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  gap: 8px;
  padding: 0 14px;

  background: linear-gradient(180deg, #014a99, #013b7a);
  color: white;          /* make sure icons/text are visible */
  border-bottom: none;   /* optional: remove the dark border */
  z-index: 10;
}


.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.4);   /* subtle white border */
  border-radius: 999px;
  background: rgba(255,255,255,0.15);        /* translucent white background */
  color: #ffffff;                            /* white text/icons */
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.back svg { fill: currentColor; }

.back:hover {
  background: rgba(255,255,255,0.25);        /* brighter hover */
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}

.back:active {
  transform: translateY(0);
}

.back:focus-visible {
  outline: 2px solid #ffffff;                /* white focus ring */
  outline-offset: 2px;
}

.back-label {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .1px;
}


.brand{
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand .dot{
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent);
}
.brand-text{
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.topbar-spacer{ width: 36px; height: 36px; }

/* Demo area */
.demo-wrap {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: #0d0d11; /* fallback background behind demo */
}

.demo-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* Small-screen guard */
.desktop-notice{
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(255,122,26,.06), transparent 60%) , rgba(7,7,9,.8);
  display: grid;
  place-items: center;
  z-index: 50;
}
.notice-card{
  width: min(92vw, 560px);
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  text-align: center;
}
.notice-card h1{
  margin: 0 0 8px;
  font-size: 22px;
}
.notice-card p{
  margin: 0 0 16px;
  color: var(--muted);
}
.notice-actions{
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  color: var(--text);
  text-decoration: none;
}
.btn.primary{
  background: var(--accent);
  color: #060606;
  border-color: #0000;
  font-weight: 700;
}

/* Noscript fallback */
.noscript{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--bg);
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce){
  .back{ transition: none; }
}
