/* invite.sunnier.ai: plain white, Sunnier's own wordmark and sun, one quiet chat. Mobile first. */
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/Inter-400.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/Inter-600.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/Inter-800.woff2) format("woff2")}

:root{
  --ink:#193328; --muted:#5f6b63; --faint:#8b958e; --line:#ebe9e1; --sun:#f7c84b;
  --them:#f4f3ee; --me:#193328; --bg:#ffffff;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:400 17px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased}
.sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.page{max-width:560px;min-height:100vh;min-height:100dvh;margin:0 auto;display:flex;flex-direction:column;
  padding:0 22px;padding-left:max(22px,env(safe-area-inset-left));padding-right:max(22px,env(safe-area-inset-right))}

/* the wordmark, as on sunnier.ai: sun, then "sunnier" with a small sun for the i's dot */
.brand{display:inline-flex;align-items:center;gap:.42em;font-weight:800;font-size:21px;letter-spacing:-.065em;line-height:1;
  padding-top:max(22px,env(safe-area-inset-top));color:var(--ink);user-select:none}
.brand-sun{width:.52em;height:.52em;border-radius:50%;background:var(--sun);box-shadow:0 0 0 .17em rgba(247,200,75,.28);flex:none}
.brand-i{position:relative;display:inline-block}
.brand-dot{position:absolute;left:calc(50% + .032em);top:.03em;width:.22em;height:.22em;margin-left:-.11em;border-radius:50%;background:var(--sun)}

/* three typed lines */
.intro{padding-top:clamp(64px,17vh,150px);min-height:calc(clamp(64px,17vh,150px) + 3 * 1.18em);
  font-weight:600;font-size:clamp(27px,7.4vw,40px);line-height:1.18;letter-spacing:-.028em;cursor:default}
.line{margin:0;min-height:1.18em}
.line.quiet{color:var(--faint);margin-top:.5em}
.caret{display:inline-block;width:.07em;height:.92em;margin-left:.04em;vertical-align:-.1em;background:var(--ink);animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}

/* the chat */
.chat{display:flex;flex-direction:column;gap:8px;padding:40px 0 18px}
.msg{max-width:84%;padding:10px 14px;border-radius:20px;font-size:17px;line-height:1.4;overflow-wrap:anywhere;
  animation:rise .22s ease-out both}
.msg p{margin:0}
.msg.them{align-self:flex-start;background:var(--them);border-bottom-left-radius:6px}
.msg.me{align-self:flex-end;background:var(--me);color:#fff;border-bottom-right-radius:6px}
.msg.me + .msg.them,.msg.them + .msg.me{margin-top:8px}
@keyframes rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.dots{display:inline-flex;gap:5px;padding:4px 2px}
.dots i{width:7px;height:7px;border-radius:50%;background:#a5ada7;animation:dot 1.1s infinite ease-in-out}
.dots i:nth-child(2){animation-delay:.16s}
.dots i:nth-child(3){animation-delay:.32s}
@keyframes dot{0%,70%,100%{opacity:.35;transform:none}35%{opacity:1;transform:translateY(-2px)}}

/* your own invites: "you have three to give", the link, and one big button */
.pass{align-self:stretch;max-width:none;margin-top:10px;padding:22px 20px 18px;border:1px solid var(--line);border-radius:22px;background:#fff;
  box-shadow:0 1px 2px rgba(25,51,40,.04),0 10px 28px rgba(25,51,40,.06);animation:rise .28s ease-out both}
.pass-seats{display:flex;gap:8px;margin-bottom:14px}
.pass-seats i{width:18px;height:18px;border-radius:50%;background:var(--sun);box-shadow:0 0 0 4px rgba(247,200,75,.22)}
.pass-title{margin:0 0 6px;text-wrap:balance;font-weight:600;font-size:23px;line-height:1.2;letter-spacing:-.02em;color:var(--ink)}
.pass-how{margin:0 0 14px;font-size:15px;line-height:1.45;color:var(--muted)}
.pass-url{display:block;margin-bottom:14px;padding:10px 14px;border-radius:12px;background:var(--them);font-size:14px;color:var(--ink);
  text-decoration:none;word-break:break-all}
.pass-btn{width:100%;min-height:52px;border:0;border-radius:999px;background:var(--ink);color:#fff;font:600 17px/1 Inter,system-ui,sans-serif;
  cursor:pointer}
.pass-btn:active{transform:scale(.99)}
.pass-note{margin:10px 0 0;font-size:14px;color:var(--muted);text-align:center}
.pass-note:empty{display:none}

/* where you type */
.composer{position:sticky;bottom:0;margin-top:auto;padding:10px 0 max(14px,env(safe-area-inset-bottom));
  background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 14px)}
.composer[hidden]{display:none}
.consent{margin:0 4px 8px;font-size:13px;line-height:1.4;color:var(--muted)}
.consent a{color:inherit}
.field{display:flex;align-items:center;gap:8px;padding:5px 5px 5px 18px;border:1px solid #dcdad0;border-radius:999px;background:#fff}
.field:focus-within{border-color:var(--ink)}
#say{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font:400 17px/1.3 Inter,system-ui,sans-serif;padding:9px 0}
#say::placeholder{color:#9aa39d}
#say.code{text-transform:uppercase;letter-spacing:.12em;font-weight:600}
#say.code::placeholder{text-transform:none;letter-spacing:0;font-weight:400}
.send{flex:none;width:40px;height:40px;border:0;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;cursor:pointer}
.send:disabled{background:#c9cfca;cursor:default}
.trap{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

.noscript{padding:40px 22px;font-size:17px}

@media (min-width:700px){
  .page{padding:0 32px}
  .brand{font-size:24px;padding-top:36px}
}
@media (prefers-reduced-motion:reduce){
  .msg,.pass{animation:none}
  .caret{animation:none}
  .dots i{animation:none;opacity:.6}
}
