/* QuantiSheet. System fonts only. The red is the app icon. */

:root {
  --ink: #1d1d1f;
  --body: #3a3a3c;
  --muted: #515154;
  --line: rgba(0, 0, 0, 0.1);
  --paper: #ffffff;
  --ash: #f5f5f7;
  --mist: #fbfbfd;
  --red: #b4201c;
  --red-hot: #9c1b18;
  --max: 1120px;
  --wide: 1240px;
  --bar: 96px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 0.16em; }
a:hover { color: var(--red-hot); }
button, summary { font-family: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 8px; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.wrap-wide { width: min(var(--wide), calc(100% - 32px)); margin-inline: auto; }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.2vw, 76px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0; }

.lede, .prose p, .step p, .tile p, .faq p, .closing p, .note p {
  color: var(--body);
  font-size: 19px;
  line-height: 1.45;
}
.kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Bars */
.bars {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
}
.global .bar { min-height: 40px; }
.global-links, .product-links { display: flex; gap: 18px; align-items: center; }
.global-links a, .product-links a, .nav-panel a {
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
}
.product-links a { font-size: 12px; opacity: 0.88; }
.global-links a:hover, .product-links a:hover, .nav-panel a:hover { text-decoration: underline; }
.product-links { margin-left: auto; }
.brand {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.product-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.product-name img { width: 22px; height: 22px; border-radius: 5px; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border-radius: 980px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  min-height: 32px;
}
.cta:hover { background: var(--red-hot); color: #fff; }
.cta.big { padding: 14px 22px; font-size: 17px; min-height: 48px; }
.nav-more { margin-left: auto; display: none; position: relative; }
.nav-more summary {
  list-style: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 220px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.nav-panel a { display: block; padding: 12px 12px; font-size: 16px; border-radius: 8px; }
.nav-panel a:hover { background: var(--ash); }

@media (max-width: 919px) {
  .global-links, .product-links { display: none; }
  .nav-more { display: block; }
  .product { position: relative; }
  .nav-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    border-radius: 0 0 16px 16px;
    min-width: 0;
  }
  .product .cta { margin-left: auto; }
  .nav-more { margin-left: 4px; }
}

/* Hero */
.hero {
  background: var(--mist);
  padding: 56px 0 28px;
  overflow: hidden;
  text-align: center;
}
.hero h1 { margin-top: 8px; }
.hero .lede {
  max-width: 38rem;
  margin: 18px auto 0;
  font-size: clamp(19px, 2vw, 24px);
}
.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-top: 26px;
  flex-wrap: wrap;
}
.textlink { font-size: 17px; font-weight: 500; }
.fine {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}
.hero-shot {
  margin: 36px auto 0;
  width: min(1120px, calc(100% - 32px));
}
.frame {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.frame img, .frame picture { display: block; }
.frame img { width: 100%; height: auto; }
figcaption, .caption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
}

/* Story */
.story-band { padding: 72px 0 40px; }
.story {
  display: block;
}
.step { padding: 28px 0 8px; }
.step h2 { margin-bottom: 14px; }
.step p { max-width: 38rem; }
.step-fig { margin: 22px 0 0; }
.story-visual { display: none; }

@media (min-width: 1000px) {
  .story {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) 1.2fr;
    gap: 48px;
    align-items: start;
  }
  .step {
    min-height: 84vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 6px 0 18vh;
  }
  .step-fig { display: none; }
  .story-visual {
    display: block;
    position: sticky;
    top: 116px;
  }
  .story-visual .frame { position: relative; }
  .story-visual .shot {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
  }
  .story-visual .shot.on { position: relative; opacity: 1; }
  .story-visual .shot picture { display: block; }
  .story-visual .shot img {
    width: 100%;
    height: auto;
  }
}
.rail-head .lede { margin-top: 12px; max-width: 36rem; }

/* Bands */
.band { padding: 88px 0; }
.band-ash { background: var(--ash); }
.band-ink {
  background: #000;
  color: #f5f5f7;
}
.band-ink .lede, .band-ink p { color: #d2d2d7; }
.band-ink h2 { color: #fff; }
.band-ink .kicker { color: #d2d2d7; }
section[id], .step[id] { scroll-margin-top: 112px; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head .lede { max-width: 40rem; margin: 14px auto 0; }
.shot-block { margin-top: 28px; }
.shot-block .frame { box-shadow: none; }

/* Tiles */
.tiles {
  display: grid;
  gap: 28px;
}
.tile h3 { margin: 18px 0 8px; }
.tile p { max-width: 40rem; }
@media (min-width: 800px) {
  .tiles.two { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Filmstrip */
.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}
.rail-buttons { display: flex; gap: 8px; }
.rail-buttons button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
}
.rail-buttons button:hover { background: var(--ash); }
.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  scrollbar-color: #c4c4c6 transparent;
}
.rail figure {
  flex: 0 0 min(86vw, 820px);
  scroll-snap-align: start;
  margin: 0;
}
.card .frame { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }

/* Videos */
.videos {
  display: grid;
  gap: 22px;
}
@media (min-width: 700px) {
  .videos { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .videos { grid-template-columns: 1fr 1fr 1fr; }
}
.yt {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  text-align: left;
  color: inherit;
}
.yt img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.yt-play {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 64px;
  height: 44px;
  transform: translate(-50%, -50%);
  background: #b4201c;
  border-radius: 12px;
}
.yt-play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 12px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.yt-title {
  display: block;
  padding: 12px 12px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  min-height: 64px;
}
.yt-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.yt-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-fallback { display: block; margin-top: 8px; font-size: 14px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 26px;
  color: var(--muted);
  line-height: 1;
}
.faq[open] summary::after { content: "–"; }
.faq .a { padding: 0 8px 20px; max-width: 46rem; }
.faq .a p + p { margin-top: 10px; }
.faq + .faq-end { border-top: 1px solid var(--line); }

/* Closing */
.closing { text-align: center; padding: 100px 0; }
.closing .lede { margin: 16px auto 26px; }
.reqs {
  margin-top: 22px;
  color: #d2d2d7;
  font-size: 14px;
}

/* Legal and plain pages */
.page {
  padding: 48px 0 80px;
}
.page h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.site-note {
  background: var(--ash);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 28px;
  color: var(--body);
  font-size: 15px;
}
.legal { max-width: 740px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.legal h2 {
  font-size: 22px;
  margin: 1.8em 0 0.45em;
  padding-top: 0.8em;
  border-top: 1px solid var(--line);
  letter-spacing: -0.015em;
}
.legal h3 { font-size: 18px; margin: 1.2em 0 0.3em; }
.legal p, .legal li { font-size: 17px; color: var(--body); line-height: 1.55; }
.legal p { margin: 0.7em 0; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 0.35em 0; }
.legal .fine, .legal .meta { color: var(--muted); font-size: 15px; }
.legal .summary, .legal .summarybox {
  background: var(--ash);
  border-radius: 12px;
  padding: 8px 18px 14px;
  margin: 18px 0;
}
.legal .summarybox strong { display: block; margin-top: 8px; }
.legal .draft {
  background: #fff8e8;
  border: 1px solid #e4d3a1;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 16px 0;
  font-size: 15px;
  color: #3a3a3c;
}
.legal .ph {
  background: #fff3bf;
  border-radius: 4px;
  padding: 0 4px;
}
.legal footer {
  margin-top: 2em;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.tiles.stack { margin-top: 32px; }
.hero.flush { padding-bottom: 72px; }
code { font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace; font-size: 0.92em; }
.plain { max-width: 680px; }
.plain p { margin-top: 14px; font-size: 19px; }
.plain h2 { font-size: 28px; margin: 1.4em 0 0.4em; }

/* Footer */
.site-foot {
  background: var(--ash);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 13px;
}
.site-foot .wrap { display: grid; gap: 14px; }
.foot-name { color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.foot-links a { color: var(--ink); text-decoration: none; font-size: 13px; }
.foot-links a:hover { text-decoration: underline; }
.foot-meta { max-width: 46rem; line-height: 1.45; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.band-ink :focus-visible { outline-color: #fff; }

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .rail { scroll-behavior: auto; }
  .story-visual img { transition: none; }
}

@media (min-width: 1280px) {
  .hero { padding-top: 72px; }
  .band { padding: 110px 0; }
}
@media (min-width: 1600px) {
  .hero-shot { width: min(1200px, calc(100% - 80px)); }
}

@media (max-width: 420px) {
  .wrap, .wrap-wide, .hero-shot { width: calc(100% - 28px); }
  .hero { padding-top: 36px; }
  .band { padding: 64px 0; }
  .cta.big { width: 100%; }
  .hero-actions { flex-direction: column; }
}
