/* The page at the server's own address (Pages/Index.cshtml): full screen, in the marketing
   site's style (design/marketing-site.md) — large regular-weight headline, generous space,
   a pastel tile holding a small product scene, a dark rounded button. Motion is calm and
   stops with reduced motion. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.ttf") format("truetype"); }

:root {
  --ink: #17181a;
  --muted: #5e6168;
  --soft: #4a4c52;
  --faint: #85878c;
  --page: #f4f4f1;
  --avatar: #ededea;
  --sage: #d6e7db;
  --accent: #0e7a57;
  --live: #3dd68c;
  --dark-fill: #2b2c30;
  --on-dark-muted: #c9cacd;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* The left half: logo, the message and the button, a footer. */
.content {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 56px);
  gap: 32px;
}

.wordmark { display: block; height: 28px; width: auto; color: var(--ink); }
.wordmark .dot { fill: var(--accent); }
.wordmark .bar { fill: currentColor; transform-box: fill-box; transform-origin: center; animation: logo-bar 1.6s ease-in-out infinite; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  max-width: 600px;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 84px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.lead { margin: 0; max-width: 30em; font-size: 19px; line-height: 1.55; color: var(--soft); }

.get { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.button {
  font: inherit;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 120ms var(--ease), transform 80ms var(--ease);
}
.button:active { transform: scale(.98); }
.button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.button.primary {
  padding: 15px 22px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
}
.button.primary:hover { background: #000; }

.button.quiet {
  padding: 7px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.button.quiet:hover { background: var(--avatar); }

.small { margin: 0; font-size: 13.5px; color: var(--muted); }

/* The server address, on a grey panel, with Copy. */
.address {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: flex-start;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--page);
}
.address .label { font-size: 13px; font-weight: 600; }
.address .value { display: flex; align-items: center; gap: 12px; }
.address code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--faint);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* The right half: the sage tile with a small picture of the app. */
.scene {
  position: relative;
  margin: 16px 16px 16px 0;
  border-radius: 32px;
  background: var(--sage);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window {
  width: min(360px, 78%);
  padding: 22px 16px 16px;
  border-radius: 20px;
  background: var(--page);
  box-shadow: 0 24px 60px rgb(23 24 26 / .14);
  display: flex;
  flex-direction: column;
  transform: translate(-6%, -6%);
}
.window-host { padding: 0 6px; font-size: 11px; color: var(--muted); }
.window-headline { padding: 6px 6px 2px; font-size: 21px; letter-spacing: -0.02em; }
.window-line { padding: 0 6px 14px; font-size: 11.5px; color: var(--muted); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.tile { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 13px; background: #fff; }
.tile-name { font-size: 12.5px; font-weight: 500; }
.tile-line { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.tile-line b { font-weight: 500; color: var(--ink); }
.tile-line.speaking { color: var(--accent); font-weight: 500; }

.faces { display: flex; gap: 5px; margin: 8px 0 10px; }
.face {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--avatar);
  font-size: 8.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.face.ring { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--accent); }
.face.free::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--live);
  box-shadow: 0 0 0 2px #fff;
}

.pretend {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--page);
  font-size: 10.5px;
  font-weight: 500;
}
.pretend.dark { align-self: stretch; text-align: center; background: var(--ink); color: #fff; font-weight: 600; }
.pretend.on-dark { background: var(--dark-fill); color: #fff; }
.pretend.light { background: #fff; color: var(--ink); font-weight: 600; }

.people { display: flex; flex-direction: column; gap: 6px; margin-top: 7px; padding: 10px 12px; border-radius: 13px; background: #fff; }
.people-label { font-size: 10.5px; color: var(--muted); }
.person { display: flex; align-items: center; gap: 8px; }
.person-name { flex: 1; font-size: 11.5px; font-weight: 500; }
.person .pretend { align-self: center; }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.eq span { width: 2px; height: 10px; border-radius: 1px; background: var(--accent); transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: .25s; }
.eq span:nth-child(3) { animation-delay: .5s; }
.eq span:nth-child(4) { animation-delay: .12s; }

.notification {
  position: absolute;
  right: 9%;
  bottom: 12%;
  width: min(290px, 70%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 24px 50px rgb(23 24 26 / .25);
  animation: bob 5s ease-in-out infinite;
}
.note-title { font-size: 14px; font-weight: 600; }
.note-text { font-size: 12.5px; }
.note-meta { font-size: 11.5px; color: var(--on-dark-muted); }
.note-buttons { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }

@keyframes logo-bar { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  .wordmark .bar, .eq span, .notification { animation: none; }
  .button { transition: none; }
  .button:active { transform: none; }
}

/* Large screens: a bigger picture. */
@media (min-width: 1200px) {
  .window { transform: translate(-6%, -8%) scale(1.2); }
}

/* Narrow windows and phones: the message alone, no picture. */
@media (max-width: 900px) {
  .screen { grid-template-columns: 1fr; }
  .scene { display: none; }
}
