@font-face {
  font-family: Fraunces;
  src: url('/assets/fraunces.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8f5ee;
  --ink: #281d18;
  --muted: #675a50;
  --wine: #76271f;
  --gold: #d9b574;
  --forest: #29594d;
  --line: #d9d1c3;
  --device: #1b1410;
  --serif: Fraunces, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: var(--wine); }
a:focus-visible, button:focus-visible, iframe:focus-visible { outline: 3px solid var(--forest); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
p { line-height: 1.65; }
h2 { font-size: clamp(38px, 4.6vw, 59px); line-height: 1.12; letter-spacing: -1.8px; text-wrap: balance; }
h3 { font-size: 29px; line-height: 1.2; letter-spacing: -0.6px; }
cite { font-style: italic; }

.wrap { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 20; padding: 12px 18px; background: var(--paper); font-weight: 600; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.quiet { font-size: 13px; color: var(--muted); }
.text-link { font-size: 14px; font-weight: 600; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 16px 24px; border-radius: 6px; background: var(--wine); color: #fff7e7; font-size: 14px; font-weight: 600; text-decoration: none; }
.button:hover { background: #5e1e18; color: #fff7e7; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 25px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 104px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 25px; letter-spacing: -0.7px; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 10px; }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a { font-size: 14px; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav .nav-cta { padding: 12px 18px; border: 1px solid var(--wine); border-radius: 6px; color: var(--wine); font-weight: 600; }
.menu-toggle { display: none; padding: 11px 15px; border: 1px solid var(--line); border-radius: 5px; background: none; color: var(--ink); font-size: 13px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; padding-block: 63px 53px; }
.hero h1 { font-size: clamp(52px, 5.6vw, 74px); line-height: 1.05; letter-spacing: -0.045em; text-wrap: balance; }
.hero-copy { padding-bottom: 2px; }
.hero-copy > p:first-child { max-width: 470px; font-size: 19px; }
.hero-copy .quiet { margin-top: 20px; }

/* Device frames. The bezel and island are drawn; the screens inside are unretouched captures. */
.desktop-screen { overflow: hidden; border: 5px solid #342920; border-radius: 9px; background: #211910; box-shadow: 0 16px 35px #310c1650; }
.desktop-screen img { width: 100%; }
.phone { position: relative; container-type: inline-size; }
.phone img { width: 100%; border: 2.8cqw solid var(--device); border-radius: 17.5cqw; background: var(--device); box-shadow: 0 14px 34px #2a160c40; }
.phone::after { content: ''; position: absolute; top: 2.5%; left: 50%; width: 29%; aspect-ratio: 126 / 37; border-radius: 99px; background: #000; transform: translateX(-50%); }

/* Product stage */
.product-stage { padding: 25px 44px 22px; border-radius: 12px; background: var(--wine); color: #f8ead1; overflow: hidden; }
.screens { position: relative; padding-right: 106px; }
.phone-screen { position: absolute; right: 0; bottom: -7px; width: 23.4%; max-width: 250px; transform: rotate(2deg); }
.stage-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 23px; color: #efd5b4; font-size: 13px; }
.stage-footer a { color: #fff6df; }
.stage-footer a:hover { color: #fff; }
.product-stage a:focus-visible { outline-color: var(--gold); }

.platform-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.platform-strip > span { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.platform-strip p { white-space: nowrap; }

/* The apps */
.experience { padding-block: 99px 97px; }
.section-intro { display: grid; grid-template-columns: 1.08fr 1fr; gap: 64px; align-items: center; }
.section-intro > p { max-width: 450px; font-size: 17px; color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px; margin-top: 57px; }
.app-grid h3 { margin-top: 26px; font-size: 24px; }
.app-grid p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px; margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.feature-grid h3 { margin-bottom: 14px; }
.feature-grid p { font-size: 15px; line-height: 1.75; color: var(--muted); }
.feature-grid a { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 600; }

/* Read along */
.readalong { padding-block: 84px; background: #eee4d1; }
.readalong-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 84px; align-items: center; }
.readalong-screens { position: relative; padding: 0 0 34px; margin-right: 34px; }
.readalong-screens .phone-screen { right: -34px; bottom: 0; width: 27%; transform: none; }
.readalong-copy h2 { margin-bottom: 23px; }
.readalong-copy > p { max-width: 460px; margin-bottom: 19px; font-size: 16px; color: var(--muted); }
.readalong-copy .text-link { display: inline-block; margin-top: 8px; }

/* Demo */
.demo-section { display: grid; grid-template-columns: 1.2fr 1fr; gap: 100px; align-items: center; padding-block: 95px; }
.demo-copy h2 { margin-bottom: 22px; }
.demo-copy > p { max-width: 525px; margin-bottom: 17px; font-size: 16px; color: var(--muted); }
.demo-copy > p.quiet { max-width: 470px; font-size: 13px; }
.demo-copy .button { margin: 9px 0 17px; }
.demo-index { padding: 31px 38px; border-left: 1px solid var(--line); }
.demo-index > p { margin-bottom: 14px; font-family: var(--serif); font-size: 24px; }
.demo-index li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.demo-index li:last-child { border-bottom: 0; }

/* Install */
.install-section { padding-block: 84px; background: #e9ece5; }
.install-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 53px; margin: 47px 0 37px; }
.step-number { display: grid; place-items: center; width: 31px; height: 31px; margin-bottom: 19px; border: 1px solid #8d9e90; border-radius: 50%; font-size: 13px; color: var(--forest); }
.install-steps h3 { margin-bottom: 13px; font-size: 25px; }
.install-steps p { max-width: 310px; font-size: 14px; color: #546052; }
.install-command { padding: 27px 30px 23px; border: 1px solid #ccd6c9; border-radius: 8px; background: #f7f9f3; }
.install-command > div:first-child { display: flex; align-items: baseline; gap: 18px; margin-bottom: 20px; }
.install-command strong { font-size: 14px; }
.install-command > div:first-child > span { font-size: 12px; color: #546052; }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 16px; border: 1px solid #d6e0d1; border-radius: 5px; background: #e9eee3; }
.code-row code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.code-row button { flex-shrink: 0; min-width: 72px; padding: 9px 15px; border: 1px solid #aab9a8; border-radius: 4px; background: #f7f9f3; color: var(--forest); font-size: 12px; }
.code-row button:hover { background: #dde7d7; }
#copy-status { min-height: 20px; margin-top: 9px; font-size: 12px; color: var(--forest); }
.install-command > a { margin-right: 24px; font-size: 12px; }
.platform-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 53px; padding-top: 43px; }
.platform-links h3 { margin-bottom: 13px; font-size: 24px; }
.platform-links p { font-size: 13px; line-height: 1.75; color: #546052; }
.platform-links a { display: inline-block; margin-top: 19px; font-size: 12px; font-weight: 600; }

/* Integrations and feedback */
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 105px; padding-block: 91px; }
.integrations { margin-block: 26px; border-top: 1px solid var(--line); }
.integrations li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--muted); }
.integrations strong { color: var(--ink); font-weight: 600; }
.early-users { padding-left: 53px; border-left: 1px solid var(--line); }
.early-users img { margin-bottom: 23px; border-radius: 13px; }
.early-users h3 { margin-bottom: 16px; }
.early-users > p { margin-bottom: 22px; font-size: 14px; color: var(--muted); }
.early-users > a { font-size: 13px; font-weight: 600; }
.early-users > p.quiet { max-width: 335px; margin-top: 28px; font-size: 12px; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 29px; border-top: 1px solid var(--line); }
.site-footer .brand { font-size: 22px; }
.site-footer nav { display: flex; gap: 25px; font-size: 12px; }

/* Demo wrapper and sources page */
.demo-page { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.demo-header { display: flex; flex-shrink: 0; align-items: center; gap: 23px; padding: 14px 25px; border-bottom: 1px solid var(--line); font-size: 13px; }
.demo-header .brand { margin-right: auto; font-size: 22px; }
.demo-header button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--ink); font-size: 12px; }
.demo-notice { flex-shrink: 0; padding: 10px 25px; background: #eee4d1; }
.demo-notice p { font-size: 12px; line-height: 1.55; }
.demo-notice p:last-child { margin-top: 2px; font-size: 11px; color: var(--muted); }
#demo-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #f1e7d0; }

.sources { max-width: 680px; margin: 0 auto; padding: 50px 24px 72px; }
.sources h1 { margin: 30px 0; font-size: 46px; line-height: 1.15; letter-spacing: -1.4px; }
.sources h2 { margin: 30px 0 15px; font-size: 28px; letter-spacing: -0.5px; }
.sources p { margin: 15px 0; font-size: 15px; }
.sources ul { padding-left: 22px; list-style: disc; font-size: 14px; line-height: 2; }

@media (min-width: 1450px) {
  .hero { padding-block: 77px 63px; }
}

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 40px; }
  .product-stage { padding-inline: 28px; }
  .screens { padding-right: 76px; }
  .section-intro { gap: 40px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; max-width: 640px; margin-inline: auto; }
  .feature-grid { gap: 36px; }
  .readalong-layout { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .demo-section, .more { gap: 56px; }
  .install-steps, .platform-links { gap: 30px; }
  .early-users { padding-left: 36px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 24px; }
  .wrap { width: calc(100% - 40px); }
  h3 { font-size: 26px; }

  .site-header { position: relative; min-height: 81px; }
  .brand { font-size: 24px; }
  .brand img { width: 34px; height: 34px; }
  .menu-toggle { display: block; }
  .site-header nav { display: none; position: absolute; top: 73px; left: 0; right: 0; z-index: 10; flex-direction: column; align-items: stretch; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); box-shadow: 0 12px 25px #281d1820; }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { padding: 13px; }
  .site-header nav .nav-cta { margin-top: 8px; text-align: center; }

  .hero { grid-template-columns: 1fr; gap: 22px; padding-block: 38px 34px; }
  .hero h1 { font-size: clamp(44px, 12.4vw, 64px); }
  .hero-copy > p:first-child { max-width: 500px; font-size: 17px; }

  .product-stage { padding: 19px 18px 16px; border-radius: 8px; }
  /* The phone is taller than the browser capture at this size, so give it headroom. */
  .screens { padding: 36px 44px 0 0; }
  .desktop-screen { border-width: 3px; border-radius: 6px; }
  .phone-screen { width: 30%; bottom: -3px; }
  .stage-footer { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 17px; font-size: 12px; }
  .readalong-screens { padding-top: 30px; }
  .platform-strip { flex-wrap: wrap; justify-content: flex-start; gap: 12px 22px; padding-block: 23px; font-size: 12px; }
  .platform-strip > span { width: 100%; margin-bottom: 3px; font-size: 17px; }

  .experience { padding-block: 57px; }
  .section-intro { grid-template-columns: 1fr; gap: 22px; }
  .section-intro > p { max-width: 520px; font-size: 16px; }
  /* Phones scroll sideways at a legible size instead of shrinking to thumbnails. */
  .app-grid { display: flex; gap: 24px; max-width: none; margin: 37px -20px 0; padding: 0 20px 24px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .app-grid article { flex: 0 0 68%; max-width: 280px; scroll-snap-align: center; }
  .feature-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 24px; padding-top: 40px; }

  .readalong { padding-block: 49px; }
  .readalong-copy > p { max-width: 540px; font-size: 15px; }
  .demo-section { grid-template-columns: 1fr; gap: 30px; padding-block: 58px; }
  .demo-copy > p { font-size: 15px; }
  .demo-index { padding: 28px 0 0; border-top: 1px solid var(--line); border-left: 0; }

  .install-section { padding-block: 56px; }
  .install-steps { grid-template-columns: 1fr; gap: 26px; margin-top: 31px; }
  .install-steps li { display: grid; grid-template-columns: 32px 1fr; column-gap: 17px; }
  .step-number { grid-row: 1 / 3; margin-top: 2px; }
  .install-steps h3 { margin-bottom: 10px; font-size: 24px; }
  .install-steps p { max-width: 500px; }
  .install-command { padding: 20px 18px; }
  .install-command > div:first-child { display: block; margin-bottom: 16px; }
  .install-command > div:first-child > span { display: block; margin-top: 7px; }
  .code-row { display: block; padding: 13px; }
  .code-row code { display: block; font-size: 11px; }
  .code-row button { margin-top: 14px; padding: 9px 18px; }
  .install-command > a { display: inline-block; margin: 5px 18px 0 0; }
  .platform-links { grid-template-columns: 1fr; gap: 27px; padding-top: 34px; }
  .platform-links p { max-width: 520px; }
  .platform-links a { margin-top: 12px; }

  .more { grid-template-columns: 1fr; gap: 37px; padding-block: 55px; }
  .early-users { padding: 32px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .site-footer { flex-wrap: wrap; gap: 18px; padding-block: 24px; }

  .demo-header { flex-wrap: wrap; gap: 10px 16px; padding: 11px 14px; }
  .demo-header .brand { font-size: 20px; }
  .demo-header .brand img { width: 28px; height: 28px; }
  .demo-notice { padding: 9px 14px; }
}

@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); }
  .actions { gap: 14px; }
  .product-stage { padding-inline: 12px; }
  .app-grid { margin-inline: -16px; padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
