/* Shared by the home page and the docs. */
:root {
  --bg: #faf7f2;
  --paper: #ffffff;
  --ink: #1f1a17;
  --ink-2: #554b44;
  --muted: #8a7f77;
  --line: rgb(31 26 23 / 0.09);
  --dash: rgb(31 26 23 / 0.16);
  --accent: #d97757;
  --accent-ink: #b4532f;
  --accent-soft: #f6e3d8;
  --display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.apple { fill: currentColor; stroke: none; }
h1, h2, h3 { font-family: var(--display); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-bottom: 14px; }
.lead { color: var(--ink-2); font-size: 1.12rem; max-width: 32em; margin-top: 16px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; white-space: nowrap; border: 0; cursor: pointer; transition: transform .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgb(31 26 23 / .7), inset 0 1px 0 rgb(255 255 255 / .12); }
.btn-dark:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14.5px; }
.btn .icon { width: 17px; height: 17px; }

/* Nav: a compact frosted pill with the icon, the links and an orange Download */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding-inline: 16px; pointer-events: none; }
.nav-pill { position: relative; pointer-events: auto; display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px;
  background: rgb(255 255 255 / .66); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgb(255 255 255 / .8); box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), 0 10px 30px -14px rgb(80 40 20 / .35);
  transition: box-shadow .3s var(--ease), background .3s var(--ease); }
.nav.scrolled .nav-pill { background: rgb(255 255 255 / .82); box-shadow: inset 0 1px 0 #fff, 0 14px 36px -14px rgb(80 40 20 / .45); }
.brand { display: flex; align-items: center; font-family: var(--display); font-weight: 600; }
.nav .brand { margin-right: 6px; border-radius: 12px; transition: transform .3s var(--ease); }
.nav .brand:hover { transform: rotate(-6deg) scale(1.05); }
.nav .brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 2px 8px -2px rgb(80 40 20 / .3); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.foot .brand { gap: 9px; }
.nav-links { display: flex; align-items: center; }
.nav-links a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover { background: rgb(31 26 23 / .05); color: var(--ink); }
.nav-links a[aria-current] { color: var(--ink); }
.nav-links a[aria-current]::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14.5px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 6px 16px -8px rgb(180 83 47 / .8); transition: transform .2s var(--ease), background .2s; }
.nav-cta:hover { background: var(--accent-ink); transform: translateY(-1px); }
.nav-cta .icon { width: 16px; height: 16px; }
.menu-btn { display: none; width: 40px; height: 40px; margin-left: 4px; border: 0; border-radius: 50%; background: rgb(31 26 23 / .06); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.8px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 22px; }
.nav.open .menu-btn span:first-child { top: 19px; transform: rotate(45deg); }
.nav.open .menu-btn span:last-child { top: 19px; transform: rotate(-45deg); }

.frame { border-radius: clamp(12px, 2vw, 26px); overflow: hidden; background: #f3dccd; box-shadow: 0 40px 90px -40px rgb(90 40 15 / .55), 0 12px 30px -16px rgb(90 40 15 / .35); }
.frame img { width: 100%; }

footer { border-top: 1px dashed var(--dash); padding: 56px 0 120px; font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.foot h4 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.foot .tag { margin-top: 12px; color: var(--muted); max-width: 22em; }
.legal { margin-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: calc(100% + 10px); right: 0; width: min(280px, calc(100vw - 32px)); flex-direction: column; align-items: stretch; padding: 8px; border-radius: 22px;
    background: rgb(255 253 250 / .98); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgb(255 255 255 / .9); box-shadow: 0 24px 50px -20px rgb(80 40 20 / .45);
    opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right; pointer-events: none; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav-links a { padding: 13px 16px; font-size: 17px; border-radius: 14px; }
  .nav-links a[aria-current] { background: var(--accent-soft); color: var(--accent-ink); }
  .nav-links a[aria-current]::after { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 380px) { .nav-cta span { display: none; } }

/* "Read more" links into the docs */
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--accent-ink); font-weight: 600; font-size: 15px; }
.more-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.more-link:hover svg { transform: translateX(3px); }

/* Footer extras */
.foot .maker { margin-top: 14px; font-size: 14px; color: var(--muted); }
.foot .maker a { color: var(--accent-ink); font-weight: 600; }
.ai-note { margin-top: 40px; padding-top: 22px; border-top: 1px dashed var(--dash); font-size: 13.5px; color: var(--muted); max-width: 52em; }
.ai-note a { color: var(--accent-ink); font-weight: 600; }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.legal a { color: var(--muted); }
.legal a:hover { color: var(--ink); }
