@font-face {
  font-family: Silkscreen;
  src: url("assets/Silkscreen-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #252924;
  --secondary: #54594f;
  --maple: #a54b29;
  --line: #dedfd6;
  --section-space: clamp(2rem, 4vw, 3.5rem);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--maple); outline-offset: 5px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
.masthead { border-bottom: 1px solid #edeee8; }
.bar, .content {
  width: min(72rem, calc(100% - 5rem));
  margin-inline: auto;
}
.bar, .brand, nav, footer, figcaption { display: flex; align-items: center; }
.bar { min-height: 4rem; justify-content: space-between; gap: 1.25rem; }
.brand, .wordmark, .product {
  font-family: Silkscreen, monospace;
  font-weight: 700;
  letter-spacing: -.08em;
}
.brand { gap: .5rem; font-size: 1.35rem; text-decoration: none; }
nav { gap: 1.75rem; }
nav a { padding-block: .8rem; font-size: .94rem; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--maple); text-decoration: underline; }
.banner {
  width: min(86rem, calc(100% - 3rem));
  margin: 1rem auto 0;
  border-radius: .9rem;
  min-height: clamp(15rem, 25vw, 22rem);
  display: grid;
  align-items: center;
  background: #fcf7e9 url("assets/maple-day.webp") center bottom / cover no-repeat;
}
.banner-copy { padding: 1.75rem clamp(2rem, 6vw, 6rem); }
.product { font-size: 1.2rem; color: #855238; }
h1 { margin: .75rem 0; font-size: clamp(2.45rem, 4.2vw, 4.25rem); letter-spacing: -.08em; line-height: 1.13; }
h1 em { font-style: normal; color: var(--maple); }
.banner-subtitle { color: #4a4439; line-height: 1.55; font-size: clamp(1rem, 1.3vw, 1.19rem); }
.banner-downloads { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.introduction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-block: var(--section-space);
}
.introduction, .capture-info { column-gap: clamp(1.25rem, 4vw, 4rem); }
.position, .comparison { border-top: 1px solid var(--line); }
@media (min-width: 48.01rem) {
  .position, .capture-info { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .position > .sample { order: -1; }
  .comparison { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); letter-spacing: -.07em; line-height: 1.25; }
.content p { font-size: 1.05rem; line-height: 1.7; color: var(--secondary); }
h2 + p { margin-top: .65rem; }
.languages { margin-top: 1rem; }
.introduction .languages { font-size: .9rem; }
.languages strong { margin-right: .45rem; color: var(--ink); }
.sample { border: 1px solid #dcdcd1; border-radius: .75rem; overflow: hidden; box-shadow: 0 4px 0 #eeeee6; }
figcaption { padding: .55rem 1rem; background: #f6f5ef; gap: .65rem; border-bottom: 1px solid var(--line); font-size: .95rem; font-weight: 700; }
.sample video { width: 100%; height: auto; display: block; }
.sample .sample-caption { padding: .65rem 1rem; font-size: .9rem; }
.demo-toggle {
  margin-left: auto;
  padding: .35rem .7rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: white;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.demo-toggle:focus-visible { outline: 3px solid var(--maple); outline-offset: 2px; }
.capture-info {
  display: grid;
  align-items: center;
  row-gap: clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  padding-block: var(--section-space);
}
.speech-bubble {
  --bubble-fill: #fff9eb;
  --bubble-border: #cdb58e;
  position: relative;
  display: grid;
  width: fit-content;
  min-width: min(100%, 13rem);
  gap: .4rem;
  margin: 0;
  padding: .85rem 1rem;
  border: 1px solid var(--bubble-border);
  border-radius: .55rem;
  background: var(--bubble-fill);
  box-shadow: 0 3px #eee2cc;
  list-style: none;
}
.speech-bubble::before {
  content: "";
  position: absolute;
  inset: 50% auto auto -.35rem;
  width: .65rem;
  height: .65rem;
  border: 0 solid var(--bubble-border);
  border-width: 0 0 1px 1px;
  background: var(--bubble-fill);
  transform: translateY(-50%) rotate(45deg);
}
.speech-bubble li { display: flex; align-items: center; gap: .55rem; }
.capture-mark { flex: none; color: var(--maple); font-size: 1.25rem; font-weight: 750; line-height: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.faq { padding-block: var(--section-space); background: #f6f7f3; border-block: 1px solid var(--line); }
h3 { font-size: 1.5rem; letter-spacing: -.045em; }
.banner-downloads a { display: inline-flex; align-items: center; gap: .4rem; background: #353e32; color: white; font-weight: 650; border-radius: .4rem; text-decoration: none; }
.banner-downloads a:hover { background: #505e48; }
.banner-downloads a { min-height: 2.75rem; padding: .5rem .8rem; font-size: .875rem; }
.banner-downloads img { flex: none; }
footer { justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.15rem; font-size: .84rem; color: var(--secondary); }
.wordmark { font-size: 1.05rem; }
@media (max-width: 48rem) {
  .bar, .content { width: calc(100% - 2.5rem); }
  .bar { min-height: 3.5rem; }
  .brand { font-size: 1.05rem; gap: .3rem; }
  .brand img { width: 24px; height: 24px; }
  nav { gap: .85rem; }
  nav a { font-size: .875rem; }
  .introduction, .capture-info { grid-template-columns: 1fr; }
  .speech-bubble::before {
    inset: -.35rem auto auto 1.25rem;
    border-width: 1px 0 0 1px;
    transform: rotate(45deg);
  }
  .introduction { gap: 1.05rem; }
}
@media (40rem < width <= 52rem) {
  .banner-subtitle { max-width: 20rem; }
}
@media (max-width: 40rem) {
  .banner {
    width: calc(100% - 1.5rem);
    margin-top: .75rem;
    min-height: 15rem;
    align-items: start;
    background-size: auto min(53%, 8.5rem);
    background-position: right bottom;
    background-color: #fdf8eb;
    background-image: linear-gradient(to bottom, #fdf8eb 0%, transparent 22%), url("assets/maple-day.webp");
  }
  .banner-copy { padding: 1.15rem 1rem 6.75rem; }
  .banner-downloads a { padding-inline: .55rem; }
  h1 { font-size: clamp(1.8rem, 8vw, 2.85rem); margin-block: .6rem; }
}
@media (max-width: 30rem) {
  .banner-download-suffix { display: none; }
}

@media (max-width: 24rem) {
  .banner-downloads { gap: .25rem; }
  .banner-downloads a { padding-inline: .25rem; gap: .25rem; }
}

.release-download { max-width: 100%; min-width: 0; }
.release-download details { margin-top: .35rem; font-size: .75rem; color: var(--secondary); }
.release-download summary { cursor: pointer; width: fit-content; }
.release-download code { display: block; max-width: 28ch; margin-top: .25rem; overflow-wrap: anywhere; user-select: all; }
.banner-downloads { align-items: flex-start; }

.language-picker { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: .45rem; }
.language-picker[hidden] { display: none; }
.language-picker button { padding: .35rem .5rem; border: 0; border-radius: .3rem; background: transparent; color: var(--ink); font: 650 .8rem/1.25 system-ui, sans-serif; cursor: pointer; }
.language-picker button[aria-pressed="true"] { background: #353e32; color: white; }
.language-picker button:focus-visible { outline: 2px solid var(--maple); outline-offset: 1px; }
@media (max-width: 30rem) {
  .bar { flex-wrap: wrap; gap: .25rem .5rem; padding-block: .4rem; }
  .bar nav { margin-left: auto; gap: .5rem; }
}

html:lang(en) body {
  font-family: system-ui, sans-serif;
  letter-spacing: .01em;
  word-break: normal;
}
html:lang(en) :is(h1, h2, h3, .brand, .wordmark, .product) {
  letter-spacing: normal;
}
html:lang(en) h1 { line-height: 1.16; }

.api-models { margin: .65rem 0 0; padding-inline-start: 1.25rem; line-height: 1.7; }

.faq details { margin-top: 1rem; padding: 0 1.1rem; background: white; border: 1px solid var(--line); border-radius: .65rem; }
.faq summary { padding: 1rem 0; cursor: pointer; font-weight: 650; }
.faq summary:focus-visible { outline: 2px solid var(--maple); outline-offset: 2px; }
.faq details p { max-width: 72ch; padding-bottom: 1rem; }

.model-costs { width: min(100%, 36rem); border-collapse: collapse; margin-bottom: 1rem; }
.model-costs caption { text-align: left; font-weight: 650; margin-bottom: .5rem; }
.model-costs th, .model-costs td { text-align: left; padding: .45rem .25rem; border-bottom: 1px solid var(--line); }
.model-costs tbody th { font-weight: 500; }
.model-costs tr > :last-child { text-align: right; font-variant-numeric: tabular-nums; }

.faq-contact { margin-top: 1.25rem; }
