:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --text: #111827;
  --panel: rgba(255, 255, 255, 0.789);
  --shadow: rgba(0, 0, 0, 0.05);
  --subtitle: #6a6a6a;
  --feature-bg: white;
  --feature-border: rgba(218, 218, 218, 0.2);
  --feature-subhead: rgb(168, 168, 168);
  --note-bg: color(srgb 0.9653 0.971 0.975);
  --note-border: color(srgb 0.82 0.89 0.95);
  --note-text: rgb(48, 68, 90);
  --nav-link: color(srgb 0.4851 0.4882 0.49);
  --footer-text: rgb(181, 181, 181);
  --footer-link: rgb(12, 97, 135);
  --footer-link-hover: rgb(57, 168, 217);
  --anchor: #b3b3b3;
  --anchor-hover: #111;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    system-ui, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  background-attachment: fixed;
  background-repeat: repeat;
  background-image: url("imgs/bg.jpg");
  background-size: 768px 512px;
  font-size: 1rem;
}

a {
  text-decoration: none;
}


main {
  background: var(--panel);
  width: auto;
  margin-left: 16px;
  margin-right: 16px;
  border-radius: 18px;
  padding-bottom: 18px;
  box-shadow: 0 10px 28px var(--shadow);    
  margin-top: 25px;
}

main .app-icon {
  max-width: 128px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

nav {
  text-align: right;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  margin-bottom: 8px;  
}

nav a {
  color: var(--nav-link);
  font-weight: 600;
}

h1 {
  font-weight: 400;
  text-align: center;
  margin:0;
  color: var(--text);
}

.subtitle {
  margin-top: 0;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 300px;
  color: var(--subtitle);
}


main .features {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px;
  display: block;
  background-color: var(--feature-bg);
}

main .featurs li {
  color: var(--subtitle);
}

main .features h2 {
  font-size: 1.2rem;
  font-weight: 200;
  border-bottom: 1px solid var(--feature-border);
}

main .features h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--feature-subhead);
}

main .features {
  font-size: 0.8em;  
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.feature-copy {
  flex: 1 1 280px;
}

.feature-copy h3 {
  margin-top: 0;
}

.feature-copy ul {
  margin-top: 6px;
}

.feature-media {
  position: relative;
  flex: 1 1 280px;
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px var(--shadow);
}

.feature-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: var(--shot-focus, center);
  background-repeat: no-repeat;
  transform: scale(1);
  transform-origin: var(--shot-focus, center);
  border-radius: inherit;
  backface-visibility: hidden;
  transition: transform 0.35s ease, background-position 0.35s ease;
}

.feature-media:hover::before {
  transform: scale(2);
}

.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--feature-border);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.feature-media:hover::after {
  opacity: 1;
}

.inbox-shot::before {
  background-image: url("imgs/l-inbox.png");
}

.sessions-shot::before {
  background-image: url("imgs/l-sessions.png");
}

.integration {
  margin-top: 16px;
  padding: 16px;
  background: var(--feature-bg);
  border-radius: 18px;
  box-shadow: 0 10px 28px var(--shadow);
  font-size: 0.8em;
}

.integration-header h2 {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 200;
  border-bottom: 1px solid var(--feature-border);
  padding-bottom: 4px;
}

.integration-header p {
  margin-top: 0;
  color: var(--subtitle);
}

.tabs {
  display: inline-flex;
  gap: 8px;
  border: 1px solid var(--feature-border);
  border-radius: 10px;
  padding: 4px;
  background: rgb(241, 241, 241);
  margin: 12px 0;
}

.tab {
  border: none;
  background: transparent;
  color: rgb(92, 92, 92);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab:hover {
  background: rgba(0, 0, 0, 0.05);
}

.tab.is-active {
  background: white;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--feature-border);
}

.tab-panels {
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.tab-panel pre {
  margin: 0;
  background: #000;
  color: #e5f2ff;
  padding: 12px;
  border-radius: 10px;
  overflow: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tab-panel code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85em;
}

/* keep our backgrounds while Prism handles tokens */
code[class*="language-"],
pre[class*="language-"] {
  background: #000 !important;
  color: inherit;
}

.note {
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--note-text);
 }

footer {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--footer-text);
  margin-top: 8px;
  margin-bottom: 24px;
}

footer a {
  color: var(--footer-link);
}

footer a:hover {
  color: var(--footer-link-hover);  
}



main.page {
  display: block;
  padding: 18px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: var(--panel);
  border-radius: 18px;
  box-shadow: 0 10px 28px var(--shadow);
}

main.page h2 {
  font-weight: 400;
  color: var(--text);
  border-bottom: 3px solid var(--feature-border);
  position: relative;
}

main.page p {
  color: var(--subtitle);
}

.meta {
  text-align: center;
}

.anchor-link {
  margin-right: 6px;
  text-decoration: none;
  color: var(--anchor);
  font-size: 0;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.anchor-link::after {
  content: "¶";
  font-size: 0.8em;
}

.anchor-link:hover {
  color: var(--anchor-hover);
}

main.page h2:hover .anchor-link {
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .tabs {
    background: var(--feature-bg);
    border-color: var(--feature-border);
  }

  .tab {
    color: rgb(154, 154, 154);
  }

  .tab:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .tab.is-active {
    background: #1f2530;
    border-color: var(--feature-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .inbox-shot::before {
    background-image: url("imgs/d-inbox.png");
  }
  .sessions-shot::before {
    background-image: url("imgs/d-sessions.png");
  }

  :root {
    --bg: #0f1116;
    --text: #f5f7fb;
    --panel: rgba(23, 26, 33, 1);
    --shadow: rgba(0, 0, 0, 0.35);
    --subtitle: #9aa3b5;
    --feature-bg: #141821;
    --feature-border: #1f2530;
    --feature-subhead: #9aa3b5;
    --note-bg: #1f2a35;
    --note-border: #2d3744;
    --note-text: #d8e0ea;
    --nav-link: #cfd6e0;
    --footer-text: #9aa3b5;
    --footer-link: #cfd6e0;
    --footer-link-hover: #f5f7fb;
    --anchor: #6b7585;
    --anchor-hover: #f5f7fb;
  }
  body {
    background: #0f1116;
    color: #e8e8e8;
  }

  nav a {
    color: #cfd6e0;
  }

  nav a:hover {
    color: #f5f7fb;
  }

  main {
    background: var(--panel);
    box-shadow: 0 14px 32px var(--shadow);
  }

  main .features {
    background: var(--feature-bg);
    color: var(--text);
  }

  main .features h2 {
    border-bottom-color: var(--feature-border);
    color: var(--text);
  }

  main .features h3 {
    color: var(--feature-subhead);
  }

  main.page {
    background: var(--panel);
    border-radius: 14px;
    box-shadow: 0 14px 32px var(--shadow);
  }
}
