/* DayBoard website: clean layer.
   Loaded after site.css on every page. A near-white canvas and one sans-serif family, plus the
   homepage's centered hero (with the launch video's slot) and the Beta 11 at a glance card.
   site.css, site.js, theme.js and the inline head script are unchanged, so production's motion,
   scroll reveals and tabs keep running. */

:root {
  color-scheme: light;
  --paper: #fbfbfa;
  --paper-raised: #ffffff;
  --paper-sunk: #f3f3f1;
  --ink: #1d1c1a;
  --ink-soft: #55534f;
  --ink-faint: #6f6d68;
  --rule: #e7e6e2;
  --rule-strong: #d6d4cf;
  --button: #1d1c1a;
  --button-text: #ffffff;
  --shadow-window:
    0 1px 2px rgb(0 0 0 / 0.04), 0 18px 40px -18px rgb(0 0 0 / 0.16),
    0 48px 96px -48px rgb(0 0 0 / 0.18);
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.05), 0 8px 20px -12px rgb(0 0 0 / 0.14);
  --display: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111110;
  --paper-raised: #1a1a19;
  --paper-sunk: #0b0b0a;
  --ink: #f2f1ee;
  --ink-soft: #b1afa9;
  --ink-faint: #8f8d87;
  --rule: #272725;
  --rule-strong: #383734;
  --button: #f2f1ee;
  --button-text: #111110;
  --shadow-window: 0 0 0 1px rgb(255 255 255 / 0.06), 0 30px 70px -24px rgb(0 0 0 / 0.75);
  --shadow-card: 0 0 0 1px rgb(255 255 255 / 0.04), 0 12px 28px -14px rgb(0 0 0 / 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: #111110;
    --paper-raised: #1a1a19;
    --paper-sunk: #0b0b0a;
    --ink: #f2f1ee;
    --ink-soft: #b1afa9;
    --ink-faint: #8f8d87;
    --rule: #272725;
    --rule-strong: #383734;
    --button: #f2f1ee;
    --button-text: #111110;
    --shadow-window: 0 0 0 1px rgb(255 255 255 / 0.06), 0 30px 70px -24px rgb(0 0 0 / 0.75);
    --shadow-card: 0 0 0 1px rgb(255 255 255 / 0.04), 0 12px 28px -14px rgb(0 0 0 / 0.6);
  }
}

/* ── Site-wide ─────────────────────────────────────── */
body::before {
  content: none;
}

h1,
h2,
h3 {
  font-variation-settings: normal;
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h3 {
  letter-spacing: -0.015em;
}

h1 em,
h2 em {
  font-style: normal;
  font-weight: inherit;
}

.brand {
  font-weight: 680;
  letter-spacing: -0.025em;
}

.button {
  border-radius: 12px;
}

.nav .button {
  border-radius: 10px;
}

.button-quiet {
  background: var(--paper-raised);
  border-color: var(--rule-strong);
}

.button-quiet:hover {
  background: var(--paper-sunk);
  box-shadow: none;
}

.pill {
  border-color: var(--rule);
}

.signup-row {
  border-radius: 14px;
}

.cta {
  border: 1px solid var(--rule);
  border-radius: 24px;
  box-shadow: none;
}

.faq-list summary {
  font-size: 1.12rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.page-head h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
  letter-spacing: -0.035em;
}

/* ── Homepage ──────────────────────────────────────── */
.c-home .section {
  padding: 96px 0;
}

.c-home .roadmap .section-head {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.c-home .section-head h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.c-home .roadmap > .wrap {
  padding-top: 0;
  border-top: 0;
}

.c-home .roadmap-note {
  text-align: center;
}

.c-home .site-footer {
  margin-top: 0;
}

.c-hero {
  padding: 36px 0 40px;
  overflow: clip;
}

.c-hero-copy {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 860px;
  text-align: center;
}

.c-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 550;
}

.c-hero h1 {
  max-width: 14ch;
  font-size: 3.5rem;
  letter-spacing: 0;
  line-height: 1.05;
}

.c-lead {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.5;
}

.c-hero .signup {
  margin-inline: auto;
  text-align: left;
}

.c-hero .signup-note,
.c-hero .signup-status {
  text-align: center;
}

.c-access {
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.c-video {
  max-width: 1000px;
  margin: 8px auto 0;
}

/* Beta 11 at a glance, in place of the pricing section */
.c-compat {
  max-width: 720px;
  margin-inline: auto;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-card);
}

.c-compat h2 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

.c-compat dl {
  display: grid;
  margin: 0;
}

.c-compat dl > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--rule);
}

.c-compat dt {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.c-compat dd {
  margin: 0;
  font-size: 0.95rem;
}

.c-compat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ── Responsive ─────────────────────────────────────── */
/* site.css stacks feature rows at 960px, but .feature.flip's own columns outrank that rule, so
   flipped rows stayed side by side on phones. */
@media (max-width: 960px) {
  .feature.flip {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .c-home .section {
    padding: 72px 0;
  }
  .c-hero {
    padding-top: 28px;
  }
  .c-hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .c-compat dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* Launch video in the hero window. The pinned notes step aside once it plays. */
.c-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #111;
}

/* Over the poster's empty corners, clear of its cards and the player's controls. */
.c-video .note-1 {
  top: 5%;
}
.c-video .note-3 {
  top: 72%;
  bottom: auto;
}

.board.is-playing .note {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

/* Shown while the hero video autoplays muted. */
.c-unmute {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: rgb(17 17 16 / 0.72);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.c-unmute:hover {
  background: rgb(17 17 16 / 0.88);
}
.c-unmute:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.c-unmute[hidden] {
  display: none;
}
@media (max-width: 480px) {
  .c-unmute {
    top: 8px;
    right: 8px;
    padding: 5px 10px;
    font-size: 0.78rem;
  }
}

.nav {
  position: relative;
}
.mobile-menu {
  display: none;
}
.mobile-menu > summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--paper-raised);
  cursor: pointer;
  list-style: none;
}
.mobile-menu > summary::-webkit-details-marker {
  display: none;
}
.menu-icon {
  display: grid;
  gap: 5px;
  width: 20px;
}
.menu-icon > span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.mobile-menu[open] .menu-icon > span:first-child {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu[open] .menu-icon > span:nth-child(2) {
  opacity: 0;
}
.mobile-menu[open] .menu-icon > span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}
.menu-panel {
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100dvh - 88px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-window);
}
.menu-caption {
  display: block;
  padding: 0 10px 10px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}
.menu-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 8px;
}
.menu-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.menu-panel a:hover {
  background: var(--paper-sunk);
}
.menu-panel .menu-join {
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  font-weight: 600;
}

@media (max-width: 1023px) {
  html {
    --nav-offset: 82px;
  }
  .nav {
    min-height: 64px;
    padding-block: 10px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .nav > .nav-links,
  .nav > .button {
    display: none;
  }
  .nav > .theme-toggle {
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
  }
  .nav .theme-label {
    display: none;
  }
  .mobile-menu {
    display: block;
    flex: none;
  }
}
@media (max-width: 720px) {
  .c-hero {
    padding-top: 24px;
  }
  .c-hero-copy {
    gap: 14px;
  }
  .c-hero h1 {
    font-size: 2.25rem;
  }
  .c-lead {
    font-size: 1rem;
    line-height: 1.5;
  }
  .c-badge {
    padding: 4px 0;
    border: 0;
    background: none;
    font-size: 0.72rem;
    gap: 0;
  }
  .c-badge .dots {
    display: none;
  }
}
