@font-face {
  font-family: 'Instrument Sans';
  src: url('./assets/instrument-sans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6f6f2;
  --ink: #192030;
  --muted: #525f70;
  --accent: #364fd8;
  --rule: #d0d3d6;
  --gutter: clamp(22px, 6.1vw, 92px);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; line-height: 1.6; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #8493ff; outline-offset: 5px; }
.wrap { width: min(100%, 1510px); padding-inline: var(--gutter); margin-inline: auto; }
.skip { position: fixed; z-index: 5; padding: 8px 16px; left: 12px; top: 10px; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }

.mast { position: relative; z-index: 1; background: #090c17; color: #fcfcff; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 71px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 25px; font-weight: 650; line-height: 1; letter-spacing: -1.6px; white-space: nowrap; }
.wordmark img { display: block; }
.wordmark b { font-weight: 420; }
nav { display: flex; align-items: center; gap: clamp(16px, 2.3vw, 36px); font-size: .89rem; }
nav a { color: #d8dbea; }
nav a:hover, .hero-demo:hover { color: white; text-decoration: underline; text-underline-offset: 5px; }
nav .nav-workbench { display: inline-flex; align-items: center; gap: 11px; padding: 7px 15px; border: 1px solid #80859a; border-radius: 6px; color: white; }
.language-control {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding-inline: 9px;
  border: 1px solid #666e85;
  border-radius: 8px;
  color: #e7e9f6;
  font-size: 12px;
  font-weight: 580;
}
.language-control[hidden] { display: none; }
.language-control:hover { border-color: #b9c1ff; }
.language-control:focus-within { outline: 2px solid #b9c1ff; outline-offset: 2px; }
.language-control select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #080b16; }
.optic { position: absolute; z-index: -2; inset: 0; }
.optic img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 55% 55%; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #080b17cc 0%, #080b178c 28%, transparent 60%); }
.hero-inner { display: flex; align-items: center; min-height: clamp(530px, 40.2vw, 670px); padding-block: clamp(56px, 5.7vw, 94px); }
.hero-copy { max-width: min(43vw, 650px); }
.hero-kind { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 550; letter-spacing: .13em; color: #d5d9f7; }
.hero-kind::before { content: ''; width: 28px; height: 2px; background: #a6adff; }
.hero h1 { margin-block: 18px 22px; font-size: clamp(3.25rem, 5.2vw, 5.5rem); letter-spacing: -.064em; font-weight: 700; line-height: 1.09; }
.hero h1 em { color: #bbc3ff; font-style: normal; }
:is(html:lang(en), html:lang(es)) .hero h1 { font-size: clamp(2.65rem, 4.7vw, 5.1rem); letter-spacing: -.04em; }
:is(html:lang(ja), html:lang(ko)) .hero h1 { font-size: clamp(2.25rem, 4.6vw, 4.7rem); }
html:lang(ko) :is(.nav-workbench, .hero h1) { word-break: keep-all; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 25px; align-items: center; margin-top: clamp(24px, 2.8vw, 43px); }
.button, .hero-demo { display: inline-flex; align-items: center; gap: 16px; font-size: .95rem; font-weight: 600; }
.button { min-height: 47px; padding: 10px 20px; background: #f7f7fc; color: #141b30; border-radius: 5px; }
.button:hover { background: #dfe2ff; }
.button [aria-hidden], .hero-demo [aria-hidden] { font-size: 1.15rem; line-height: 1; }
.hero-demo { color: #ebedfa; min-height: 44px; }

.outlook { padding-block: clamp(45px, 4.7vw, 76px) clamp(45px, 6vw, 94px); }
.reading-head, .reading-meta, .assets, .price-chart figcaption { display: flex; align-items: center; }
.reading-head { justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 15px; }
.reading-head h2 { font-size: clamp(1.48rem, 2.25vw, 2.15rem); font-weight: 650; letter-spacing: -.06em; line-height: 1.25; }
.reading-meta { flex-wrap: wrap; justify-content: flex-end; gap: 2px 10px; color: var(--muted); font-size: .79rem; font-variant-numeric: tabular-nums; }
.reading { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); gap: clamp(38px,7vw,110px); padding-top: clamp(22px,2.5vw,39px); }
.reading-copy, .price-chart { min-width: 0; }
.assets { width: fit-content; gap: 3px; padding: 3px; border: 1px solid #b9c0cd; border-radius: 22px; }
.assets button { border: 0; border-radius: 22px; padding: 5px 15px; min-height: 31px; font-size: .87rem; font-weight: 650; line-height: 1.25; background: transparent; color: #4c566d; }
.assets button[aria-pressed='true'] { background: var(--ink); color: white; }
.assets button:hover:not([aria-pressed='true']) { background: #e2e4ec; }
#state-name { margin: 17px 0 9px; color: var(--ink); font-size: clamp(2.55rem,4.3vw,4.25rem); line-height: 1.2; letter-spacing: -.065em; }
#state-text { max-width: 29em; font-size: clamp(.94rem,1.11vw,1.08rem); line-height: 1.8; }
.evidence { margin-top: 14px; font-size: .9rem; }
.evidence summary { display: inline-flex; align-items: center; gap: 13px; min-height: 37px; list-style: none; color: var(--accent); font-weight: 590; }
summary::-webkit-details-marker { display: none; }
.evidence summary [aria-hidden] { width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.evidence[open] summary [aria-hidden] { transform: rotate(225deg); }
.evidence p { color: var(--muted); line-height: 1.75; margin-top: 5px; max-width: 34em; }
.open-reading { color: var(--accent); text-underline-offset: 4px; text-decoration: underline; }
.evidence p { margin-bottom: 8px; }
.price-chart figcaption { justify-content: space-between; gap: 7px; padding-block: 3px 10px; color: var(--muted); font-size: .81rem; }
.price-chart figcaption strong { color: var(--ink); font-size: 1rem; letter-spacing: .035em; }
.plot-frame { position: relative; height: clamp(170px,15vw,232px); }
.plot-frame canvas { display: block; width: 100%; height: 100%; }
#chart-source { color: var(--muted); font-size: .74rem; margin-top: 5px; }
footer { border-top: 1px solid var(--rule); }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 31px; }
.foot-top .wordmark { font-size: 22px; }
.venues { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px clamp(16px,2.3vw,34px); }
.venues span { font-size: .79rem; color: var(--muted); }
.venues b { color: #3f495e; font-size: 1.02rem; font-weight: 600; }
.start { border-top: 1px solid var(--rule); color: var(--ink); }
.start summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px 16px 0; list-style: none; font-size: .88rem; font-weight: 550; }
.start[open] summary [aria-hidden] { transform: rotate(45deg); }
.usage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 70px); padding: 8px 0 22px; }
.usage h3 { font-size: .97rem; }
.usage p { color: var(--muted); font-size: .9rem; line-height: 1.75; margin: 4px 0 8px; }
.usage a { display: inline-block; color: var(--accent); font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; margin-right: 1em; }

@media (max-width: 900px) {
  .hero-inner { min-height: 485px; }
  .reading { column-gap: 29px; }
}
@media (max-width: 700px) {
  :root { --gutter: clamp(18px,5vw,32px); }
  .nav-row { min-height: 58px; gap: 9px; }
  nav { gap: 8px; }
  .wordmark { font-size: 22px; }
  .wordmark img { width: 28px; height: 28px; }
  nav a:not(.nav-workbench) { display: none; }
  .hero-inner { align-items: flex-start; padding-top: 36px; padding-bottom: clamp(163px,46vw,280px); min-height: 0; }
  .hero-copy { max-width: 29em; }
  .optic { inset: auto 0 0 auto; width: min(100%,570px); height: 66%; }
  .optic img { object-position: center 61%; }
  .hero::before { background: linear-gradient(180deg, #080b16 16%, #080b16fb 31%, #080b16ed 42%, #080b1670 58%, transparent 79%); }
  .hero-kind { font-size: .76rem; }
  .hero h1 { font-size: clamp(3.15rem,10.6vw,4.6rem); margin: 14px 0 13px; }
  :is(html:lang(en), html:lang(es)) .hero h1 { font-size: clamp(2.35rem, 11.8vw, 4.4rem); }
  :is(html:lang(ja), html:lang(ko)) .hero h1 { font-size: clamp(2.1rem, 8.8vw, 3.65rem); }
  .hero-actions { margin-top: 18px; }
  .button { min-height: 42px; padding: 8px 15px; }
  .hero-demo, .button { font-size: .87rem; gap: 10px; }
  .hero-demo { padding: 7px 12px; border: 1px solid #717993; border-radius: 5px; background: #0b0f20db; }
  .hero-actions { column-gap: 13px; }
  .reading-head { align-items: flex-end; padding-bottom: 12px; }
  .reading-meta { flex-direction: column; align-items: flex-end; line-height: 1.4; font-size: .74rem; }
  .reading-meta time { text-align: end; }
  .reading { grid-template-columns: minmax(0,1fr); gap: 22px; }
  #state-name { margin: 12px 0 4px; }
  .evidence { margin-top: 6px; }
  .foot-top { align-items: flex-start; flex-direction: column; }
  .usage { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 440px) {
  .language-control { padding-inline: 7px; }
  .language-control svg:last-of-type { display: none; }
  nav .nav-workbench { gap: 5px; padding: 6px 8px; font-size: .8rem; line-height: 1.2; min-height: 36px; }
}
@media (max-width: 360px) {
  .mast .wordmark { font-size: 19px; gap: 6px; }
  .mast .wordmark img { width: 25px; height: 25px; }
  .language-control { width: 36px; }
  .language-control span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.trial {
  color: var(--ink, #192030);
  background: #edf2f8;
  border-block: 1px solid #d2dce7;
}
.trial-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(42px, 7vw, 112px);
  padding-block: clamp(52px, 7.5vw, 118px);
}
.trial-copy,
.trial-figure {
  min-width: 0;
}
.trial-title {
  margin: 0;
  font: inherit;
  font-size: clamp(2.5rem, 4.4vw, 4.85rem);
  font-weight: 690;
  line-height: 1.13;
  letter-spacing: -0.055em;
}
.trial-intro {
  max-width: 27em;
  margin: 1.3rem 0 1.75rem;
  color: var(--muted, #526073);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.75;
}
.trial-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 1.3em;
  padding: 0.7em 1.05em;
  color: #fff;
  background: var(--ink, #192030);
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}
.trial-action:hover {
  color: #fff;
  background: var(--accent, #364fd8);
}
.trial-action:focus-visible {
  outline: 3px solid var(--accent, #364fd8);
  outline-offset: 4px;
}
.trial-figure {
  margin: 0;
  padding: clamp(20px, 3vw, 40px) 0 clamp(20px, 3vw, 40px) clamp(24px, 4vw, 66px);
  border-left: 1px solid #c5d1df;
}
.trial-caption {
  margin-bottom: 1.4rem;
}
.trial-chart-title {
  margin: 0;
  color: var(--ink, #192030);
  font: inherit;
  font-weight: 660;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.4;
}
.trial-cost {
  margin: 0.45rem 0 0;
  color: var(--muted, #526073);
  font-size: 0.95rem;
  line-height: 1.65;
}
.trial-cost strong {
  color: var(--ink, #192030);
  font-variant-numeric: tabular-nums;
}
.trial-table {
  width: 100%;
  table-layout: fixed;
  border-spacing: 0;
  border-collapse: collapse;
  color: var(--ink, #192030);
  font-variant-numeric: tabular-nums;
}
.trial-table th,
.trial-table td {
  vertical-align: middle;
}
.trial-table thead th {
  padding-block: 0 0.65rem;
  border-bottom: 1px solid #b8c6d5;
  color: var(--muted, #526073);
  font-weight: 550;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.trial-table .trial-rowhead {
  width: 5.3em;
  padding-inline: 0 0.5em;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 560;
}
.trial-table .trial-down {
  text-align: right;
  padding-inline: 0 0.65rem;
}
.trial-table .trial-up {
  text-align: left;
  padding-inline: 0.65rem 0;
}
.trial-table td {
  position: relative;
  padding-block: 0.85rem 1.1rem;
  font-size: clamp(1rem, 1.55vw, 1.45rem);
  white-space: nowrap;
  font-weight: 600;
  line-height: 1.35;
}
.trial-table td.trial-up {
  border-left: 1px solid #b8c6d5;
}
.trial-table td::after {
  position: absolute;
  bottom: 0.55rem;
  width: var(--trial-extent);
  height: 5px;
  background: #67778b;
  content: "";
}
.trial-down::after {
  right: 0;
}
.trial-up::after {
  left: 0;
}
.trial-adjusted td,
.trial-adjusted .trial-rowhead {
  color: #3148ae;
}
.trial-adjusted td::after {
  background: #4058bc;
}
.trial-source {
  margin: 1rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid #b8c6d5;
  color: var(--muted, #526073);
  font-size: 0.8rem;
  line-height: 1.65;
}
@media (max-width: 760px) {
  .trial-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.3rem;
    padding-block: 3rem;
  }
  .trial-figure {
    padding: 1.6rem 0 0;
    border-top: 1px solid #c5d1df;
    border-left: 0;
  }
  .trial-title { font-size: clamp(2.35rem,8vw,3rem); }
}
@media (max-width: 380px) {
  .trial-title {
    font-size: 2.1rem;
  }
  .trial-table .trial-rowhead {
    width: 4.8em;
    font-size: 0.82rem;
  }
}
.trial { background: #e9ebf3; }
.trial-follow { display: inline-flex; gap: 8px; margin: 10px 0 10px 14px; color: #344677; font-weight: 580; font-size: .9rem; }
.trial-follow:hover { text-decoration: underline; text-underline-offset: 4px; }
