/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("fonts/RobotoMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Tokens & reset ---------- */
:root {
  --bg: #ffffff;
  --ink: #000000;
  --footer-ink: #485c11;
  --edge: 40px;         /* full-width side padding (header/footer) */
  --maxw: 1200px;       /* centered content column */
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--edge);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand-mark { width: 28px; height: 28px; }
.brand-name {
  font-weight: 500;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -1.5px;
}

/* ---------- App Store button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border-radius: 11px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
  cursor: pointer;
  white-space: nowrap;
}
.btn .apple { width: 18px; height: 18px; }

/* ---------- Main / content column ---------- */
main { flex: 1 0 auto; }
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 96px;
  padding-bottom: 56px;
}
.hero h1 {
  margin: 0;
  font-weight: 700;
  font-size: 88px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* ---------- Demo ---------- */
.demo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.35);
}
.demo img { width: 100%; height: auto; }

/* ---------- CTA ---------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  text-align: center;
  padding-top: 84px;
  padding-bottom: 96px;
}
.cta p {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.6px;
  max-width: 820px;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px var(--edge);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.12px;
  color: var(--footer-ink);
}
.site-footer .copy { display: inline-flex; gap: 10px; }

/* ---------- Load fade-in (plays once; identical across breakpoints) ---------- */
@keyframes fig-appear {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.appear {
  animation: fig-appear 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.appear.d1 { animation-delay: 0.05s; }
.appear.d2 { animation-delay: 0.14s; }
.appear.d3 { animation-delay: 0.24s; }
.appear.d4 { animation-delay: 0.34s; }

@media (prefers-reduced-motion: reduce) {
  .appear { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .hero h1 { font-size: 64px; }
}
@media (max-width: 799px) {
  :root { --edge: 20px; }
  .site-header { padding-top: 18px; padding-bottom: 18px; }
  .brand-name { font-size: 24px; letter-spacing: -1px; }
  .brand-mark { width: 24px; height: 24px; }
  .hero { padding-top: 48px; padding-bottom: 36px; }
  .hero h1 { font-size: 40px; max-width: 100%; }
  .cta { gap: 20px; padding-top: 56px; padding-bottom: 64px; }
  .cta p { font-size: 17px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 6px; }
}
