/* Per My Last — marketing site. Same token system as the app (renderer/tokens.css),
   trimmed to what a single static landing page needs. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/PlusJakartaSans-latin.woff2') format('woff2');
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/JetBrainsMono-latin.woff2') format('woff2');
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --vc-ink:       #17171a;
  --vc-muted:     #6b6b73;
  --vc-white:     #ffffff;
  --vc-paper:     #f7f7f9;
  --vc-border:    #e4e4e9;
  --vc-blue:      #2b6cf6;
  --vc-blue-soft: #f0f5ff;
  --vc-dark:      #1b1b1d;
  --vc-dark-2:    #1d1f23;

  --fg:        var(--vc-ink);
  --fg-muted:  var(--vc-muted);
  --bg:        var(--vc-white);
  --bg-alt:    var(--vc-paper);
  --line:      var(--vc-border);
  --accent:    var(--vc-blue);
  --accent-soft: var(--vc-blue-soft);

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-body: 1.0625rem;
  --fs-body-l: 1.1875rem;
  --fs-h1: clamp(2.25rem, 1.5rem + 3.2vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --fs-h4: 1.25rem;

  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --container: 1080px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(56px, 8vw, 112px);

  --r-pill: 999px;
  --r-card: 14px;
  --r-btn: 8px;

  --sh-card: 0 1px 2px rgba(23,24,26,.05), 0 1px 1px rgba(23,24,26,.04);
  --sh-card-lg: 0 24px 60px -20px rgba(23,24,26,.28);

  --ease: cubic-bezier(.2,.8,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f2f2f5;
    --fg-muted: #a6a9ae;
    --bg: var(--vc-dark);
    --bg-alt: var(--vc-dark-2);
    --line: rgba(255,255,255,.12);
    --accent-soft: rgba(43,108,246,.14);
  }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h4); font-weight: 700; }

p { margin: 0 0 var(--s-4); }

a { color: inherit; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

/* --- Nav --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s-4);
}
.nav__brand { display: flex; align-items: center; gap: var(--s-2); font-weight: 700; font-size: 1rem; }
.nav__brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav__cta {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

/* --- Hero --- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 5vw, 64px); text-align: center; }
.hero__icon { width: 88px; height: 88px; margin: 0 auto var(--s-5); border-radius: 20px; box-shadow: var(--sh-card-lg); }
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-4);
}
.hero h1 { max-width: 18ch; margin-inline: auto; margin-bottom: var(--s-5); }
.hero__lead {
  font-size: var(--fs-body-l);
  color: var(--fg-muted);
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: var(--s-6);
}
.hero__actions { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--ease) .18s, box-shadow var(--ease) .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { box-shadow: var(--sh-card-lg); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }

.hero__note { margin-top: var(--s-4); font-size: 0.875rem; color: var(--fg-muted); }

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

.step__num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--fg-muted); margin-bottom: 0; }

.section__head { text-align: center; max-width: 46ch; margin: 0 auto var(--s-8); }
.section__head p { color: var(--fg-muted); margin-bottom: 0; }

/* --- Feature grid --- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
@media (max-width: 780px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s-5);
  box-shadow: var(--sh-card);
}
.feature h3 { margin-bottom: var(--s-2); font-size: 1.0625rem; }
.feature p { color: var(--fg-muted); margin-bottom: 0; font-size: 0.9375rem; }

/* --- Privacy strip --- */
.privacy {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.privacy__item { max-width: 28ch; }
.privacy__item strong { display: block; margin-bottom: var(--s-2); }
.privacy__item span { color: var(--fg-muted); font-size: 0.9375rem; }

/* --- Footer --- */
.footer {
  padding-block: var(--s-6);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.footer a { text-decoration: none; color: var(--fg-muted); }
.footer a:hover { color: var(--fg); }
