@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-display: swap; src: url('/assets/fonts/instrument-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 500; font-display: swap; src: url('/assets/fonts/instrument-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-display: swap; src: url('/assets/fonts/instrument-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 700; font-display: swap; src: url('/assets/fonts/instrument-sans-700.woff2') format('woff2'); }

:root {
  --accent: #5e5ce6;
  --accent-text: #4b49d6;
  --accent-soft: rgba(94, 92, 230, 0.1);
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --header: rgba(245, 245, 247, 0.8);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 30px rgba(0, 0, 0, 0.06);
  --danger: #d70015;
  --ok: #248a3d;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #7d7aff;
    --accent-text: #9b99ff;
    --accent-soft: rgba(125, 122, 255, 0.16);
    --bg: #000000;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.1);
    --header: rgba(0, 0, 0, 0.72);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --danger: #ff6961;
    --ok: #30d158;
    color-scheme: dark;
  }
}

* { 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.55 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent-soft); padding: 0.1em 0.35em; border-radius: 6px; overflow-wrap: anywhere; }
pre { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; overflow-x: auto; }
pre code { background: none; padding: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--card); padding: 8px 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand em { font-style: normal; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--accent-soft); text-decoration: none; }
.nav a[aria-current='page'] { color: var(--accent-text); font-weight: 600; }
.nav a.btn { color: #fff; margin-left: 8px; }
.menu { display: none; }
@media (max-width: 820px) {
  .site-header .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: var(--shadow); }
  .menu .nav a { padding: 12px 14px; }
  .menu .nav a.btn { margin: 6px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 1rem; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.secondary { background: var(--accent-soft); color: var(--accent-text); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btns { justify-content: center; }

/* Sections */
.hero { padding: 80px 0 40px; text-align: center; }
.hero .logo { width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 22px; box-shadow: 0 10px 40px rgba(94, 92, 230, 0.35); }
.hero p.lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--muted); max-width: 660px; margin: 0 auto 28px; }
.hero .note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.shot { border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14); border: 1px solid var(--line); background: var(--card); }
.hero-shot { margin: 48px auto 0; max-width: 1040px; position: relative; }
.hero-shot .phone { position: absolute; right: -10px; bottom: -30px; width: 22%; border-radius: 26px; border: 6px solid #1c1c1e; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); }
@media (max-width: 640px) { .hero-shot .phone { display: none; } .hero { padding-top: 48px; } }
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow { display: inline-block; color: var(--accent-text); font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { background: var(--card); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); color: var(--text); display: block; }
a.card:hover { text-decoration: none; transform: translateY(-2px); transition: transform 0.15s; }
.card h3 { margin-bottom: 4px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.dot { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 14px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.pill { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); letter-spacing: 0; }
.pill.new { background: rgba(48, 209, 88, 0.15); color: var(--ok); }
.values { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.values .card strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }

/* Feature detail */
.feature-hero { padding: 56px 0 24px; }
.feature-hero .dot { width: 56px; height: 56px; border-radius: 15px; font-size: 1.4rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
figure { margin: 0 0 32px; }
figure a { display: block; }
figcaption { color: var(--muted); font-size: 0.9rem; text-align: center; margin-top: 10px; }
figure.phone-fig { max-width: 320px; margin-left: auto; margin-right: auto; }
figure.phone-fig .shot { border-radius: 28px; border: 6px solid #1c1c1e; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 16px; }

/* Changelog */
.release { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.release time { color: var(--muted); font-size: 0.95rem; padding-top: 4px; }
.release h2 { font-size: 1.4rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.release ul { margin: 0; padding-left: 20px; }
@media (max-width: 640px) { .release { grid-template-columns: 1fr; gap: 6px; } }

/* Downloads */
.download { display: flex; flex-direction: column; gap: 10px; }
.download .btns { margin-top: auto; padding-top: 8px; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 8px; }
.callout { background: var(--accent-soft); border-radius: 16px; padding: 16px 20px; margin: 20px 0; }
.callout p:last-child { margin: 0; }

/* Form */
form.contact { display: grid; gap: 16px; }
label { font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 44px; }
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* Prose (legal, guides) */
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 40px; font-size: 0.92rem; color: var(--muted); }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: 2fr repeat(3, 1fr); }
.site-footer h4 { color: var(--text); margin: 0 0 10px; font-size: 0.95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .hero-shot picture .shot { max-width: 300px; margin: 0 auto; border-radius: 28px; border: 6px solid #1c1c1e; } }
