/* FocusLayer website. Colors mirror lib/core/constants/app_theme.dart. */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0b0c0f;
  --surface: #131519;
  --surface-raised: #1a1d22;
  --hairline: #262a31;
  --text: #f2f3f5;
  --muted: #a2a8b3;
  --faint: #6c727d;
  --accent: #ffb23f;
  --accent-deep: #ff7a2f;
  --on-accent: #1c1206;
  --blocked: #ff5e6c;
  --filtered: #62c3ff;
  --allowed: #4fd69c;
  --radius: 16px;
  --max: 1080px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 12, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--on-accent); }
.btn-ghost { border-color: var(--hairline); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto; height: 600px;
  background: radial-gradient(closest-side, rgba(255, 178, 63, 0.16), transparent);
  pointer-events: none;
}
.hero .logo { width: 96px; height: 96px; margin-bottom: 28px; }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 0.9rem; color: var(--faint); }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.eyebrow { color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.card .icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(255, 178, 63, 0.12); color: var(--accent);
}
.card .icon svg { width: 22px; height: 22px; }

/* Rules */
.rules { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rule { border-top: 3px solid; }
.rule.blocked { border-top-color: var(--blocked); }
.rule.filtered { border-top-color: var(--filtered); }
.rule.allowed { border-top-color: var(--allowed); }
.rule .tag { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.rule.blocked .tag { color: var(--blocked); }
.rule.filtered .tag { color: var(--filtered); }
.rule.allowed .tag { color: var(--allowed); }

/* Privacy band */
.privacy-band { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "✓"; color: var(--allowed); font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 32px 0; color: var(--faint); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Policy page */
.policy { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.policy .meta { color: var(--faint); margin-bottom: 32px; }
.policy h2 { font-size: 1.45rem; margin-top: 48px; padding-top: 8px; }
.policy h3 { margin-top: 28px; }
.policy p, .policy li { color: #d4d7dc; }
.policy ul { padding-left: 1.25em; margin: 0 0 1em; }
.policy li { margin-bottom: 0.4em; }
.policy strong { color: var(--text); }
.summary { background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid var(--accent); border-radius: 12px; padding: 20px 24px; margin-bottom: 8px; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }
.toc { columns: 2; column-gap: 32px; padding-left: 1.25em; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
td { color: #d4d7dc; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 16px; }
  .nav .hide-sm { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
  .toc { columns: 1; }
}
