@font-face {
  font-family: Inter;
  src: url("assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/jetbrains-mono.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Palette from the native booklet and desktop theme. */
  --desk: #f4f5f8;
  --paper: #fbf9ff;
  --paper-shade: #efeafc;
  --ink: #141821;
  --muted: #5b6475;
  --cover: #3b2d7a;
  --cover-dark: #251b55;
  --rule: #d9d1f2;
  --line: #e2e5ec;
  --mint: #3ddc97;
  --mint-ink: #06150e;
  --violet: #b9a6ff;
  --coral: #ff8a7d;
  --night: #0d1118;
  --night-card: #131924;
  --night-text: #e8ecf3;
  --night-muted: #9aa4b5;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--desk);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cover); outline-offset: 5px; }
::selection { color: var(--mint-ink); background: var(--mint); }
h1, h2, h3, p, figure { margin: 0; }
img, video { display: block; max-width: 100%; }

.shell { width: min(1300px, calc(100% - clamp(36px, 9vw, 132px))); margin-inline: auto; }
.skip { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 12px; background: var(--mint); transform: translateY(-150%); }
.skip:focus { transform: none; }
.header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.mark {
  display: inline-block;
  width: 30px;
  height: 32px;
  border-radius: 8px;
  background: var(--mint) url("assets/passport-mark.svg") center / 21px 21px no-repeat;
}
nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
nav a, .footer a { font-size: .875rem; font-weight: 600; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero-section {
  background: linear-gradient(125deg, var(--paper), var(--paper-shade));
  border-bottom: 1px solid var(--rule);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 62px);
  padding-block: clamp(66px, 9vw, 128px);
}
h1 { color: #1c1638; font-size: clamp(2.8rem, 5.05vw, 5rem); line-height: 1; letter-spacing: -.066em; }
h1 > span { color: var(--cover); }
.keep-together { white-space: nowrap; }
.hero-copy > p { max-width: 37ch; margin-top: 22px; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.62; color: var(--muted); }
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  padding: 11px 16px;
  margin-top: 27px;
  color: var(--mint-ink);
  background: var(--mint);
  border: 1px solid #24a370;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
}
.button:hover { background: #68e8b0; }
.play { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.hero-figure { min-width: 0; }
.hero-screen {
  display: block;
  padding: clamp(5px, .65vw, 10px);
  border-radius: 16px;
  border: 1px solid #5a48a8;
  background: linear-gradient(148deg, var(--cover), var(--cover-dark));
  box-shadow: 0 24px 42px -24px #251b557a;
}
.hero-screen img { width: 100%; height: auto; border-radius: 9px; }
figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin-top: 12px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.chapter-label {
  padding: 3px 7px;
  border-radius: 5px;
  color: #1c1638;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: .71rem;
}
.chapter-passport { background: var(--mint); }
.chapter-requests { background: var(--coral); }
.chapter-visas { background: var(--violet); }

.workflow { padding-block: clamp(54px, 7.4vw, 100px); }
h2 { font-size: clamp(2.2rem, 4.35vw, 4rem); line-height: 1.04; letter-spacing: -.061em; }
.section-intro p, .demo-heading p { margin-top: 15px; max-width: 50ch; color: var(--muted); font-size: 1.05rem; line-height: 1.63; }
.product-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 36px); margin-top: clamp(25px, 4vw, 45px); }
.product-shot { min-width: 0; }
.product-shot a { display: block; border: 1px solid var(--rule); border-radius: 11px; overflow: hidden; }
.product-shot a:hover { border-color: var(--cover); }
.product-shot img { width: 100%; height: auto; }
.workflow-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(34px, 5vw, 68px); gap: 24px; }
.workflow-details article { padding-top: 17px; border-top: 1px solid var(--rule); }
h3 { font-size: 1.24rem; font-weight: 700; letter-spacing: -.033em; line-height: 1.2; }
.workflow-details p { margin-top: 9px; color: var(--muted); line-height: 1.62; max-width: 34ch; }

.demo { padding-block: clamp(54px, 7.5vw, 100px); background: var(--night); color: var(--night-text); }
.demo :focus-visible { outline-color: var(--mint); }
.demo-heading { display: grid; grid-template-columns: 1fr .58fr; gap: 14px 36px; align-items: end; margin-bottom: 27px; }
.demo-heading p { color: var(--night-muted); margin: 0; }
video { width: 100%; aspect-ratio: 16 / 9; background: var(--night-card); border: 1px solid #4a3a8f; border-radius: 11px; }
.demo-links { display: flex; align-items: start; gap: 18px 28px; justify-content: space-between; margin-top: 17px; color: var(--night-text); font-size: .9rem; }
.demo-links > a { flex: none; }
summary { cursor: pointer; }
.transcript { max-width: 70ch; margin-top: 16px; line-height: 1.65; }
.transcript p + p { margin-top: 10px; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 84px; }

@media (max-width: 930px) {
  .hero, .demo-heading { grid-template-columns: 1fr; }
  .hero { padding-block: 55px; }
  .hero-figure { max-width: 760px; }
}

@media (max-width: 640px) {
  .header-inner { padding-block: 13px; }
  nav { gap: 10px 16px; }
  nav a { font-size: .82rem; }
  h1 { font-size: clamp(2.62rem, 10vw, 3.8rem); }
  .product-shots, .workflow-details { grid-template-columns: 1fr; }
  .demo-links { flex-direction: column; }
  .footer-inner { padding-block: 17px; }
}
