/* ScreenWise marketing site. Colours and font come from the app theme
   (web/src/index.css, mobile/src/theme/index.ts): indigo "sw" scale, emerald for
   success, slate neutrals, Plus Jakarta Sans. */

:root {
  --sw-50: #f0f1ff;
  --sw-100: #e0e2ff;
  --sw-200: #c7caff;
  --sw-300: #a5a8fc;
  --sw-400: #8182f7;
  --sw-500: #6360ee;
  --sw-600: #5346e3;
  --sw-700: #4638c8;
  --sw-800: #3a30a2;
  --sw-900: #322d80;
  --sw-950: #1e1a4b;

  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --accent: var(--sw-600);
  --accent-hover: var(--sw-700);
  --on-accent: #ffffff;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.08);
  --font: 'Plus Jakarta Sans', 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #131c31;
    --border: #243049;
    --text: #f1f5f9;
    --text-2: #cbd5e1;
    --text-3: #94a3b8;
    --accent: var(--sw-400);
    --accent-hover: var(--sw-300);
    --on-accent: #0b1120;
    --success-bg: rgba(16, 185, 129, 0.14);
    --success-text: #6ee7b7;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text);
  padding: 8px 12px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* ---------- Header + hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--sw-950) 0%, var(--sw-800) 55%, var(--sw-600) 100%);
  color: #fff;
  overflow: hidden;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: #fff; }
.nav-links a.btn { color: var(--sw-800); padding: 9px 16px; font-size: 0.92rem; }
.nav-links a.btn:hover { color: var(--sw-900); }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 40px 0 72px; }
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.14); color: #e0e2ff;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; margin: 18px 0 16px; font-weight: 800; letter-spacing: -0.02em; }
.hero p.lead { font-size: 1.15rem; color: #e0e2ff; max-width: 34em; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none;
  background: #fff; color: var(--sw-800); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: var(--sw-900); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.45); }
.btn.ghost:hover { color: #fff; border-color: #fff; box-shadow: none; }
.hero .note { margin-top: 14px; font-size: 0.88rem; color: #c7caff; }

.hero-art { position: relative; height: 520px; }
.phone {
  width: min(250px, 62%); border-radius: 34px; border: 7px solid #0b1020; background: #0b1020;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); position: absolute; right: 6%; top: 0; z-index: 2;
}
.phone img { border-radius: 27px; }
.monitor-win {
  width: min(300px, 70%); border-radius: 14px; overflow: hidden; position: absolute; left: 0; bottom: 0; z-index: 1;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 40em; margin: 0 0 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.015em; }
.section-head p { margin: 0; color: var(--text-2); font-size: 1.05rem; }
.kicker { color: var(--accent); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--sw-100); color: var(--sw-800); font-weight: 800; margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) { .step::before { background: rgba(129, 130, 247, 0.2); color: var(--sw-200); } }
.step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); display: inline-block; margin-right: 8px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; display: flex; align-items: center; }
.feature p { margin: 0; color: var(--text-2); font-size: 0.98rem; }

.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 64px; }
.showcase:last-child { margin-bottom: 0; }
.showcase.flip .shot { order: 2; }
.showcase h3 { font-size: 1.5rem; margin: 0 0 10px; line-height: 1.25; }
.showcase p { color: var(--text-2); margin: 0 0 12px; }
.showcase ul { margin: 0; padding-left: 1.1em; color: var(--text-2); }
.showcase li { margin-bottom: 6px; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #0f172a; }
.shot.phone-shot { max-width: 300px; margin: 0 auto; border-radius: 30px; border: 7px solid #0b1020; background: #0b1020; }
.shot.phone-shot img { border-radius: 23px; }
.shot.window { max-width: 340px; margin: 0 auto; }

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.platform h3 { margin: 0 0 4px; font-size: 1.05rem; }
.platform .who { color: var(--text-3); font-size: 0.86rem; font-weight: 600; margin-bottom: 8px; }
.platform p { margin: 0; color: var(--text-2); font-size: 0.97rem; }

.faq { max-width: 760px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--text-2); }

.cta-band { background: linear-gradient(160deg, var(--sw-800), var(--sw-600)); color: #fff; text-align: center; border-radius: 24px; padding: 56px 24px; }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
.cta-band p { margin: 0 auto 24px; max-width: 34em; color: #e0e2ff; }
.contact-addr { margin: 0 auto 22px; }
.contact-addr code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(0.85rem, 4.2vw, 1.15rem); font-weight: 700; background: rgba(255, 255, 255, 0.14); padding: 8px 14px; border-radius: 10px; user-select: all; display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.cta-row.center { justify-content: center; }
.cta-band .copy-status { margin: 14px auto 0; min-height: 1.4em; font-size: 0.92rem; }
button.btn { font-family: inherit; cursor: pointer; }
section[id] { scroll-margin-top: 12px; }

footer { padding: 36px 0 48px; color: var(--text-3); font-size: 0.92rem; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot a { color: var(--text-2); }

:focus-visible { outline: 3px solid var(--sw-400); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 56px; }
  .hero-art { height: 500px; max-width: 420px; margin: 0 auto; width: 100%; }
  .steps, .features, .platforms { grid-template-columns: 1fr; }
  .showcase, .showcase.flip { grid-template-columns: 1fr; gap: 24px; }
  .showcase.flip .shot { order: 0; }
  section { padding: 52px 0; }
  .nav-links a:not(.btn) { display: none; }
}

@media (max-width: 420px) {
  .nav { gap: 10px; }
  .brand { font-size: 1rem; gap: 8px; white-space: nowrap; }
  .brand img { width: 28px; height: 28px; }
  .nav-links a.btn { white-space: nowrap; padding: 8px 12px; font-size: 0.85rem; }
}

@media (max-width: 340px) {
  .nav-links { display: none; } /* the hero has the same call to action */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Document pages (privacy policy) ---------- */
.doc-header { background: linear-gradient(160deg, var(--sw-950) 0%, var(--sw-800) 100%); }
.doc { max-width: 780px; padding-top: 48px; padding-bottom: 32px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.02em; }
.doc .meta { color: var(--text-3); margin: 0 0 32px; font-size: 0.95rem; }
.doc-section { margin-bottom: 8px; padding: 0 0 24px; }
.doc-section h2 { font-size: 1.2rem; margin: 0 0 10px; }
.doc-section p, .doc-section li { color: var(--text-2); }
.doc-section ul { padding-left: 1.2em; margin: 0; }
.doc-section li { margin-bottom: 6px; }
.doc-section p { margin: 0 0 12px; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
