/* Cruxwit suite look: the logo's blue gradient, navy and gold on clean paper. */
:root {
  --bg: #f6f7fb; --surface: #ffffff; --ink: #0f1a33; --muted: #5d6a82; --line: #dde3ee;
  --blue: #0b46d8; --blue2: #1f6bff; --navy: #0a2a8a; --gold: #e0a23a; --mark: rgba(224, 162, 58, 0.45);
  --display: "Space Grotesk", "Avenir Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Avenir Next", system-ui, sans-serif;
  color-scheme: light;
}
/* Dark follows the device unless the visitor picked Light or Dark (data-theme on <html>), same as the apps. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0b1020; --surface: #141b30; --ink: #eef2fb; --muted: #9aa6c2; --line: #26304a; --blue2: #4d8bff; --mark: rgba(224, 162, 58, 0.35); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0b1020; --surface: #141b30; --ink: #eef2fb; --muted: #9aa6c2; --line: #26304a; --blue2: #4d8bff; --mark: rgba(224, 162, 58, 0.35); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue2); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: env(safe-area-inset-top, 0px) 20px env(safe-area-inset-bottom, 0px); }

/* Top bar: the same as Cruxwit Brain Training and Cruxwit Homework (logo + name left, theme button right). */
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 0; }
.word { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.word img { width: 28px; height: 28px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.top-right { display: flex; align-items: center; gap: 8px; }
.theme-button {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px 0 9px; cursor: pointer;
  border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--muted);
  font-family: var(--display); font-size: 14px; font-weight: 500;
}
.theme-button svg { flex: none; }
.theme-button:active { background: var(--line); }
/* Phones: the theme button shows just its icon, as in the apps. */
@media (max-width: 420px) { .theme-button span { display: none; } .theme-button { padding: 0; width: 32px; justify-content: center; } }
.signin { position: relative; }
.signin summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; height: 32px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; color: var(--ink); font-family: var(--display); font-size: 14px; font-weight: 700; }
.signin summary::-webkit-details-marker { display: none; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px; display: grid; min-width: 210px; box-shadow: 0 14px 34px rgba(10, 42, 138, 0.18); }
.menu a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.menu a:hover { background: var(--bg); }
.menu img { border-radius: 7px; box-shadow: 0 0 0 1px var(--line); }

.hero { padding: 44px 0 32px; display: grid; gap: 16px; max-width: 720px; }
.eyebrow { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue2); }
.lines { display: inline-flex; flex-direction: column; gap: 4px; }
.lines b { display: block; height: 4px; border-radius: 4px; }
.lines b:nth-child(1) { width: 18px; background: var(--blue2); }
.lines b:nth-child(2) { width: 26px; background: var(--gold); }
.lines b:nth-child(3) { width: 14px; background: var(--navy); }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 6vw, 62px); line-height: 1.02; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--mark) 62%); }
.lede { color: var(--muted); font-size: 19px; margin: 0; max-width: 54ch; }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; padding: 8px 0 28px; }
.app { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px; display: grid; gap: 18px; align-content: start; position: relative; overflow: hidden; }
.app::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(31, 107, 255, 0.12), transparent); pointer-events: none; }
.app-top { display: flex; gap: 16px; align-items: center; }
.app-top img { flex: none; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 8px 18px rgba(10, 42, 138, 0.12); }
.app h2 { font-family: var(--display); font-size: 24px; margin: 0; line-height: 1.15; }
.for { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.app p { margin: 0; }
.app ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.app li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.app li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; position: relative; z-index: 1; margin-top: auto; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 16px; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--blue2), var(--blue)); }
.btn:active { transform: translateY(1px); }
.soon { font-size: 13px; color: var(--muted); }

.next { margin: 0 0 30px; border: 1.5px dashed var(--line); border-radius: 22px; padding: 18px 22px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
footer { border-top: 1px solid var(--line); padding: 20px 0 34px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Privacy pages: readable long text in the same look. */
.legal { max-width: 720px; padding: 28px 0 40px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.legal .summary { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; margin: 0 0 26px; }
.legal .summary p { margin: 0 0 8px; font-weight: 700; }
.legal .summary ul { margin: 0; padding-left: 20px; }
.legal h2 { font-family: var(--display); font-size: 22px; margin: 30px 0 8px; line-height: 1.2; }
.legal h3 { font-family: var(--display); font-size: 18px; margin: 18px 0 6px; }
.legal p, .legal li { margin: 0 0 10px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; }
.legal a { color: var(--blue2); }
.legal table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.legal th { font-family: var(--display); font-size: 14px; color: var(--muted); }
.policy-list { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.policy-list a { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; text-decoration: none; color: var(--ink); }
.policy-list img { border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.policy-list strong { font-family: var(--display); font-size: 18px; display: block; }
.policy-list span { color: var(--muted); font-size: 15px; }
