﻿/* AskedAIForYou: always the warm light theme (dark mode removed on purpose). Receiver page = invite card + "Ask" stack. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/fonts/bricolage-700.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("/fonts/bricolage-800.woff2") format("woff2"); }
:root {
  --bg: #faf8f5; --surf: #ffffff; --ink: #18181d; --muted: #6b6a72; --line: #e9e5df;
  --brand: #2f4bff; --brand-ink: #ffffff; --brand-soft: #eceeff; --tile: #f2efea;
  --warn: #a15c00; --warn-soft: #fff2dc; --bad: #c42b31; --bad-soft: #fde6e6;
  --toast: #18181d; --toast-ink: #ffffff;
  --g1: #ffe6d5; --g2: #e3e6ff; --g3: #f6e1ff;
  --fd: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fm: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 16px; line-height: 1.5; }
a { color: var(--brand); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page { max-width: 520px; margin: 0 auto; padding: 0 20px 36px; min-height: 100vh; display: flex; flex-direction: column; }
.head { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 18px; }
.wm { font-family: var(--fd); font-weight: 800; letter-spacing: -.02em; font-size: 18px; color: var(--ink); text-decoration: none; }
.wm b { color: var(--brand); }
.lnk { font-size: 14px; color: var(--muted); text-decoration: none; }
.col, .rcv { display: flex; flex-direction: column; gap: 14px; flex: 1; }

/* ---------- Receiver: invite card ---------- */
.card {
  border-radius: 26px; padding: 20px 20px 18px; display: grid; gap: 16px; border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 0% 0%, var(--g1), transparent 60%),
    radial-gradient(120% 100% at 100% 0%, var(--g3), transparent 60%),
    radial-gradient(140% 120% at 50% 100%, var(--g2), transparent 70%),
    var(--surf);
  box-shadow: 0 24px 50px -30px rgba(30, 30, 70, .45);
}
.ticket { display: flex; justify-content: space-between; font-family: var(--fm); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.from { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.from b { color: var(--ink); font-weight: 600; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, #ff8a4c, #7a5cff); flex: none; }
.av.face { background: var(--surf); border: 1px solid var(--line); font-size: 18px; width: 34px; height: 34px; }
.topic { font-family: var(--fd); margin: 0; text-wrap: balance; overflow-wrap: anywhere; font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.topic.t1 { font-size: 56px; }
.topic.t2 { font-size: 44px; }
.topic.t3 { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.topic.t4 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
.topic.t5 { font-size: 24px; font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.sub { margin: -4px 0 0; color: var(--muted); font-size: 16px; }
.preview { background: color-mix(in srgb, var(--surf) 82%, transparent); border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 12px 14px; display: grid; gap: 6px; }
.plab { font-family: var(--fm); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pbox { display: flex; gap: 10px; align-items: flex-end; }
.pbox p { margin: 0; flex: 1; font-size: 14.5px; line-height: 1.45; }
.send { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; flex: none; font-size: 15px; }
.pri-ai { display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--brand); color: var(--brand-ink); border-radius: 16px; min-height: 60px; padding: 0 18px; font-weight: 700; font-size: 18px; text-decoration: none; box-shadow: 0 12px 26px -14px rgba(47, 75, 255, .8); }
.pri-ai .lgo { width: 30px; height: 30px; border-radius: 9px; background: #fff; color: #18181d; display: grid; place-items: center; }
.pri-ai .lgo svg { width: 20px; height: 20px; display: block; }
.pri-ai .ext { opacity: .85; font-weight: 500; }
.pri-ai:hover { filter: brightness(1.06); }
.usual { margin: -8px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.usual[hidden] { display: none; }

/* ---------- Receiver: other AIs ---------- */
.more summary { cursor: pointer; list-style: none; text-align: center; color: var(--brand); font-weight: 500; font-size: 15px; padding: 4px 0; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " \25BE"; }
.more[open] summary { color: var(--muted); font-size: 13px; font-weight: 400; margin-bottom: 8px; }
.more[open] summary::after { content: ""; }
.stack { display: grid; gap: 9px; }
.cw { display: flex; align-items: center; gap: 12px; background: var(--surf); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; min-height: 54px; font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; }
.cw:hover { border-color: var(--brand); }
.cw .lgo { display: grid; place-items: center; }
.cw .lgo svg { width: 22px; height: 22px; display: block; }
.cw .lbl { flex: 1; }
.cw .ext { color: var(--muted); font-weight: 400; font-size: 14px; }
.link { appearance: none; background: none; border: 0; color: var(--brand); font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; padding: 6px 0; justify-self: center; }
.reassure { margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ---------- Creator + simple pages ---------- */
.sender { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); margin-top: 8px; }
.av.site { border-radius: 9px; font-size: 11px; background: var(--brand); }
.bub { background: var(--surf); border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; padding: 11px 16px; max-width: 88%; align-self: flex-start; margin: 0; font-size: 16px; font-weight: 400; }
.bub.big { font-family: var(--fd); font-size: 38px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; padding: 16px 20px; max-width: 100%; text-wrap: balance; overflow-wrap: anywhere; }
.bub.big.md { font-size: 28px; }
.bub.out { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-color: var(--brand); border-radius: 20px 20px 6px 20px; font-family: var(--fm); font-size: 14px; overflow-wrap: anywhere; }
.label { font-size: 11px; font-family: var(--fm); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); align-self: flex-end; }
.result { display: flex; flex-direction: column; gap: 10px; }
.result[hidden] { display: none; }
.embed { align-self: flex-end; width: 88%; background: var(--surf); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 8px; padding: 10px 12px; display: grid; gap: 3px; font-size: 13px; }
.embed .s { font-size: 11.5px; color: var(--muted); }
.embed .t { font-weight: 700; color: var(--brand); line-height: 1.3; }
.embed .d { color: var(--muted); }
.ogimg { margin-top: 6px; border-radius: 6px; background: #2f4bff; color: #fff; aspect-ratio: 1.91 / 1; max-width: 100%; display: grid; align-content: space-between; padding: 12px 14px; }
.ogimg span { font-weight: 800; font-size: 13px; letter-spacing: -.02em; }
.ogimg span b { opacity: .75; }
.ogimg strong { font-size: 22px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.ogimg small { font-family: var(--fm); font-size: 10px; opacity: .85; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.btn { appearance: none; border: 1px solid var(--line); background: var(--surf); color: var(--ink); border-radius: 12px; min-height: 44px; padding: 0 18px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn.pri { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.self { align-self: flex-start; }
.btn[hidden] { display: none; }
.btn:focus-visible, .cw:focus-visible, .pri-ai:focus-visible, .link:focus-visible, .more summary:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.composer { margin-top: 6px; background: var(--surf); border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: grid; gap: 10px; }
.composer input { width: 100%; min-width: 0; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 22px; padding: 11px 16px; font: inherit; font-size: 16px; }
.composer input:focus { outline: none; border-color: var(--brand); }
.composer input.err { border-color: var(--bad); }
.comprow { display: flex; gap: 10px; align-items: center; }
.comprow input { flex: 1; font-size: 14px; padding: 8px 14px; }
.count { font-family: var(--fm); font-size: 12px; color: var(--muted); white-space: nowrap; }
.hint { font-size: 13.5px; padding: 8px 12px; border-radius: 10px; }
.hint[hidden] { display: none; }
.hint.warn { background: var(--warn-soft); color: var(--warn); }
.hint.bad { background: var(--bad-soft); color: var(--bad); }
.tip { font-size: 13.5px; color: var(--muted); text-align: center; margin: 4px 0 0; }
.tip code { font-family: var(--fm); font-size: 13px; color: var(--ink); }
.nudge { background: var(--brand-soft); border-radius: 14px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.nudge[hidden] { display: none; }
.nudge b { color: var(--brand); }
.foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot a.mk { color: var(--brand); font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(440px, calc(100% - 32px)); background: var(--toast); color: var(--toast-ink); border-radius: 14px; padding: 12px 16px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); font-size: 14.5px; z-index: 10; }
.toast[hidden] { display: none; }
.toast small { display: block; opacity: .75; font-size: 13px; margin-top: 2px; }
@media (max-width: 420px) { .topic.t1 { font-size: 50px; } .bub.big { font-size: 30px; } .card { padding: 18px 16px 16px; } }
@media (min-width: 700px) { .topic.t1 { font-size: 64px; } .topic.t2 { font-size: 50px; } .topic.t3 { font-size: 38px; } .topic.t4 { font-size: 32px; } .topic.t5 { font-size: 28px; } }
@media (prefers-reduced-motion: no-preference) { .toast:not([hidden]) { animation: up .2s ease-out; } @keyframes up { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } } }
