/* Tucker Payment Processing by Michael Cunningham. (c) 2026. Built with AI-assisted development. */
/* Chat page styles. Builds on site.css (colors, fonts, footer). Mobile-first. */
.chat-page header { margin-bottom:18px; }
.home { text-decoration:none; }
.logo.small { display:block; font-size:clamp(1.4rem,5vw,2rem); font-weight:800; color:var(--blue); letter-spacing:-0.5px; }
.logo.small span { color:var(--orange); }

.chat-layout { max-width:1100px; display:grid; grid-template-columns:1fr; gap:18px; }
@media (min-width:900px) { .chat-layout { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); align-items:start; } }

.chat-card, .bts { background:var(--card); border-radius:24px; padding:16px; box-shadow:0 6px 0 rgba(0,0,0,.05); }

/* Header row with Tucker */
.chat-head { display:flex; align-items:center; gap:12px; padding-bottom:12px; border-bottom:2px solid var(--cream); }
.chat-head img { width:56px; height:56px; border-radius:50%; }
.chat-head > div { flex:1; line-height:1.3; }
.status { color:var(--muted); font-size:.9rem; }
.status.nap { color:var(--orange); }
.beta { background:var(--blue); color:#fff; border-radius:8px; padding:0 7px; font-size:.75rem; font-weight:700; vertical-align:2px; }
.ghost { background:none; border:2px solid var(--blue); color:var(--blue); border-radius:999px; padding:5px 12px; font-weight:700; cursor:pointer; }

/* Conversation */
.log { height:min(52vh,440px); overflow-y:auto; padding:14px 2px; display:flex; flex-direction:column; gap:12px; }
.msg { display:flex; gap:8px; align-items:flex-start; max-width:92%; }
.msg img { width:36px; height:36px; border-radius:50%; flex:none; margin-top:2px; }
.say { position:relative; padding:10px 14px; border-radius:18px; font-size:.98rem; white-space:pre-wrap; overflow-wrap:anywhere; }
/* Tucker's words come out of his mouth: blue-bordered bubble with a tail pointing at his face */
.msg.tucker .say { background:var(--card); border:3px solid var(--blue); animation:pop-in .25s ease-out; }
.msg.tucker .say::before { content:""; position:absolute; left:-12px; top:12px; border:9px solid transparent; border-right-color:var(--blue); border-left:0; }
.msg.tucker.nap .say { border-color:var(--orange); }
.msg.tucker.nap .say::before { border-right-color:var(--orange); }
.msg.you { align-self:flex-end; }
.msg.you .say { background:var(--blue); color:#fff; border-bottom-right-radius:6px; }
.typing .say { color:var(--muted); }
.busy { font-size:.88rem; font-style:italic; }
.dots span { display:inline-block; width:7px; height:7px; margin:0 2px; border-radius:50%; background:var(--blue); animation:bounce 1s infinite; }
.dots span:nth-child(2) { animation-delay:.15s; } .dots span:nth-child(3) { animation-delay:.3s; }
@keyframes bounce { 0%,80%,100% { transform:translateY(0); opacity:.4; } 40% { transform:translateY(-5px); opacity:1; } }
@keyframes pop-in { from { transform:scale(.85); opacity:0; } to { transform:scale(1); opacity:1; } }
@media (prefers-reduced-motion: reduce) { .msg.tucker .say, .dots span { animation:none; } }

/* Suggested prompts */
.try { display:flex; flex-wrap:wrap; gap:6px; align-items:center; padding:8px 0; font-size:.9rem; color:var(--muted); }
.try button { background:var(--cream); border:2px solid #f0dcc0; color:var(--ink); border-radius:999px; padding:4px 11px; cursor:pointer; font-size:.88rem; }
.try button.attack { border-color:#f3b4a8; background:#fff0ec; }
.try button:hover, .try button:focus-visible { border-color:var(--blue); }

/* Input */
#form textarea { width:100%; resize:vertical; min-height:56px; border:2px solid #e2d6c4; border-radius:16px; padding:10px 12px; font:inherit; }
#form textarea:focus { outline:none; border-color:var(--blue); }
.form-row { display:flex; justify-content:space-between; align-items:center; margin-top:6px; }
.count { color:var(--muted); font-size:.85rem; }
#send { background:var(--orange); color:#fff; border:0; border-radius:999px; padding:9px 22px; font-weight:800; cursor:pointer; font-size:1rem; }
#send:disabled { opacity:.5; cursor:wait; }
button:focus-visible { outline:3px solid var(--orange); outline-offset:2px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* Demo customers */
.customers { margin-top:12px; font-size:.92rem; }
.customers summary { cursor:pointer; color:var(--blue); font-weight:700; }
.customers table { border-collapse:collapse; margin:8px 0; width:100%; }
.customers th, .customers td { text-align:left; padding:4px 8px; border-bottom:1px solid #eee; }
.customers p { color:var(--muted); margin:4px 0 0; }

/* Behind the Scenes */
.bts h2 { margin:0 0 6px; color:var(--blue); font-size:1.25rem; }
.bts-intro, .bts-foot { color:var(--muted); font-size:.9rem; margin:4px 0; }
.bts-foot { margin-top:12px; border-top:2px solid var(--cream); padding-top:10px; }
.steps { list-style:none; margin:8px 0 0; padding:0; counter-reset:step; }
.steps li { position:relative; padding:8px 10px 8px 40px; margin:6px 0; border-radius:14px; background:#f3f8ff; animation:pop-in .2s ease-out both; }
.steps li::before { position:absolute; left:10px; top:8px; width:22px; height:22px; border-radius:50%; color:#fff; font-weight:800; font-size:.8rem; display:flex; align-items:center; justify-content:center; }
.steps li.ok::before { content:"\2713"; background:#2e9d5b; }
.steps li.denied { background:#fff0ec; }
.steps li.denied::before { content:"!"; background:#d9472b; }
.steps .kind { display:block; font-size:.75rem; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); font-weight:700; }
.steps .label { display:block; font-weight:600; font-size:.95rem; }
.steps .detail { display:block; color:var(--muted); font-size:.85rem; overflow-wrap:anywhere; }

/* ===== Home page: tabs + three-column layout ===== */
.top { text-align:center; margin-bottom:18px; }
.home .logo, .top .logo { display:inline-block; }
.tabs { display:flex; justify-content:center; flex-wrap:wrap; gap:6px; margin-top:12px; }
.tabs a { text-decoration:none; color:var(--blue); font-weight:700; padding:7px 16px; border-radius:999px; background:var(--card);
          border:2px solid #e8dcc8; font-size:.95rem; }
.tabs a:hover, .tabs a:focus-visible { border-color:var(--blue); outline:none; }
.tabs a[aria-current="page"] { background:var(--blue); color:#fff; border-color:var(--blue); }
.soon-dot { background:var(--orange); color:#fff; border-radius:8px; padding:0 6px; font-size:.7rem; vertical-align:2px; margin-left:3px; }

/* Phones: chat first, then Behind the Scenes, then the reading material */
.home-grid { max-width:1440px; margin:0 auto; display:grid; gap:18px;
             grid-template-columns:minmax(0,1fr); grid-template-areas:"chat" "bts" "info"; }
.home-grid .chat-card { grid-area:chat; }
.home-grid .bts { grid-area:bts; }
.home-grid .info { grid-area:info; display:flex; flex-direction:column; gap:18px; }

/* Tablets: Behind the Scenes and chat side by side, reading material below */
@media (min-width:820px) {
  .home-grid { grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); grid-template-areas:"bts chat" "info info"; align-items:start; }
}
/* Desktops: Behind the Scenes | reading | chat, with both side panels staying in view while you scroll */
@media (min-width:1200px) {
  .home-grid { grid-template-columns:300px minmax(0,1fr) 420px; grid-template-areas:"bts info chat"; }
  .home-grid .bts, .home-grid .chat-card { position:sticky; top:12px; max-height:calc(100vh - 24px); overflow-y:auto; }
  .home-grid .log { height:max(220px, calc(100vh - 490px)); }
}

.card { background:var(--card); border-radius:24px; padding:20px 22px; box-shadow:0 6px 0 rgba(0,0,0,.05); }
.card h2 { margin:0 0 8px; color:var(--blue); font-size:1.25rem; }
.card ul { padding-left:20px; margin:8px 0; }
.card li { margin:6px 0; }
.card p { margin:8px 0; }
.card a { color:var(--blue); font-weight:600; }
.docs, .coming { font-size:.92rem; color:var(--muted); }
.team { display:flex; gap:28px; justify-content:center; flex-wrap:wrap; margin:6px 0 4px; }
.team figure { margin:0; text-align:center; }
.team img { width:96px; height:96px; border-radius:50%; display:block; margin:0 auto; }
.team figcaption { margin-top:6px; font-size:.88rem; }

/* Tucker's greeting pops out shortly after the page loads */
.greet .say { animation:pop-in .35s ease-out .5s both; }

/* Simple centered pages (Tucker's Treats placeholder) */
.narrow { max-width:640px; margin:0 auto; }
.center { text-align:center; }
.round { border-radius:50%; }

/* Standards list (home page) */
.standards { list-style:none; padding:0; }
.standards li { padding:10px 0; border-bottom:1px solid #f0e6d6; }
.standards li:last-child { border-bottom:0; }
.pdf-soon { display:inline-block; background:var(--cream); border:1px solid #e8dcc8; color:var(--muted); border-radius:8px; padding:0 7px; font-size:.75rem; font-weight:700; margin-left:4px; }

/* Theme song button, to the right of the logo (wraps under it on phones) */
.logo-row { display:flex; align-items:center; justify-content:center; gap:14px 18px; flex-wrap:wrap; }
.theme-player { display:flex; align-items:center; gap:8px; }
#theme-btn { background:var(--orange); color:#fff; border:0; border-radius:999px; padding:8px 16px; font-weight:800;
             font-size:.92rem; cursor:pointer; box-shadow:0 4px 0 rgba(196,96,12,.35); white-space:nowrap; }
#theme-btn:hover { filter:brightness(1.05); }
#theme-btn.playing { background:var(--blue); box-shadow:0 4px 0 rgba(31,95,191,.3); }
#theme-btn .ico { display:inline-block; width:1em; text-align:center; }
.theme-time { font-size:.85rem; color:var(--muted); font-variant-numeric:tabular-nums; min-width:6.5em; text-align:left; }
.theme-time:empty { display:none; }
/* Panel title stays visible while the steps auto-scroll underneath it */
.bts > h2 { position:sticky; top:-16px; margin:-16px -16px 6px; padding:16px 16px 6px; background:var(--card); z-index:1; border-radius:24px 24px 0 0; }
/* Chat titles ("Ask Tucker") match the Behind the Scenes heading: blue, same size */
.chat-head strong { color:var(--blue); font-size:1.25rem; font-weight:700; }
