/* Argot's landing page. The brand rules are design/brand/DESIGN.md: dark only, one accent
   (coral), the stipple print as the only gradient, flat buttons, sentence case, Inter for
   text and Argot Display for headlines, never heavier than semibold. */

@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'); }
@font-face { font-family: 'Argot Display'; font-weight: 600; font-display: swap; src: url(fonts/ArgotDisplay-SemiBold.ttf) format('truetype'); }

:root {
  --night: #0a0a0a;
  --room: #0c0a0e;
  --chrome: #060607;
  --sheet: #0c0c0e;
  --panel: #0d0d0f;
  --lift: #19191d;
  --line: rgb(255 255 255 / 9%);
  --fog: #8a8a95;
  --plate: #c8c8d0;
  --snow: #f4f4f6;
  --coral: #ff8269;
  --live: #5fd9a8;
  --danger: #ff5d6c;
  --link: #78c6ff;
  --ink: #24252e;
  --mod: #49cfd6;
  --display: 'Argot Display', Inter, system-ui, sans-serif;
  --text: Inter, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--room);
  color: var(--plate);
  font: 400 16px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 600; color: var(--snow); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* Buttons: flat. A snow fill with night text, or transparent with a snow hairline. */
.loud, .quiet {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: 11px;
  font: 500 15px/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color 120ms, color 120ms;
}
.loud { background: var(--snow); color: var(--night); }
.loud:hover { background: var(--plate); }
.loud:active { background: var(--fog); }
.loud .icon { font-size: 18px; }
.loud.small { height: 36px; padding: 0 16px; border-radius: 9px; font-size: 14px; }
.quiet { color: var(--snow); box-shadow: inset 0 0 0 1px var(--snow); }
.quiet:hover { background: rgb(244 244 246 / 10%); }

/* The mark: the mascot's head and the word. */
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--snow); font: 600 22px/1 var(--display); letter-spacing: -0.01em; }
.mark svg { width: 34px; height: 31px; }

/* --- The hero: the room, with the words on its dark wall ------------------------------- */

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--room); min-height: clamp(640px, 100svh, 1000px); padding-bottom: 170px; display: flex; flex-direction: column; }
.hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; will-change: transform; object-fit: cover; object-position: 72% 40%; }
/* Darken the wall behind the words a touch, and let the floor sink into the page. */
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(12 10 14 / 78%) 0%, rgb(12 10 14 / 55%) 30%, rgb(12 10 14 / 0%) 50%),
    linear-gradient(180deg, transparent 45%, rgb(12 10 14 / 55%) 75%, var(--room) 100%); }

.nav { display: flex; align-items: center; gap: 32px; padding-top: 22px; padding-bottom: 22px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--snow); font-weight: 500; font-size: 15px; opacity: 0.86; }
.nav-links a:hover { opacity: 1; }

.hero-body { flex: 1; display: flex; align-items: center; padding-top: 8px; padding-bottom: 40px; }
.pitch { max-width: min(560px, 40vw); }
h1 { font-size: clamp(46px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.lede { margin-top: 24px; max-width: 24em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--snow); opacity: 0.84; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.fine { margin-top: 18px; font-size: 13px; color: var(--snow); opacity: 0.55; }

/* --- The app window, laid half over the ground ----------------------------------------- */

.product { position: relative; margin-top: -150px; z-index: 1; }
/* The window gives off a little of the laptop's violet, the way the room is lit. */
.app { box-shadow: 0 0 0 1px rgb(255 255 255 / 12%), 0 40px 120px -20px rgb(98 60 220 / 38%), 0 24px 60px rgb(0 0 0 / 55%); }
.fit { position: relative; }
.fit > * { transform-origin: top left; }

.app {
  width: 1180px; height: 700px; display: flex; flex-direction: column;
  background: var(--chrome); color: var(--plate);
  border-radius: 14px; box-shadow: 0 0 0 1px rgb(255 255 255 / 12%);
  overflow: hidden; font-size: 14px; line-height: 1.45;
}
.titlebar { position: relative; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--fog); font-size: 13px; font-weight: 500; }
.lights { position: absolute; left: 16px; display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.app-body { flex: 1; display: flex; min-height: 0; }

.rail { width: 64px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 4px; }
.rail .rule { width: 28px; height: 1px; background: var(--line); margin: 2px 0; }
.tile { position: relative; width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; color: var(--snow); }
.tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; image-rendering: pixelated; background: var(--lift); }
.tile b { position: relative; font: 600 18px/1 var(--display); }
.tile.plain { background: var(--lift); color: var(--fog); }
.tile.plain .icon { font-size: 18px; }
.tile.letter { font: 600 18px/1 var(--display); }
.tile.on::before { content: ''; position: absolute; left: -12px; width: 4px; height: 22px; border-radius: 0 4px 4px 0; background: var(--snow); }
.tile .lock { position: absolute; right: -4px; bottom: -4px; width: 17px; height: 17px; border-radius: 6px; background: var(--chrome); display: grid; place-items: center; color: var(--snow); }
.tile .lock .icon { font-size: 10px; }

.sheet { flex: 1; display: flex; min-width: 0; background: var(--sheet); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.rooms { width: 248px; flex: none; display: flex; flex-direction: column; padding: 8px 8px 8px; border-right: 1px solid var(--line); }
.banner { position: relative; height: 96px; border-radius: 10px; overflow: hidden; display: flex; align-items: flex-end; padding: 12px 14px; }
.banner canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; background: var(--lift); }
.banner b { position: relative; font: 600 21px/1 var(--display); color: var(--snow); letter-spacing: -0.01em; }
.facts { display: flex; gap: 14px; margin: 12px 8px 4px; font-size: 13px; color: var(--fog); }
.facts span { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.address { display: flex; align-items: center; gap: 8px; margin: 0 8px 10px; color: var(--fog); font-size: 12px; }
.address code { font: 12px var(--mono); }
.category { display: flex; align-items: center; justify-content: space-between; margin: 12px 8px 4px; font-size: 12px; font-weight: 500; color: var(--fog); }
.room { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--fog); font-weight: 500; }
.room .icon { font-size: 15px; opacity: 0.8; }
.room.on { background: var(--lift); color: var(--snow); }
.room.in { color: var(--snow); }
.room.in .icon { color: var(--live); opacity: 1; }
.count { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--fog); background: var(--lift); border-radius: 6px; padding: 1px 6px; }
.count.at { color: var(--ink); background: var(--coral); }
.in-room { display: flex; align-items: center; gap: 8px; height: 28px; padding-left: 32px; font-size: 13px; font-weight: 500; }
.in-room .face { width: 20px; height: 20px; }
.live { margin-left: 2px; font-size: 10px; font-weight: 600; color: var(--ink); background: var(--live); border-radius: 4px; padding: 0 5px; line-height: 16px; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.me > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.me small { display: inline-flex; align-items: center; gap: 6px; color: var(--fog); font-size: 12px; }
.me .icon { font-size: 16px; color: var(--fog); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }

.face { width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden; display: block; }
.face svg { display: block; width: 100%; height: 100%; }
.face.talking { box-shadow: 0 0 0 2px var(--sheet), 0 0 0 4px var(--live); }
.key { width: 36px; height: 36px; flex: none; border-radius: 11px; overflow: hidden; display: block; }
.key svg { display: block; width: 100%; height: 100%; }

.talk { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.room-head { height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--fog); }
.room-head b { color: var(--snow); font-size: 16px; font-weight: 600; }
.room-head .icon { font-size: 17px; }
.topic { padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people-button { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--lift); color: var(--snow); }
.messages { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 0 12px; }
.day { display: flex; align-items: center; gap: 12px; margin: 8px 18px 6px; color: var(--fog); font-size: 12px; font-weight: 500; }
.day::before, .day::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.msg { position: relative; display: flex; gap: 14px; padding: 8px 18px; }
.msg > div { min-width: 0; }
.msg p { color: #e9e9ee; }
.msg p + p { margin-top: 2px; }
.who { display: flex; align-items: baseline; gap: 8px; margin-bottom: 1px; }
.who b { font-weight: 600; }
.who small { font: 11px var(--mono); color: var(--fog); }
.who time { font-size: 12px; color: var(--fog); }
.mod { color: var(--mod); }
.you { font-size: 10px; font-weight: 600; color: var(--fog); background: var(--lift); padding: 0 5px; border-radius: 4px; line-height: 16px; }
.quote { font-size: 12.5px; color: var(--fog) !important; margin-bottom: 3px; }
.quote b { font-weight: 600; margin-right: 4px; }
.mentioned { background: rgb(255 130 105 / 6%); }
.mentioned::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--coral); }
.mention { background: color-mix(in srgb, currentColor 16%, transparent); border-radius: 4px; padding: 0 3px; font-weight: 500; }
.composer { flex: none; margin: 0 18px 16px; height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--fog); }
.composer .icon { font-size: 17px; }

.people { width: 232px; flex: none; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.people .label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; color: var(--fog); margin: 10px 0 6px; }
.people .label:first-child { margin-top: 0; }
.people .rule { height: 1px; background: var(--line); margin: 12px 0 4px; }
.person { display: flex; align-items: center; gap: 10px; height: 34px; font-weight: 500; }
.person .face { width: 26px; height: 26px; }
.person .crown { color: #ffcf5c; font-size: 13px; }
.person.big { height: auto; }
.person.big .face { width: 36px; height: 36px; }
.person.big > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.person.big small { color: var(--fog); font-size: 12px; font-weight: 400; }
.person.big .icon { color: var(--fog); font-size: 14px; }

/* --- Features: words on one side, the painting on the other, a piece of the app over its corner. */

.features { padding-top: clamp(96px, 12vw, 160px); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(48px, 7vw, 96px) 0; }
.feature h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
.words p { margin-top: 18px; max-width: 30em; font-size: 17px; color: var(--plate); text-wrap: pretty; }

.visual { position: relative; padding: 0 0 56px 40px; }
.visual > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; box-shadow: 0 0 0 1px rgb(255 255 255 / 6%); }
.visual > .well { position: absolute; left: 0; bottom: 0; width: min(78%, 440px); box-shadow: 0 0 0 1px rgb(255 255 255 / 4%), 0 28px 70px rgb(0 0 0 / 60%); }
.feature:nth-child(even) .words { order: 2; }
.feature:nth-child(even) .visual { padding: 0 40px 56px 0; }
.feature:nth-child(even) .visual > .well { left: auto; right: 0; }

.well { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.4; color: #e9e9ee; overflow: hidden; }
.well .row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.well .row + .row { border-top: 1px solid var(--line); }
.well .grow { flex: 1; display: flex; flex-direction: column; }
.well b { font-weight: 600; }
.well small { color: var(--fog); font-size: 12.5px; }
.selves .row { gap: 12px; }
.selves .where { width: 112px; color: var(--fog); font-weight: 500; }
.selves .face { width: 30px; height: 30px; }
.selves small { font-family: var(--mono); font-size: 11px; }
.tile.small { width: 34px; height: 34px; border-radius: 10px; }
.tile.small b { font-size: 15px; }
.chip-button { font-size: 13px; font-weight: 500; color: var(--snow); border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; }

.sealed { padding-bottom: 8px; }
.sealed .room-head { height: 48px; }
.encrypted { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; color: var(--live); font-size: 12.5px; font-weight: 500; }
.encrypted .icon { font-size: 13px; }
.sealed .msg { padding: 12px 18px 4px; }
.plain { font-variant-numeric: tabular-nums; min-height: 1.4em; }

.voice { padding: 10px 8px 8px; }
.voice .in-room { padding-left: 34px; height: 32px; }
.voice .in-room .face { width: 22px; height: 22px; }
.voice .face.talking { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--live); }
.callbar { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--sheet); }
.callbar .state { display: flex; flex-direction: column; line-height: 1.3; }
.callbar .state b { color: var(--live); font-size: 13px; }
.controls { display: flex; gap: 6px; }
.controls i { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--lift); color: var(--snow); font-size: 15px; }
.controls i.leave { color: var(--danger); }

/* --- What's new: the workshop, the notes on its dark side ----------------------------- */

.new-band { position: relative; isolation: isolate; margin-top: clamp(48px, 6vw, 96px); }
.band-art { position: absolute; left: 0; top: -6%; z-index: -2; width: 100%; height: 112%; object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgb(0 0 0 / 45%) 18%, #000 34%, #000 58%, rgb(0 0 0 / 30%) 76%, transparent 90%);
  mask-image: linear-gradient(180deg, transparent 0%, rgb(0 0 0 / 45%) 18%, #000 34%, #000 58%, rgb(0 0 0 / 30%) 76%, transparent 90%); }
.new-band::before, .last::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.new-band .band-art { object-position: 85% 50%; }
.new-band::before { background:
    linear-gradient(90deg, rgb(12 10 14 / 70%) 0%, rgb(12 10 14 / 40%) 34%, transparent 52%); }
.new { display: flex; justify-content: flex-start; padding-top: clamp(96px, 12vw, 180px); padding-bottom: clamp(96px, 12vw, 180px); }
.release { width: min(480px, 42vw); }
.new ul { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; font-size: 16px; color: var(--plate); }
.version { font: 600 15px/1 var(--text); color: var(--coral); }
.version span { color: var(--fog); font-weight: 400; margin-left: 10px; }
.new h2 { margin-top: 14px; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.new ul b { color: var(--snow); font-weight: 600; }
.earlier { margin: 36px 0 0; padding: 0; list-style: none; color: var(--fog); font-size: 15px; }
.earlier li { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.earlier li:last-child { border-bottom: 1px solid var(--line); }
.earlier span { width: 48px; font-variant-numeric: tabular-nums; }

/* --- The last word: walking home -------------------------------------------------------- */

.last { position: relative; isolation: isolate; margin-top: clamp(140px, 16vw, 260px); min-height: clamp(460px, 52vw, 760px); display: flex; align-items: flex-start; padding-top: clamp(72px, 9vw, 140px); }
.last .band-art { object-position: 50% 70%; }
.last::before { background:
    radial-gradient(ellipse 60% 50% at 25% 30%, rgb(12 10 14 / 55%), transparent 70%); }
.last-body { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.last h2 { max-width: 12em; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; text-shadow: 0 2px 30px rgb(12 10 14 / 60%); }

.foot { display: flex; align-items: center; gap: 32px; padding-top: 32px; padding-bottom: 40px; font-size: 14px; color: var(--fog); }
.foot nav { display: flex; gap: 24px; margin-left: auto; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--snow); }
.foot .mark { font-size: 18px; }
.foot .mark svg { width: 28px; height: 26px; }

/* --- Narrow ------------------------------------------------------------------------------ */

@media (max-width: 900px) {
  /* The room sits under the words, framed on the beanbag. */
  .hero { min-height: 0; padding-bottom: 0; }
  .hero-art { position: relative; order: 3; z-index: 0; height: auto; aspect-ratio: 1 / 1; object-position: 74% 50%; margin-top: 12px; }
  .hero::before { display: none; }
  .hero-art { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 72%, transparent 100%); }
  .hero-body { padding-bottom: 0; }
  .pitch { max-width: 600px; }
  .product { margin-top: -90px; }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .words { order: 0; }
  .visual, .feature:nth-child(even) .visual { padding: 0; }
  .visual > .well, .feature:nth-child(even) .visual > .well { position: relative; left: auto; right: auto; width: auto; margin: -48px 16px 0; }
  /* The bands stack: picture, then words, the picture's edges melting into the page. */
  .band-art { top: auto; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 100%); }
  .new-band::before, .last::before { display: none; }
  .new-band .band-art { position: relative; height: auto; aspect-ratio: 4 / 3; object-position: 78% 50%; }
  .new { padding-top: 0; margin-top: -24px; }
  .release { width: auto; }
  .last { min-height: 0; display: flex; flex-direction: column; padding-top: 0; }
  .last .band-art { position: relative; height: auto; aspect-ratio: 4 / 3; object-position: 70% 60%; }
  .last-body { margin-top: -24px; padding-bottom: 48px; }
}
@media (max-width: 640px) {
  .selves .where { width: auto; flex: 1; }
  .selves .row b { white-space: nowrap; }
  .selves small { display: none; }
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .foot { flex-wrap: wrap; }
  .foot nav { margin-left: 0; order: 3; width: 100%; }
}
