/* thesleepylabs.com: the Sleepy Manager / studio site. Brand: ../Branding/BRAND.md (night sea, lilac moonlight, Archivo). */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff') format('woff');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #07050d;
  --ink-2: #0e0a19;
  --ink-3: #171127;
  --line: #261c3d;
  --moon: #f3ecff;
  --mist: #b7a8d6;
  --lilac: #b794ff;
  --lilac-deep: #8b5cf6;
  --ember: #f5b65a;
  --discord: #1e1a2b;      /* the Discord-style panel in the hero */
  --red: #e5484d;
  --green: #2f9e62;
  --wrap: 1160px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ink); color: var(--moon); font: 400 17px/1.6 var(--font); }
img { max-width: 100%; }
a { color: var(--lilac); }
a:hover { color: var(--moon); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .9em; background: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--moon); }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 8px; }
.ic { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--moon); color: #12081f; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(7,5,13,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--moon); text-decoration: none; margin-right: auto; }
.brand img { border-radius: 9px; display: block; }
.brand span { font-weight: 800; font-size: 17px; font-stretch: 112%; letter-spacing: -.01em; white-space: nowrap; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--mist); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--moon); }
.nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--lilac); padding-bottom: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 24px; border-radius: 12px; font: 700 16px var(--font); text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--lilac); color: #12081f; }
.btn-primary:hover { background: var(--moon); color: #12081f; }
.btn-ghost { border: 1px solid #3a2c5c; color: var(--moon); }
.btn-ghost:hover { border-color: var(--lilac); color: var(--moon); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }

/* Hero */
.hero { position: relative; padding: 76px 0 0; overflow: hidden;
  background: radial-gradient(60% 50% at 78% 18%, rgba(139,92,246,.20), transparent 70%), var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; position: relative; z-index: 2; }
.product { display: flex; align-items: center; gap: 10px; color: var(--lilac); font-weight: 700; font-size: 15.5px; }
.product img { border-radius: 7px; }
h1 { margin-top: 22px; font-weight: 800; font-stretch: 125%; letter-spacing: -.025em; line-height: .98; font-size: clamp(40px, 6.2vw, 78px); text-wrap: balance; }
.lede { margin-top: 24px; color: var(--mist); font-size: 19px; line-height: 1.55; max-width: 31em; }
.ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 16px; color: var(--mist); font-size: 14.5px; }

/* The raid demo: a Discord window, drawn like the dashboard's setup-wizard previews */
.dc-win { margin: 0; border-radius: 14px; overflow: hidden; background: #313338; color: #dbdee1; border: 1px solid rgba(183,148,255,.22);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 40px 90px -30px rgba(139,92,246,.55), 0 18px 40px rgba(0,0,0,.45);
  font: 15px/1.375 "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.dc-win-head { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid #1f2023; color: #f2f3f5; font-weight: 600; }
.dc-hash { color: #80848e; font-size: 20px; line-height: 1; }
.dc-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #b5bac1; font-size: 12.5px; font-weight: 500; }
.dc-live i { width: 7px; height: 7px; border-radius: 50%; background: #23a55a; box-shadow: 0 0 0 0 rgba(35,165,90,.5); animation: live 2s infinite; }
@keyframes live { 70%, 100% { box-shadow: 0 0 0 6px rgba(35,165,90,0); } }
.dc-win-body { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 16px; height: 430px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent 0, #000 56px); mask-image: linear-gradient(transparent 0, #000 56px); }
.dc-win-body > * { flex: none; }
.dc-win figcaption { padding: 10px 16px 12px; background: #2b2d31; color: #b5bac1; font-size: 13px; }
.dc-join { display: flex; align-items: center; gap: 12px; padding-left: 12px; color: #b5bac1; font-size: 14.5px; }
.dc-join svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #23a55a; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dc-join b { color: #f2f3f5; font-weight: 600; }
.dc-join .dc-time { margin-left: 2px; }
.dc-burst { align-self: flex-start; margin-left: 42px; padding: 3px 10px; border-radius: 999px; background: rgba(242,63,67,.14); color: #ff8a8d; font-size: 13px; font-weight: 600; }
.dc-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; margin-top: 6px; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; display: block; }
.dc-avatar-blank { display: grid; place-items: center; background: #5865f2; color: #fff; font-size: 13px; font-weight: 700; }
.dc-msg-main { min-width: 0; display: grid; gap: 5px; }
.dc-msg-head { display: flex; align-items: center; gap: 6px; }
.dc-msg-head strong { color: #f2f3f5; font-weight: 600; }
.dc-app { padding: 0 4px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; line-height: 15px; }
.dc-time { color: #949ba4; font-size: 12px; }
.dc-content { overflow-wrap: anywhere; }
.dc-embed-box { display: grid; gap: 7px; max-width: 432px; padding: 10px 14px 12px 12px; border-left: 4px solid #8b5cf6; border-radius: 4px; background: #2b2d31; font-size: 14px; }
.dc-embed-box.raid-alert { border-left-color: #f23f43; }
.dc-embed-box.all-clear { border-left-color: #23a55a; }
.dc-embed-title { color: #f2f3f5; font-weight: 700; }
.dc-embed-row { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.dc-embed-fname { color: #f2f3f5; font-weight: 600; font-size: 13px; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px; }
.dc-button { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 4px; background: #4e5058; color: #fff; font-size: 14px; font-weight: 500; transition: filter .15s, opacity .3s; }
.dc-button.red { background: #da373c; }
.dc-button.ok { background: #248046; }
.dc-button.pressed { filter: brightness(1.25); }
.dc-buttons.done .dc-button:not(.pressed) { opacity: .45; }
.dc-cursor { position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 3; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.dc-typing { display: flex; align-items: center; gap: 8px; padding-left: 54px; color: #b5bac1; font-size: 13px; }
.dc-typing strong { color: #dbdee1; }
.dc-dots { display: inline-flex; gap: 3px; }
.dc-dots i { width: 6px; height: 6px; border-radius: 50%; background: #b5bac1; animation: typing-dot 1s ease-in-out infinite; }
.dc-dots i:nth-child(2) { animation-delay: .15s; } .dc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.hero-grid .dc-win { position: relative; }

/* The night sea along the bottom of the hero */
.horizon { position: relative; height: 150px; margin-top: 72px;
  background: linear-gradient(180deg, #120c26 0%, #0b0818 55%, var(--ink) 100%);
  border-top: 1px solid rgba(183,148,255,.28); }
.moonpath { position: absolute; left: 50%; top: 0; width: min(560px, 80%); height: 100%; transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, rgba(243,236,255,.20) 0 2px, transparent 2px 11px);
  -webkit-mask-image: radial-gradient(50% 100% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(50% 100% at 50% 0%, #000 30%, transparent 75%); }


/* Sections */
.band { padding: 104px 0; border-top: 1px solid var(--line); }
.hero + .band { border-top: 0; padding-top: 40px; }
h2 { font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; line-height: 1.04; font-size: clamp(32px, 4.4vw, 54px); }
.sub { margin-top: 16px; color: var(--mist); font-size: 18px; max-width: 36em; }
h3 { font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; font-size: 26px; line-height: 1.15; }

.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; margin-top: 72px; }
.feature.flip .feature-text { order: 2; }
.feature-text p { margin-top: 16px; color: var(--mist); }
.ticks { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 14px; color: var(--mist); }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--lilac); border-bottom: 2.5px solid var(--lilac); transform: rotate(-45deg); }
.ticks b { color: var(--moon); }
.ticks.small { gap: 10px; font-size: 16px; }

.feature-art { background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mini-row:last-child { border-bottom: 0; }
.mini-row em { margin-left: auto; font-style: normal; font-weight: 400; color: var(--mist); font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.red { background: var(--red); } .dot.amber { background: var(--ember); } .dot.lilac { background: var(--lilac); }

.case-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.case-top b { font-stretch: 112%; font-size: 19px; }
.pill { background: rgba(245,182,90,.14); color: var(--ember); border-radius: 999px; padding: 3px 12px; font-size: 13.5px; font-weight: 700; }
.art-case dl { display: grid; gap: 12px; padding-top: 14px; }
.art-case dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; font-size: 15.5px; }
.art-case dt { color: var(--mist); }

.art-undo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.art-undo p { width: 100%; color: var(--mist); }
.art-undo b { color: var(--moon); }
.timer { color: var(--mist); font-size: 14px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 48px; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--ink-2); }
.plan-free { border-color: rgba(183,148,255,.45); background: radial-gradient(90% 80% at 0% 0%, rgba(139,92,246,.16), transparent 70%), var(--ink-2); }
.plan h3 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.soon { font: 700 13px var(--font); color: var(--lilac); border: 1px solid rgba(183,148,255,.45); border-radius: 999px; padding: 3px 10px; letter-spacing: 0; }
.plan-line { margin-top: 6px; color: var(--mist); font-size: 15.5px; }
.keep { width: 100%; margin-top: 40px; border-collapse: collapse; font-size: 16px; }
.keep caption { text-align: left; color: var(--mist); font-size: 15px; padding-bottom: 12px; }
.keep th, .keep td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.keep thead th { color: var(--mist); font-weight: 600; font-size: 14.5px; }
.keep tbody th { font-weight: 600; }
.keep td { font-weight: 700; }
.note { margin-top: 18px; color: var(--mist); font-size: 15.5px; max-width: 46em; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--lilac); font-size: 26px; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--mist); max-width: 40em; }

/* More from us */
.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
.more-item { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--ink-2); color: var(--moon); text-decoration: none; transition: border-color .15s; }
.more-item:hover { border-color: var(--lilac); color: var(--moon); }
.more-item > img, .more-net { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 1px solid var(--line); }
.more-net { display: grid; place-items: center; background: radial-gradient(60% 70% at 50% 40%, rgba(139,92,246,.25), transparent 70%), #0b0818; }
.more-net img { border-radius: 18px; }
.more-body { display: grid; gap: 6px; padding: 22px 24px 24px; }
.more-body b { font-stretch: 112%; font-size: 21px; }
.more-body span { color: var(--mist); font-size: 15.5px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot p { margin-top: 12px; color: var(--mist); font-size: 14.5px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.foot ul a { color: var(--mist); text-decoration: none; }
.foot ul a:hover { color: var(--moon); }


/* Inner pages */
.band.page-top { border-top: 0; padding-top: 72px; }
.page-h1 { margin-top: 0; font-size: clamp(38px, 5.4vw, 66px); }
.highlights .hl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
.hl { display: grid; align-content: start; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--ink-2); color: var(--moon); text-decoration: none; transition: border-color .15s; }
.hl:hover { border-color: var(--lilac); color: var(--moon); }
.hl .ic { width: 28px; height: 28px; stroke: var(--lilac); }
.hl b { font-size: 19px; font-stretch: 112%; line-height: 1.2; }
.hl span { color: var(--mist); font-size: 15.5px; }
.strip { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.strip .ctas { margin-top: 0; }
.free-strip { background: radial-gradient(50% 120% at 85% 50%, rgba(139,92,246,.16), transparent 70%); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two-col h2 { font-size: clamp(28px, 3.4vw, 40px); }
.two-col .sub { font-size: 17px; }
code { font-family: inherit; font-weight: 700; color: var(--moon); background: #1b1430; border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.faq-side { position: sticky; top: 100px; }
.faq-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.faq-jump a { padding: 7px 14px; border: 1px solid #3a2c5c; border-radius: 999px; color: var(--mist); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.faq-jump a:hover { border-color: var(--lilac); color: var(--moon); }
.faq-group { font-size: 22px; font-stretch: 112%; color: var(--lilac); margin: 44px 0 6px; scroll-margin-top: 90px; }
.faq-group:first-child { margin-top: 0; }
.faq .faq-group + details { border-top: 1px solid var(--line); }
.about-text { max-width: 40em; margin-top: 24px; display: grid; gap: 16px; color: var(--mist); font-size: 18px; }
.more-h { margin-top: 72px; font-size: clamp(26px, 3vw, 36px); }
.foot-cta { margin-top: 18px; }

/* Privacy policy and terms */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { margin-top: 0; font-size: clamp(36px, 5vw, 56px); }
.legal .scope { margin-top: 14px; color: var(--lilac); font-weight: 600; }
.legal .updated { margin-top: 8px; color: var(--mist); font-size: 15px; }
.legal .summary { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); }
.legal .summary p:first-child, .legal .summary ul:first-child { margin-top: 0; }
.legal h2 { font-size: 24px; font-stretch: 112%; margin-top: 44px; scroll-margin-top: 90px; }
.legal h3 { font-size: 19px; margin-top: 26px; }
.legal p, .legal li { color: var(--mist); }
.legal p { margin-top: 14px; }
.legal ul, .legal ol { margin-top: 12px; padding-left: 22px; display: grid; gap: 8px; }
.legal b, .legal strong { color: var(--moon); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15.5px; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--mist); vertical-align: top; }
.legal th { color: var(--moon); }
.legal .table-wrap { overflow-x: auto; }

/* Simple text pages */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); }
.page h2 { font-size: 26px; font-stretch: 112%; margin-top: 40px; }
.page p, .page li { color: var(--mist); margin-top: 14px; }
.page .ctas { margin-top: 28px; }

/* Phones and small tablets */
@media (max-width: 900px) {
  .bar { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 12px; }
  .nav { order: 3; width: 100%; gap: 22px; padding: 12px 0 10px; overflow-x: auto; }
  .nav a[aria-current] { padding-bottom: 2px; }
  .highlights .hl-grid, .two-col { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .band.page-top, .legal { padding-top: 48px; }
  .hero { padding-top: 44px; }
  .hero-grid, .feature, .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-text { order: 0; }
  .feature { margin-top: 56px; }
  .plans, .more { grid-template-columns: 1fr; }
  .band { padding: 72px 0; }
  .horizon { height: 100px; margin-top: 48px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .bar { gap: 12px; }
  .brand span { font-size: 16px; }
  .btn { width: 100%; justify-content: center; }
  .btn-small { width: auto; }
  .dc-win-body { height: 400px; padding: 14px 12px; }
  .dc-msg { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .dc-avatar { width: 34px; height: 34px; }
  .dc-typing { padding-left: 44px; }
  .dc-burst { margin-left: 30px; }
  .dc-join { padding-left: 2px; gap: 10px; }
  .keep { font-size: 14.5px; }
  .keep th, .keep td { padding: 12px 6px; }
  .mini-row { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.dc-embed-foot { color: #b5bac1; font-size: 12px; margin-top: 8px; }
