/* Verso — foundation: type, tokens, chrome, buttons, footer.
   The palette is the app icon itself: the blue plate it sits on, read from the
   light top-left corner down to the deep navy at the bottom, plus the two paper
   accents — the amber rule on the cream page and the red one on the blush page. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD, U+21A9, U+21E5, U+21E7, U+2303,
    U+2318, U+2325, U+232B, U+2326, U+238B, U+23CE, U+2423, U+2264-2265, U+25B2,
    U+25BC, U+2713;
}
@font-face {
  font-family: "Inter Fallback Mac";
  src: local("Helvetica Neue");
  size-adjust: 105.99%;
  ascent-override: 91.40%;
  descent-override: 22.76%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 107.34%;
  ascent-override: 90.25%;
  descent-override: 22.47%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;

  --font-sans: "Inter", "Inter Fallback Mac", "Inter Fallback", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  --font: var(--font-sans);
  --mono: var(--font-mono);

  --bg: #ffffff;
  --bg-alt: #f3f5f9;
  --surface: #ffffff;
  --raised: #ffffff;
  --sunken: #f1f3f8;
  --ink: #1d1d1f;
  --ink-2: #494a50;
  --ink-3: #5e6068;
  --ink-4: #6d6f78;
  --hairline: #c7cbd6;
  --hairline-soft: #e1e4ed;
  --border-strong: #85888f;

  /* Accent — the icon's plate blue, held dark enough to carry white text. */
  --accent: #1d5fd4;
  --accent-2: #eb9933;
  --accent-ink: #1a55bd;
  --accent-soft: rgba(29, 95, 212, 0.09);
  --accent-line: rgba(29, 95, 212, 0.28);
  --on-accent: #ffffff;

  /* The plate sweep. Display type, the mark, glows and washes. */
  --grad: linear-gradient(96deg, #74a0ea 0%, #4a86e8 30%, #2e63cd 64%,
      #1e3880 100%);
  --grad-warm: linear-gradient(93deg, var(--accent), var(--accent-2));

  /* The three papers in the icon, as usable surfaces. */
  --paper: #ffffff;
  --paper-cream: #fffaf2;
  --paper-blush: #fff6f5;
  --rule-amber: #eb9933;
  --rule-red: #d14a4a;
  --rule-blue: #3d80e6;

  --green: #12793c;
  --green-soft: rgba(18, 121, 60, 0.12);
  --amber: #8a5a05;
  --amber-soft: rgba(235, 153, 51, 0.17);
  --red: #b3241a;
  --red-soft: rgba(209, 74, 74, 0.12);
  --blue: #1d5fd4;
  --blue-soft: rgba(29, 95, 212, 0.1);
  --violet: #6647c8;
  --violet-soft: rgba(102, 71, 200, 0.11);

  --fill-1: rgba(16, 32, 68, 0.032);
  --fill-2: rgba(16, 32, 68, 0.058);
  --fill-3: rgba(16, 32, 68, 0.088);
  --fill-hi: rgba(255, 255, 255, 0.9);
  --chrome-glass: rgba(252, 253, 255, 0.82);

  --sh-low: 0 1px 2px rgba(15, 28, 63, 0.07);
  --sh-med: 0 8px 26px rgba(15, 28, 63, 0.1);
  --sh-hi: 0 22px 60px -18px rgba(15, 28, 63, 0.24);
  --ring: 0 0 0 1px rgba(15, 28, 63, 0.08);

  --r-4: 4px;
  --r-6: 6px;
  --r-8: 8px;
  --r-10: 10px;
  --r-12: 12px;
  --r-14: 14px;
  --r-18: 18px;
  --r-24: 24px;
  --r-28: 28px;
  --radius-card: var(--r-24);
  --radius-media: var(--r-18);

  --measure: 44rem;
  --nav-h: 60px;

  --snappy: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-reveal: cubic-bezier(0.28, 0.11, 0.32, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0a0d16;
  --bg-alt: #111520;
  --surface: #151a26;
  --raised: #1a1f2d;
  --sunken: #0d1019;
  --ink: #f4f5f8;
  --ink-2: #c1c5d0;
  --ink-3: #9ea3b1;
  --ink-4: #888d9c;
  --hairline: rgba(255, 255, 255, 0.17);
  --hairline-soft: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.34);

  --accent: #6aa3ff;
  --accent-2: #ffbe5c;
  --accent-ink: #8dbaff;
  --accent-soft: rgba(106, 163, 255, 0.16);
  --accent-line: rgba(106, 163, 255, 0.4);
  --on-accent: #06142f;

  --grad: linear-gradient(96deg, #9dc2ff 0%, #6aa3ff 32%, #4b82f0 66%,
      #3358c4 100%);
  --grad-warm: linear-gradient(93deg, var(--accent), var(--accent-2));

  --paper: #e9ecf3;
  --paper-cream: #efe9df;
  --paper-blush: #efe2e1;
  --rule-amber: #f2a648;
  --rule-red: #e06464;
  --rule-blue: #5b96ee;

  --green: #45d67a;
  --green-soft: rgba(69, 214, 122, 0.16);
  --amber: #ffb340;
  --amber-soft: rgba(255, 179, 64, 0.16);
  --red: #ff6b63;
  --red-soft: rgba(255, 107, 99, 0.16);
  --blue: #6aa3ff;
  --blue-soft: rgba(106, 163, 255, 0.16);
  --violet: #a58dff;
  --violet-soft: rgba(165, 141, 255, 0.16);

  --fill-1: rgba(255, 255, 255, 0.04);
  --fill-2: rgba(255, 255, 255, 0.07);
  --fill-3: rgba(255, 255, 255, 0.11);
  --fill-hi: rgba(255, 255, 255, 0.08);
  --chrome-glass: rgba(14, 18, 28, 0.78);

  --sh-low: 0 1px 2px rgba(0, 0, 0, 0.5);
  --sh-med: 0 8px 26px rgba(0, 0, 0, 0.5);
  --sh-hi: 0 22px 60px -18px rgba(0, 0, 0, 0.75);
  --ring: 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* ---------------------------------------------------------------- reset -- */

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

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

body {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, svg, video, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-weight: 650; letter-spacing: -0.02em; }
strong, b { font-weight: 640; }
table, .tabular, time, .num { font-variant-numeric: tabular-nums; }
code, kbd, samp, pre { font-family: var(--font-mono); }
::selection { background: var(--accent-soft); }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: var(--r-4);
}
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-10);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transition: top 0.18s var(--smooth);
}
.skip-link:focus { top: 12px; text-decoration: none; }

.container,
.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 22px;
}
.center { text-align: center; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.eyebrow {
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.01em;
  color: var(--accent-ink);
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------ nav -- */

.nav {
  position: fixed;
  inset: 12px 12px auto;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--nav-h);
  padding: 0 8px 0 14px;
  margin-inline: auto;
  max-width: 1180px;
  border-radius: var(--r-18);
  background: var(--chrome-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--ring), var(--sh-low);
  transition: top 0.3s var(--smooth), box-shadow 0.3s var(--smooth);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: var(--bg); }
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 640;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.nav-brand:hover { text-decoration: none; }
.nav-mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
}
.nav-links { display: flex; gap: 2px; margin-left: 14px; flex: 1; min-width: 0; }
.nav-links a {
  padding: 7px 11px;
  border-radius: var(--r-8);
  font-size: 14.5px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--ink); background: var(--fill-1); text-decoration: none; }
.nav-links a[aria-current] { color: var(--ink); font-weight: 600; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-10);
  color: var(--ink-2);
  transition: color 0.18s, background 0.18s;
}
.theme-toggle:hover { color: var(--ink); background: var(--fill-1); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: block; }

/* On a narrow screen the bar keeps the one link that earns its width. The
   rest of the site is a tap away in the footer. */
@media (max-width: 880px) {
  .nav-links { margin-left: 6px; }
  .nav-links a { padding: 7px 9px; font-size: 14px; }
  .nav-links a[href="/#features"],
  .nav-links a[href="/support/"] { display: none; }
}
@media (max-width: 360px) { .nav-links { display: none; } }

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s var(--snappy), background 0.2s, opacity 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-quiet { background: var(--fill-2); color: var(--ink); }
.btn-quiet:hover { background: var(--fill-3); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 980px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-ink); text-decoration: none; }

.link-chevron { font-size: 15.5px; font-weight: 500; color: var(--accent-ink); }
.link-chevron::after { content: " \203A"; }

/* ------------------------------------------------------------- cta card -- */

.cta-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 2.6em 0 0;
  padding: 24px 26px;
  border-radius: var(--r-18);
  background: var(--fill-1);
  border: 1px solid var(--hairline-soft);
  box-shadow: inset 0 1px 0 var(--fill-hi);
}
.cta-card-mark { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; }
.cta-card-title { font-size: 19px; font-weight: 640; letter-spacing: -0.018em; }
.cta-card-text { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.cta-card-action { grid-column: 1 / -1; margin-top: 4px; }
.cta-card-meta { margin-top: 10px; font-size: 13px; color: var(--ink-4); }
@media (min-width: 720px) {
  .cta-card { grid-template-columns: auto 1fr auto; }
  .cta-card-action { grid-column: auto; margin-top: 0; }
}

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

.site-footer {
  margin-top: 80px;
  padding: 44px 0 56px;
  border-top: 1px solid var(--hairline-soft);
  background: var(--bg-alt);
  font-size: 13.5px;
  color: var(--ink-3);
}
.footer-in { display: grid; gap: 20px; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 620;
  color: var(--ink);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--ink-3); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--ink-4); line-height: 1.6; }
.footer-copy .mono { font-family: var(--font-mono); font-size: 0.95em; }

/* ------------------------------------------------------- app store badge -- */

.appstore-badge {
  --asb-bg: #000;
  --asb-fg: #fff;
  display: inline-block;
  width: 178px;
  max-width: 100%;
  line-height: 0;
  border-radius: 9px;
  transition: transform 0.18s var(--ease-reveal), opacity 0.18s;
}
.appstore-badge svg { display: block; width: 100%; height: auto; }
.appstore-badge .asb-bg { fill: var(--asb-bg); }
.appstore-badge .asb-fg { fill: var(--asb-fg); }
.appstore-badge .asb-1 {
  font: 500 9.2px/1 -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica,
    Arial, sans-serif;
  letter-spacing: 0.01em;
}
.appstore-badge .asb-2 {
  font: 500 18px/1 -apple-system, "SF Pro Display", "Helvetica Neue", Helvetica,
    Arial, sans-serif;
  letter-spacing: -0.02em;
}
.appstore-badge:hover { transform: translateY(-1px); opacity: 0.92; }
.appstore-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:root[data-theme="dark"] .appstore-badge { --asb-bg: #fff; --asb-fg: #000; }

/* ------------------------------------------------------- reduced motion -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
  .appstore-badge { transition: none; }
  .appstore-badge:hover { transform: none; }
}
