@import url('/static/fonts.css');

/* Ainur Design public site. Same language as the apps: paper, ink, the lavender i-dot,
   Geist for display, Instrument Sans for text, Geist Mono for small labels. */
:root {
  --paper: #FAFAF8; --surface: #FFFFFF; --sunk: #F3F2EF;
  --ink: #0B0B0C; --ink-2: #3B3B40; --muted: #6C6C72;
  --line: #E9E8E4; --line-2: #D9D8D3;
  --lav: #997CBC; --lav-ink: #6A4F98; --lav-soft: #F1ECF8;
  --danger: #B3261E;
  --r: 22px; --r-sm: 14px;
  --display: 'Geist', 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --text: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E0E10; --surface: #17171A; --sunk: #1C1C20; --ink: #F4F4F2; --ink-2: #D0D0D3; --muted: #9B9BA2;
    --line: #26262B; --line-2: #34343B; --lav-ink: #C3ABE6; --lav-soft: #231D2D; --danger: #F2B8B5; color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img, svg, video, iframe { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lav-soft); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
.wrap { width: min(1200px, 100% - 64px); margin-inline: auto; }
.narrow { width: min(700px, 100% - 64px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lav); display: inline-block; flex: none; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.045em; line-height: .98; margin: 0; }
h1, h2, h3 { font-family: var(--display); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 84%, transparent); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.lockup { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.lockup .wm { height: 24px; width: auto; color: var(--ink); }
.lockup .design { font-family: var(--mono); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2); padding-top: 4px; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); padding: 8px 15px; border-radius: 999px; background: var(--surface); }
.pill .dot { width: 6px; height: 6px; }

/* Buttons and badges */
.badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 11px; background: var(--ink); color: var(--paper); padding: 10px 18px 10px 14px; border-radius: 13px; text-decoration: none; min-height: 52px; }
.badge svg { width: 24px; height: 24px; flex: none; }
.badge span { display: flex; flex-direction: column; font: 650 16.5px/1.1 var(--display); letter-spacing: -0.01em; }
.badge small { font: 500 10.5px/1.3 var(--text); letter-spacing: .02em; opacity: .72; }
.badge.soon { opacity: .9; cursor: default; }
.badge-note { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.link { color: var(--lav-ink); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.more::after { content: '→'; transition: transform .25s var(--ease); }
.more:hover::after { transform: translateX(3px); }

/* Hero */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(46px, 7.6vw, 104px); max-width: 11ch; }
.hero h1 em { font-style: normal; color: var(--lav-ink); }
.hero .lead { font-size: clamp(18.5px, 1.8vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 44ch; margin: 30px 0 36px; }
.hero .meta { margin-top: 18px; }
.phone { justify-self: center; position: relative; width: min(330px, 78vw); aspect-ratio: 720 / 1607; border-radius: 52px; padding: 10px; background: #0B0B0C; box-shadow: 0 50px 90px -40px rgba(32, 22, 52, .45), 0 0 0 1px rgba(255,255,255,.06) inset; }
.phone picture, .phone img { width: 100%; height: 100%; border-radius: 42px; object-fit: cover; object-position: top; }
.phone::after { content: ''; position: absolute; left: 50%; top: 22px; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #0B0B0C; }
.halo { position: absolute; inset: -12% -30% auto; height: 70%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--lav) 22%, transparent), transparent); filter: blur(10px); }

/* Sections */
section.block { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.head h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 0; }
.head p { margin: 10px 0 0; color: var(--muted); max-width: 52ch; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.card { text-decoration: none; display: flex; flex-direction: column; }
.card .cover { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--sunk); }
.card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .cover img { transform: scale(1.03); }
.kind { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--lav-ink); display: flex; gap: 10px; margin: 18px 0 9px; }
.kind span + span { color: var(--muted); }
.card h3 { font-size: 22px; line-height: 1.16; letter-spacing: -0.025em; font-weight: 720; margin: 0 0 10px; }
.card p { margin: 0 0 14px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.by { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-top: auto; }
.by img { width: 28px; height: 28px; border-radius: 50%; }
.by b { color: var(--ink); font-weight: 600; }

.featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.feature { position: relative; display: flex; flex-direction: column; border-radius: calc(var(--r) + 8px); background: var(--surface); border: 1px solid var(--line); padding: 12px 12px 26px; text-decoration: none; transition: border-color .3s, transform .4s var(--ease); }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature .cover { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--sunk); }
.feature .cover img { width: 100%; height: 100%; object-fit: cover; }
.feature .body { padding: 6px 14px 0; display: flex; flex-direction: column; flex: 1; }
.feature h3 { font-size: clamp(25px, 2.6vw, 34px); font-weight: 780; letter-spacing: -0.035em; line-height: 1.04; margin: 0 0 12px; }
.feature p { color: var(--ink-2); margin: 0 0 18px; }
.tag-featured { position: absolute; top: 26px; left: 26px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; background: var(--surface); padding: 7px 12px; border-radius: 999px; }

/* Browse */
.types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.type { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 132px; padding: 18px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .25s, background .25s; }
.type:hover { border-color: var(--lav); }
.type b { font: 720 20px/1.15 var(--display); letter-spacing: -0.02em; }
.type span { color: var(--muted); font-size: 14px; }
.type .n { font-family: var(--mono); font-size: 12px; color: var(--lav-ink); letter-spacing: .1em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; font-size: 14.5px; background: var(--surface); }
.chip:hover, .chip[aria-current] { border-color: var(--ink); }
.chip[aria-current] { background: var(--ink); color: var(--paper); }
.chip small { font-family: var(--mono); color: var(--muted); font-size: 11.5px; }
.chip[aria-current] small { color: inherit; opacity: .7; }

/* Interactive demos */
.demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.demo { border-radius: calc(var(--r) + 8px); border: 1px solid var(--line); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.demo .frame { background: var(--paper); border-bottom: 1px solid var(--line); height: 520px; position: relative; }
.demo iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; }
.demo .frame .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.demo .body { padding: 22px 24px 26px; }
.demo h3 { font-size: 24px; letter-spacing: -0.03em; margin: 6px 0 8px; font-weight: 760; }
.demo p { margin: 0 0 14px; color: var(--ink-2); }

/* Designers */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.person { padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-decoration: none; display: flex; flex-direction: column; gap: 14px; transition: border-color .25s; }
.person:hover { border-color: var(--line-2); }
.person img { width: 64px; height: 64px; border-radius: 50%; }
.person b { font: 740 22px/1.1 var(--display); letter-spacing: -0.025em; }
.person .role { color: var(--lav-ink); font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.person p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* Mission */
.mission { background: var(--ink); color: var(--paper); border-radius: calc(var(--r) + 12px); padding: clamp(36px, 6vw, 76px); }
.mission .eyebrow { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.mission h2 { font-size: clamp(36px, 5.6vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: .98; margin: 0 0 22px; max-width: 14ch; }
.mission h2 em { font-style: normal; color: var(--lav); }
.mission > p { font-size: 19px; max-width: 56ch; color: color-mix(in srgb, var(--paper) 78%, transparent); margin: 0 0 44px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.pillar { padding: 28px 28px 8px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.pillar h3 { font-size: 24px; letter-spacing: -0.025em; margin: 0 0 10px; font-weight: 740; }
.pillar p { margin: 0 0 16px; color: color-mix(in srgb, var(--paper) 74%, transparent); font-size: 16px; }
.pillar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pillar a { color: var(--paper); text-decoration: none; font-size: 15px; display: inline-flex; gap: 8px; }
.pillar a::before { content: '→'; color: var(--lav); }
.pillar a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .mission { background: var(--surface); color: var(--ink); border: 1px solid var(--line); } .mission .eyebrow, .mission > p, .pillar p { color: var(--ink-2); } .pillar a { color: var(--ink); } .pillars, .pillar + .pillar { border-color: var(--line); } }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.about h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; margin: 0; }
.about p { margin: 0 0 16px; color: var(--ink-2); font-size: 18px; }

.get { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: calc(var(--r) + 8px); background: var(--lav-soft); }
.get h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.04em; margin: 0 0 8px; }
.get p { margin: 0; color: var(--ink-2); }

/* Journal index */
.page-head { padding: clamp(44px, 7vw, 88px) 0 28px; }
.page-head h1 { font-size: clamp(52px, 8vw, 112px); }
.page-head .lead { font-size: 20px; color: var(--ink-2); margin: 18px 0 0; max-width: 50ch; }
.filters { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 18px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.filters .chips { margin: 0; }
.search { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 4px 4px 16px; background: var(--surface); min-width: min(320px, 100%); }
.search input { border: 0; outline: 0; background: transparent; font: 400 16px/1.4 var(--text); color: var(--ink); flex: 1; min-width: 0; padding: 6px 0; }
.search button { border: 0; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 8px 14px; font: 600 14px/1 var(--text); cursor: pointer; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.pager .mono { color: var(--muted); }
.empty { padding: 60px 0; color: var(--muted); }

/* Article */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--lav); z-index: 30; }
.article-head { padding: clamp(40px, 7vw, 84px) 0 34px; }
.article-head .kind { margin: 0 0 22px; }
.article-head h1 { font-size: clamp(38px, 5.8vw, 68px); font-weight: 800; letter-spacing: -0.042em; line-height: 1.01; margin: 0; }
.dek { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: var(--ink-2); margin: 24px 0 0; }
.byline { display: flex; gap: 12px; align-items: center; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.byline img { width: 42px; height: 42px; border-radius: 50%; }
.byline .who { flex: 1; min-width: 180px; }
.byline b { display: block; font: 650 15.5px/1.3 var(--display); }
.byline a { text-decoration: none; }
.byline span { color: var(--muted); font-size: 14px; }
.share { display: flex; gap: 8px; }
.share a, .share button { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.share svg { width: 16px; height: 16px; }
.hero-img { margin: 6px auto 54px; width: min(1100px, 100% - 64px); }
.hero-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--r) + 6px); background: var(--sunk); }
.hero-img figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; text-align: right; font-family: var(--mono); letter-spacing: .06em; }
.prose { font-size: 19px; line-height: 1.72; }
.prose > * + * { margin-top: 1.15em; }
.prose :where(p) { margin: 0; }
.prose > p:first-child { font-size: 21px; line-height: 1.6; color: var(--ink-2); }
.prose h2 { font-size: 31px; font-weight: 760; letter-spacing: -0.03em; line-height: 1.12; margin: 1.9em 0 .55em; }
.prose h3 { font-size: 23px; font-weight: 720; letter-spacing: -0.02em; margin: 1.5em 0 .4em; }
.prose a { color: var(--lav-ink); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0; }
.prose li { margin: .4em 0; }
.prose li .note { display: block; color: var(--muted); font-size: .9em; }
.prose blockquote { margin: 2em 0; padding: 0 0 0 26px; border-left: 3px solid var(--lav); font: 680 clamp(23px, 2.6vw, 29px)/1.3 var(--display); letter-spacing: -0.02em; }
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; font: 400 15px/1.4 var(--text); color: var(--muted); margin-top: 10px; font-style: normal; }
.prose .pull p { font: 700 clamp(24px, 3vw, 32px)/1.2 var(--display); letter-spacing: -0.02em; }
.prose figure { margin: 2em 0; }
.prose .img img { border-radius: var(--r); width: 100%; height: auto; }
.prose figcaption { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.prose .callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px 22px; font-size: 17px; }
.prose .callout strong { display: block; font-family: var(--display); margin-bottom: 4px; }
.prose .callout.tip, .prose .callout.info { border-left: 3px solid var(--lav); }
.prose .callout.warning { border-left: 3px solid #D4A15A; }
.prose .interactive { background: var(--lav-soft); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }
.prose pre { background: var(--sunk); border-radius: var(--r-sm); padding: 18px 20px; overflow: auto; font-size: 14.5px; line-height: 1.6; }
.prose code { font-family: var(--mono); font-size: .86em; }
.prose :not(pre) > code { background: var(--sunk); padding: .1em .35em; border-radius: 6px; }
.prose .check { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.prose .check li { display: flex; gap: 14px; padding: 14px 0; margin: 0; border-bottom: 1px solid var(--line); }
.prose .check .box { flex: none; width: 20px; height: 20px; margin-top: 5px; border: 1.5px solid var(--line-2); border-radius: 6px; }
.prose .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.prose .stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px; }
.prose .stats b { display: block; font: 800 36px/1 var(--display); letter-spacing: -0.03em; }
.prose .stats span { color: var(--muted); font-size: 14.5px; }
.prose .terms { margin: 0; }
.prose .terms dt { font: 700 19px/1.3 var(--display); margin-top: 1.3em; }
.prose .terms dd { margin: 4px 0 0; color: var(--ink-2); }
.prose .table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.prose tr:last-child td { border-bottom: 0; }
.prose .embed iframe { width: 100%; border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); background: var(--paper); }
.prose .sources { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: 15.5px; }
.prose .sources h2 { font-size: 15px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 1em; }
.prose .sources li span { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.author-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; margin: 56px 0 0; padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; }
.author-box b { font: 740 21px/1.2 var(--display); letter-spacing: -0.02em; }
.author-box p { margin: 6px 0 10px; color: var(--ink-2); font-size: 16px; }

/* Author */
.author-head { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(44px, 7vw, 88px) 0 48px; }
.author-head img { width: 128px; height: 128px; border-radius: 50%; }
.author-head h1 { font-size: clamp(48px, 7vw, 92px); }
.author-head p { color: var(--ink-2); font-size: 19px; max-width: 56ch; margin: 14px 0 0; }

/* Legal / forms */
.legal-head { padding: clamp(44px, 7vw, 84px) 0 28px; }
.legal-head h1 { font-size: clamp(42px, 6vw, 72px); }
.prose .muted { color: var(--muted); font-size: 14.5px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.card-link { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); text-decoration: none; font-size: 16px; }
.card-link:hover { border-color: var(--line-2); }
.card-link strong { font-family: var(--display); }
.card-link span { color: var(--muted); font-size: 14.5px; }
.form { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); max-width: 480px; font-size: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font: 600 14.5px/1.3 var(--display); margin-bottom: 14px; }
.form input, .form textarea { font: 400 16px/1.4 var(--text); padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); }
.btn { font: 650 15px/1 var(--display); padding: 13px 18px; border-radius: 11px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; }
.btn.danger { background: var(--danger); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.danger { color: #3C0A08; } }
.btn:disabled { opacity: .5; cursor: default; }
.form .status { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); min-height: 1.2em; }
.form .status.bad { color: var(--danger); }
.form .who { margin: 0 0 12px; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 104px); padding: 52px 0 64px; color: var(--muted); font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h2 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin: 6px 0 14px; color: var(--muted); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .about-line { max-width: 34ch; margin: 18px 0 0; }
.foot .base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }

/* Motion: content rises in once; nothing moves for people who ask for less motion. */
.rise { animation: rise .8s var(--ease) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 24px 0 8px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
  .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .phone { width: min(300px, 74vw); }
  .featured, .demos, .about, .get { grid-template-columns: 1fr; }
  .demo .frame { height: 480px; }
}
@media (max-width: 600px) {
  .wrap, .narrow { width: calc(100% - 32px); }
  .hero-img { width: calc(100% - 32px); }
  body { font-size: 16.5px; }
  .grid, .people { grid-template-columns: 1fr; }
  .top nav .hide-sm { display: none; }
  .top nav { gap: 16px; }
  .prose { font-size: 18px; }
  .author-head { grid-template-columns: 1fr; gap: 18px; }
  .author-head img { width: 88px; height: 88px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .lockup .design { display: none; }
  .top nav { gap: 14px; font-size: 14.5px; }
  .pill { padding: 7px 12px; }
}
@media (max-width: 600px) { .halo { inset: -10% -6% auto; } }
.prose { overflow-wrap: break-word; }
.prose :not(pre) > code { overflow-wrap: anywhere; }
.prose pre { max-width: 100%; }
@media (prefers-color-scheme: dark) { .phone { box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px #34343B; } }
