/* Odoo Oracle — design system from the "Mobile-first UI Concept v1.0" reference.
   Dark violet space, lavender text, gold for the chosen thing, serif display for the Oracle's voice. */

:root {
  --bg: #0f0a1e;
  --bg-2: #1a1030;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(201, 184, 255, 0.18);
  --line-strong: rgba(201, 184, 255, 0.4);
  --ink: #f4effc;
  --muted: #a99cc9;
  --lavender: #c9b8ff;
  --violet: #8b5cf6;
  --violet-deep: #5b2bb8;
  --btn-a: #8f4fd6;
  --btn-b: #5e2ea3;
  --gold: #f2b84b;
  --gold-2: #e39a2f;
  --error: #ff7a8a;
  --radius: 18px;
  --radius-sm: 14px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; }
a { color: var(--lavender); }
[hidden] { display: none !important; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #2a1650 0%, var(--bg) 60%); }
.bg__glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.bg__glow--a { width: 60vw; height: 60vw; left: -15vw; top: 20vh; background: #5b2bb8; animation: drift 14s ease-in-out infinite alternate; }
.bg__glow--b { width: 50vw; height: 50vw; right: -15vw; bottom: -10vh; background: #8b3fa8; animation: drift 18s ease-in-out infinite alternate-reverse; }
.bg__stars {
  position: absolute; inset: 0; opacity: .7;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 78% 12%, #fff 60%, transparent 61%),
    radial-gradient(1.5px 1.5px at 62% 34%, #e9dcff 60%, transparent 61%),
    radial-gradient(1px 1px at 28% 58%, #fff 60%, transparent 61%),
    radial-gradient(1.2px 1.2px at 88% 66%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 40% 86%, #e9dcff 60%, transparent 61%),
    radial-gradient(1.4px 1.4px at 8% 82%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 52% 6%, #fff 60%, transparent 61%);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(8vw, -6vh, 0) scale(1.1); } }
@keyframes twinkle { from { opacity: .4; } to { opacity: .9; } }

/* ---------- icons (lucide SVG via CSS mask so they take currentColor) ---------- */
.ico {
  display: inline-block; width: 24px; height: 24px; flex: none;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.ico--sm { width: 18px; height: 18px; }
.ico--lg { width: 30px; height: 30px; }

/* ---------- top bar ---------- */
.topbar {
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px;
  padding: calc(10px + var(--safe-top)) 16px 6px; max-width: 1100px; margin: 0 auto;
}
.lockup { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; letter-spacing: .3px; color: var(--ink); white-space: nowrap; }
.is-invisible { visibility: hidden; pointer-events: none; }
.lockup__logo { height: 22px; width: auto; }
.lockup__x { color: var(--muted); font-weight: 500; }
.iconbtn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--lavender);
}
.iconbtn:active { transform: scale(.94); }
.pill {
  border-radius: 999px; padding: 8px 14px; border: 1px solid var(--line); background: var(--surface);
  color: var(--lavender); font-weight: 700; font-size: 13px; cursor: pointer; justify-self: end;
}
.pill--ghost { background: transparent; }

.progress { display: flex; align-items: center; justify-content: center; gap: 0; margin: 6px auto 0; }
.progress__dot { width: 34px; height: 3px; background: var(--line); position: relative; }
.progress__dot::after { content: ""; position: absolute; right: -4px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); border: 1px solid var(--bg); }
.progress__dot.is-done, .progress__dot.is-done::after { background: var(--violet); }
.progress__dot.is-done::after { box-shadow: 0 0 10px var(--violet); }

/* ---------- screens ---------- */
.app { max-width: 1100px; margin: 0 auto; padding: 8px 16px calc(24px + var(--safe-bottom)); }
.screen { animation: fade .3s ease; display: flex; flex-direction: column; gap: 14px; min-height: 70vh; }
.screen--center { justify-content: center; align-items: center; text-align: center; }
.screen__hero { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.screen__body { display: flex; flex-direction: column; gap: 14px; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* wide screens (tablet landscape, booth TV): hero left, content right */
@media (min-width: 900px) {
  .screen { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.2fr); gap: 40px; align-items: center; min-height: 78vh; }
  .screen--center { display: flex; }
  .screen__hero .mascot { --size: min(38vw, 520px); }
  .screen__body { max-width: 620px; }
}

.kicker { font-size: 12px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.kicker--gold { color: var(--gold); }
h1, .h1 {
  font-family: var(--font-ui); font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  font-size: clamp(22px, 5.6vw, 30px); line-height: 1.15; margin: 0; text-align: center;
}
@media (min-width: 900px) { h1, .h1, .screen__body .lead { text-align: left; } h1, .h1 { font-size: clamp(28px, 3vw, 40px); } }
.display {
  font-family: var(--font-display); font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  font-size: clamp(34px, 10vw, 56px); line-height: 1; margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--lavender) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.display--gold { background: linear-gradient(180deg, #ffe2a3 0%, var(--gold) 45%, var(--gold-2) 100%); -webkit-background-clip: text; background-clip: text; font-size: clamp(30px, 8.5vw, 48px); letter-spacing: 1px; }
.lead { font-size: 17px; color: var(--muted); margin: 0; text-align: center; line-height: 1.5; }
.lead--ink { color: var(--ink); }
.hint { font-size: 14px; color: var(--muted); text-align: center; margin: -6px 0 0; }

/* ---------- mascot & orb ---------- */
.mascot { --size: min(62vw, 300px); width: var(--size); height: var(--size); position: relative; display: grid; place-items: center; animation: float 5s ease-in-out infinite; }
.mascot--sm { --size: min(40vw, 180px); }
.mascot img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(91, 43, 184, .45)); }
.mascot__fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.mascot__label { position: absolute; bottom: -4px; font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.orb {
  width: 58%; aspect-ratio: 1; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 35% 30%, #d9c8ff 0%, #9b6cff 22%, #5b2bb8 58%, #2a1650 100%);
  box-shadow: 0 0 40px 10px rgba(139, 92, 246, .45), 0 0 120px 30px rgba(139, 92, 246, .25), inset 0 -20px 40px rgba(0, 0, 0, .35);
  animation: pulse 3s ease-in-out infinite;
}
.orb::before { content: ""; position: absolute; left: 18%; top: 12%; width: 30%; height: 18%; border-radius: 50%; background: rgba(255, 255, 255, .55); filter: blur(4px); }
.orb::after { content: ""; position: absolute; inset: -14%; border-radius: 50%; border: 1px solid rgba(201, 184, 255, .35); animation: spin 12s linear infinite; border-top-color: transparent; border-bottom-color: transparent; }
.orb--sm { width: 48px; }
.orb--reveal { width: 66%; animation: pulse 1.2s ease-in-out infinite; }
.orb__glyph { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 5vw, 28px); letter-spacing: 1px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
@keyframes pulse { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.04); filter: brightness(1.18); } }
@keyframes spin { to { transform: rotate(360deg); } }

.chaos { position: absolute; inset: 0; pointer-events: none; }
.chaos .ico { position: absolute; width: 26px; height: 26px; color: var(--lavender); opacity: 0; animation: chaos 2.4s ease-in-out infinite; }
@keyframes chaos { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: .9; } 80% { opacity: .5; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(20deg); } }

/* ---------- cards grid ---------- */
.cards { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 8px 12px; min-height: 96px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
@media (min-width: 900px) { .card { min-height: 112px; font-size: 14px; } }
.card .ico { color: var(--lavender); width: 28px; height: 28px; transition: color .15s ease; }
.card:active { transform: scale(.95); }
.card.is-selected { border-color: var(--gold); background: rgba(242, 184, 75, .1); box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(242, 184, 75, .28); }
.card.is-selected .ico { color: var(--gold); }
.card.is-selected::after {
  content: "✕"; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); color: #1a1030; font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.card--single.is-selected::after { content: "✓"; }
.card--wide { grid-column: 1 / -1; flex-direction: row; min-height: 52px; padding: 12px; }
.card--wide .ico { width: 20px; height: 20px; }
.card--module { min-height: 120px; gap: 10px; }
.card--module img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.card--module .ico { width: 34px; height: 34px; }
.card--module.is-selected::after { content: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 14px 22px;
  border: 0; border-radius: 999px; font-size: 15px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); color: #fff; cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 30px rgba(94, 46, 163, .45), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .1s ease, opacity .15s ease, box-shadow .15s ease;
}
.btn .ico { width: 20px; height: 20px; }
.btn:active { transform: scale(.98); box-shadow: 0 4px 14px rgba(94, 46, 163, .45); }
.btn:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.btn--ghost { background: transparent; border: 1.5px solid var(--line-strong); color: var(--lavender); box-shadow: none; }
.btn--link { background: none; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; min-height: 40px; box-shadow: none; }
.btn--gold { background: linear-gradient(135deg, #f6c96b, var(--gold-2)); color: #1a1030; box-shadow: 0 10px 30px rgba(242, 184, 75, .35); }
.cta-row { display: flex; gap: 10px; align-items: center; }
.cta-row .iconbtn { flex: none; width: 52px; height: 52px; }
.sticky-cta { position: sticky; bottom: calc(10px + var(--safe-bottom)); padding-top: 10px; background: linear-gradient(transparent, var(--bg) 40%); }
@media (min-width: 900px) { .sticky-cta { position: static; background: none; } .btn { width: auto; min-width: 280px; } }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.field input {
  font: inherit; font-size: 17px; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); width: 100%;
}
.field input::placeholder { color: rgba(169, 156, 201, .6); }
.field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); }
.field.has-error input { border-color: var(--error); }
.field__error { font-size: 13px; color: var(--error); min-height: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; color: var(--ink); line-height: 1.4; }
.check input { appearance: none; width: 22px; height: 22px; margin: 0; flex: none; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--violet); border-color: var(--violet); }
.check input:checked::after { content: "✓"; color: #fff; font-size: 14px; font-weight: 800; }
.check .req { color: var(--gold); }
.check.has-error input { border-color: var(--error); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---------- reveal ---------- */
.reveal__phrase { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(22px, 6vw, 32px); min-height: 2.4em; color: var(--ink); }
.steps { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 420px; }
.step {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px;
  opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease, color .35s ease;
}
.step.is-on { opacity: 1; transform: none; color: var(--ink); }
.step__dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; color: var(--gold); font-size: 12px; }
.step.is-on .step__dot { border-color: var(--gold); background: rgba(242, 184, 75, .12); }

/* ---------- result ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (min-width: 900px) { .tags { justify-content: flex-start; } }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 12px; font-weight: 700; color: var(--lavender); }
.quote {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 18px 22px; text-align: center;
  font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.35; color: var(--ink);
  background: linear-gradient(180deg, rgba(139, 92, 246, .12), rgba(139, 92, 246, .03));
}
.result__text { font-size: 17px; line-height: 1.55; text-align: center; margin: 0; }
@media (min-width: 900px) { .result__text, .quote { text-align: left; } }

/* ---------- path ---------- */
.why { display: flex; flex-direction: column; gap: 8px; }
.why__title { font-weight: 800; font-size: 15px; }
.why__item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.why__item .step__dot { width: 20px; height: 20px; }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: center; }
.panel__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(139, 92, 246, .18); display: grid; place-items: center; color: var(--lavender); flex: none; }
.panel__title { font-weight: 800; font-size: 15px; }
.panel__sub { font-size: 13px; color: var(--muted); }

.bye { font-family: var(--font-display); font-style: italic; color: var(--lavender); font-size: 18px; text-align: center; }
.share-row { display: flex; flex-direction: column; gap: 10px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translateX(-50%); background: #2a1650; border: 1px solid var(--line-strong); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 10; }

/* ---------- kiosk (booth screen) ---------- */
body.kiosk { overflow: hidden; }
.kiosk__layout {
  min-height: 100vh; display: grid; gap: 40px; padding: 48px 40px;
  grid-template-columns: 1fr; align-content: center; justify-items: center; text-align: center;
}
@media (orientation: landscape) and (min-width: 900px) {
  .kiosk__layout { grid-template-columns: 1.15fr 1fr; text-align: left; justify-items: stretch; align-items: center; padding: 48px 64px; }
  .kiosk__copy { align-items: flex-start; }
  .kiosk__copy .display, .kiosk__copy .lead { text-align: left; }
}
.kiosk__copy { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.kiosk__copy .display { font-size: clamp(40px, 6vw, 96px); }
.kiosk__copy .lead { font-size: clamp(18px, 2.2vw, 30px); color: var(--ink); }
.kiosk__tagline { font-size: clamp(15px, 1.5vw, 22px); color: var(--muted); margin: 0; }
.kiosk__qr { display: flex; flex-direction: column; align-items: center; gap: 18px; background: #fff; color: #1a1030; border-radius: 28px; padding: 32px; box-shadow: 0 30px 80px rgba(91, 43, 184, .45); }
.kiosk__cta { font-weight: 800; letter-spacing: 3px; font-size: clamp(16px, 1.8vw, 24px); color: #3b2a6b; }
.kiosk__qrimg { width: min(60vw, 380px); height: auto; }
.kiosk__demo { width: auto; min-width: 0; padding: 10px 24px; min-height: 44px; font-size: 13px; color: #5e2ea3; border-color: #5e2ea3; }

/* SELF-ERP.svg has generous padding inside its viewBox — compensate so both marks read at equal weight */
.lockup__logo--self { height: 40px; margin: -9px 0; }
.kiosk__copy .lockup__logo { height: 34px; }
.kiosk__copy .lockup__logo--self { height: 62px; margin: -14px 0; }

/* trust row under the form (from reference: No spam / 30 seconds / data safe) */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.trust__item { display: flex; gap: 8px; align-items: flex-start; }
.trust__icon { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: var(--lavender); flex: none; }
.trust__title { font-size: 12px; font-weight: 800; }
.trust__sub { font-size: 11px; color: var(--muted); line-height: 1.3; }
@media (max-width: 380px) { .trust { grid-template-columns: 1fr; } .trust__item { align-items: center; } }

/* ---------- scenes (generated Oracle art) ---------- */
/* Phone: full-bleed portrait image above the UI; its fog is masked so the interface fades in over it. */
.scene {
  position: relative; width: calc(100% + 32px); margin: 0 -16px;
  height: min(56vh, 520px); flex: none;
  background-position: center top; background-size: cover; background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(#000 62%, transparent 100%); mask-image: linear-gradient(#000 62%, transparent 100%);
  display: grid; place-items: center;
}
.scene--sm { height: min(34vh, 320px); background-position: center 18%; }
.scene--reveal { height: min(50vh, 460px); }
.scene .orb { width: min(46vw, 200px); }
.scene--sm .orb { width: min(30vw, 130px); }
.app .scene + *, .app .screen__hero + .screen__body { margin-top: -9vh; position: relative; z-index: 1; }
.screen__hero { gap: 0; }
.screen__body--center { align-items: center; text-align: center; gap: 18px; }
.screen__body--center .steps { margin-top: 6px; }

/* Wide screens: the -wide image is the fixed page background (left = Oracle, right = empty for UI). */
.bg__scene { position: absolute; inset: 0; background-position: left center; background-size: cover; background-repeat: no-repeat; opacity: 0; transition: opacity .6s ease; display: none; }
@media (min-width: 900px) {
  .bg__scene { display: block; }
  .bg__scene.is-on { opacity: 1; }
  body.has-wide .bg__glow, body.has-wide .bg__stars { display: none; }
  body.has-wide .scene { background-image: none !important; -webkit-mask-image: none; mask-image: none; width: 100%; margin: 0; height: 60vh; }
  body.has-wide .scene .orb { display: none; }
  body.has-wide .scene .chaos { display: none; }
  body.has-wide .screen { grid-template-columns: minmax(280px, 42%) minmax(360px, 1fr); }
  body.has-wide .screen__hero + .screen__body { margin-top: 0; }
  body.has-wide .screen__body { max-width: 560px; }
  /* no -wide image yet: portrait scene lives in the left column as a rounded card */
  body:not(.has-wide) .scene { width: 100%; margin: 0; height: min(70vh, 640px); border-radius: 24px; -webkit-mask-image: none; mask-image: none; background-position: center; }
  body:not(.has-wide) .screen__hero + .screen__body { margin-top: 0; }
}

/* Kiosk with scene art */
body.kiosk.has-wide .kiosk__layout { grid-template-columns: 1fr minmax(320px, 40%); }
body.kiosk.has-wide .kiosk__copy .scene { display: none; }
body.kiosk.has-wide .kiosk__copy { align-items: flex-start; justify-content: flex-end; }
body.kiosk .kiosk__copy .scene { width: min(60vw, 420px); margin: 0; height: min(40vh, 420px); border-radius: 24px; -webkit-mask-image: none; mask-image: none; }

/* ---------- self-hosted fonts (uploaded by Todo): Inter for UI, Caveat for handwritten notes ---------- */
@font-face { font-family: "Inter"; src: url("/fonts/Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/Caveat/Caveat-VariableFont_wght.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
:root { --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-hand: "Caveat", "Segoe Print", cursive; }
.hand { font-family: var(--font-hand); font-weight: 600; font-size: clamp(20px, 5.5vw, 28px); line-height: 1.15; color: #e9a7ff; transform: rotate(-3deg); display: inline-block; }
.hand--underline { position: relative; }
.hand--underline::after { content: ""; position: absolute; left: 0; right: 30%; bottom: -6px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #ff8a3d, transparent); }
.bye { font-family: var(--font-hand); font-style: normal; font-size: clamp(22px, 6vw, 30px); color: #e9a7ff; }

/* ---------- looping scene videos ---------- */
.scene__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.scene.has-video .scene__video { opacity: 1; }
.bg__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; opacity: 0; transition: opacity .8s ease; display: none; pointer-events: none; }
@media (min-width: 900px) {
  .bg__video { display: block; }
  .bg__video.is-on { opacity: 1; }
  body.has-wide .scene__video { display: none; }
}
/* the 9:16 clips sit lower in frame than the 2:3 stills: show their upper-middle part and fade earlier */
.scene.has-video { height: min(60vh, 560px); -webkit-mask-image: linear-gradient(#000 52%, transparent 96%); mask-image: linear-gradient(#000 52%, transparent 96%); }
.scene__video { object-position: center 20%; }
.scene.has-video + .screen__body, body:not(.has-wide) .screen__hero:has(.scene.has-video) + .screen__body { margin-top: -14vh; }

/* Booth screen with the -wide scene: Oracle (image) | copy | QR panel */
@media (min-width: 900px) {
  body.kiosk.has-wide .kiosk__layout { grid-template-columns: minmax(260px, 30%) 1fr minmax(300px, 32%); gap: 32px; padding: 40px 48px; align-items: center; }
  body.kiosk.has-wide .kiosk__copy { grid-column: 2; align-items: flex-start; justify-content: center; text-align: left; }
  body.kiosk.has-wide .kiosk__qr { grid-column: 3; }
  body.kiosk.has-wide .kiosk__copy .display { font-size: clamp(36px, 4.6vw, 76px); }
}

/* Joint ToDo × Self ERP logo (single PNG, supplied by Todo) */
.lockup__joint { height: 28px; width: auto; display: block; }
.kiosk__copy .lockup__joint { height: 44px; }
.thanks .lockup__joint { height: 36px; }
@media (min-width: 900px) { .topbar .lockup__joint { height: 32px; } }

/* ---------- intro screen, PC / tablet (≥900px): design pass 2026-09-22 ---------- */
@media (min-width: 900px) {
  body.has-wide .topbar .lockup__joint { height: 64px; }            /* logo ×2 */
  .screen--intro .screen__body--intro { align-items: center; text-align: center; max-width: 640px; margin: 0 auto; gap: 0; }
  .screen--intro .screen__body--intro > * { margin-bottom: 20px; }  /* 20px after every text line */
  .screen--intro .screen__body--intro > *:last-child { margin-bottom: 0; }
  .screen--intro .display, .screen--intro .lead { text-align: center; }
  .screen--intro .display { font-size: clamp(36px, 4.2vw, 64px); white-space: nowrap; }
  .screen--intro .hand { font-size: clamp(30px, 2.6vw, 40px); }     /* handwritten note bigger */
  .screen--intro .sticky-cta { display: flex; justify-content: center; width: 100%; }
}
/* phone: keep the intro title on one line */
@media (max-width: 899px) { .screen--intro .display { font-size: clamp(30px, 8.6vw, 44px); white-space: nowrap; } }

/* intro: lead in white; handwritten note keeps a clean 20px gap below its underline (PC / tablet) */
.screen--intro .lead { color: #fff; }
@media (min-width: 900px) {
  .screen--intro .hand { margin-bottom: 20px; padding-bottom: 8px; }
  .screen--intro .hand--underline::after { bottom: 0; }
}

/* intro, phone: centred column, handwritten note with 20px below */
@media (max-width: 899px) {
  .screen--intro .screen__body--intro { align-items: center; text-align: center; }
  .screen--intro .hand { margin-bottom: 20px; padding-bottom: 8px; align-self: center; }
  .screen--intro .hand--underline::after { bottom: 0; }
}

/* phone: joint logo 36px */
@media (max-width: 899px) { .topbar .lockup__joint { height: 36px; } }

/* intro, phone: title sized to the viewport so the column never grows wider than the screen; 20px rhythm */
.screen__body { min-width: 0; }
@media (max-width: 899px) {
  .screen--intro .display { font-size: clamp(22px, 7.6vw, 44px); letter-spacing: 1px; max-width: 100%; }
  .screen--intro .screen__body--intro { gap: 0; }
  .screen--intro .screen__body--intro > * { margin-bottom: 20px; }
  .screen--intro .screen__body--intro > *:last-child { margin-bottom: 0; }
  .screen--intro .sticky-cta { padding-top: 0; }
}
