/* Nightkeep marketing site. Same palette and typeface as the app, so moving
   from this page into signup feels like one product. */

@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-display: swap; src: url("../fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url("../fonts/public-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 900; font-display: swap; src: url("../fonts/public-sans-latin-900-normal.woff2") format("woff2"); }

:root {
  --fog: #EEF2F5;
  --paper: #FFFFFF;
  --ink: #16232F;
  --muted: #52606D;
  --rule: #C9D3DB;
  --blue: #1F5C8C;
  --pass: #2F7A55;
  --warn: #9A6412;
  --fail: #B3372F;
  --on-ink: #FFFFFF;
  --on-ink-muted: #C9D3DB;
  --header-bg: rgba(238, 242, 245, 0.94);
  --col-main: #F6F8FA;
  --shadow: var(--ink);
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
  color-scheme: light;
}
/* Dark theme: chosen with the toggle, or "match my device" on a device set to dark. */
:root[data-theme="dark"] {
  --fog: #0E151C; --paper: #16202A; --ink: #E4EAF0; --muted: #9AA8B5; --rule: #2A3743;
  --blue: #7BBCF0; --pass: #4CC38A; --warn: #E3A846; --fail: #F27A70;
  --on-ink: #0E151C; --on-ink-muted: #3E4C59; --header-bg: rgba(14, 21, 28, 0.94);
  --col-main: #1B2733; --shadow: #05090D;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
  --fog: #0E151C; --paper: #16202A; --ink: #E4EAF0; --muted: #9AA8B5; --rule: #2A3743;
  --blue: #7BBCF0; --pass: #4CC38A; --warn: #E3A846; --fail: #F27A70;
  --on-ink: #0E151C; --on-ink-muted: #3E4C59; --header-bg: rgba(14, 21, 28, 0.94);
  --col-main: #1B2733; --shadow: #05090D;
  color-scheme: dark;
  }
}
.theme-toggle { background: none; border: 1.5px solid var(--rule); border-radius: 999px; width: 36px; height: 36px;
  display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); padding: 0; flex: none; }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle .keep { width: 22px; height: 22px; overflow: visible; }
.theme-toggle .keep-window { fill: var(--fog); transition: fill .25s ease, filter .25s ease; }
/* Night: the keep's window lights up, like the logo. Day: no light needed. */
:root[data-theme="dark"] .theme-toggle .keep-window { fill: #F2B544; filter: drop-shadow(0 0 3px rgba(242, 181, 68, .85)); }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .theme-toggle .keep-window { fill: #F2B544; filter: drop-shadow(0 0 3px rgba(242, 181, 68, .85)); }
}
@media (prefers-reduced-motion: reduce) { .theme-toggle .keep-window { transition: none; } }
.header-actions { display: flex; align-items: center; gap: 12px; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--fog); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { line-height: 1.12; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 900; letter-spacing: -0.02em; }
h3 { font-size: 20px; font-weight: 700; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; font-size: 17px; line-height: 1.2; padding: 14px 24px;
  border-radius: 6px; border: 2px solid var(--ink); background: var(--ink); color: var(--on-ink); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn-small { padding: 9px 16px; font-size: 15px; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn-light { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.btn-light:hover { background: var(--fog); border-color: var(--fog); color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 21px; letter-spacing: -0.02em; }
.wordmark svg { flex: none; margin-top: -3px; }
.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-desktop a:not(.btn):hover { color: var(--blue); text-decoration: underline; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-mobile { display: flex; flex-direction: column; gap: 4px; padding: 8px 24px 20px; border-top: 1px solid var(--rule); }
.nav-mobile[hidden] { display: none; }
.nav-mobile a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 0; }
.nav-mobile .btn { margin-top: 8px; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; }
.hero-grid > * { min-width: 0; }  /* let columns shrink below their content on small phones */
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; }
.lede { font-size: 20px; color: var(--muted); max-width: 32em; margin: 24px 0 32px; }
.domain-form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px; }
.domain-form input { flex: 1 1 240px; font: inherit; font-size: 19px; padding: 13px 16px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); color: var(--ink); min-width: 0; }
.fine { font-size: 15px; color: var(--muted); margin: 12px 0 0; }

/* The report card: the one bold element on the page */
.card { margin: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px 28px 8px; box-shadow: 10px 10px 0 var(--shadow); position: relative; }
.card-caption { position: absolute; top: -13px; left: 20px; background: var(--fog); padding: 0 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.card-top { display: flex; align-items: center; gap: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.grade { font-size: 112px; font-weight: 900; line-height: .82; letter-spacing: -0.04em; color: var(--warn); }
.card-domain { margin: 0; font-weight: 700; font-size: 22px; overflow-wrap: anywhere; }
.card-meta { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.findings { list-style: none; margin: 0; padding: 0; }
.findings li { padding: 14px 0 14px 16px; border-left: 4px solid; border-bottom: 1px solid var(--rule); margin-left: -2px; }
.findings li:last-child { border-bottom: 0; }
.findings strong { display: block; font-size: 16px; }
.findings span { display: block; font-size: 15px; color: var(--muted); line-height: 1.45; }
.findings .fail { border-left-color: var(--fail); } .findings .warn { border-left-color: var(--warn); } .findings .pass { border-left-color: var(--pass); }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-lede { font-size: 19px; color: var(--muted); max-width: 36em; margin: 14px 0 0; }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 40px 0 0; }
.checks > div { padding: 24px 0; border-top: 2px solid var(--ink); }
.checks dt { font-size: 20px; font-weight: 700; }
.checks dd { margin: 6px 0 0; color: var(--muted); max-width: 30em; }

.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-size: 56px; font-weight: 900; line-height: 1; color: var(--rule); margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 8px 0 0; }

.table-wrap { overflow-x: auto; margin-top: 40px; -webkit-overflow-scrolling: touch; }
.plans-table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--radius); }
.plans-table th, .plans-table td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.plans-table tbody th { text-align: left; font-weight: 500; font-size: 16px; width: 40%; }
.plans-table thead th { border-bottom: 2px solid var(--ink); vertical-align: bottom; padding-top: 24px; }
.plan-name { display: block; font-size: 18px; font-weight: 700; }
.rec { display: inline-block; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-bottom: 6px; }
.plan-price { display: block; font-size: 34px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin-top: 4px; }
.plan-price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plans-table .col-main { background: var(--col-main); box-shadow: inset 2px 0 0 var(--ink), inset -2px 0 0 var(--ink); }
.plans-table thead .col-main { box-shadow: inset 2px 0 0 var(--ink), inset -2px 0 0 var(--ink), inset 0 2px 0 var(--ink); }
.plans-table tfoot .col-main { box-shadow: inset 2px 0 0 var(--ink), inset -2px 0 0 var(--ink), inset 0 -2px 0 var(--ink); }
.plans-table tfoot td { border-bottom: 0; padding: 20px 18px 24px; }
.yes { color: var(--pass); font-weight: 700; }
.no { color: var(--rule); font-weight: 700; font-size: 20px; }
.note-mark { text-decoration: none; margin-left: 2px; font-weight: 700; }
.plan-note { font-size: 15px; color: var(--muted); max-width: 46em; margin: 16px 0 0; }
.plans-cta-mobile { display: none; }

.faq { margin-top: 32px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 20px 32px 20px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 500; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 40em; }

.closing { background: var(--ink); color: var(--on-ink); padding: 88px 0; }
.closing h2 { color: var(--on-ink); }
.closing p { color: var(--on-ink-muted); font-size: 19px; margin: 14px 0 32px; }
.closing-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.closing-login { color: var(--on-ink); font-weight: 500; }

.site-footer { padding: 32px 0; font-size: 15px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .card { margin-right: 10px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .checks { grid-template-columns: 1fr; }
  .section, .closing { padding: 64px 0; }
  .grade { font-size: 88px; }
  /* Plans: keep all four columns on screen rather than scrolling the paid plans out of view */
  .plans-table { min-width: 0; }
  .plans-table th, .plans-table td { padding: 10px 3px; font-size: 13px; overflow-wrap: anywhere; }
  .plans-table tbody th { font-size: 13px; width: 34%; padding-left: 10px; padding-right: 6px; }
  .plans-table thead th, .plans-table tbody td { width: 22%; }
  .plans-table thead th { padding-top: 16px; }
  .plan-name { font-size: 14px; line-height: 1.2; }
  .plan-price { font-size: 19px; }
  .plan-price small { display: block; font-size: 12px; }
  .rec { font-size: 9px; padding: 2px 5px; white-space: nowrap; overflow-wrap: normal; }
  .plans-table tfoot { display: none; }
  .plans-cta-mobile { display: block; margin: 20px 0 0; }
  .plans-cta-mobile .btn { width: 100%; }
}
