/* i2.lt – one stylesheet, no external resources. Colours follow the app icon. */

:root {
  color-scheme: light dark;
  --bg: #faf6f0;
  --bg-soft: #f3ece2;
  --surface: #ffffff;
  --ink: #221e1b;
  --muted: #6b625a;
  --line: rgba(34, 30, 27, 0.12);
  --accent: #ff8a2e;          /* icon orange */
  --accent-ink: #a8500e;      /* orange text on light background (WCAG AA) */
  --on-accent: #221e1b;
  --glow: rgba(255, 138, 46, 0.16);
  --shadow: 0 1px 2px rgba(34, 30, 27, 0.06), 0 8px 24px rgba(34, 30, 27, 0.06);
  --radius: 18px;
  --wrap: 1120px;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1816;
    --bg-soft: #221e1b;
    --surface: #2a2522;
    --ink: #f0e8dc;           /* icon cream */
    --muted: #a99f94;
    --line: rgba(240, 232, 220, 0.12);
    --accent-ink: #ffa35c;
    --glow: rgba(255, 138, 46, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-ink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

code { font: 0.88em var(--mono); background: var(--bg-soft); padding: 0.1em 0.35em; border-radius: 5px; overflow-wrap: anywhere; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

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

/* ------------------------------------------------------------------ header */

.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 18px/1 var(--display); }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 600px) { .nav { gap: 14px; } .nav .optional { display: none; } }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; overflow: hidden; padding: 72px 0 0; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -30% -20% auto auto; width: 70%; height: 90%;
  background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero .wrap { position: relative; }
.app-icon { width: 128px; height: 128px; margin: 0 auto 18px; }
.eyebrow { margin: 0; font: 700 15px/1.2 var(--display); letter-spacing: 0.02em; color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; }
.hero h1 { font-size: clamp(36px, 6.4vw, 68px); margin: 10px auto 18px; text-wrap: balance; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40em; margin: 0 auto; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 0; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.button.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.button:hover { filter: brightness(1.04); text-decoration: none; }
.meta { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.shot { margin: 56px auto 0; max-width: 1040px; }
.shot img { margin: 0 auto -1px; }

/* ------------------------------------------------------------------ sections */

section { padding: 88px 0; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 44em; margin: 0 0 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin: 8px 0 12px; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 20px; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-ink); }
.badge svg { width: 22px; height: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }

.gallery { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; text-align: center; }

/* attribution table: a table on wide screens, stacked rows on phones */
.rules { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 16px; }
.rules th, .rules td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.rules thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--bg-soft); }
.rules tbody tr:last-child td { border-bottom: 0; }
.rules td:first-child { font-weight: 600; white-space: nowrap; }
.yes { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 700px) {
  .rules thead { display: none; }
  .rules, .rules tbody, .rules tr, .rules td { display: block; }
  .rules tr { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .rules td { border: 0; padding: 3px 0; }
  .rules td:first-child { white-space: normal; }
  .rules td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 400; }
}

.download { display: grid; gap: 28px; grid-template-columns: auto 1fr; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.download img { width: 112px; height: 112px; }
.download h2 { margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 34px); }
.download p { margin: 0 0 6px; color: var(--muted); }
.download .actions { justify-content: flex-start; margin-top: 18px; }
@media (max-width: 640px) { .download { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; }
  .download img { margin: 0 auto; } .download .actions { justify-content: center; } }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 26px/1 var(--text); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 46em; }

/* ------------------------------------------------------------------ text pages */

.page { padding: 64px 0 88px; }
.prose { max-width: 46em; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 8px; }
.prose h2 { font-size: 26px; margin: 48px 0 10px; }
.prose h3 { font-size: 19px; margin: 28px 0 6px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.updated { color: var(--muted); margin: 0 0 32px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 18px 22px; margin: 0 0 8px; box-shadow: var(--shadow); }
.summary p { margin: 0; }

/* ------------------------------------------------------------------ footer */

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
