@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3f0e6;
  --paper-2: #e9e5d6;
  --ink: #16170f;
  --ink-2: #55564a;
  --forest: #123524;
  --forest-2: #1b4a33;
  --cream: #f3f0e6;
  --cream-2: #b9c7b5;
  --lime: #d7f24a;
  --rule: #16170f;
  --gutter: clamp(16px, 2.2vw, 36px);
  --spring: cubic-bezier(.3, 1.45, .55, 1);
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 800; font-stretch: 112%; letter-spacing: -.03em; line-height: .98; }
h1 { font-size: clamp(3.3rem, 8vw, 9.5rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 5.2rem); }
h3 { font-size: 1.5rem; font-weight: 700; font-stretch: 108%; letter-spacing: -.015em; line-height: 1.15; }
code { font: .9em/1 "Cascadia Mono", Consolas, ui-monospace, monospace; background: rgba(22, 23, 15, .08); padding: .12em .34em; }
kbd { font: 600 .8em/1 var(--font); background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-bottom-width: 3px; padding: .2em .5em; border-radius: 5px; white-space: nowrap; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); height: 58px; padding-inline: var(--gutter); background: var(--paper); border-bottom: 1.5px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-stretch: 112%; font-size: 1.15rem; letter-spacing: -.025em; text-decoration: none; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 28px); margin-right: auto; margin-left: clamp(4px, 1.4vw, 20px); }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 700; border-radius: 0; border: 1.5px solid var(--ink); cursor: pointer; white-space: nowrap; transition: transform .12s, box-shadow .12s, background .12s, color .12s; }
.btn-ink { background: var(--ink); color: var(--lime); }
.btn-ink:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--forest); }
.btn-ink:active { transform: none; box-shadow: none; }
.btn-small { padding: 7px 16px; font-size: .95rem; }
.btn-large { padding: 17px 28px; font-size: 1.12rem; }
.is-disabled { background: transparent; color: var(--ink); cursor: not-allowed; opacity: .6; }
.is-disabled:hover { transform: none; box-shadow: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(calc(100vh - 58px), 960px); border-bottom: 1.5px solid var(--rule); }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(24px, 3.4vw, 56px) var(--gutter); }
.hero-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.38; max-width: 33em; }
.meta { color: var(--ink-2); font-size: .92rem; min-height: 1.4em; white-space: pre-wrap; }

/* Demo */
.stage { margin: 0; padding: clamp(14px, 1.6vw, 26px) var(--gutter); background: var(--forest); color: var(--cream); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stage :focus-visible { outline-color: var(--lime); }
.stage-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.file-picker { display: inline-flex; border: 1.5px solid var(--cream-2); }
.file-picker button { border: 0; background: none; padding: 5px 14px; font-size: .92rem; font-weight: 500; color: var(--cream); cursor: pointer; }
.file-picker button + button { border-left: 1.5px solid var(--cream-2); }
.file-picker button:hover { background: var(--forest-2); }
.file-picker button[aria-pressed="true"] { background: var(--cream); color: var(--forest); font-weight: 700; }
.sound { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; font-size: .92rem; font-weight: 500; background: none; border: 1.5px solid var(--cream-2); color: var(--cream); cursor: pointer; }
.sound .i { width: 16px; height: 16px; }
.sound:hover { background: var(--forest-2); }
.sound[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); font-weight: 700; }

.wheel-wrap { position: relative; width: min(100%, 72vh, 700px); margin: auto; aspect-ratio: 1; }
.disc { position: absolute; inset: 2.1%; border-radius: 50%; background: var(--forest-2); }
.wheel { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: manipulation; cursor: default; }
.petal-in { transform-box: fill-box; transform-origin: center; animation: petal-in .42s var(--spring) both; }
.petal { transform-box: fill-box; transform-origin: center; transition: transform .24s var(--spring); cursor: pointer; outline: none; }
.shape { fill: var(--cream); fill-opacity: .13; transition: fill .2s, fill-opacity .2s; }
.rim { fill: none; stroke: var(--cream-2); stroke-width: 1; opacity: .55; }
.needle { stroke: var(--lime); stroke-width: 4; stroke-linecap: round; opacity: 0; transform-box: view-box; transform-origin: 238px 238px; transition: transform .26s var(--spring), opacity .16s; }
.needle.on { opacity: 1; transition: transform .26s var(--spring), opacity .07s; }
.lab, .lab-small, .none { font-family: var(--font); fill: var(--cream); pointer-events: none; user-select: none; }
.lab { font-size: 16px; font-weight: 700; font-stretch: 104%; }
.lab-small { font-size: 11px; font-weight: 600; }
.none { font-size: 15px; font-weight: 600; }
.glyph { fill: none; stroke: var(--cream); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.petal.hot { transform: scale(1.12); }
.petal.hot .shape, .petal:focus-visible .shape { fill: var(--lime); fill-opacity: 1; transition-duration: .05s; }
.petal.hot .lab, .petal.hot .lab-small, .petal:focus-visible .lab, .petal:focus-visible .lab-small { fill: var(--ink); }
.petal.hot .glyph, .petal:focus-visible .glyph { stroke: var(--ink); }
@keyframes petal-in { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: scale(1); } }

.well { position: absolute; left: 50%; top: 50%; width: 29.4%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--forest); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7%; pointer-events: none; }
.thumb { width: 52%; aspect-ratio: 4 / 3; display: grid; place-items: center; font-weight: 800; font-size: clamp(9px, 1.1vw, 14px); line-height: 1; color: var(--ink); background: var(--cream); }
.thumb[data-kind="video"] { background: var(--cream-2); }
.thumb[data-kind="pdf"] { background: #f08a8a; }
.thumb[data-kind="doc"] { background: #9fc3ee; }
.pill { font-size: clamp(10px, 1vw, 13px); font-weight: 600; line-height: 1.1; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }

.toast { position: absolute; left: 50%; top: 2%; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 8px 15px 8px 10px; font-size: .92rem; font-weight: 600; background: var(--cream); color: var(--ink); white-space: nowrap; opacity: 0; transform: translate(-50%, -12px); pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); transition: opacity .12s, transform .36s var(--spring); }
.toast-check { width: 18px; height: 18px; flex: none; }
.toast-check circle { fill: var(--forest); }
.toast-check path { fill: none; stroke: var(--lime); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; }
.toast.show .toast-check path { animation: draw .3s .06s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.keys { display: grid; grid-template-columns: repeat(3, 1fr); }
.key { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 4px; background: none; border: 1.5px solid var(--cream-2); font-size: .95rem; font-weight: 500; color: var(--cream); cursor: pointer; }
.key + .key { border-left: 0; }
.key:hover { background: var(--forest-2); }
.key[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); font-weight: 700; }
.stage figcaption { color: var(--cream-2); font-size: .86rem; }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--lime); border-bottom: 1.5px solid var(--rule); }
.promises p { padding: clamp(20px, 2.4vw, 36px) var(--gutter); font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.35; }
.promises p + p { border-left: 1.5px solid var(--rule); }
.promises strong { display: block; font-size: 1.32em; font-weight: 800; font-stretch: 108%; letter-spacing: -.02em; margin-bottom: 6px; }

/* How it works */
.how-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--gutter); padding: clamp(14px, 2vw, 30px) var(--gutter); border-bottom: 1.5px solid var(--rule); }
.how-word { font-size: clamp(3.4rem, 10vw, 11.5rem); font-weight: 800; font-stretch: 118%; letter-spacing: -.04em; line-height: 1; }
.how-text { font-size: clamp(1.1rem, 1.7vw, 1.6rem); line-height: 1.35; padding-left: var(--gutter); }

/* Formats */
.formats-section { background: var(--forest); color: var(--cream); padding-top: clamp(48px, 7vw, 110px); }
.section-head { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); align-items: end; gap: 28px; padding: 0 var(--gutter) clamp(32px, 4vw, 60px); }
.section-head h2 { text-wrap: balance; }
.section-head p { font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.35; }
.formats { width: 100%; border-collapse: collapse; font-size: clamp(.92rem, 1.15vw, 1.1rem); }
.formats th, .formats td { text-align: left; padding: 15px var(--gutter); border-top: 1.5px solid var(--forest-2); vertical-align: top; }
.formats thead th { font-size: .86rem; font-weight: 500; color: var(--cream-2); }
.formats tbody th { font-weight: 800; font-stretch: 108%; letter-spacing: -.01em; width: 25%; white-space: nowrap; }
.formats td:nth-child(2) { color: var(--cream-2); width: 37.5%; }
.formats tbody tr { transition: background .1s, color .1s; }
.formats tbody tr:hover { background: var(--lime); color: var(--ink); }
.formats tbody tr:hover td { color: var(--ink); }

/* Tools */
.tools { padding-top: clamp(48px, 7vw, 110px); }
.kbd-big { font-size: .82em; border-width: 3px; border-bottom-width: 7px; border-radius: 10px; padding: .02em .22em; font-weight: 800; }
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-top: 1.5px solid var(--rule); }
.split-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.split-flip .shot { order: 2; }
.shot { display: grid; place-items: center; padding: clamp(18px, 3.4vw, 56px); }
.shot img { filter: drop-shadow(0 14px 22px rgba(18, 30, 10, .35)); }
.shot-lime { background: var(--lime); }
.shot-forest { background: var(--forest); }
.split-copy { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(24px, 3.4vw, 56px) var(--gutter); font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.42; }
.split-copy p + h3 { margin-top: 22px; }

/* FAQ */
.faq-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); padding: clamp(48px, 7vw, 110px) var(--gutter); border-top: 1.5px solid var(--rule); }
.faq details { border-top: 1.5px solid var(--rule); }
.faq details:last-child { border-bottom: 1.5px solid var(--rule); }
.faq summary { padding: 17px 40px 17px 0; font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 9px; font-size: 1.8rem; font-weight: 500; line-height: 1.3; transition: transform .2s; }
.faq summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 20px; max-width: 42em; }

/* Download */
.final { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding: clamp(36px, 5vw, 80px) var(--gutter); background: var(--lime); border-top: 1.5px solid var(--rule); }
.final h2 { font-size: clamp(4rem, 15vw, 17rem); font-stretch: 118%; letter-spacing: -.05em; line-height: .86; }
.final-side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 100%; }
.final .meta { color: var(--ink); }
.hash { font: .72rem/1.4 "Cascadia Mono", Consolas, ui-monospace, monospace; overflow-wrap: anywhere; max-width: 34em; }
.hash:empty { display: none; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 16px var(--gutter); background: var(--ink); color: var(--paper); font-size: .92rem; }

/* After clicking download */
.started { width: min(560px, calc(100vw - 32px)); padding: clamp(24px, 4vw, 40px); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--forest); }
.started::backdrop { background: rgba(18, 53, 36, .55); }
.started h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); padding-right: 30px; }
.started-note { color: var(--ink-2); font-size: .9rem; margin-top: 10px; }
.started ol { margin: 20px 0 0; padding-left: 22px; display: grid; gap: 12px; }
.started-close { position: absolute; right: 12px; top: 8px; width: 38px; height: 38px; font-size: 1.7rem; line-height: 1; background: none; border: 0; cursor: pointer; }
.started-close:hover { background: var(--lime); }

/* Notices page */
.doc { padding: clamp(32px, 5vw, 72px) var(--gutter); max-width: 60em; }
.doc h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.doc h2 { font-size: 1.5rem; margin-top: 34px; letter-spacing: -.015em; line-height: 1.2; }
.doc p, .doc li { margin-top: 10px; }
.doc a { text-underline-offset: 3px; }
.doc ul { padding-left: 20px; }

@media (max-width: 980px) {
  .hero, .faq-section { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .wheel-wrap { width: min(100%, 560px); }
  .section-head { grid-template-columns: 1fr; }
  .split, .split-flip { grid-template-columns: 1fr; }
  .split-flip .shot { order: 0; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 720px) {
  .promises { grid-template-columns: 1fr; }
  .promises p + p { border-left: 0; border-top: 1.5px solid var(--rule); }
  .how-row { grid-template-columns: 1fr; gap: 4px; }
  .how-text { padding-left: 0; }
  /* The table stacks: each row becomes a small block, so nothing has to scroll sideways. */
  .formats thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .formats tr { display: block; padding: 13px var(--gutter); border-top: 1.5px solid var(--forest-2); }
  .formats th, .formats td { display: block; width: auto !important; padding: 0; border: 0; white-space: normal; }
  .formats td:nth-child(2) { font-size: .86em; margin: 2px 0 6px; }
  .btn-large { width: 100%; }
  .hero-foot, .final-side { align-items: stretch; width: 100%; }
  .key { flex-direction: column; gap: 6px; }
  .toast { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
