@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Variable.ttf") format("truetype-variations");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --brand: #0F6E56;
  --brand-soft: #E1F5EE;
  --canvas: #FAFAF7;
  --card: #FFFFFF;
  --ink: #14201C;
  --ink-muted: #5A6B66;
  --hairline: #E6E5DF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #1D9E75;
    --brand-soft: #0F2D26;
    --canvas: #0E0E0C;
    --card: #1A1A17;
    --ink: #ECECE8;
    --ink-muted: #A0A8A4;
    --hairline: #25251F;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  flex: 1;
}

.topbar {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 7px;
  display: block;
}

.hero {
  padding: 72px 0 48px;
}

.pill {
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(32px, 5.5vw, 44px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.lede {
  font-size: 19px;
  color: var(--ink-muted);
  margin: 0 0 32px;
  max-width: 56ch;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  font-weight: 500;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
}

.cta:disabled { opacity: 0.5; cursor: not-allowed; }

/* Outlined secondary CTA, used on persona landing pages where the
   filled .cta points to the demo and the secondary one is the
   "notify me at launch" fallback. */
.cta-outline {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

@media (prefers-color-scheme: dark) {
  .cta-outline { color: var(--brand); }
  .cta-outline:hover { background: var(--brand-soft); }
}

/* Stacks the primary demo CTA above the signup form on landing pages. */
.persona-cta {
  margin: 0 0 24px;
}

/* "← Terug naar boeq.app" foot of every landing page. */
.back {
  padding: 24px 0 56px;
  text-align: center;
}

.back a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 15px;
}

.back a:hover { color: var(--brand); }

.signup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

.signup input[type="email"] {
  padding: 13px 16px;
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--ink);
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
}

.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.signup .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.signup-status {
  margin: 0;
  min-height: 20px;
  font-size: 14px;
  color: var(--ink-muted);
}

.signup-status[data-kind="ok"] { color: var(--brand); }
.signup-status[data-kind="error"] { color: #B73D3D; }

.signup-fallback {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  .cta { color: #06120E; }
}

.cta:hover { opacity: 0.92; }
.cta:active { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
}

.props {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0 56px;
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
  padding-top: 48px;
}

@media (min-width: 640px) {
  .props { grid-template-columns: repeat(3, 1fr); }
}

.props article {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 20px;
}

.props h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--brand);
  letter-spacing: -0.005em;
}

.props p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Product showcase — a macOS window with an iPhone overlapping its
   lower-right corner, proving the "macOS + iOS" claim in one image.
   Stacks vertically on narrow screens. */
.showcase {
  padding: 32px 0 96px;
}

.showcase-stage {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* macOS-style window chrome around the desktop screenshot. */
.device-desktop {
  margin: 0;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 90px -36px rgba(0, 0, 0, 0.45);
}

.device-desktop .winbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: var(--brand-soft);
  border-bottom: 1px solid var(--hairline);
}

.device-desktop .winbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--hairline);
}

.device-desktop .winbar span:nth-child(1) { background: #ED6A5E; }
.device-desktop .winbar span:nth-child(2) { background: #F4BF4F; }
.device-desktop .winbar span:nth-child(3) { background: #61C554; }

.device-desktop img {
  display: block;
  width: 100%;
  height: auto;
}

/* iPhone frame overlapping the desktop window's lower-right. */
.device-phone {
  position: absolute;
  right: -8px;
  bottom: -40px;
  width: 23%;
  min-width: 132px;
  margin: 0;
  padding: 7px;
  background: #0E0E0C;
  border-radius: 28px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
}

.device-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 21px;
}

@media (max-width: 640px) {
  .showcase-stage {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .device-phone {
    position: static;
    width: 56%;
    min-width: 180px;
  }
}

footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 24px;
  color: var(--ink-muted);
  font-size: 14px;
  text-align: center;
}

footer a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a:hover { color: var(--brand); }

::selection {
  background: var(--brand-soft);
  color: var(--brand);
}
