/* Lasso landing page. The brand and colours are the macOS app's own (desktop/src/styles.css
   dark theme and desktop/src/ui.css tokens): charcoal surfaces, sage accent, soft neutral text,
   the system font, pill buttons, 8–16px radii. No external fonts or requests. */
:root {
  /* App dark theme (styles.css :root[data-theme="dark"]) */
  --bg: #1f201e;
  --surface: #282a27;
  --text: #ecebe6;
  --muted: #a3a69e;
  --faint: #7a7d76;
  --line: #363833;
  --hover: #2e302c;
  --accent: #9cc4a8;        /* sage */
  --accent-soft: #2b3b30;
  --error: #f59b91;         /* app --fit-red-text, dark */
  --brand-green: #2e4a3a;   /* app icon background, light-theme accent */
  /* App ui.css tokens */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-pop: 0 14px 36px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2.5rem); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; padding: .5rem 1rem; background: var(--surface); color: var(--text); border-radius: var(--radius-sm); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* The wordmark: the app's own SVG, drawn in currentColor (sage). */
.wordmark { display: inline-flex; color: var(--accent); line-height: 0; }
.wordmark svg { height: 30px; width: auto; overflow: visible; }
.wordmark-sm svg { height: 24px; }

.topbar { position: sticky; top: 0; z-index: 5; background: rgba(31, 32, 30, .86); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; padding: 4px 0; }
.top-link { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 560; padding: 8px 16px; border: 1px solid var(--faint); border-radius: var(--radius-pill); transition: border-color 160ms, background-color 160ms; }
.top-link:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Hero */
.hero { padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5rem); text-align: center; }
.eyebrow { margin: 0 0 1rem; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.03em; }
.lede { margin: 1.4rem auto 0; max-width: 40rem; font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--muted); }
.hero-form { margin: 2.2rem auto 0; max-width: 34rem; }
.fine { font-size: 14px; color: var(--muted); }
.hero-form .fine { margin-top: 6px; }
.faint { color: var(--muted); }

/* Sign-up */
.signup { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.signup input[type=email] { flex: 1 1 15rem; min-width: 0; height: 52px; padding: 0 20px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--faint); border-radius: var(--radius-pill); transition: border-color 160ms, box-shadow 160ms; }
.signup input[type=email]::placeholder { color: var(--muted); }
.signup input[type=email]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn-primary { height: 52px; padding: 0 26px; font: inherit; font-weight: 640; color: var(--bg); background: var(--accent); border: 0; border-radius: var(--radius-pill); cursor: pointer; transition: filter 160ms, transform 160ms; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.signup-status { flex-basis: 100%; margin: 4px 0 0; min-height: 1.5em; font-size: 15px; font-weight: 560; text-align: left; }
.signup-status.ok { color: var(--accent); }
.signup-status.error { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hero .signup-status, .cta .signup-status { text-align: center; }

/* Product screenshots */
.shot { margin: 0; }
.shot img { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-pop); background: var(--surface); }
.shot figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); text-align: left; }
.shot figcaption strong { color: var(--text); font-weight: 600; }
.shot-hero { margin-top: clamp(3rem, 7vw, 5rem); max-width: 1200px; }
.shot-hero figcaption { text-align: center; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); margin-top: 2.5rem; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.12; font-weight: 680; letter-spacing: -0.02em; }
.section-lede { margin: .9rem 0 0; max-width: 42rem; color: var(--muted); font-size: 1.08rem; }
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.steps h3 { margin: 1rem 0 .4rem; font-size: 1.15rem; font-weight: 640; }
.steps p { margin: 0; color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; }
.story { margin: 1.2rem 0 0; max-width: 46rem; font-size: 1.15rem; color: var(--text); }
.cta { text-align: center; }
.cta .section-lede { margin-left: auto; margin-right: auto; }
.cta .signup { max-width: 34rem; margin: 2rem auto 0; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-row p { margin: 0; color: var(--muted); font-size: 15px; }
.site-foot .fine { margin-top: 1rem; }

/* Privacy page */
.prose h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }

/* Restrained motion: a short fade and rise as things enter (reveal.js); none if reduced. */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn-primary, .top-link, .signup input[type=email] { transition: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .shot-pair, .steps { grid-template-columns: 1fr; }
  .topbar-row { height: 56px; }
  .wordmark svg { height: 26px; }
  .top-link { padding: 6px 14px; font-size: 14px; }
  .btn-primary { width: 100%; }
}
