/* Lumio Apps website */
:root {
  --bg: #f5f4fb;
  --surface: #ffffff;
  --ink: #1e1a3b;
  --muted: #5e5a7a;
  --line: #e2dff2;
  --accent: #4338ca;
  --tint: #ecebfa;
  --on-accent: #ffffff;

  --calc: #5b4ee6;
  --calc-tint: #e9e7fd;
  --pt: #0d3b30;
  --pt-tint: #dcf3ea;
  --pw: #d63a78;
  --pw-tint: #ffe1ec;

  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.5rem, 6vw, 4.2rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13112a;
    --surface: #1c1937;
    --ink: #eceafb;
    --muted: #a9a5c6;
    --line: #2e2a52;
    --accent: #a5a0ff;
    --tint: #221f42;
    --on-accent: #13112a;
    --calc: #9d95ff;
    --calc-tint: #262252;
    --pt: #7ee2bc;
    --pt-tint: #16322b;
    --pw: #ff7fb0;
    --pw-tint: #3a1d33;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.measure { max-width: 62ch; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(var(--calc) 0 33%, var(--pt) 0 66%, var(--pw) 0); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--ink); background: var(--tint); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

/* Buttons */
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 14px;
  font-weight: 600; text-decoration: none; background: var(--accent); color: var(--on-accent);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--surface); }

/* Home hero */
.hero { padding: 72px 0 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 800; max-width: 13ch; }
.hero .lead { font-size: var(--step-1); color: var(--muted); margin-top: 18px; max-width: 40ch; }

.airplane {
  background: var(--surface); border-radius: 28px; padding: 26px; box-shadow: inset 0 0 0 1px var(--line);
}
.airplane-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.airplane-row strong { font-size: var(--step-1); font-weight: 600; }
.switch { appearance: none; -webkit-appearance: none; width: 58px; height: 34px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(30,26,59,.3); transition: transform .2s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(24px); }
.airplane-apps { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.airplane-apps li { display: flex; align-items: center; gap: 12px; }
.airplane-apps img { width: 36px; height: 36px; border-radius: 10px; }
.airplane-apps span { margin-left: auto; font-size: .9rem; color: var(--muted); }
.airplane-apps .ok { color: var(--ink); font-weight: 600; }
.airplane-note { margin-top: 16px; font-size: .95rem; color: var(--muted); min-height: 1.6em; }

/* App rows on home */
.apps { display: grid; gap: 20px; padding-bottom: 32px; }
.app-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 28px; border-radius: 28px; background: var(--row-tint);
}
.app-row img { width: 96px; height: 96px; border-radius: 24px; }
.app-row h2 { font-size: var(--step-2); }
.app-row h2 a { color: inherit; text-decoration: none; }
.app-row h2 a:hover { text-decoration: underline; }
.app-row p { color: var(--muted); margin-top: 6px; max-width: 54ch; }
.app-row .facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; list-style: none; font-size: .95rem; font-weight: 500; }
.app-row .btn { background: var(--row-color); color: var(--row-on, #fff); }
.app-row.calc { --row-tint: var(--calc-tint); --row-color: var(--calc); }
.app-row.pt { --row-tint: var(--pt-tint); --row-color: var(--pt); }
.app-row.pw { --row-tint: var(--pw-tint); --row-color: var(--pw); }
@media (prefers-color-scheme: dark) { .app-row { --row-on: #13112a; } }

/* Promises */
.section { padding: 56px 0; }
.section > h2, .section-head { font-size: var(--step-3); margin-bottom: 24px; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.promises h3 { font-size: var(--step-1); margin-bottom: 6px; }
.promises p { color: var(--muted); }

/* App page hero */
.app-hero { padding: 56px 0 40px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.app-hero img.icon { width: 132px; height: 132px; border-radius: 32px; }
.app-hero h1 { font-size: var(--step-4); font-weight: 800; }
.app-hero .lead { font-size: var(--step-1); color: var(--muted); margin: 12px 0 18px; max-width: 46ch; }
.platforms { color: var(--muted); font-weight: 500; margin-bottom: 20px; }
body.calc { --accent: var(--calc); --tint: var(--calc-tint); }
body.pt { --accent: var(--pt); --tint: var(--pt-tint); }
body.pw { --accent: var(--pw); --tint: var(--pw-tint); }

/* Screenshots */
.shots-band { background: var(--tint); padding: 40px 0; }
.shots-band h2 { font-size: var(--step-2); margin-bottom: 20px; }
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 220px; scroll-snap-align: start; }
.shots img { border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(30,26,59,.12); }
.shots figcaption { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px; }
.features h3 { font-size: var(--step-1); margin-bottom: 8px; }
.features p, .features ul { color: var(--muted); margin: 0; }
.features ul { padding-left: 1.1em; }
.features li + li { margin-top: 4px; }
.features b { color: var(--ink); font-weight: 600; }
code { font-family: inherit; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 1px 7px; border-radius: 6px; font-size: .92em; white-space: nowrap; color: var(--ink); }

/* Privacy band */
.privacy { background: var(--accent); color: var(--on-accent); border-radius: 28px; padding: 36px; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.privacy h2 { font-size: var(--step-2); }
.privacy p { opacity: .92; }

/* Steps, roadmap */
.steps { padding-left: 1.3em; margin: 0; }
.steps li { margin-bottom: 8px; padding-left: 4px; }
.steps + p { margin-top: 14px; }
.sub { font-size: var(--step-1); margin: 28px 0 10px; }
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.roadmap li { display: grid; grid-template-columns: 70px 140px 1fr; gap: 16px; padding: 14px 18px; background: var(--surface); }
.roadmap li:first-child { border-radius: 18px 18px 0 0; }
.roadmap li:last-child { border-radius: 0 0 18px 18px; }
.roadmap .v { font-weight: 700; }
.roadmap .t { font-weight: 600; }
.roadmap span:last-child { color: var(--muted); }
.roadmap li.now { background: var(--accent); color: var(--on-accent); }
.roadmap li.now span:last-child { color: inherit; opacity: .9; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 18px; overflow: hidden; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; width: 34%; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--tint); width: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 32px 0 44px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 32px; }
  .app-row { grid-template-columns: auto 1fr; }
  .app-row .btns { grid-column: 1 / -1; }
  .promises, .features { grid-template-columns: 1fr; gap: 28px; }
  .privacy { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 560px) {
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .site-nav { width: 100%; }
  .site-nav a { padding: 6px 10px; }
  .app-row { padding: 22px; gap: 18px; }
  .app-row img { width: 64px; height: 64px; border-radius: 16px; }
  .app-hero { grid-template-columns: 1fr; gap: 18px; padding-top: 36px; }
  .app-hero img.icon { width: 96px; height: 96px; border-radius: 24px; }
  .roadmap li { grid-template-columns: 56px 1fr; }
  .roadmap span:last-child { grid-column: 1 / -1; }
  .shots figure { flex-basis: 180px; }
}
