/* FlankScreen website: shared styles for all pages (light and dark). */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --fg: #16181d;
  --muted: #5d6470;
  --line: #e2e5ea;
  --accent: #2f6fe4;
  --accent-fg: #ffffff;
  --accent-soft: #e7eefc;
  --radius: 14px;
  --max: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317;
    --surface: #1a1d23;
    --fg: #eceef2;
    --muted: #9aa1ad;
    --line: #2b2f37;
    --accent: #4c86f0;
    --accent-fg: #ffffff;
    --accent-soft: #1d2a44;
  }
}
:root[data-theme="dark"] {
  --bg: #111317; --surface: #1a1d23; --fg: #eceef2; --muted: #9aa1ad; --line: #2b2f37;
  --accent: #4c86f0; --accent-fg: #ffffff; --accent-soft: #1d2a44;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--fg); }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.02em; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600;
       text-decoration: none; border: 1px solid var(--line); color: var(--fg); background: var(--surface); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn[aria-disabled="true"] { opacity: .7; cursor: default; }
.note { color: var(--muted); font-size: 14px; }

/* Illustration: PC monitor + tablet, drawn in CSS so the page needs no screenshots yet. */
.devices { position: relative; aspect-ratio: 4 / 3; }
.monitor { position: absolute; left: 0; top: 4%; width: 74%; aspect-ratio: 16 / 10; border-radius: 12px;
           background: #2b313c; padding: 3%; box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.monitor::after { content: ""; position: absolute; left: 42%; bottom: -16%; width: 16%; height: 16%; background: #2b313c; }
.tablet { position: absolute; right: 0; bottom: 4%; width: 46%; aspect-ratio: 4 / 3; border-radius: 14px;
          background: #2f6fe4; padding: 3.2%; box-shadow: 0 20px 40px rgba(0,0,0,.22); }
.screen { width: 100%; height: 100%; border-radius: 6px; background: linear-gradient(135deg, #dfe7f7, #b9cbf0); overflow: hidden; position: relative; }
.tablet .screen { background: linear-gradient(135deg, #f4f7fd, #cfdcf7); }
.win { position: absolute; border-radius: 4px; background: rgba(255,255,255,.85); box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.win::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14%; background: rgba(47,111,228,.35); border-radius: 4px 4px 0 0; }

/* Sections */
section { padding: 48px 0; }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 12px; letter-spacing: -.01em; }
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.step-num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center;
            background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reqs ul { margin: 0; padding-left: 20px; color: var(--muted); }
.reqs li { margin: 4px 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 2px; }

/* Legal pages */
.doc { max-width: 760px; padding-top: 40px; padding-bottom: 40px; }
.doc h1 { font-size: 34px; }
.doc h2 { font-size: 22px; margin-top: 32px; }
.doc p, .doc li { color: var(--fg); }
.doc .updated { color: var(--muted); }
.todo { background: #fff3c4; color: #5c4600; padding: 0 4px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .todo { background: #4a3d10; color: #ffe08a; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .reqs { grid-template-columns: 1fr; }
  .nav { display: none; }
}
