/* RollStill AI Assistant landing page. Colours are the Doorway page's (door.css), which passed the 10/21 WCAG 2.2 AA
   contrast check: --accent is for text and links on the dark page, white button text sits on --accent-fill. System
   fonts only (no outside fonts). The orb is Mercury 3D, RollStill's default (10/30): a still picture drawn by the
   site's orb.js (mercury.webp and mercury-sm.webp, made by tools/orb_stills.cjs) in the header and on pages without
   scripts, and live on the landing page (orb.js). It holds still for people who ask for less motion. */
:root { --bg: #070b18; --panel: #111829; --panel-2: #0d1426; --ink: #e9eef7; --muted: #97a3b8; --line: #243049;
        --accent: #4f8cff; --accent-fill: #2563eb; --ok: #34d399; --glow: #38d6f2;
        color-scheme: dark; font-size: 17px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse at 75% -10%, #13204a 0%, var(--bg) 55%) no-repeat, var(--bg);
       color: var(--ink); font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
       line-height: 1.55; }
a { color: var(--accent); }
a:hover { color: #7aa8ff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }
.soft { color: var(--muted); }
.fine { color: var(--muted); font-size: .82rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent-fill); color: #fff; padding: 8px 14px;
        border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* buttons */
.btn { display: inline-block; background: var(--accent-fill); color: #fff; text-decoration: none; font-weight: 600;
       padding: 13px 22px; border-radius: 12px; border: 1px solid var(--accent-fill); }
.btn:hover { color: #fff; background: #1d4fd0; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn.small { padding: 8px 16px; font-size: .92rem; }

/* header */
.top { display: flex; align-items: center; gap: 18px; max-width: 1120px; margin: 0 auto; padding: 18px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
/* Mercury's drop is 60% of its picture (the rest is its glow): a 44 px picture is a 26 px drop, and the negative margin
   keeps the header's spacing as it was */
.brand-orb { width: 44px; height: 44px; margin: -9px; flex: none; background: url(mercury-sm.webp) center / contain no-repeat; }
.brand-name { font-weight: 700; font-size: 1.12rem; letter-spacing: .01em; }
.brand-tag { color: var(--muted); font-size: .9rem; margin-left: 2px; }
.top nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--ink); }

/* hero */
main { max-width: 1120px; margin: 0 auto; padding: 0 20px;
       overflow-x: clip; }   /* nothing wide (it was the old orb's tilted ring) adds a sideways scroll; clip, unlike hidden, adds no scroll box */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 56px 0 72px; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem;
           margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.02em; margin-bottom: 20px; }
.lede { font-size: 1.15rem; color: #cdd6e6; max-width: 34em; }
.meaning { margin-top: 14px; color: var(--muted); }
.meaning strong { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* the orb: the still picture until orb.js puts the live Mercury 3D (a canvas) in its place */
.hero-orb { display: flex; flex-direction: column; align-items: center; }
.orb { width: min(460px, 100%); aspect-ratio: 1; background: url(mercury.webp) center / contain no-repeat; }
.orb.live { background: none; }
.orb canvas { display: block; width: 100%; height: 100%; }
.orb.small { width: 110px; margin: 0 auto 4px; }
/* the big orb's lines (orb.js): its own words in the page's ink; what it hears, in quotes, and its thinking, muted.
   Two lines are kept for them so nothing below moves. */
.orb-say { min-height: 3em; max-width: 24em; margin: 0; text-align: center; font-size: 1.05rem; line-height: 1.5; }
.orb-say.listening, .orb-say.thinking { color: var(--muted); font-style: italic; }
.orb-say.listening::before { content: "\201C"; }
.orb-say.listening::after { content: "\201D"; }
.orb-play { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* sections */
.band, .steps-band { padding: 56px 0; border-top: 1px solid var(--line); }
main.band { padding-left: 20px; padding-right: 20px; }   /* 10/24: the notice pages' text touched the edge on phones */
.band h2, .steps-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.section-lede { color: var(--muted); margin-bottom: 28px; max-width: 46em; }
.note { margin-top: 24px; color: var(--muted); max-width: 52em; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%); border: 1px solid var(--line);
        border-radius: 16px; padding: 22px; }
.card h3 { font-size: 1.12rem; margin: 12px 0 8px; }
.card p { color: #c3cddd; font-size: .97rem; }
.card em { color: var(--muted); font-style: normal; font-size: .88rem; }
.card .line { color: var(--ink); font-weight: 600; }
.ico { width: 30px; height: 30px; fill: none; stroke: var(--glow); stroke-width: 1.6; stroke-linecap: round;
       stroke-linejoin: round; }

.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { padding: 4px 0; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--accent);
       color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { color: #c3cddd; }

.checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
.checks li { position: relative; padding-left: 30px; color: #c3cddd; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 9px;
                     border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.checks strong { color: var(--ink); }

.soon { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.soon li { padding: 12px 16px; border: 1px dashed var(--line); border-radius: 12px; color: #c3cddd; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; }
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 50px rgba(37, 99, 235, .18); }
.badge { position: absolute; top: -12px; left: 22px; background: var(--accent-fill); color: #fff; font-size: .78rem;
         font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.25rem; }
.price { color: var(--muted); margin: 10px 0 16px; }
.amt { color: var(--ink); font-size: 2.2rem; font-weight: 700; margin-right: 4px; }
.plan ul { margin: 0; padding-left: 18px; color: #c3cddd; }
.plan li { margin: 6px 0; }
#plans .fine { margin-top: 20px; max-width: 60em; }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; }
.faq details p { color: #c3cddd; padding: 0 0 16px; }

.cta { text-align: center; padding: 64px 20px 72px; border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 10px; }
.cta p { color: var(--muted); margin-bottom: 22px; }
.actions.center { justify-content: center; }

.foot { max-width: 1120px; margin: 0 auto; padding: 28px 20px 40px; border-top: 1px solid var(--line); color: var(--muted);
        display: grid; gap: 8px; font-size: .92rem; }
.signoff { color: var(--ink); font-weight: 700; font-size: 1.05rem; }

/* the privacy page */
.prose { max-width: 760px; }
.prose h1 { font-size: 2rem; margin-bottom: 6px; }
.prose h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.prose p { color: #c3cddd; margin: 0 0 10px; }
.prose ul { color: #c3cddd; padding-left: 20px; margin: 0 0 10px; }
.prose li { margin: 4px 0; }
.prose strong { color: var(--ink); }

/* the sign-up page (start/) - inputs use the Doorway's --field-style edge colour (3:1 against the page, WCAG 1.4.11) */
.signup { max-width: 760px; padding-bottom: 56px; }
.steps-line { color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
              margin: 28px 0 10px; }
.panel h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 10px; }
.panel h1:focus { outline: none; }
.field { margin: 0 0 18px; border: 0; padding: 0; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: 6px; }
.opt { color: var(--muted); font-weight: 400; }
input[type=text], input:not([type]), input[type=email], input[type=tel], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid #64718c; border-radius: 10px;
  padding: 11px 13px; }
textarea { resize: vertical; min-height: 64px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
[aria-invalid=true] { border-color: #f87171 !important; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 8px 0; cursor: pointer; }
.choice input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--accent-fill); flex: none; }
.cards-pick { display: grid; gap: 12px; }
.field > label.pick, .pick { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line);
        border-radius: 14px; padding: 16px; cursor: pointer; font-weight: 400; margin: 0; }
.field > label.choice { display: flex; font-weight: 400; }
.pick:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pick input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--accent-fill); flex: none; }
.pick span { color: #c3cddd; }
.pick strong { display: block; color: var(--ink); margin-bottom: 2px; }
.subpanel { border-left: 3px solid var(--accent-fill); padding: 4px 0 4px 16px; margin: 6px 0 22px; }
.consent .choice span { color: #c3cddd; }
.time-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-bottom: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.err { color: #f87171; margin: 6px 0 0; font-size: .92rem; }
.problem { background: #2a1414; border: 1px solid #f87171; color: #ffd4d4; border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; }
.keep { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.keep p { margin-bottom: 8px; color: #c3cddd; }
.keep a { word-break: break-all; }
.signup .actions { margin-top: 8px; }
button.btn { font: inherit; cursor: pointer; }
button.btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
#s4 .orb.small { margin: 0 0 4px -22px; }   /* the drop, not its glow, lines up with the heading */

/* the private "Before your setup" page (setup/, 10/24) */
.setup-list h2 .num { margin: 0 10px 0 0; width: 32px; height: 32px; font-size: 1rem; vertical-align: middle; }
.setup-list ol { color: #c3cddd; padding-left: 20px; margin: 0 0 10px; }
.setup-list ol li { margin: 4px 0; }
.setup-list details summary { cursor: pointer; color: var(--ink); margin-bottom: 6px; }
.setup-list code { word-break: break-all; font-size: .85rem; }
.keep a.btn { word-break: normal; }

/* the website chat (chat.js, 10/23): a button bottom right, and a panel that is a full screen on phones */
.chat-btn { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: flex; align-items: center; gap: 10px;
            font: inherit; font-weight: 600; color: #fff; background: var(--accent-fill); border: 1px solid var(--accent-fill);
            border-radius: 999px; padding: 10px 18px 10px 12px; cursor: pointer; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.chat-btn:hover { background: #1d4fd0; }
.chat-btn .brand-orb, .chat-head .brand-orb { width: 36px; height: 36px; margin: -7px; }   /* a 22 px drop */
.chat-panel { position: fixed; right: 18px; bottom: 18px; z-index: 21; width: min(380px, calc(100vw - 36px));
              height: min(560px, calc(100vh - 36px)); display: flex; flex-direction: column; background: var(--panel-2);
              border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
.chat-panel[hidden], .chat-btn[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-head h2 { font-size: 1.05rem; }
.chat-close { margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px;
              width: 38px; height: 38px; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.chat-close:hover { border-color: var(--accent); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 9px 13px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.msg.bot { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); }
.msg.user { align-self: flex-end; background: var(--accent-fill); color: #fff; }
.msg.wait { align-self: flex-start; color: var(--muted); }
.msg.note { align-self: flex-start; background: #2a1414; border: 1px solid #f87171; color: #ffd4d4; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 6px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-height: 46px; resize: none; }
.chat-note { padding: 0 14px 10px; }

/* tablets and phones */
@media (max-width: 920px) {
  .top nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 28px 0 48px; gap: 28px; }
  .hero-orb { order: -1; }
  .orb { width: min(340px, 86vw); }
  .cards, .plans { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { font-size: 16px; }
  .top { padding: 14px 16px; }
  .brand-tag { display: none; }
  main { padding: 0 16px; }
  main.band { padding-left: 16px; padding-right: 16px; }
  .cards, .plans, .checks, .soon { grid-template-columns: 1fr; }
  .plan.best { margin-top: 8px; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
  .row2, .time-row { grid-template-columns: 1fr; }
  .chat-btn { right: 12px; bottom: 12px; }
  .chat-panel { top: 0; right: 0; bottom: 0; left: 0; width: auto; height: auto; border-radius: 0; border: 0; }
}
