/* OpenLOS site. System type (SF on Apple devices), quiet colors, big type, generous space. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --border: #d2d2d7;
  --hairline: rgb(0 0 0 / 0.08);
  --accent: #1f5eff;
  --accent-hover: #0f4ae0;
  --accent-soft: #eef3ff;
  --ink: #000000;
  --ink-text: #f5f5f7;
  --ink-2: #a1a1a6;
  --ok: #1d8a3c;
  --warn: #9a6500;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1080px;
  --wide: 1240px;
  --shadow-shot: 0 2px 4px rgb(0 0 0 / 0.04), 0 24px 60px -12px rgb(0 0 0 / 0.22);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101012;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --border: #3a3a3c;
    --hairline: rgb(255 255 255 / 0.1);
    --accent: #4d8bff;
    --accent-hover: #74a5ff;
    --accent-soft: #0d1a33;
    --ink: #101012;
    --ok: #32d74b;
    --warn: #ffd60a;
    --shadow-shot: 0 2px 4px rgb(0 0 0 / 0.3), 0 30px 80px -10px rgb(0 0 0 / 0.7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.53 var(--font); letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
b, strong { font-weight: 600; }
code { font: 0.88em var(--mono); background: var(--bg-alt); border-radius: 6px; padding: 2px 6px; }
pre { font: 14px/1.6 var(--mono); background: var(--bg-alt); border-radius: 14px; padding: 18px 20px; overflow-x: auto; margin: 0 0 20px; }
pre code { background: none; padding: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.wrap.wide { max-width: var(--wide); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 10px; z-index: 20; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------------------------------------------------------------- header */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
header.top .wrap { display: flex; align-items: center; height: 52px; gap: 6px; max-width: var(--wide); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: var(--text); margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; }
nav.links { display: flex; align-items: center; gap: 2px; }
nav.links a { color: var(--text); opacity: 0.8; font-size: 13px; padding: 6px 10px; border-radius: 8px; }
nav.links a:hover { opacity: 1; text-decoration: none; }
nav.links a[aria-current="page"] { opacity: 1; font-weight: 600; }
nav.links a.pill { opacity: 1; background: var(--accent); color: #fff; font-weight: 500; padding: 5px 13px; border-radius: 99px; margin-left: 8px; }
nav.links a.pill:hover { background: var(--accent-hover); }
.menu { display: none; }

/* ---------------------------------------------------------------- type */
h1, h2, h3 { color: var(--text); font-weight: 700; }
h1 { font-size: clamp(42px, 7vw, 80px); line-height: 1.04; letter-spacing: -0.045em; margin: 0 0 22px; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.07; letter-spacing: -0.038em; margin: 0 0 18px; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.022em; margin: 0 0 8px; font-weight: 600; }
.lede { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.42; letter-spacing: -0.02em; color: var(--text-2); max-width: 40ch; margin: 0 0 30px; font-weight: 400; }
.lede.wide { max-width: 56ch; }
.eyebrow { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--accent); margin: 0 0 10px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.gradient-text { background: linear-gradient(100deg, var(--accent) 10%, #8a5cff 60%, #ff5c9a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- sections */
section { padding: 110px 0; }
section.tight { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
section.ink { background: var(--ink); color: var(--ink-text); }
section.ink h2, section.ink h3 { color: var(--ink-text); }
section.ink .lede, section.ink .muted { color: var(--ink-2); }
section.ink .eyebrow { color: #7aa7ff; }
.hero { padding: 92px 0 0; text-align: center; overflow: hidden; }
.hero h1 { max-width: 14ch; margin-left: auto; margin-right: auto; }
.hero .lede { margin-left: auto; margin-right: auto; max-width: 44ch; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); margin: 0 0 22px; }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }

/* ---------------------------------------------------------------- buttons */
.ctas { display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; }
.center .ctas, .hero .ctas { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 24px; border-radius: 99px; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; background: var(--accent); color: #fff; border: 0; transition: background 0.2s; }
.btn:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent); }
.link-arrow { font-size: 17px; font-weight: 500; }
.link-arrow::after { content: " ›"; }
section.ink .btn.ghost { color: #fff; border-color: rgb(255 255 255 / 0.4); }
section.ink .link-arrow { color: #7aa7ff; }

/* ---------------------------------------------------------------- product shots */
.window { border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-shot); border: 1px solid var(--hairline); }
.window .bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 13px; background: color-mix(in srgb, var(--bg-alt) 92%, var(--text) 4%); border-bottom: 1px solid var(--hairline); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window .bar i:nth-child(2) { background: #febc2e; }
.window .bar i:nth-child(3) { background: #28c840; }
.window .bar span { margin: 0 auto; font-size: 12px; color: var(--text-3); padding-right: 48px; }
.hero .window { max-width: 1120px; margin: 64px auto 0; border-radius: 16px 16px 0 0; border-bottom: 0; }
.shot-crop { max-height: 640px; overflow: hidden; }
section.ink .window { border-color: rgb(255 255 255 / 0.12); }

/* A close-up of the app on a soft backdrop. */
.stage { background: linear-gradient(160deg, #e8eefc 0%, #f3eefc 55%, #fbeff4 100%); border-radius: var(--radius-lg); padding: clamp(18px, 4vw, 44px); }
.stage img { border-radius: 14px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 18px 40px -12px rgb(30 40 90 / 0.28); }
.wide-stage { max-width: 1080px; margin: 56px auto 0; }
.stage.dark { background: linear-gradient(160deg, #1b2440 0%, #241b3a 100%); }
@media (prefers-color-scheme: dark) {
  .stage { background: linear-gradient(160deg, #141a2e 0%, #1c1630 100%); }
}

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; text-align: center; }
.stats > div { padding: 8px 24px; }
.stats > div + div { border-left: 1px solid var(--border); }
.stat { display: block; font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; margin-bottom: 8px; }
.stats p { margin: 0; color: var(--text-2); font-size: 17px; }

/* ---------------------------------------------------------------- feature splits */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.points li { padding-left: 0; color: var(--text-2); }
.points li b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
section.ink .points li { color: var(--ink-2); }
section.ink .points li b { color: var(--ink-text); }

/* ---------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { grid-column: span 2; background: var(--bg-alt); border-radius: var(--radius-lg); padding: 30px 30px 32px; min-height: 230px; display: flex; flex-direction: column; gap: 22px; }
section.alt .tile { background: var(--surface); }
.tile.big { grid-column: span 3; }
.tile.full { grid-column: span 6; }
.tile h3 { font-size: 24px; letter-spacing: -0.03em; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.47; }
.tile .kicker { font-size: 14px; font-weight: 600; color: var(--accent); margin: 0; }
.tile .glyph { width: 40px; height: 40px; flex: none; color: var(--accent); }
.tile .big-number { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; height: 40px; margin: 0; color: var(--accent); }
.tile.big h3 { font-size: 28px; }

/* ---------------------------------------------------------------- cards and lists used by inner pages */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--bg-alt); border-radius: var(--radius); padding: 26px; }
section.alt .card { background: var(--surface); }
.card h3 { font-size: 19px; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
a.card.door { color: var(--text); transition: transform 0.25s ease; }
a.card.door:hover { transform: scale(1.015); text-decoration: none; }
ul.check { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
ul.check li { padding-left: 30px; position: relative; color: var(--text-2); }
ul.check li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); }
ul.check li::after { content: ""; position: absolute; left: 7px; top: 10px; width: 6px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps .card { position: relative; padding-left: 72px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; left: 24px; top: 24px; width: 30px; height: 30px; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 600; display: grid; place-items: center; font-size: 15px; }
.note { background: var(--bg-alt); border-radius: 14px; padding: 16px 20px; color: var(--text-2); font-size: 15px; }
.shot { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-shot); border: 1px solid var(--hairline); background: var(--surface); }
.status { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-2); margin-bottom: 20px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
details { border-bottom: 1px solid var(--border); padding: 20px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 24px; line-height: 1; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--text-2); margin: 12px 0 0; max-width: 70ch; }
.prose { max-width: 70ch; }
.prose p, .prose li { color: var(--text-2); }
.prose h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 56px; }
.prose h3 { margin-top: 32px; }
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: 70ch; }
.wrap.prose > pre, .wrap.prose > .table-scroll { max-width: 100%; }
.page-head { padding: 88px 0 40px; }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); max-width: 18ch; }

/* ---------------------------------------------------------------- compare table */
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 15px; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--border); }
table.compare thead th { font-size: 14px; color: var(--text-2); font-weight: 600; }
table.compare thead th:nth-child(2) { color: var(--accent); }
table.compare tbody th { width: 170px; color: var(--text); font-weight: 600; }
table.compare td { color: var(--text-2); }
table.compare td:nth-child(2) { color: var(--text); background: var(--accent-soft); }
table.compare tbody tr:last-child > * { border-bottom: 0; }

/* ---------------------------------------------------------------- final call to action */
.closer { text-align: center; }
.closer .ctas { justify-content: center; }
.closer h2 { max-width: 16ch; margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- footer */
footer { background: var(--bg-alt); color: var(--text-3); font-size: 12px; line-height: 1.5; padding: 22px 0 36px; }
footer .wrap { max-width: var(--wide); }
footer .fine { padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 20px; max-width: 90ch; }
footer .cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
footer h4 { font-size: 12px; font-weight: 600; color: var(--text); margin: 0 0 10px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--text-2); }
footer a:hover { color: var(--text); }

/* ---------------------------------------------------------------- motion: things rise into place once */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .split, .grid, .grid.two { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > :first-child { order: 0; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.big, .tile.full { grid-column: auto; min-height: 0; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .stats > div + div { border-left: 0; }
  footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section { padding: 76px 0; }
  .hero { padding-top: 60px; }
  nav.links { display: none; position: absolute; top: 52px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--hairline); padding: 8px 22px 20px; }
  nav.links a { font-size: 19px; padding: 12px 0; opacity: 1; border-bottom: 1px solid var(--hairline); border-radius: 0; }
  nav.links a.pill { margin: 16px 0 0; text-align: center; border-bottom: 0; padding: 12px; border-radius: 99px; }
  .menu { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: none; color: var(--text); cursor: pointer; margin-right: -10px; }
  header.top.open nav.links { display: flex; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .btn { width: 100%; }
  .ctas { flex-direction: column; align-items: stretch; }
  .hero .ctas .link-arrow { text-align: center; }
}

/* Inner pages open with a left-aligned title block. */
.hero .wrap.prose { text-align: left; padding-bottom: 28px; }
.hero .wrap.prose h1, .hero .wrap.prose .lede { margin-left: 0; margin-right: 0; }
.hero .wrap.prose h1 { max-width: 18ch; font-size: clamp(40px, 6vw, 64px); }
.hero .wrap.prose .ctas { justify-content: flex-start; }

/* Three-column tables in guides fit the page instead of scrolling. */
table.compare.slim { min-width: 640px; }
table.compare.slim tbody th { width: 190px; }
table.compare.slim td:nth-child(2) { color: var(--text-2); background: none; }
table.compare.slim td:nth-child(3) { color: var(--text); background: var(--accent-soft); }
table.compare.slim thead th:nth-child(2) { color: var(--text-2); }
table.compare.slim thead th:nth-child(3) { color: var(--accent); }
