/* Nightshift Lab site: frosted glass panels over a soft colour wash. Follows the visitor's light/dark setting. */
:root {
  color-scheme: light;
  --bg: #eef0f9; --ink: #151829; --muted: #535a74; --line: #161a3c1a;
  --glass: #ffffff8f; --glass-strong: #ffffffc2; --edge: #ffffffcc;
  --accent: #e23d62; --accent-2: #8a4dff; --link: #c8284f;
  --wash-1: #ff8fa8a6; --wash-2: #c9a2ffa6; --wash-3: #8fd9ff8c; --wash-4: #9ff0dc8c;
  --shadow: inset 0 1px 0 #ffffffd9, 0 10px 30px #2a2f6e14;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #090a16; --ink: #eef0ff; --muted: #a9afcb; --line: #ffffff1f;
    --glass: #ffffff0f; --glass-strong: #12142acc; --edge: #ffffff24;
    --accent: #ff5577; --accent-2: #a970ff; --link: #ff8aa1;
    --wash-1: #ff3d6a66; --wash-2: #8a4dff73; --wash-3: #3a5bff66; --wash-4: #10bfa94d;
    --shadow: inset 0 1px 0 #ffffff14, 0 18px 50px #00000059;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--ink); min-height: 100vh;
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: var(--bg); background-attachment: fixed;
  background-image:
    radial-gradient(44vw 44vw at 4% 2%, var(--wash-1), transparent 70%),
    radial-gradient(40vw 40vw at 98% 8%, var(--wash-2), transparent 70%),
    radial-gradient(50vw 42vw at 78% 100%, var(--wash-3), transparent 70%),
    radial-gradient(34vw 34vw at 14% 96%, var(--wash-4), transparent 70%);
}
a { color: var(--link); text-underline-offset: 3px; }

/* frosted surfaces */
.glass, header, .card, main.doc {
  background: var(--glass); border: 1px solid var(--edge); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, header, .card, main.doc { background: var(--glass-strong); }
}

/* header: a floating frosted bar */
header {
  position: sticky; top: 12px; z-index: 10; max-width: 880px; margin: 12px auto 0; width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
}
header img { width: 32px; height: 32px; border-radius: 9px; }
header > a { color: inherit; text-decoration: none; font-weight: 750; font-size: 18px; letter-spacing: -.01em; }
nav { margin-left: auto; display: flex; gap: 4px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 10px; }
nav a:hover, nav a[aria-current] { color: var(--ink); background: var(--glass); }

main, footer { max-width: 880px; margin: 0 auto; padding: 0 16px; }
main { padding-top: 28px; padding-bottom: 48px; }
main.doc { margin-top: 28px; width: calc(100% - 32px); padding: 8px 32px 32px; border-radius: 22px; }
h1 { font-size: 34px; line-height: 1.15; margin: 24px 0 12px; letter-spacing: -.02em; }
h2 { font-size: 20px; margin: 34px 0 8px; letter-spacing: -.01em; }
p, li { color: var(--ink); }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); font-size: 14px; }
code { background: var(--glass); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; font-size: .9em; }

/* home: hero */
.hero { text-align: center; padding: 56px 0 40px; }
.hero h1 { font-size: clamp(38px, 7vw, 64px); margin: 0 auto 18px; max-width: 760px;
  background: linear-gradient(120deg, var(--ink) 20%, var(--accent) 60%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 0 auto 28px; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; color: var(--muted); padding: 5px 14px; border-radius: 99px; margin-bottom: 20px; }
.btn { display: inline-block; text-decoration: none; font-weight: 650; padding: 12px 22px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 40%, transparent); transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* home: the four steps */
.steps { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin: 8px 0 16px; }
.card { border-radius: 20px; padding: 20px 22px; }
.steps .card { margin: 0; color: var(--muted); }
.steps b { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--ink); font-size: 17px; }
.steps b i { font-style: normal; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; flex: 0 0 auto;
  font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.section { margin: 20px 0; }
.section h2 { margin-top: 0; }
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 28px; }
  main.doc { padding: 4px 20px 24px; }
  nav a { padding: 6px 8px; }
}

footer { border-top: 1px solid var(--line); padding: 22px 16px 44px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin-right: 14px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---- landing page sections */
main.wide { max-width: 1120px; }
header { max-width: 1120px; }
header .btn-sm { padding: 7px 14px; font-size: 14px; border-radius: 11px; box-shadow: none; margin-left: 6px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.btn-ghost { color: var(--ink); text-decoration: none; font-weight: 600; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--edge); background: var(--glass); }
.btn-ghost:hover { background: var(--glass-strong); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 6px; text-align: center; }
h2.big { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; letter-spacing: -.02em; text-align: center; margin: 0 auto 28px; max-width: 720px; }
.block { padding: 56px 0 8px; scroll-margin-top: 90px; }
.card h3 { margin: 6px 0 6px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); }
.ico { font-size: 22px; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--glass-strong); border: 1px solid var(--edge); }

/* product preview in the hero: a drawing of the app's Home screen */
.shot { margin: 52px auto 0; max-width: 1000px; }
.shot figcaption { margin-top: 10px; }
.shot-frame { display: grid; grid-template-columns: 190px 1fr; border-radius: 22px; overflow: hidden; text-align: left; font-size: 13px;
  box-shadow: var(--shadow), 0 40px 90px color-mix(in srgb, var(--accent-2) 22%, transparent); }
.shot-side { padding: 18px 12px; border-right: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.shot-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 10px; }
.shot-brand i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #fff; font-size: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.shot-new { text-align: center; color: #fff; font-weight: 600; padding: 7px; border-radius: 10px; margin-bottom: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.shot-nav { padding: 7px 10px; border-radius: 9px; color: var(--muted); }
.shot-nav.on { color: var(--ink); background: var(--glass-strong); border: 1px solid var(--edge); font-weight: 600; }
.shot-main { padding: 22px 24px; min-width: 0; }
.shot-hello { color: var(--muted); font-size: 12px; }
.shot-h { font-size: 19px; font-weight: 700; margin-bottom: 14px; letter-spacing: -.01em; }
.shot-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.shot-kpis > div, .shot-chart, .shot-list { background: var(--glass); border: 1px solid var(--edge); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.shot-kpis span, .shot-chart > span, .shot-list > span { display: block; color: var(--muted); font-size: 11px; }
.shot-kpis b { display: block; font-size: 22px; letter-spacing: -.02em; }
.shot-kpis em { font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.shot-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.shot-chart .bars { display: flex; align-items: flex-end; gap: 4px; height: 110px; margin-top: 8px; border-bottom: 1px solid var(--line); }
.shot-chart .bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent-2), var(--accent)); opacity: .9; }
.shot-list p { margin: 8px 0 0; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-list p b { flex: 0 0 auto; font-size: 11px; padding: 2px 6px; border-radius: 6px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* features: bento grid */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bento .card { margin: 0; }
.bento .tall { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent-2) 22%, transparent), var(--glass)); }
.bento .tall h3 { font-size: 24px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two .card { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq .card { margin: 0; padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 650; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; }

.final { text-align: center; margin: 64px 0 8px; padding: 40px 24px; }
.final p { margin: 0 0 20px; }
.final h2.big { margin-bottom: 10px; }

@media (max-width: 860px) {
  .shot-frame { grid-template-columns: 1fr; }
  .shot-side { display: none; }
  .shot-kpis { grid-template-columns: 1fr 1fr; }
  .shot-row { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .tall { grid-column: span 2; grid-row: auto; min-height: 0; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .home-nav a { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento .tall { grid-column: auto; }
  .shot-main { padding: 16px; }
  .block { padding-top: 40px; }
}
header > a, header .btn-sm { white-space: nowrap; }
@media (max-width: 600px) {
  header { gap: 8px; padding: 8px 10px; }
  header > a { font-size: 16px; }
  header .btn-sm { margin-left: auto; padding: 6px 11px; font-size: 13px; }
}
