/* Vesper:Chat. Shared by every page: the light paper theme, menu bar, buttons,
   the phone that plays a clip, the closing call, footer and the text pages. */

:root {
  --paper: #f6f4fb;
  --white: #fff;
  --ink: #1b1730;
  --soft: #6b6580;
  --violet: #6a48d7;
  --line: rgba(27, 23, 48, 0.1);
  --sky: linear-gradient(180deg, #5a5a86, #2c4766 60%, #24405e);
  --max: 1160px;
  /* where the page content starts on the left and right */
  --edge: max(22px, calc((100vw - var(--max)) / 2 + 22px));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --hand: "Noteworthy", "Bradley Hand", "Segoe Print", cursive;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- menu bar ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 26px;
  /* the top and the sides keep clear of the notch and the rounded corners */
  padding: env(safe-area-inset-top) max(var(--edge), env(safe-area-inset-right)) 0 max(var(--edge), env(safe-area-inset-left));
  background: rgba(246, 244, 251, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled, .nav.open { border-bottom-color: var(--line); }
.nav.open { background: rgba(246, 244, 251, 0.97); }
.brand { display: flex; align-items: center; gap: 9px; min-height: 52px; font-weight: 600; font-size: 15px; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 13px; color: var(--soft); }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a[aria-current] { box-shadow: inset 0 -2px 0 var(--violet); }
/* the "Get the app" pill is 32px tall; its tap area is 44px */
.nav .pill { position: relative; }
.nav .pill::after { content: ""; position: absolute; inset: -6px -4px; }

.menu-btn {
  display: none; width: 44px; height: 44px; margin-right: -12px; padding: 0;
  border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; place-items: center;
}
.bars { position: relative; display: block; width: 18px; height: 10px; }
.bars::before, .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 1px; background: currentColor;
  transition: top 0.3s var(--ease), transform 0.3s var(--ease);
}
.bars::before { top: 1px; }
.bars::after { top: 7px; }
.nav.open .bars::before { top: 4px; transform: rotate(45deg); }
.nav.open .bars::after { top: 4px; transform: rotate(-45deg); }

@media (max-width: 720px) {
  .nav { column-gap: 12px; }
  .brand { margin-right: auto; }
  .menu-btn:not([hidden]) { display: grid; }
  /* without scripts: the links sit in a row under the bar, and the row scrolls sideways */
  .nav-links { order: 5; flex: 0 0 calc(100% + 16px); margin: 0 -8px; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: none; padding: 0 10px; }
  /* with scripts: the menu button opens a full-width sheet */
  .nav.has-menu .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex: none; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px max(22px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
    max-height: calc(100dvh - 60px); overflow-y: auto;
    background: rgba(246, 244, 251, 0.99); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav.has-menu.open .nav-links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav.has-menu .nav-links a { min-height: 54px; padding: 0; font-size: 19px; font-weight: 500; color: var(--ink); border-top: 1px solid var(--line); box-shadow: none; }
  .nav.has-menu .nav-links a:first-child { border-top: 0; }
  .nav.has-menu .nav-links a[aria-current] { color: var(--violet); }
}
@media (max-width: 359px) { .brand span { display: none; } }

/* ---------- buttons and links ---------- */

.pill, .btn { display: inline-flex; align-items: center; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 600; white-space: nowrap; transition: transform 0.2s var(--ease); }
.pill { padding: 7px 14px; font-size: 13px; }
.btn { padding: 15px 28px; font-size: 17px; }
.pill:hover, .btn:hover { transform: scale(1.03); }
.link { display: inline-flex; gap: 6px; font-size: 17px; font-weight: 600; color: var(--violet); }
.link span { transition: transform 0.2s var(--ease); }
.link:hover span { transform: translateX(4px); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 30px; }
.more-wrap { text-align: center; margin-top: 40px; }
.fine { font-size: 13px; color: var(--soft); }

/* "Coming soon" (the Mac) */
.soon-pill { display: inline-block; padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--ink); }

/* a Mac screenshot (the MacBook on a clear background) */
.mac-shot { width: 100%; height: auto; filter: drop-shadow(0 26px 40px rgba(40, 20, 90, 0.18)); }

/* ---------- section headings ---------- */

.sec-h { font-size: clamp(38px, 5.2vw, 64px); letter-spacing: -0.045em; line-height: 1.03; text-align: center; }
.sec-h em, .grad { font-style: normal; background: linear-gradient(90deg, #6a48d7, #c45a9e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-sub { margin: 18px auto 0; max-width: 580px; text-align: center; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; color: var(--soft); }
.page-hero { padding: 120px 0 30px; text-align: center; background: radial-gradient(60% 70% at 50% 0%, #e7defd, transparent 70%); }
.page-hero .eyebrow { font-size: 15px; font-weight: 600; color: var(--violet); margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(42px, 6vw, 80px); letter-spacing: -0.048em; line-height: 1.0; font-weight: 750; }
.page-hero .sub { margin: 20px auto 0; max-width: 600px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--soft); }

/* ---------- a phone that plays a clip ----------
   The frame sits over the clip; its bezel covers the clip's square corners. */

.phone { position: relative; width: var(--pw, 280px); aspect-ratio: 1029 / 2170; flex: none; }
.phone .scr {
  position: absolute; left: 2.721%; top: 1.29%; width: 94.558%; height: 97.419%;
  object-fit: cover; border-radius: 12.74% / 5.87%; background: #0b0a1a;
}
.phone .frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- the four promises ---------- */

.promise-ic { width: 34px; height: 34px; stroke: var(--violet); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.deal { padding: 100px 0; }
.deal-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 50px; }
.deal-list li { display: flex; flex-direction: column; gap: 8px; padding: 26px 22px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); }
.deal-list .promise-ic { margin-bottom: 8px; }
.deal-list b { font-size: 20px; letter-spacing: -0.01em; }
.deal-list span { font-size: 15px; line-height: 1.45; color: var(--soft); }
@media (max-width: 1000px) { .deal-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .deal-list { grid-template-columns: 1fr; } }

/* ---------- closing call ---------- */

.end { padding: 110px 0 100px; text-align: center; background: linear-gradient(180deg, var(--paper), #ece6fb); }
.end .app-ic { width: 92px; height: 92px; border-radius: 21px; margin: 0 auto 28px; box-shadow: 0 20px 50px rgba(106, 72, 215, 0.3); }
.end h2 { font-size: clamp(38px, 5.2vw, 64px); letter-spacing: -0.045em; line-height: 1.03; }
.end .cta { justify-content: center; }
.end .fine { margin-top: 16px; }

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

footer { border-top: 1px solid var(--line); padding: 34px 0 48px; font-size: 12px; color: var(--soft); background: #ece6fb; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .links { display: flex; gap: 20px; margin-left: auto; }
footer a:hover { color: var(--ink); }
footer .co { border-bottom: 1px solid rgba(27, 23, 48, 0.25); }
footer .note { flex-basis: 100%; line-height: 1.6; max-width: 720px; }

/* ---------- rise-in as things arrive ---------- */

.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .nav, .nav-links, .bars::before, .bars::after { transition: none; }
}

/* ---------- text pages (support, privacy, terms) ---------- */

.doc { max-width: 720px; margin: 0 auto; padding: 132px 22px 80px; }
.doc h1 { font-size: clamp(44px, 8vw, 72px); letter-spacing: -0.045em; line-height: 1; }
.doc .stamp { margin-top: 14px; color: var(--soft); font-size: 17px; }
.doc h2 { margin-top: 56px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); }
.doc h3 { margin-top: 30px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.doc h3::first-letter { text-transform: uppercase; }
.doc h3 + p { margin-top: 8px; }
.doc p, .doc li { margin-top: 12px; font-size: 18px; line-height: 1.6; color: #3d3852; }
.doc ul { margin: 0; padding-left: 22px; list-style: disc; }
.doc li { margin-top: 8px; }
.doc a { color: var(--violet); border-bottom: 1px solid rgba(106, 72, 215, 0.35); }
.doc a:hover { border-bottom-color: var(--violet); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .muted { color: var(--soft); }
.doc .lead { font-size: 23px; color: var(--ink); letter-spacing: -0.015em; line-height: 1.4; margin-top: 30px; }
.doc table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 16px; }
.doc td { padding: 14px 18px 14px 0; border-top: 1px solid var(--line); vertical-align: top; color: #3d3852; line-height: 1.5; }
.doc td:first-child { width: 32%; color: var(--ink); font-weight: 600; }
.doc tr:last-child td { border-bottom: 1px solid var(--line); }
.doc code { font-family: var(--mono); font-size: 0.88em; color: var(--ink); }
