/* Sessions landing page. Dark only, matching the app. */
:root {
  --bg: #121214;
  --panel: #19191c;
  --panel-2: #202024;
  --line: #2c2c32;
  --text: #ececef;
  --muted: #a0a0aa;
  --faint: #6f6f7a;
  --accent: #d97857;
  --accent-ink: #1a0f0a;
  --ok: #7fbf8f;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--panel); padding: 8px 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

/* Header and footer */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top { border-bottom: 1px solid var(--line); }
.top .bar { height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; display: block; }
nav { display: flex; gap: 4px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: 6px; }
nav a:hover, nav a[aria-current] { color: var(--text); }
.foot { border-top: 1px solid var(--line); margin-top: 96px; color: var(--faint); font-size: 15px; }
.foot .bar { min-height: 72px; flex-wrap: wrap; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 40px; }
.eyebrow { font: 13px/1.4 var(--mono); color: var(--muted); margin: 0 0 20px; display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 2px; background: var(--ok); flex: none; }
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 700; text-wrap: balance; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-weight: 600; font-size: 16px; text-decoration: none;
}
.btn:hover { border-color: #44444c; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn[aria-disabled="true"] { background: transparent; color: var(--muted); border: 1px dashed #4a4a52; cursor: default; filter: none; }
.fine { font-size: 14.5px; color: var(--faint); margin: 0; }
.fine a { color: var(--muted); }

/* Phone mock, drawn in CSS */
.phones { position: relative; height: 520px; width: 420px; justify-self: end; }
.phone {
  position: absolute; width: 250px; height: 500px; padding: 7px;
  border-radius: 40px; background: #0a0a0b; border: 1px solid #3a3a42;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.phone.back { left: 0; top: 0; }
.phone.front { right: 0; top: 20px; }
.screen { position: relative; height: 100%; border-radius: 33px; background: var(--bg); overflow: hidden; padding: 40px 14px 0; font-size: 11px; line-height: 1.35; }
.island { position: absolute; top: 9px; left: 50%; width: 70px; height: 20px; margin-left: -35px; border-radius: 10px; background: #000; }
.ui-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 10px; }
.host { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 11px; color: var(--text); padding: 8px 0 5px; }
.host i { width: 6px; height: 6px; border-radius: 2px; background: var(--ok); }
.host b { margin-left: auto; font: 10px var(--mono); color: var(--faint); font-weight: 400; }
.row { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-top: 1px solid #222226; }
.glyph { flex: none; width: 24px; height: 24px; border-radius: 5px; background: rgba(217, 120, 87, .18); color: var(--accent); display: grid; place-items: center; font: 600 9px var(--mono); }
.row div { min-width: 0; flex: 1; }
.row strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row em { display: block; font-style: normal; color: var(--faint); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row time { font: 10px var(--mono); color: var(--faint); }
.tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid #222226; background: rgba(18, 18, 20, .92); font-size: 9.5px; color: var(--faint); }
.tabs .on { color: var(--accent); font-weight: 600; }
.screen.term { padding: 34px 0 0; background: #121214; }
.term-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 8px; font-size: 11px; color: var(--muted); border-bottom: 1px solid #222226; }
.term-bar strong { color: var(--text); font-weight: 600; }
.tty { margin: 0; padding: 10px 10px 0; font: 8.6px/1.5 var(--mono); color: #d6d6dc; white-space: pre; overflow: hidden; }
.tty .dim { color: var(--faint); }
.tty .acc { color: var(--accent); }
.tty .ok { color: var(--ok); }
.tty .add { color: #9fd3ab; }
.prompt { position: absolute; left: 10px; right: 10px; bottom: 24px; padding: 7px 9px; border: 1px solid #3a3a42; border-radius: 6px; font: 8.6px/1.5 var(--mono); }
.prompt .acc { color: var(--accent); }
.caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -0.2em; background: #e8e8ec; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
.sec { font: 13px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 88px 0 24px; font-weight: 500; }
.sec::before { content: "# "; color: var(--accent); }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.features li { background: var(--bg); padding: 24px; }
.features h3, .steps h3, .plan h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.features p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.steps li { counter-increment: step; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px 20px 64px; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 28px; height: 28px; border-radius: 6px; background: rgba(217, 120, 87, .16); color: var(--accent); display: grid; place-items: center; font: 600 14px var(--mono); }
.steps p { margin: 0 0 10px; color: var(--muted); font-size: 15.5px; }
.steps li > :last-child { margin-bottom: 0; }
.after { margin: 18px 0 0; font-size: 15.5px; }

.code { display: flex; align-items: stretch; background: #0c0c0e; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 0 0 12px; }
.code code { flex: 1; min-width: 0; padding: 12px 14px; font: 14px/1.5 var(--mono); color: var(--text); white-space: nowrap; overflow-x: auto; }
.code code::before { content: "$ "; color: var(--accent); }
.code button { flex: none; border: 0; border-left: 1px solid var(--line); background: var(--panel); color: var(--muted); font: 600 13px var(--sans); padding: 0 14px; cursor: pointer; min-width: 68px; }
.code button:hover { color: var(--text); }
html:not(.js) .code button { display: none; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.plan.best { border-color: var(--accent); }
.price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0 14px; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 15.5px; }
.plan li { padding: 5px 0 5px 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }

/* Text pages */
.doc { padding-top: 56px; }
.doc h1 { font-size: clamp(30px, 4.6vw, 42px); margin-bottom: 14px; }
.doc .wrap > * { min-width: 0; }
.doc h2 { font-size: 20px; letter-spacing: -0.01em; margin: 40px 0 10px; }
.doc p, .doc li { color: #c4c4cc; }
.doc .lede { color: var(--muted); max-width: none; }
.doc ul { padding-left: 20px; margin: 0 0 16px; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--accent); }
.doc p > code, .doc li > code { font: 14.5px var(--mono); background: var(--panel-2); padding: 2px 6px; border-radius: 4px; color: var(--text); }
.meta { font: 13px var(--mono); color: var(--faint); margin: 0 0 20px; }
.contact { margin: 0 0 8px; }
html:not(.js) .contact { display: none; }

/* Without JavaScript every section is visible; separate them. */
html:not(.js) .page + .page { border-top: 1px solid var(--line); margin-top: 72px; }
html:not(.js) .page[data-route="*"] { display: none; }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 48px; }
  .phones { justify-self: center; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top .bar { height: 54px; }
  nav a { padding: 8px 7px; font-size: 14px; }
  .lede { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; }
  .features { grid-template-columns: 1fr; }
  .features li { padding: 20px; }
  .plans { grid-template-columns: 1fr; }
  .sec { margin-top: 64px; }
  .steps li { padding: 58px 16px 18px; }
  .steps li::before { left: 16px; top: 16px; }
  .code code { font-size: 13px; }
  .foot { margin-top: 64px; }
}
/* The two phones overlap more as the screen narrows, so both always fit. */
@media (max-width: 460px) {
  .phones { width: 100%; max-width: 420px; height: 470px; }
  .phone { width: 224px; height: 448px; border-radius: 36px; }
  .screen { border-radius: 29px; }
  .tty { font-size: 7.7px; }
}
