* { margin:0; padding:0; box-sizing:border-box; }
html, body { min-height:100%; }
body {
  background:#F7F4EE;
  color:#1A1A1A;
  font-family:'Source Sans 3',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
a { color:inherit; }
.page {
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:#F7F4EE;
}
.mast {
  background:#1A1A1A;
  color:#C5B48A;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 28px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.hero {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:48px 20px 28px;
}
.stars {
  display:flex;
  gap:4px;
  color:#C5B48A;
  font-size:22px;
  letter-spacing:2px;
  line-height:1;
  margin-bottom:6px;
}
.rating {
  color:#1F9D4A;
  font-size:13px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:18px;
}
.hero h1 {
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(32px, 5vw, 48px);
  font-weight:500;
  text-align:center;
  text-wrap:balance;
  letter-spacing:-0.02em;
  margin-bottom:12px;
}
.sub {
  color:#4A4A4A;
  font-size:17px;
  margin:0 0 40px;
  text-align:center;
  max-width:560px;
  line-height:1.55;
}
.cards { display:flex; gap:22px; flex-wrap:wrap; justify-content:center; width:100%; max-width:1240px; }
.card {
  flex:1 1 280px;
  max-width:380px;
  background:#fff;
  border:1px solid #E6DFD2;
  border-radius:2px;
  padding:32px 28px;
  display:flex;
  flex-direction:column;
  box-shadow:0 10px 30px rgba(26,26,26,.04);
  transition:border-color .2s, transform .2s;
}
.card:hover { border-color:#C5B48A; transform:translateY(-3px); }
.tag {
  display:inline-block;
  font-size:11px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#C5B48A;
  margin-bottom:12px;
}
.card h2 {
  font-family:'Playfair Display',Georgia,serif;
  font-size:26px;
  font-weight:500;
  margin-bottom:12px;
}
.card p { color:#4A4A4A; font-size:15px; line-height:1.6; margin-bottom:26px; flex:1; }
.btn {
  display:block;
  text-align:center;
  background:#C5B48A;
  color:#1A1A1A;
  font-weight:700;
  font-size:14px;
  letter-spacing:.04em;
  padding:14px 20px;
  border-radius:2px;
  text-decoration:none;
  border:1px solid #C5B48A;
  cursor:pointer;
  transition:background .2s, color .2s;
}
.btn:hover { background:#1A1A1A; color:#F7F4EE; border-color:#1A1A1A; }
.btn:disabled { opacity:.4; cursor:not-allowed; }
.footer {
  margin-top:auto;
  background:#1A1A1A;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:rgba(255,255,255,.45);
  font-size:12px;
  letter-spacing:.4px;
  padding:18px;
}
.footer img { height:14px; opacity:.7; }

.stage {
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:28px 16px;
  background:
    radial-gradient(ellipse 70% 46% at 50% 38%, #2a2a2e 0%, #0a0a0b 58%, #050505 100%);
}
.away {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:15px;
  font-weight:700;
  color:#1A1A1A;
  background:#C5B48A;
  text-decoration:none;
  letter-spacing:.02em;
  padding:11px 18px;
  border-radius:999px;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  z-index:40;
}
.away:hover { background:#d4c4a0; color:#1A1A1A; }

.device {
  position:relative;
  height:min(812px, calc(100dvh - 64px));
  aspect-ratio:393 / 812;
  width:auto;
  max-width:min(393px, calc(100vw - 24px));
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',sans-serif;
  color:#111;
  filter:drop-shadow(0 40px 70px rgba(0,0,0,.55));
}
.hw {
  position:absolute;
  background:#1a1a1c;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
}
.hw.silent { left:-3px; top:118px; width:3px; height:22px; border-radius:2px 0 0 2px; }
.hw.vol-up { left:-3px; top:168px; width:3px; height:52px; border-radius:2px 0 0 2px; }
.hw.vol-dn { left:-3px; top:228px; width:3px; height:52px; border-radius:2px 0 0 2px; }
.hw.power { right:-3px; top:196px; width:3px; height:92px; border-radius:0 2px 2px 0; }
.bezel {
  position:absolute;
  inset:0;
  padding:11px;
  border-radius:58px;
  background:linear-gradient(160deg, #6a6a70 0%, #2c2c30 18%, #111113 46%, #2a2a2e 100%);
  box-shadow:
    inset 0 1.2px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(0,0,0,.7),
    0 0 0 1px #0b0b0c;
}
.screen {
  height:100%;
  border-radius:47px;
  overflow:hidden;
  background:#fff;
  display:flex;
  flex-direction:column;
  position:relative;
  color-scheme:light;
}
.island {
  position:absolute;
  top:11px;
  left:50%;
  transform:translateX(-50%);
  width:120px;
  height:35px;
  background:#000;
  border-radius:19px;
  z-index:8;
}
.status {
  position:relative;
  z-index:7;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  padding:14px 26px 0;
  height:52px;
  font-size:15px;
  font-weight:600;
  letter-spacing:.02em;
}
.sig { display:flex; align-items:center; gap:6px; color:#111; }
.nav {
  display:grid;
  grid-template-columns:44px 1fr 44px;
  align-items:start;
  padding:6px 14px 8px;
  background:linear-gradient(#fff 60%, rgba(255,255,255,.86));
}
.fab {
  width:36px;
  height:36px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.12), 0 6px 16px rgba(0,0,0,.06);
  display:grid;
  place-items:center;
  color:#111;
  text-decoration:none;
  margin-top:18px;
}
.fab.ghost { pointer-events:none; }
.who {
  display:flex;
  flex-direction:column;
  align-items:center;
  margin-top:2px;
}
.photo {
  width:52px;
  height:52px;
  border-radius:50%;
  object-fit:cover;
  background:#d8d8dc;
  box-shadow:0 1px 2px rgba(0,0,0,.16);
}
.name-pill {
  margin-top:-8px;
  background:#fff;
  border-radius:14px;
  padding:3px 9px 3px 11px;
  font-size:13px;
  font-weight:600;
  box-shadow:0 1px 3px rgba(0,0,0,.14);
  display:flex;
  align-items:center;
  gap:2px;
}
.caret { color:#c7c7cc; font-size:16px; line-height:1; }
.thread {
  flex:1;
  overflow:auto;
  padding:6px 10px 10px;
  display:flex;
  flex-direction:column;
  gap:3px;
  background:#fff;
}
.im-day {
  align-self:center;
  margin:10px 0 8px;
  font-size:12px;
  font-weight:600;
  color:#8e8e93;
}
.row {
  display:flex;
  flex-direction:column;
  max-width:78%;
  animation:pop .18s ease-out;
}
@keyframes pop {
  from { transform:scale(.94); opacity:0; }
  to { transform:scale(1); opacity:1; }
}
.row.them { align-self:flex-start; align-items:flex-start; }
.row.me { align-self:flex-end; align-items:flex-end; }
.bubble {
  position:relative;
  padding:8px 13px;
  border-radius:18px;
  font-size:17px;
  line-height:22px;
  letter-spacing:-.02em;
  white-space:pre-wrap;
  word-wrap:break-word;
}
.row.them .bubble { background:#e9e9eb; color:#111; }
.row.me .bubble { background:#64d256; color:#111; }
.row.them.tail .bubble { border-bottom-left-radius:5px; }
.row.me.tail .bubble { border-bottom-right-radius:5px; }
.row.them.tail .bubble::before,
.row.them.tail .bubble::after,
.row.me.tail .bubble::before,
.row.me.tail .bubble::after {
  content:"";
  position:absolute;
  bottom:0;
}
.row.them.tail .bubble::before {
  left:-7px; width:20px; height:20px; background:#e9e9eb;
  border-bottom-right-radius:16px;
}
.row.them.tail .bubble::after {
  left:-10px; width:10px; height:20px; background:#fff;
  border-bottom-right-radius:10px;
}
.row.me.tail .bubble::before {
  right:-7px; width:20px; height:20px; background:#64d256;
  border-bottom-left-radius:16px;
}
.row.me.tail .bubble::after {
  right:-10px; width:10px; height:20px; background:#fff;
  border-bottom-left-radius:10px;
}
.bubble a { color:#007aff; text-decoration:underline; word-break:break-all; }
.preview {
  margin-top:3px;
  width:min(230px, 70vw);
  background:#f2f2f7;
  border-radius:14px;
  padding:10px 12px;
  text-decoration:none;
  color:#111;
  display:block;
}
.preview strong { display:block; font-size:14px; }
.preview span { display:block; font-size:12px; color:#8e8e93; margin-top:2px; }
.meta, .receipt {
  font-size:11px;
  color:#8e8e93;
  padding:3px 6px 1px;
  background:none;
  border:0;
}
.row.failed .meta { color:#ff3b30; cursor:pointer; font-weight:600; }
.typing { display:flex; gap:5px; padding:12px 16px; width:58px; }
.typing i {
  width:7px; height:7px; border-radius:50%; background:#8e8e93;
  animation:dot 1.05s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay:.14s; }
.typing i:nth-child(3) { animation-delay:.28s; }
@keyframes dot {
  0%, 80%, 100% { opacity:.28; transform:translateY(0); }
  40% { opacity:1; transform:translateY(-2px); }
}
.bar {
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px 22px;
  background:linear-gradient(#f7f7f8, #f2f2f7);
}
.plus {
  width:33px; height:33px; border-radius:50%; background:#fff;
  box-shadow:0 0 0 .5px #d8d8dc inset;
  display:grid; place-items:center;
  color:#8e8e93; font-size:22px; line-height:1; font-weight:400;
}
.bar input {
  flex:1;
  height:36px;
  border:0;
  background:#fff;
  box-shadow:0 0 0 .5px #d8d8dc inset;
  border-radius:18px;
  padding:0 14px;
  font:inherit;
  font-size:17px;
  outline:none;
}
.mic, .go {
  width:33px; height:33px; border:0; border-radius:50%;
  display:grid; place-items:center; flex-shrink:0;
}
.mic { background:#fff; color:#8e8e93; box-shadow:0 0 0 .5px #d8d8dc inset; pointer-events:none; }
.go { background:#007aff; cursor:pointer; }
.go:disabled { opacity:.4; cursor:default; }
.setup {
  padding:18px 16px 0;
  display:flex;
  flex-direction:column;
  gap:0;
}
.setup .ios-card {
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 0 0 .5px #d8d8dc inset;
  margin-bottom:18px;
}
.setup label {
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  font-size:17px;
  border-bottom:.5px solid #e5e5ea;
  color:#111;
}
.setup label:last-child { border-bottom:0; }
.setup label span {
  min-width:96px;
  color:#8e8e93;
  font-size:15px;
}
.setup input, .setup select {
  flex:1;
  border:0;
  background:transparent;
  font:inherit;
  font-size:17px;
  color:#111;
  outline:none;
}
.ios-start {
  height:50px;
  border:0;
  border-radius:14px;
  background:#007aff;
  color:#fff;
  font:inherit;
  font-size:17px;
  font-weight:600;
  cursor:pointer;
}
.muted { color:#8e8e93; font-size:15px; line-height:1.45; margin:8px 2px 16px; }
.err { color:#ff3b30; font-size:13px; }
.home {
  position:absolute;
  left:50%;
  bottom:7px;
  transform:translateX(-50%);
  width:128px;
  height:5px;
  border-radius:4px;
  background:#111;
  opacity:.9;
}
#chat-wrap { flex:1; min-height:0; display:flex; flex-direction:column; }
#setup-wrap { flex:1; min-height:0; overflow:auto; }
#chat-wrap[hidden], #setup-wrap[hidden] { display:none !important; }
@media (max-width:480px) {
  .stage { padding:0; gap:0; background:#000; }
  .away {
    position:fixed;
    top:10px;
    left:10px;
  }
  .device {
    width:100%;
    height:100dvh;
    max-width:none;
    max-height:none;
    filter:none;
  }
  .hw { display:none; }
  .bezel { padding:0; border-radius:0; background:#000; box-shadow:none; }
  .screen { border-radius:0; }
}
