/* ============================================================
   Watchfall website — one shared stylesheet
   Colours match the Watchfall app (public/styles-v2.css).
   No inline styles in the HTML: the Content-Security-Policy
   only allows this file.
   ============================================================ */

/* ── Self-hosted font (licence in /fonts/) ───────────────── */
@font-face {
  font-family: 'Mona Sans';
  src: url('../fonts/mona-sans-latin-wght-normal.woff2') format('woff2-variations'),
       url('../fonts/mona-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ── Design tokens ───────────────────────────────────────── */
:root {
  --bg:            #081028;
  --surface:       #0B1739;
  --surface-hover: #12204A;
  --border:        #1E2A4A;
  --border-strong: #343B4F;
  --brand:         #CB3CFF;  /* outlines, highlighted card */
  --brand-fill:    #A82BD9;  /* button fill: white text 5.2:1 */
  --brand-hover:   #9524C4;
  --brand-subtle:  rgba(203, 60, 255, 0.14);
  --brand-text:    #DD8BFF;
  --accent:        #00C2FF;
  --accent-hover:  #7FE0FF;
  --text:          #FFFFFF;
  --text-2:        #AEB9E1;
  --text-muted:    #7E89AC;
  --warn-bg:       #3A2A06;
  --warn-border:   #F5B83D;
  --warn-text:     #FFE3A3;
  --danger:        #B3261E;
  --danger-text:   #FF8A80;
  --ok:            #3DD68C;
  --font: 'Mona Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius: 14px;
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { line-height: 1.15; font-weight: 700; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-hover);
  white-space: nowrap;  /* never split a command across lines */
}

pre {
  margin: 0;
  padding: 16px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
}
pre code { padding: 0; background: none; white-space: pre; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--brand-fill);
  color: var(--text);
  z-index: 10;
}
.skip-link:focus { top: 12px; color: var(--text); }

/* Text for screen readers only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* ── Header ──────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
}
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 36px; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 15px; }
.nav a:not(.btn) {
  color: var(--text-2);
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 8px;
}
.nav a:not(.btn):hover { color: var(--text); background: var(--surface-hover); }
.nav a[aria-current="page"] { color: var(--text); }
.nav .btn { margin-left: 8px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn, .btn-outline, .btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
.btn { background: var(--brand-fill); color: var(--text); }
.btn:hover { background: var(--brand-hover); color: var(--text); }
.btn-outline { border: 1px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { background: var(--surface-hover); color: var(--text); }
.btn-disabled { border: 1px dashed var(--text-muted); color: var(--text-2); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Sections and text ───────────────────────────────────── */
main { display: block; }
.section { padding: 48px 0; }
.section h2 { font-size: 34px; margin-bottom: 28px; }
.page-head { padding: 64px 0 40px; display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.page-head h1 { font-size: 46px; }
.lead { font-size: 18px; line-height: 1.55; color: var(--text-2); }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-2); }
.page-end { padding-bottom: 96px; }

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding: 80px 0 64px;
}
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-text h1 { font-size: 56px; line-height: 1.05; }
.hero-text .lead { font-size: 19px; }
.hero-text .actions { padding-top: 8px; }
.hero-visual { flex: 1 1 460px; min-width: 0; }

/* ── Screenshots of the real app ─────────────────────────── */
.shot { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.shot a { display: block; border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; line-height: 0; }
.shot a:hover { border-color: var(--accent); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: 13px; color: var(--text-muted); text-align: right; }
.shot-inset { margin: 8px 0 28px; }
.section-lead { max-width: 760px; margin: -12px 0 28px; }

/* ── Illustrations (example data, no images) ─────────────── */
.illus { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.illus figcaption { font-size: 13px; color: var(--text-muted); text-align: right; }
.illus-inset { margin: 8px 0 28px; }
.illus-window {
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
}
.illus-inset .illus-window { background: var(--bg); }
.illus-bar { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text); }
.illus-dots { display: flex; gap: 6px; }
.illus-dots span { width: 10px; height: 10px; border-radius: 5px; background: var(--border-strong); }
.t-ok { color: var(--ok); }
.t-muted { color: var(--text-muted); }
.illus-term { margin: 0; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.illus-term code { white-space: pre-wrap; overflow-wrap: anywhere; }
.card-lg h3 { font-size: 20px; margin: 0; }

/* ── Cards and grids ─────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3 { font-size: 19px; }
.card p { color: var(--text-2); }
.card-lg { padding: 28px; gap: 14px; }
.card-lg h2 { font-size: 24px; margin: 0; }
.card-pro { border-color: var(--brand); }

/* "How scanning works": short heading left, text right; stacked on phones */
.facts { display: grid; grid-template-columns: 180px 1fr; gap: 16px 24px; margin: 0; }
.facts dt { font-weight: 600; color: var(--text); }
.facts dd { margin: 0; color: var(--text-2); display: flex; flex-direction: column; gap: 8px; }
.more-link { margin-top: 20px; font-weight: 600; }
.card .push { margin-top: auto; font-weight: 600; }
.card ul { padding-left: 20px; color: var(--text-2); line-height: 1.8; }

.badge {
  font-size: 13px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--brand-subtle);
  color: var(--brand-text);
  vertical-align: middle;
}

.card .price { font-size: 44px; font-weight: 700; color: var(--text); }
.card .price-unit { font-size: 20px; font-weight: 600; color: var(--text-2); }
.card .price-note { font-size: 14px; color: var(--text-2); }

.badge-free { background: rgba(0, 194, 255, 0.14); color: var(--accent-hover); }

/* ── Roadmap ─────────────────────────────────────────────── */
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.roadmap-col { display: flex; flex-direction: column; gap: 16px; }
.roadmap-col h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.rm-dot { width: 10px; height: 10px; border-radius: 5px; flex: 0 0 10px; }
.rm-dot-next { background: var(--brand); }
.rm-dot-planned { background: var(--accent); }
.rm-dot-released { background: var(--ok); }
.rm-tags { margin-top: auto; }
.rm-version { font-size: 13px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.roadmap-col .more-link { margin-top: 4px; }

/* ── Steps ───────────────────────────────────────────────── */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--brand-subtle);
  color: var(--brand-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--text-2); }

/* ── Panel (wide card with text + list) ──────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.panel > div { flex: 1 1 380px; min-width: 0; }
.panel h2 { font-size: 30px; margin-bottom: 12px; }
.panel p { color: var(--text-2); line-height: 1.6; font-size: 17px; }

.checks { flex: 1 1 300px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks svg { flex: 0 0 20px; }

/* ── Comparison table ────────────────────────────────────── */
.table-box {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.cmp { width: 100%; min-width: 320px; border-collapse: collapse; font-size: 16px; }
.cmp th, .cmp td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp th[scope="col"] { font-size: 15px; color: var(--text-2); font-weight: 600; }
.cmp th[scope="row"] { font-weight: 500; }
.cmp td { color: var(--text-2); }
.cmp td.yes { color: var(--text); font-weight: 600; }

/* ── Stacked page content (Features, Pricing, Install, Legal) */
.stack { display: flex; flex-direction: column; gap: 40px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.stack h2.sub { font-size: 26px; }
.stack .h-sm { font-size: 22px; }

.install-steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.install-steps li { display: flex; flex-direction: column; gap: 8px; }
.install-steps h3 { font-size: 17px; }

.numbered { padding-left: 22px; color: var(--text-2); line-height: 1.9; }

.callout {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.callout > div { flex: 1 1 380px; min-width: 0; }

.warning {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
}
.warning svg { flex: 0 0 24px; }

/* ── Long legal texts (Terms, Privacy) ───────────────────── */
.wrap-narrow > .warning { margin-bottom: 32px; }
.prose { max-width: 760px; color: var(--text-2); line-height: 1.65; }
.prose h2 { font-size: 22px; color: var(--text); margin: 36px 0 12px; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 14px;
  color: var(--text-2);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }
.footer-company { display: flex; flex-direction: column; gap: 4px; }
.footer-company img { width: 121px; height: 40px; margin-bottom: 8px; }
.footer-company a { color: var(--text-2); }
.footer-company a:hover { color: var(--text); }

/* "Watchfall by Hikyard" on the home page */
.by-line { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.by-line img { width: 22px; height: 22px; }

/* ── Phone width ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; gap: 4px; }
  .facts dd { margin-bottom: 12px; }
  .illus-window { padding: 14px; font-size: 14px; }
  .grid-pair { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; gap: 32px; }
  .hero-text h1 { font-size: 38px; }
  .page-head { padding: 40px 0 28px; }
  .page-head h1 { font-size: 34px; }
  .section h2 { font-size: 26px; }
  .panel { padding: 24px; }
  .panel h2 { font-size: 24px; }
  .nav .btn { margin-left: 0; }
  .cmp { font-size: 15px; }
  .cmp th, .cmp td { padding: 12px 10px; }
  .actions .btn, .actions .btn-outline { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
