/*
 * xonito.com landing page (D77): the app's look (D62), dark with red and yellow, the doodle wallpaper and the mark.
 * Served under a strict CSP (no inline scripts or styles), like the admin panel. No scripts at all.
 */
@font-face { font-family: 'Inter'; src: url('/fonts/inter_regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter_semibold.ttf') format('truetype'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope_extrabold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --bg: #0B0B0D; --surface: #141417; --surface-2: #1C1C20; --surface-3: #26262B;
  --divider: #2D2D33; --divider-2: #3E3E45;
  --text: #F3F1EC; --text-2: #D8D5CF; --muted: #A29E97; --faint: #6F6B65;
  --red: #D9262E; --yellow: #FFC233; --on-yellow: #1A1300;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --head: 'Manrope', 'Inter', system-ui, sans-serif;
  /* The app's doodles (the admin panel's wallpaper), a little stronger than behind the panel's lists. */
  --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' opacity='0.11'%3E%3Cpath d='M4 10h32a4 4 0 0 1 4 4v20a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V14a4 4 0 0 1 4-4zM14 10 8 2M26 10l6-8M12 44h16' transform='translate(16 22) rotate(-8)' stroke='%23F2EEE6'/%3E%3Cpath d='M16 0a16 16 0 1 1 0 32a16 16 0 1 1 0-32zM12 9l11 7-11 7z' transform='translate(92 62)' stroke='%23FFC233'/%3E%3Cpath d='M12 0l3.5 7.6 8.3.9-6.2 5.6 1.8 8.2L12 18.1 4.6 22.3l1.8-8.2L.2 8.5l8.3-.9z' transform='translate(28 116) rotate(10)' stroke='%23FFC233'/%3E%3Cpath d='M4 4a24 24 0 0 0 26 26M4 4l26 26M17 17l9-9M27 6a2.5 2.5 0 1 0 .1 0M12 31l-6 10h20' transform='translate(150 108)' stroke='%23F2EEE6'/%3E%3Cpath d='M0 6c6-8 12 8 18 0s12 8 18 0' transform='translate(58 10)' stroke='%23E5383B'/%3E%3Cpath d='M0 6c6-8 12 8 18 0s12 8 18 0' transform='translate(128 180) rotate(-20)' stroke='%23FFC233'/%3E%3Cpath d='M5 0v10M0 5h10' transform='translate(70 106)' stroke='%23E5383B'/%3E%3Cpath d='M4 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4zM8 6a2 2 0 1 0 .1 0M4 17h8M4 23h8M4 29h8' transform='translate(146 12) rotate(16)' stroke='%23E5383B'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.5 var(--font); color: var(--text); background-color: var(--bg); -webkit-font-smoothing: antialiased;
}
.doodle { background-image: var(--doodle); background-size: 220px 220px; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.muted { color: var(--muted); }

/* ---------- top bar ---------- */
.top { padding: 20px 24px; max-width: 1040px; width: 100%; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; display: block; }
.brand-word { font: 800 22px/1 var(--head); letter-spacing: -.02em; }

/* ---------- hero: a small TV on air, the line, what Xonito is ---------- */
.page { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 8px 24px 48px; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 0 40px; }
.tv { position: relative; width: 240px; margin-bottom: 34px; }
.tv-screen {
  height: 140px; border-radius: 20px; border: 9px solid var(--surface-3); background: var(--surface-2);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
/* Colour bars, the app's sign-in TV (D75). */
.tv-screen::before {
  content: ''; position: absolute; inset: 0; opacity: .85;
  background: linear-gradient(90deg, #C0392B 0 14%, #E89A0C 14% 28%, #FFC233 28% 42%, #1E9E5A 42% 57%, #13877A 57% 71%, #2D6CDF 71% 85%, #C2185B 85%);
}
.tv-screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 4px);
}
.tv-mark { position: relative; z-index: 1; width: 64px; height: 64px; display: block; border-radius: 14px; }
.tv-stand { width: 76px; height: 10px; margin: 0 auto; background: var(--surface-3); border-radius: 0 0 8px 8px; }
.onair {
  position: absolute; top: -10px; right: -14px; display: flex; align-items: center; gap: 6px;
  color: #fff; background: var(--red); padding: 6px 9px; border-radius: 6px;
  font: 700 11px/1 var(--font); letter-spacing: .1em;
}
.onair::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

h1, h2 { margin: 0; font-family: var(--head); font-weight: 800; }
h1 { font-size: 48px; line-height: 1.08; letter-spacing: -.03em; max-width: 820px; }
.lede { margin: 18px 0 0; max-width: 560px; font-size: 18px; color: var(--text-2); }
.invite {
  margin: 18px 0 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--divider-2); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--yellow);
}
.invite::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }

/* ---------- the two ways to install ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; margin: 0 auto; }
.card {
  background: var(--surface); border: 1px solid var(--divider); border-radius: 22px; padding: 24px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.eyebrow { font: 700 11.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card h2 { font-size: 22px; letter-spacing: -.01em; margin: 10px 0 8px; }
.card p { margin: 0 0 20px; font-size: 15px; }
.btn {
  margin-top: auto; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px;
  border-radius: 999px; background: var(--red); color: #fff; text-decoration: none;
  font: 700 16px/1 var(--font);
}
.btn:hover { background: #E5383B; }
.btn-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.steps b { color: var(--text); }
.steps .num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--on-yellow); font: 800 13px/1 var(--head);
}
.steps .code {
  font-family: var(--head); font-weight: 800; color: var(--yellow); background: var(--surface-2);
  border: 1px solid var(--divider-2); border-radius: 8px; padding: 2px 8px; white-space: nowrap;
}

/* ---------- footer ---------- */
.foot {
  padding: 22px 24px 28px; text-align: center; font-size: 14px; color: var(--muted);
  border-top: 1px solid var(--divider); background: rgba(11, 11, 13, .7);
}

/* ---------- phones ---------- */
@media (max-width: 720px) {
  .top { padding: 16px; }
  .page { padding: 0 16px 36px; }
  .hero { padding: 20px 0 30px; }
  .tv { width: 200px; margin-bottom: 28px; }
  .tv-screen { height: 116px; border-width: 8px; }
  .tv-mark { width: 54px; height: 54px; }
  h1 { font-size: 34px; }
  .lede { font-size: 16px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 20px; }
  .btn { width: 100%; justify-content: center; }
}
