/* The teaser (no session in login mode) and the legal pages. Colours and type as the portal: www.blurlabs.ai's fonts, white with purple. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/static/montserrat-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("/static/source-sans-3-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("/static/source-sans-3-italic-latin.woff2") format("woff2"); }
:root { color-scheme: light; --text: #4d0d6c; --strong: #000000; --accent: #7a3fa8; --soft: #f0e8f8; --ring: #d7b6ea; --line: rgba(77,13,108,.24);
  --muted: rgba(77,13,108,.65); --lead: rgba(77,13,108,.75); --bad: #b00020;
  --font-brand: Montserrat, Arial, sans-serif; --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #ffffff; }
body { margin: 0; background: transparent; position: relative; color: var(--text); font-family: var(--font-body); font-size: 16px; }
a { color: var(--accent); } a:hover { color: var(--text); }
input, textarea, select { font: inherit; color: var(--text); }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
button { font: inherit; cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--strong); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand span { font-family: var(--font-brand); font-weight: 800; font-size: 17px; letter-spacing: .05em; color: var(--strong); }
.nav { display: flex; align-items: center; gap: 10px; }
.btn-quiet { background: transparent; border: 1px solid transparent; color: var(--text); font-weight: 600; padding: 10px 14px; border-radius: 8px; min-height: 44px; }
.btn-quiet:hover { background: var(--soft); }
.btn-primary { background: var(--accent); border: 1px solid var(--accent); color: #ffffff; font-weight: 600; padding: 10px 16px; border-radius: 8px; min-height: 44px; }

.hero { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px 48px; display: flex; flex-direction: column; align-items: center; gap: 0; }
/* the prompt box first, with the How does it work? steps still in the first screen of a desktop */
.first { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 40px 0 56px; }
.hero h1 { margin: 0; text-align: center; font-family: var(--font-brand); font-weight: 800; font-size: 30px; line-height: 1.2; color: var(--strong); }
.lead { margin: 0; max-width: 100%; white-space: nowrap; text-align: center; font-size: 15px; line-height: 1.5; color: var(--lead); }
.prompt-box { width: 100%; max-width: 820px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff; box-shadow: 0 6px 28px rgba(77,13,108,.10); padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.prompt-field { display: grid; }
.prompt-field > * { grid-area: 1 / 1; }
.prompt-box textarea { border: none; resize: none; overflow: hidden; font-size: 14px; line-height: 1.4; background: transparent; padding: 2px 4px; position: relative; z-index: 1; }
.ghosts { display: grid; pointer-events: none; }
.ghost { grid-area: 1 / 1; font-size: 14px; line-height: 1.4; padding: 2px 4px; color: var(--muted); opacity: 0; transition: opacity .6s ease; }
.ghost.on { opacity: 1; }
.typed .ghosts { display: none; }
.prompt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.btn-upload { display: flex; align-items: center; gap: 6px; background: var(--soft); border: 1px solid rgba(77,13,108,.18); color: var(--text); font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 999px; min-height: 30px; }
.formats { flex: 1; font-size: 12px; color: var(--muted); }
.formats .link { font-size: 12px; }
.prompt-box.drag { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.files { list-style: none; margin: 0; padding: 0 2px; display: flex; flex-wrap: wrap; gap: 6px; }
.files li { display: flex; align-items: center; gap: 4px; max-width: 100%; background: var(--soft); border: 1px solid rgba(77,13,108,.18); border-radius: 6px; padding: 2px 4px 2px 8px; font-size: 12px; }
.files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-remove { background: transparent; border: none; color: var(--muted); font-size: 15px; line-height: 1; padding: 0 4px; }
.file-remove:hover { color: var(--text); }
.send-wrap { position: relative; flex: none; display: flex; }
.send-wrap.blocked .btn-send { background: rgba(77,13,108,.25); cursor: not-allowed; }
.send-wrap.blocked:hover::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: 240px; background: #12061f; color: #ffffff; font-size: 12px; line-height: 1.35; padding: 6px 9px; border-radius: 6px; z-index: 5; pointer-events: none; }
.disclaimer { margin: -10px 0 0; font-size: 11px; color: var(--muted); text-align: center; }
.formats-intro, .formats-outro { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(77,13,108,.8); }
#formats-body { display: flex; flex-direction: column; gap: 10px; }
.formats-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.45; color: rgba(77,13,108,.8); }
.formats-list b { color: var(--text); }
.btn-send { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--accent); border: none; color: #ffffff; border-radius: 8px; }
.btn-send svg, .btn-upload svg { width: 16px; height: 16px; }
.how { width: 100%; max-width: 940px; margin-top: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.how h2 { font-family: var(--font-brand); font-weight: 800; font-size: 28px; color: var(--strong); margin: 0; text-align: center; }
.how-steps { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.how-step { margin: 0; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
.how-step.on { opacity: 1; transform: none; }
.how-label { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 2; display: flex; align-items: flex-start; gap: 6px; pointer-events: none; }
/* number and text as the Baseline and RAM 3D labels of the RAM 3D gallery */
.how-num { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255,255,255,.42); background: rgba(20,16,23,.62); color: #ffffff; font-family: var(--font-brand); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.how-text { padding: 5px 7px; border: 1px solid rgba(255,255,255,.42); border-radius: 2px; background: rgba(20,16,23,.62); color: #ffffff; font-size: 12px; font-weight: 600; line-height: 1.15; }
.how-credit { margin: 6px 0 0; font-size: 10px; line-height: 1.35; color: var(--muted); text-align: right; }
.how-frame { position: relative; width: 100%; aspect-ratio: 1; border-radius: 10px; background: #000000; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.how-frame img, .how-frame canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.how-files { background: var(--soft); color: var(--text); }
.how-files { flex-direction: column; gap: 6px; }
.how-files svg { width: 42%; height: auto; margin-top: 18px; }
.how-quote { margin: 0; max-width: 80%; padding: 2px 0 2px 8px; border-left: 3px solid var(--accent); font-style: italic; font-size: 13px; color: var(--text); }
.how-physics { background: var(--soft); color: var(--text); }
.how-physics-body { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 18px; padding: 0 10px; text-align: center; font-size: 14px; font-weight: 600; }
.math { font-family: "Latin Modern Math", "Cambria Math", "STIX Two Math", "Times New Roman", serif; font-style: italic; font-weight: 400; font-size: 1.15em; }
.how-plus { font-size: 18px; font-weight: 400; color: var(--muted); }
.how-think { min-height: 22px; display: flex; align-items: center; justify-content: center; }
.dots { display: flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: think 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes think { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-6px); opacity: 1; } }
.how-calibrated { display: none; }
.how-think.done .dots { display: none; }
.how-think.done .how-calibrated { display: inline; animation: appear .4s ease; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
.how-more { margin: 4px 0 0; text-align: center; font-size: 15px; line-height: 1.5; color: var(--lead); }
.how-tag { fill: var(--accent); }
.how-format { fill: #ffffff; font-family: var(--font-brand); font-weight: 700; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .how-step, .ghost { transition: none; transform: none; } .dots i, .how-think.done .how-calibrated { animation: none; } }
.foot { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 14px 24px 20px; font-size: 12px; color: var(--muted); }

.overlay { position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: rgba(18,6,31,.55); display: flex; align-items: flex-start; justify-content: center; padding: 64px 16px; }
.dialog { position: relative; width: 100%; max-width: 400px; background: #ffffff; border-radius: 16px; box-shadow: 0 20px 60px rgba(18,6,31,.35); padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; background: transparent; border: none; color: var(--text); display: flex; align-items: center; justify-content: center; }
.dialog-logo { width: 30px; height: 30px; align-self: center; }
.screen { display: flex; flex-direction: column; gap: 10px; }
.center { text-align: center; }
.screen h2 { margin: 0; font-family: var(--font-brand); font-weight: 800; font-size: 18px; color: var(--strong); }
.screen .center h2 { margin: 0 0 6px; }
.intro { margin: 0; font-size: 13px; line-height: 1.45; color: var(--lead); }
.body { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(77,13,108,.8); }
.small { margin: 0; font-size: 12px; color: var(--muted); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea { border: 1px solid rgba(77,13,108,.3); border-radius: 7px; padding: 6px 8px; font-size: 13px; font-weight: 400; min-height: 32px; background: #ffffff; width: 100%; }
.field textarea { resize: vertical; }
.optional { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.4; }
.agree input { width: 15px; height: 15px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.error { margin: 0; font-size: 12px; color: var(--bad); }
.btn-wide { background: var(--accent); border: none; color: #ffffff; font-weight: 600; font-size: 14px; padding: 8px; border-radius: 8px; min-height: 36px; }
.btn-wide:disabled { opacity: .6; cursor: default; }
.btn-soft { background: var(--soft); border: 1px solid rgba(77,13,108,.18); color: var(--text); font-weight: 600; font-size: 14px; padding: 8px; border-radius: 8px; min-height: 36px; }
.switch { margin: 0; text-align: center; font-size: 12px; }
.link { background: none; border: none; padding: 0; color: var(--accent); text-decoration: underline; }
.code-label { font-size: 12px; font-weight: 600; }
.code { align-self: center; width: 180px; text-align: center; letter-spacing: .45em; font-size: 20px; border: 1px solid rgba(77,13,108,.3); border-radius: 8px; padding: 6px; min-height: 40px; }

/* legal pages */
.legal { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 24px 40px; line-height: 1.55; }
.legal h1 { font-family: var(--font-brand); font-weight: 800; font-size: 30px; color: var(--strong); margin: 0 0 8px; }
.legal h2 { font-family: var(--font-brand); font-weight: 800; font-size: 18px; color: var(--strong); margin: 28px 0 6px; }
.draft { border: 1.5px solid #8a5200; background: #fbefd6; color: #8a5200; font-weight: 600; border-radius: 8px; padding: 10px 14px; margin: 0 0 20px; }

@media (max-width: 960px) { .lead { white-space: normal; max-width: 640px; } }
@media (max-width: 640px) {
  .top { padding: 14px 16px; }
  .hero { padding: 24px 16px 16px; }
  .hero h1 { font-size: 24px; }
  .first { gap: 16px; padding: 28px 0 40px; }
  .how-credit { font-size: 9px; }
  .two { grid-template-columns: 1fr; }
  .how h2 { font-size: 22px; }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .how-physics-body { font-size: 13px; }
  .how-quote { font-size: 12px; }
  .how-label { top: 5px; left: 5px; right: 5px; gap: 4px; }
  .how-num { width: 20px; height: 20px; font-size: 11px; }
  .how-text { font-size: 10px; padding: 3px 5px; }
  .how-format { font-size: 15px; }
  .overlay { padding: 24px 12px; }
  .dialog { padding: 24px 18px 20px; }
}
