/* lumen.jpereira.me — one stylesheet for every page. Colours follow the app's Cinema theme (docs/03). */

@font-face {
  font-family: Inter;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: Archivo;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/archivo-800.woff2') format('woff2');
}

:root {
  --bg: #0e0e11;
  --surface: #17171c;
  --surface-2: #1f1f26;
  --line: #2a2a33;
  --text: #f5f5f7;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --accent: #2f6fe6;
  --accent-text: #7aa7ff;
  --radius: 20px;
  --max: 1120px;
  --gutter: 24px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    400 17px/1.6 Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-feature-settings: 'kern', 'liga', 'calt';
  overflow-x: hidden;
}

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 8px;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(30px, 4.4vw, 44px);
}

h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 10px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(14 14 17 / 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}

.site-nav a {
  color: var(--text-2);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.lang {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}

.lang:hover {
  color: var(--text);
  border-color: var(--text-3);
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
  .lang {
    margin-left: auto;
  }
}

/* Hero */

.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto;
  height: 900px;
  background: radial-gradient(closest-side, rgb(47 111 230 / 0.42), rgb(47 111 230 / 0) 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 56px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--text-2);
  max-width: 34em;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 20px 8px 16px;
  border-radius: 14px;
  background: var(--text);
  color: #0e0e11;
  text-decoration: none;
  line-height: 1.15;
  font-weight: 600;
}

.store small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.store svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.store[aria-disabled='true'] {
  background: var(--surface-2);
  color: var(--text-2);
  cursor: default;
}

.fineprint {
  font-size: 14px;
  color: var(--text-3);
}

/* Device mock: abstract tiles, never real artwork (store README rules) */

.device {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 26px;
  padding: 14px;
  background: linear-gradient(160deg, #26262f, #121217);
  box-shadow:
    0 40px 120px rgb(0 0 0 / 0.55),
    inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.screen {
  height: 100%;
  border-radius: 16px;
  background: #0b0b0e;
  padding: 6% 6% 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 5%;
}

.screen .feature {
  border-radius: 12px;
  aspect-ratio: 16 / 6.2;
  background:
    radial-gradient(120% 140% at 85% 20%, rgb(122 167 255 / 0.55), transparent 55%),
    linear-gradient(120deg, #1b2e5c, #2f6fe6 60%, #8a5cf6);
  position: relative;
}

.screen .feature::after {
  content: '';
  position: absolute;
  left: 6%;
  bottom: 14%;
  width: 34%;
  height: 10%;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.85);
  box-shadow: 0 -18px 0 -4px rgb(255 255 255 / 0.4);
}

.screen .row-title {
  width: 22%;
  height: 8px;
  border-radius: 4px;
  background: var(--text-3);
}

.screen .row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3%;
}

.screen .row span {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
}

.screen .row span:nth-child(1) {
  background: linear-gradient(160deg, #3b2a6b, #8a5cf6);
}
.screen .row span:nth-child(2) {
  background: linear-gradient(160deg, #0f3b3a, #2bb3a3);
}
.screen .row span:nth-child(3) {
  background: linear-gradient(160deg, #5a2121, #e0605b);
}
.screen .row span:nth-child(4) {
  background: linear-gradient(160deg, #3d3412, #e3b341);
}
.screen .row span:nth-child(5) {
  background: linear-gradient(160deg, #1b2e5c, #2f6fe6);
}

/* Sections */

section {
  padding: 88px 0;
}

section + section {
  border-top: 1px solid rgb(255 255 255 / 0.05);
}

.section-head {
  max-width: 44em;
  margin-bottom: 44px;
}

.section-head p {
  color: var(--text-2);
  font-size: 19px;
}

.works-with {
  padding: 28px 0;
  text-align: center;
  color: var(--text-2);
  font-size: 15px;
}

.works-with strong {
  color: var(--text);
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: var(--radius);
  padding: 26px;
}

.card p {
  color: var(--text-2);
  margin: 0;
  font-size: 16px;
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgb(47 111 230 / 0.16);
  color: var(--accent-text);
}

.card .icon svg {
  width: 22px;
  height: 22px;
}

.devices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .devices {
    grid-template-columns: repeat(2, 1fr);
  }
}

.devices .card h3 {
  margin-bottom: 4px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

.plan {
  position: relative;
}

.plan.best {
  border-color: rgb(47 111 230 / 0.6);
  background: linear-gradient(180deg, rgb(47 111 230 / 0.12), var(--surface) 60%);
}

.plan .tag {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
}

.plan ul,
.ticks {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: 16px;
}

.plan li,
.ticks li {
  padding-left: 26px;
  position: relative;
  margin: 8px 0;
}

.plan li::before,
.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-text);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  color: var(--text-3);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}

details[open] summary::after {
  content: '–';
}

details p {
  color: var(--text-2);
  margin: 12px 0 0;
}

.cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 50% 100%, rgb(47 111 230 / 0.3), transparent 70%);
  pointer-events: none;
}

.cta .stores {
  justify-content: center;
}

/* Legal and support pages */

.doc {
  max-width: 760px;
  padding-top: 64px;
  padding-bottom: 96px;
}

.doc h1 {
  font-size: clamp(36px, 5vw, 48px);
}

.doc h2 {
  font-size: 24px;
  margin-top: 2.2em;
  scroll-margin-top: 88px;
}

.doc h3 {
  font-size: 18px;
  margin-top: 1.6em;
}

.doc p,
.doc li {
  color: #d4d4d8;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li {
  margin: 6px 0;
}

.doc .meta {
  color: var(--text-3);
  font-size: 15px;
}

.doc .summary {
  background: var(--surface);
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0;
}

.doc .summary li {
  color: var(--text-2);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0;
  display: block;
  overflow-x: auto;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: #d4d4d8;
}

.doc th {
  color: var(--text);
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgb(255 255 255 / 0.06);
  padding: 40px 0 56px;
  color: var(--text-3);
  font-size: 14px;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 18px;
}

.site-footer .links a {
  color: var(--text-2);
  text-decoration: none;
}

.site-footer .links a:hover {
  color: var(--text);
}

.site-footer p {
  margin: 0 0 8px;
  max-width: 60em;
}

.after-plans {
  margin-top: 20px;
}

.lede.centered {
  margin: 0 auto;
}
