html { background: #07090d; color-scheme: dark; scrollbar-gutter: stable; }
/* Forty Below Digital / AI demos. Change the tokens below to match the final site design. */
:root { --bg: #07090d; --surface: #0e1218; --surface-2: #141a22; --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .18); --text: #eef3f7; --muted: #a9b5bf; --accent: #9fdcff; --accent-soft: rgba(159, 220, 255, .12); --on-accent: #07090d; --ok: #6fe3b4; --warn: #ffc27a; --radius: 18px; --pad: clamp(.75rem, 1.5vw, 1.25rem); --font: 'Geist', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; background: radial-gradient(70% 45% at 75% -10%, rgba(90, 170, 255, .16), transparent 70%), radial-gradient(50% 40% at 10% -10%, rgba(62, 214, 182, .1), transparent 70%), var(--bg); color: var(--text); font: 400 1rem/1.45 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 10; background: #fff; color: #000; padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { left: .5rem; }

.top { display: flex; align-items: center; gap: .6rem; padding: .55rem var(--pad); }
.logo { display: inline-flex; align-items: center; gap: .55rem; margin-right: auto; color: var(--text); font-weight: 600; font-size: .98rem; letter-spacing: -.015em; text-decoration: none; min-width: 0; }
.logo-badge { width: 96px; height: 96px; flex: none; filter: brightness(1.3) contrast(1.05); }
@media (max-width: 767px) { .logo-badge { width: 68px; height: 68px; } }
.foot-mark { width: 26px; height: 26px; vertical-align: middle; margin-right: .5rem; border-radius: 50%; }
.mode { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.mode i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.mode.is-live i { background: var(--ok); box-shadow: 0 0 10px var(--ok); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .5rem 1.15rem; background: #fff; color: var(--on-accent); border: 0; border-radius: 999px; font-weight: 500; text-decoration: none; text-align: center; cursor: pointer; transition: background .15s, box-shadow .2s; }
.btn:hover { background: var(--accent); box-shadow: 0 0 26px rgba(159, 220, 255, .3); }
.btn:disabled { opacity: .5; cursor: wait; box-shadow: none; background: #fff; }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: .88rem; }
.btn-alt { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-alt:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line-2); }

main { display: flex; flex-direction: column; gap: .6rem; padding: .2rem var(--pad) .6rem; min-width: 0; min-height: 0; }
.intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .9rem; }
h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.intro p { color: var(--muted); font-size: .92rem; }

.tabs { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 40px; padding: 0 .95rem; background: transparent; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: .88rem; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.tab:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; flex: 1; min-height: 0; animation: fade .25s both; }
/* Motion only: content must stay readable even if a browser stalls an animation. */
@keyframes fade { from { transform: translateY(4px); } }
.copy { display: flex; flex-direction: column; gap: .5rem; padding: .1rem .1rem .2rem; }
h2 { font-size: clamp(1.25rem, 2.3vw, 1.75rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }
.copy > p { color: var(--muted); font-size: .95rem; }
.ticks { display: none; gap: .3rem; font-size: .9rem; }
.ticks li { padding-left: 1.3rem; position: relative; }
.ticks li::before { content: ''; position: absolute; left: .1rem; top: .42em; width: .62rem; height: .34rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.stage { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.chat, .call, .card, .phone { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { padding: .85rem .95rem; gap: .55rem; }
h3 { font-size: .9rem; font-weight: 600; letter-spacing: -.01em; }
h3 small { color: var(--muted); font-size: .76rem; font-weight: 400; margin-left: .3rem; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .9rem; border-bottom: 1px solid var(--line); font-size: .88rem; }
.bar b { font-weight: 600; }
.bar span { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.sound { display: inline-flex; align-items: center; gap: .35rem; min-height: 28px; color: var(--muted); font-size: .8rem; cursor: pointer; }
.sound input { accent-color: var(--accent); }

.log { display: flex; flex-direction: column; gap: .4rem; flex: 1; padding: .7rem .8rem; min-height: 12rem; max-height: 44svh; overflow-y: auto; overscroll-behavior: contain; }
.empty { margin: auto; max-width: 26ch; color: var(--muted); font-size: .88rem; text-align: center; }
.msg { max-width: 86%; padding: .42rem .72rem; border-radius: 15px; font-size: .9rem; line-height: 1.38; overflow-wrap: anywhere; white-space: pre-wrap; animation: pop .22s both; }
@keyframes pop { from { transform: translateY(6px) scale(.98); } }
.msg.them { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 5px; }
.msg small { display: block; font-size: .7rem; font-weight: 500; opacity: .65; margin-bottom: .05rem; }
.sys { align-self: center; color: var(--muted); font-size: .76rem; text-align: center; animation: pop .22s both; }
.ringing { align-self: center; margin: auto; padding: 1rem 1.3rem; border-radius: 18px; border: 1px solid var(--line-2); font-size: .92rem; text-align: center; animation: ring 1s ease-in-out infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 10px var(--accent-soft); } }
.dots { display: inline-flex; gap: 4px; padding: .1rem 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); } }

.chips { display: flex; gap: .3rem; flex-wrap: wrap; }
.chat .chips, .phone .chips { padding: 0 .7rem .5rem; }
.phone .chips:empty { display: none; }
.chip { min-height: 34px; padding: 0 .7rem; background: var(--accent-soft); border: 1px solid rgba(159, 220, 255, .28); border-radius: 999px; color: var(--text); font-size: .8rem; cursor: pointer; transition: background .15s; }
.chip:hover { background: rgba(159, 220, 255, .24); }
.send { display: flex; align-items: center; gap: .45rem; padding: .55rem .7rem; border-top: 1px solid var(--line); }
input:not([type]), textarea { width: 100%; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; font-size: 16px; }
input:not([type]) { flex: 1; min-height: 40px; padding: 0 .75rem; border-radius: 999px; }
textarea { flex: 1; min-height: 5.6rem; padding: .55rem .75rem; line-height: 1.35; resize: none; }
input::placeholder, textarea::placeholder { color: var(--muted); }
.meter { flex: 1; height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }

.lead { display: grid; gap: .45rem; }
.lead div { display: grid; grid-template-columns: 4.3rem minmax(0, 1fr); gap: .5rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); font-size: .88rem; }
.lead dt { color: var(--muted); }
.lead dd { overflow-wrap: anywhere; }
.lead dd.is-set { animation: pop .25s both; color: var(--accent); }
.note { color: var(--muted); font-size: .8rem; }

.phone { background: #05070a; border-color: var(--line-2); border-radius: 24px; }
.phone-top { padding: .5rem; text-align: center; color: var(--muted); font-size: .76rem; border-bottom: 1px solid var(--line); }
.phone .log { min-height: 8rem; }
.phone-main .log { min-height: 15rem; }
.phone .send { justify-content: center; }

.cal { flex: none; display: grid; gap: .45rem; padding: .6rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; animation: pop .22s both; }
.cal-title { font-size: .84rem; font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .2rem; text-align: center; }
.cal-grid span { color: var(--muted); font-size: .7rem; }
.cal-day { min-height: 34px; padding: 0; background: var(--accent-soft); border: 1px solid rgba(159, 220, 255, .28); border-radius: 9px; font-size: .82rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.cal-day:hover:not(:disabled) { background: rgba(159, 220, 255, .24); }
.cal-day:disabled { background: transparent; border-color: transparent; color: var(--muted); opacity: .5; cursor: default; }
.cal-day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cal-times { display: flex; flex-wrap: wrap; gap: .3rem; min-height: 34px; align-items: center; }

.steps { display: grid; gap: .55rem; font-size: .88rem; color: var(--muted); }
.steps li { position: relative; padding-left: 1.45rem; transition: color .25s; }
.steps li::before { content: ''; position: absolute; left: 0; top: .28em; width: .85rem; height: .85rem; border-radius: 50%; border: 1px solid var(--line-2); transition: background .25s, border-color .25s; }
.steps li.is-done { color: var(--text); }
.steps li.is-done::before { background: var(--ok); border-color: var(--ok); }

.stars { display: flex; gap: .25rem; margin: 0; padding: 0; border: 0; }
.stars label { flex: 1; cursor: pointer; }
.stars input { position: absolute; opacity: 0; }
.stars span { display: block; padding: .32rem 0; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .82rem; text-align: center; transition: background .15s; }
.stars input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.stars input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.output { min-height: 10rem; }
.output .empty { flex: 1; display: grid; place-items: center; }
.output > div { display: flex; flex-direction: column; gap: .55rem; min-height: 0; overflow-y: auto; animation: pop .25s both; }
.draft { font-size: .94rem; overflow-wrap: anywhere; }
.stamp { align-self: flex-start; padding: .15rem .6rem; border: 1px dashed var(--warn); border-radius: 999px; color: var(--warn); font-size: .76rem; }
.quote-title { font-weight: 600; font-size: .95rem; }
.lines { width: 100%; border-collapse: collapse; font-size: .88rem; }
.lines td { padding: .28rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines td:last-child { padding-left: .8rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lines tr.sum td { color: var(--muted); }
.lines tr.total td { font-weight: 600; border-bottom: 0; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .9rem; padding: .55rem var(--pad) .7rem; border-top: 1px solid var(--line); }
.foot p { color: var(--muted); font-size: .78rem; max-width: 62ch; }
.noscript { padding: 1rem; }

/* Top tab row and the panel fit the window on laptop and desktop screens. */
@media (min-width: 900px) {
  .panel { grid-template-columns: minmax(250px, 3fr) minmax(0, 7fr); gap: 1.25rem; }
  .copy { padding-top: .5rem; }
  .ticks { display: grid; margin-top: .3rem; }
  .duo { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
@media (min-width: 900px) and (min-height: 600px) {
  body { height: 100svh; overflow: hidden; }
  .stage, .stage > * { min-height: 0; }
  .log { max-height: none; min-height: 0; }
  .form { overflow-y: auto; }
}
@media (max-width: 899px) {
  .top .btn { display: none; }
  .foot .btn { width: 100%; }
  .copy > p { font-size: .9rem; }
  .log { min-height: 10rem; }
  .lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem .8rem; }
  .lead div { display: block; padding: 0; border: 0; }
  .lead dt { font-size: .74rem; }
  #panel-chat .note { display: none; }
}
@media (max-width: 420px) {
  .logo span:last-child { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.legal-line { padding: 0 var(--pad) .5rem; color: var(--muted); font-size: .72rem; }
.ph { background: var(--accent-soft); color: var(--accent); border: 1px dashed rgba(159, 220, 255, .55); border-radius: 6px; padding: 0 .35em; }

.trade-pick { display: flex; align-items: center; gap: .55rem; font-size: .86rem; font-weight: 500; }
.trade-pick select { flex: 1; min-width: 0; min-height: 40px; padding: 0 .6rem; background: var(--surface-2, #141a22); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: 400 1rem inherit; font-family: inherit; }
.trade-pick select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.intro strong { color: var(--text); font-weight: 600; }
