/* Sign-in page: the illustrated room fills the screen; a frosted card sits over it.
   Desktop: the card on the left, clear of the mic in the middle of the desk.
   Narrow screens: the card becomes a sheet from the bottom, the window and sky above. */
:root {
  --ink: #2a2019;
  --muted: #6c5d4d;
  --accent: #a9502c;
  --card: rgba(253, 249, 242, 0.9);
  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: #d9874d; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
:focus-visible { outline: 3px solid #e7a35e; outline-offset: 3px; border-radius: 10px; }

.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #d9874d; }
.page { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: max(16px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) max(16px, env(safe-area-inset-bottom)); }

/* Frosted pills keep the header readable over any time of day. */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand, .bar-link, .foot span { background: rgba(253, 249, 242, 0.74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; box-shadow: 0 6px 18px rgba(40, 22, 8, 0.12); }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; font: 17px var(--serif); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.bar-link { padding: 10px 18px; font: 600 14px var(--sans); text-decoration: none; }
.bar-link:hover { background: rgba(253, 249, 242, 0.92); }

.panel {
  align-self: center; justify-self: start;
  width: min(460px, 100%); margin: 28px 0 28px clamp(0px, 3vw, 40px);
  padding: clamp(26px, 3vw, 38px);
  background: var(--card); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 28px;
  box-shadow: 0 30px 70px rgba(40, 22, 8, 0.28), 0 2px 6px rgba(40, 22, 8, 0.08);
  animation: card-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.greeting { margin: 0 0 10px; font: 600 12px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #8c5a33; }
h1 { margin: 0; font: 400 clamp(32px, 3.4vw, 44px)/1.08 var(--serif); letter-spacing: -0.02em; }
h1 span { color: var(--accent); }
.lede { margin: 16px 0 0; font-size: 16px; color: #4d4034; }

.points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.5; color: #4d4034; }
.points svg { width: 22px; height: 22px; margin-top: 1px; color: var(--accent); }
.points strong { color: var(--ink); font-weight: 600; }

.cta { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(120, 90, 60, 0.18); }
.continue { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px; border-radius: 16px; background: #2a2019; color: #fffaf0; font: 600 16px var(--sans); text-decoration: none; box-shadow: 0 10px 22px rgba(42, 32, 25, 0.28); transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.continue svg { width: 22px; height: 22px; flex: none; }
.continue span:first-of-type { flex: 1; }
.continue .arrow { transition: transform 0.2s ease; }
.continue:hover { background: #3d2f25; transform: translateY(-1px); box-shadow: 0 14px 28px rgba(42, 32, 25, 0.32); }
.continue:hover .arrow { transform: translateX(3px); }
.continue.is-disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.status { margin: 10px 2px 0; font-size: 13px; color: #8b3a2b; }
.status:empty { display: none; }
.fineprint { margin: 12px 2px 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

.foot { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: 0.08em; color: #4d4034; }
.foot span { padding: 6px 14px; }

/* Narrower screens: the card rises from the bottom so the window and mic stay in view. */
@media (max-width: 1080px) {
  .page { padding-left: 0; padding-right: 0; padding-bottom: 0; }
  .bar { padding: 0 16px; }
  .panel { align-self: end; justify-self: stretch; width: auto; max-width: 620px; margin: 24px auto 0; border-radius: 28px 28px 0 0; border-bottom: 0; padding: 26px 22px max(22px, env(safe-area-inset-bottom)); }
  .foot { display: none; }
}
@media (max-width: 520px) {
  h1 { font-size: 30px; }
  .lede { font-size: 15px; }
  .points { gap: 9px; margin-top: 16px; }
  .points li { font-size: 13.5px; }
  .cta { margin-top: 18px; padding-top: 16px; }
}
/* On a phone the room is the picture: keep the sheet short so the window and mic show. */
@media (max-width: 1080px) {
  .points { display: none; }
  .cta { margin-top: 20px; padding-top: 0; border-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } .continue, .continue .arrow { transition: none; } }
