@font-face {
  font-family: "Spectral";
  src: url("fonts/spectral-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  --bg: #f7f4ec;
  --surface: #fffdf8;
  --ink: #1d1b17;
  --muted: #5a554c;
  --line: #e2dccf;
  --accent: #2f5d50;
  --accent-hover: #24493f;
  --accent-ink: #ffffff;
  --accent-soft: #e3ece7;
  --note: #efeadf;
  --shadow: 0 1px 2px rgb(40 32 20 / 6%), 0 18px 40px -18px rgb(40 32 20 / 28%);
  --radius: 14px;
  --display: "Spectral", Georgia, "Times New Roman", serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141310;
    --surface: #1c1a16;
    --ink: #efeae0;
    --muted: #b0a99c;
    --line: #34302a;
    --accent: #8cc4b1;
    --accent-hover: #a7d6c5;
    --accent-ink: #0f1f1a;
    --accent-soft: #1f2b27;
    --note: #221f1a;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 22px 44px -20px rgb(0 0 0 / 70%);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line) var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--text);
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; letter-spacing: -0.015em; }

.skip { position: absolute; left: 16px; top: -48px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.measure { max-width: 68ch; }

header.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.2) blur(8px); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 19px; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
nav a { display: block; color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: 8px; }
nav a:hover { color: var(--ink); background: var(--note); }
nav a[aria-current="page"] { color: var(--ink); }

.hero { padding: clamp(48px, 9vw, 96px) 0 0; }
.hero h1 { font-size: clamp(36px, 6.4vw, 64px); line-height: 1.05; margin: 0 0 20px; max-width: 15ch; }
.hero .lede { font-size: clamp(18px, 2.2vw, 20px); color: var(--muted); max-width: 58ch; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink); padding: 13px 20px; border-radius: 11px; text-decoration: none; font-weight: 600; font-size: 16px; transition: background-color 160ms ease-out, transform 160ms ease-out; }
a.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn small { font-weight: 500; opacity: 0.8; font-size: 13px; }
/* arriving from the demo's "Download the app": the Store button says hello */
#get { scroll-margin-top: 120px; }
#get:target .btn { animation: get-hello 1400ms cubic-bezier(.22,1,.36,1) 2; }
@keyframes get-hello { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { #get:target .btn { animation: none; outline: 3px solid var(--accent); outline-offset: 3px; } }
.link-quiet { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); padding: 12px 4px; }
.link-quiet:hover { color: var(--accent); text-decoration-color: currentColor; }

.shot { margin: clamp(40px, 6vw, 64px) 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); aspect-ratio: 3810 / 2073; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }

.hero-main .hero { padding-bottom: clamp(32px, 5vw, 56px); }

/* ---------- live demo with guided tour ---------- */
.demo { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
.demo-head { max-width: 1048px; margin: 0 auto 24px; }
.demo-head h2 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.1; margin: 0 0 8px; }
.demo-head p { color: var(--muted); margin: 0; max-width: 60ch; }
.demo-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.tour { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; position: sticky; top: 84px; }
.tour-step button {
  width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: left;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  color: var(--ink); font: inherit; cursor: pointer;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}
.tour-step button:hover { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tour-step[aria-current="step"] button { background: var(--accent-soft); border-color: var(--accent); }
.tour-step .n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 650; font-size: 14px; background: var(--note); color: var(--ink); margin-top: 1px;
}
.tour-step[aria-current="step"] .n { background: var(--accent); color: var(--accent-ink); }
.tour-step b { display: block; font-weight: 650; font-size: 16px; line-height: 1.35; }
.tour-step small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.demo-stage { min-width: 0; }
.tour-status { margin: 0 0 12px; min-height: 1.65em; color: var(--ink); font-weight: 500; }
.device {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: #101214; border: 1px solid var(--line);
  height: min(780px, calc(100svh - 120px)); min-height: 520px;
}
.device { position: relative; }
.device iframe { display: block; width: 100%; height: 100%; border: 0; }
.device iframe[hidden] { display: none; }
.demo-poster { position: absolute; inset: 0; display: grid; place-items: center; }
.demo-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0.55; }
.demo-poster[hidden] { display: none; }
.demo-start { position: relative; font-size: 17px; padding: 15px 24px; box-shadow: 0 10px 30px -10px rgb(0 0 0 / 60%); border: 0; cursor: pointer; font-family: inherit; }
.demo-start:hover { background: var(--accent-hover); }
.demo-note { color: var(--muted); font-size: 14px; margin: 12px 0 0; max-width: 80ch; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.link-btn:hover { color: var(--accent-hover); }

@media (max-width: 1180px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .demo-head { margin-left: 0; }
  /* the steps become one row that scrolls sideways, above the app */
  .tour { position: static; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: thin; }
  .tour-step { scroll-snap-align: start; }
  .tour-step button { height: 100%; padding: 12px 14px; }
}
@media (max-width: 820px) {
  .tour { grid-auto-columns: minmax(180px, 72%); }
  .tour-step small { display: none; }
  .device { height: calc(100svh - 96px); min-height: 560px; }
}

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(56px, 8vw, 96px) 0 0; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .copy { order: 2; }
.feature h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin: 0 0 12px; }
.feature p { color: var(--muted); margin: 0; max-width: 46ch; }
.feature .shot { margin: 0; }

.more { padding: clamp(64px, 9vw, 104px) 0 0; }
.more h2, .needs h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 24px; }
.more dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 48px; margin: 0; border-top: 1px solid var(--line); padding-top: 28px; }
.more dt { font-weight: 650; margin-bottom: 4px; }
.more dd { margin: 0; color: var(--muted); font-size: 16px; }

.needs { padding: clamp(64px, 9vw, 104px) 0 clamp(56px, 8vw, 88px); }
.needs p { max-width: 68ch; }
.note { background: var(--note); border-radius: 12px; padding: 16px 18px; color: var(--muted); font-size: 15px; max-width: 68ch; }

article.doc { padding: clamp(40px, 7vw, 72px) 0 72px; max-width: 72ch; }
article.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 0 0 6px; }
article.doc h2 { font-size: 22px; margin: 40px 0 8px; }
article.doc .meta { color: var(--muted); margin: 0 0 28px; }
article.doc li { margin-bottom: 6px; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { padding-top: 24px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
}
@media (max-width: 480px) {
  nav a { padding: 8px 7px; font-size: 14px; }
  .brand span { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
