:root {
  --bg: #F7F6F2; --ink: #16151A; --muted: #55525C; --line: rgba(22,21,26,0.1);
  --green: #1F6B4E; --green-bg: #E3F0E8; --purple: #4A3A78; --lilac: #ECE6FA; --lime: #D9E85A;
  --amber: #7A5420; --amber-bg: #FFF8EC; --red: #A3262A; --red-bg: #FDF1F1;
  --serif: Fraunces, Georgia, serif; --sans: Outfit, Arial, sans-serif; --mono: 'JetBrains Mono', Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.5; background-color: var(--bg); background-image: radial-gradient(rgba(22,21,26,0.09) 1px, transparent 1px); background-size: 22px 22px; overflow-x: hidden; }
.glow { position: fixed; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: 0; }
.glow-a { width: 420px; height: 420px; right: -160px; top: -180px; background: #C4B5F7; opacity: 0.5; }
.glow-b { width: 380px; height: 380px; left: -160px; bottom: -200px; background: #D9E85A; opacity: 0.35; }
.top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; max-width: 560px; margin: 0 auto; padding: 18px 20px 0; }
.logo { height: 28px; }
main { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 18px 20px 120px; display: flex; flex-direction: column; gap: 18px; outline: none; }
h1, h2 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 34px; line-height: 1.1; }
h2 { font-size: 22px; line-height: 1.2; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--purple); }
.accent { color: var(--green); }
.card { background: rgba(255,255,255,0.92); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
.hint { font-weight: 400; font-size: 15px; color: var(--muted); }
input[type=text], input[type=password], textarea { font: inherit; font-size: 20px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; width: 100%; }
input:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,107,78,0.15); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
main:focus, main:focus-visible { outline: none; }
button, .btn { font: inherit; font-weight: 500; min-height: 56px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
button:hover { background: var(--green); border-color: var(--green); }
button:disabled { opacity: 0.55; }
.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.ghost:hover { background: #fff; color: var(--ink); border-color: var(--ink); }
.link { background: none; border: none; color: var(--green); text-decoration: underline; min-height: 0; padding: 0; font-weight: 400; font-size: 16px; }
.link:hover { background: none; color: var(--ink); }
.err { background: var(--red-bg); color: var(--red); border-radius: 16px; padding: 12px 14px; font-size: 16px; }
.ok { background: var(--green-bg); color: var(--green); border-radius: 16px; padding: 12px 14px; font-size: 16px; }
.rid { font-family: var(--mono); font-size: 16px; letter-spacing: 0.04em; }
/* talk to Rhoe */
.talk { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0 4px; text-align: center; }
.orb { width: 176px; height: 176px; border-radius: 50%; border: none; padding: 0; flex-direction: column; gap: 4px; font-size: 20px; color: #fff; background: radial-gradient(circle at 35% 30%, #8B74D9, #4A3A78 70%); box-shadow: 0 18px 50px rgba(74,58,120,0.35), 0 0 0 10px rgba(196,181,247,0.35); }
.orb:hover { background: radial-gradient(circle at 35% 30%, #9C86E6, #4A3A78 70%); }
.orb svg { width: 40px; height: 40px; }
.orb.on { animation: breathe 1.6s ease-in-out infinite; background: radial-gradient(circle at 35% 30%, #E37373, #A3262A 70%); box-shadow: 0 18px 50px rgba(163,38,42,0.35), 0 0 0 10px rgba(227,115,115,0.25); }
.orb.busy { background: radial-gradient(circle at 35% 30%, #6FB08F, #1F6B4E 70%); }
@keyframes breathe { 50% { transform: scale(1.05); } }
.heard { min-height: 28px; font-size: 17px; color: var(--muted); }
.plan { background-color: #16151A; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 32px 32px; color: #F7F6F2; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plan li { background: rgba(255,255,255,0.07); border-radius: 16px; padding: 12px 14px; }
.plan li b { font-weight: 500; }
.plan li span { display: block; color: #B9B5C2; font-size: 15px; }
.goal { background: var(--lime); color: var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 16px; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 20px; font-size: 17px; }
.msg-you { align-self: flex-end; background: var(--green-bg); border-bottom-right-radius: 6px; }
.msg-rhoe { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.alert { border-radius: 20px; padding: 16px 18px; font-size: 17px; }
.alert-urgent { background: var(--red); color: #fff; }
.alert-review { background: var(--amber-bg); color: var(--amber); }
.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; background: rgba(247,246,242,0.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
.composer form { max-width: 560px; margin: 0 auto; display: flex; gap: 10px; }
.composer input { flex: 1; font-size: 18px; padding: 12px 16px; min-height: 52px; }
.composer button { min-height: 52px; padding: 0 20px; }
.toggle { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 15px; color: var(--muted); flex-direction: row; }
.toggle input { width: 20px; height: 20px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* appointments */
.appt { gap: 8px; }
.appt-when { font-family: Fraunces, Georgia, serif; font-size: 22px; margin: 0; }
.day h2 { font-size: 18px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.time { background: #fff; color: #16151A; border: 1.5px solid #D9D5E6; border-radius: 12px; min-height: 52px; font-size: 17px; font-weight: 600; }
.time:hover, .time:focus-visible { border-color: #1F6B4E; background: #F4FAF6; }
.msg.offer { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.msg.offer button { min-height: 48px; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
