/* Encore website. One stylesheet, no framework. */
:root {
  --bg: #fbfbfd; --bg-alt: #f2f2f5; --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.1); --card: #ffffff; --accent: #e8503f; --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1120px; --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-alt: #101012; --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #86868b;
    --line: rgba(255, 255, 255, 0.14); --card: #161618; --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-alt: #101012; --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #86868b;
  --line: rgba(255, 255, 255, 0.14); --card: #161618; --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), 100% - 44px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 0.82rem; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; background: none; color: var(--ink-2); border-radius: 8px; cursor: pointer; }
.icon-btn:hover { color: var(--ink); background: var(--bg-alt); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

/* Type */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7.2vw, 5.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.4rem); color: var(--ink-2); line-height: 1.4; max-width: 34em; text-wrap: pretty; }
.eyebrow { font-size: 0.95rem; font-weight: 600; color: var(--accent); letter-spacing: 0; margin-bottom: 10px; }
.muted { color: var(--ink-2); }
.small { font-size: 0.82rem; color: var(--ink-3); }
.dim { color: var(--ink-3); }

/* Sections */
section { padding: clamp(72px, 11vw, 150px) 0; }
section.tight { padding-top: 0; }
.head { display: grid; gap: 18px; justify-items: center; text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.head.left { justify-items: start; text-align: left; }
.hero { padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(40px, 6vw, 80px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.head.left .actions { justify-content: flex-start; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; font: 500 1rem var(--font); text-decoration: none; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: background-color 0.15s ease, transform 0.15s ease; }
.btn:hover { background: var(--bg-alt); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 84%, var(--bg)); }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.link { color: var(--accent); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* Media */
.frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; position: relative; border: 1px solid var(--line); }
.frame img, .frame video { width: 100%; }
figure { margin: 0; }
figcaption { margin-top: 14px; text-align: center; font-size: 0.82rem; color: var(--ink-3); }
.player { position: relative; }
.player video { aspect-ratio: 16 / 9; background: #000; }
.play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35)); color: #fff; }
.play span { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, 0.35); transition: transform 0.2s ease, background-color 0.2s ease; }
.play:hover span { transform: scale(1.06); background: rgba(255, 255, 255, 0.28); }
.play svg { width: 30px; height: 30px; margin-left: 4px; }

/* Three states in a row */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trio figure .frame { border-radius: 16px; box-shadow: none; }
.trio figcaption { text-align: left; font-size: 0.95rem; color: var(--ink-2); }
.trio figcaption strong { display: block; color: var(--ink); font-weight: 600; }

/* The lock screen panel */
.stage { border-radius: var(--radius); padding: clamp(18px, 4vw, 54px); background: radial-gradient(120% 120% at 50% 0%, #1a2742 0%, #070a14 70%); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2vw, 26px); align-items: center; border: 1px solid var(--line); }
.stage figcaption { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }
.stage figcaption strong { color: #fff; display: block; font-weight: 600; }

/* Two-column feature */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .copy { display: grid; gap: 18px; }
.list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.list li { padding-left: 22px; position: relative; color: var(--ink-2); }
.list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0.85; }
.list strong { color: var(--ink); font-weight: 600; }

/* Presets */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { text-decoration: none; display: grid; gap: 12px; }
.card .frame { border-radius: 14px; box-shadow: 0 16px 40px -22px rgba(0, 0, 0, 0.45); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover .frame { transform: translateY(-3px); box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.55); }
.card h3 { font-size: 1.05rem; }
.card p { font-size: 0.92rem; color: var(--ink-2); }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-bottom: 34px; }
.chip { height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font: 500 0.88rem var(--font); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.field { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 0.9rem var(--font); min-width: 200px; }
.swatches { display: flex; gap: 6px; }
.swatches span { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); }
dl.spec { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px 22px; margin: 0; }
dl.spec dt { color: var(--ink-3); font-size: 0.92rem; }
dl.spec dd { margin: 0; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; color: var(--ink-2); }
.pager a:hover { color: var(--ink); }

/* Plain panels, tables, prose */
.band { background: var(--bg-alt); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); background: var(--card); display: grid; gap: 16px; }
.panel.centre { text-align: center; justify-items: center; }
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 48px; }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.cols h3 { margin-bottom: 8px; }
.prose { max-width: 44em; display: grid; gap: 16px; }
.prose h2 { font-size: 1.7rem; margin-top: 30px; letter-spacing: -0.02em; }
.prose h3 { margin-top: 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
code { font: 0.88em var(--mono); background: var(--bg-alt); padding: 1px 6px; border-radius: 5px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-3); font-weight: 500; font-size: 0.85rem; }
.tag { display: inline-block; font-size: 0.74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); vertical-align: middle; }
.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs aside { position: sticky; top: 84px; display: grid; gap: 14px; }
.docs aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.92rem; }
.docs aside a { text-decoration: none; color: var(--ink-2); }
.docs aside a:hover { color: var(--ink); }
.doc { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.licence-key { font: 600 clamp(1.05rem, 3.4vw, 1.5rem) var(--mono); letter-spacing: 0.04em; margin: 0; overflow-wrap: anywhere; user-select: all; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 60px; font-size: 0.85rem; color: var(--ink-3); }
.foot { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Appearing on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card .frame, .play span { transition: none; }
}

@media (max-width: 900px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cols.three { grid-template-columns: repeat(2, 1fr); }
  .docs { grid-template-columns: 1fr; gap: 28px; }
  .docs aside { position: static; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .menu-btn { display: inline-grid; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 52px; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 22px 16px; font-size: 1rem; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 11px 0; }
  .trio, .stage { grid-template-columns: 1fr; }
  .grid, .grid.two, .cols, .cols.three { grid-template-columns: 1fr; }
  dl.spec { grid-template-columns: 1fr; gap: 4px; }
  dl.spec dd { margin-bottom: 12px; }
  .field { min-width: 0; width: 100%; }
}

/* A short notice above a page's content. */
.note { max-width: 46em; margin: 0 auto 28px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-alt); color: var(--ink); font-size: 0.95rem; text-align: center; }
