/* Company in a Folder — one stylesheet for every page.
   World: a manila folder on a desk, typed contents on bond paper, one carmine stamp ink. */

@font-face { font-family: "Archivo Expanded"; src: url("fonts/archivo-display.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-text.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --desk: #F3EDE0;
  --folder: #EBD59C;
  --folder-deep: #DCC17E;
  --score: #C4A862;
  --sheet: #FFFDF7;
  --sheet-back: #F1EADA;
  --ink: #1C1B18;
  --rule: #E3D8C0;
  --stamp: #A81F17;
  --stamp-press: #861810;
  --on-stamp: #FFFDF7;
  --label: #FFFDF7;
  --label-ink: #1C1B18;
  --shade: 58 40 8;

  --display: "Archivo Expanded", "Archivo", "Arial Black", sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;

  --edge: 0px;
  --pad: clamp(18px, 5.5vw, 80px);
  --folder-w: min(100% - 2 * var(--edge), 1240px);
  --sec: clamp(72px, 11vw, 136px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --desk: #12110E;
    --folder: #1F1C16;
    --folder-deep: #2C2820;
    --score: #3E372A;
    --sheet: #2A261E;
    --sheet-back: #221F18;
    --ink: #F2E9D2;
    --rule: #433C2F;
    --stamp: #FF7A64;
    --stamp-press: #FF9A87;
    --on-stamp: #1B1914;
    --label: #EDE3C8;
    --label-ink: #1C1B18;
    --shade: 0 0 0;
  }
}

@media (min-width: 760px) { :root { --edge: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  font-kerning: normal;
  overflow-wrap: break-word;
}
@media (min-width: 760px) { body { font-size: 1.125rem; } }

h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-family: var(--text); font-weight: 700; font-size: 1.1875rem; line-height: 1.3; }
p { margin: 0; }
p + p { margin-top: 1em; }
strong { font-weight: 700; }
code, kbd, pre { font-family: var(--mono); font-size: 1em; }
code { font-weight: 700; }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--ink); color: var(--desk); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- The tab bar: desk strip, folder tab with a typed label, the one buy button ---------- */
.tabbar { position: sticky; top: 0; z-index: 20; background: var(--desk); }
.tabbar__in {
  width: var(--folder-w); margin-inline: auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding-top: 10px;
}
.tab {
  flex: 0 0 auto;
  display: block;
  background: var(--folder);
  padding: 10px 26px 10px;
  margin-left: clamp(10px, 3vw, 28px);
  clip-path: polygon(0 100%, 14px 0, calc(100% - 14px) 0, 100% 100%);
  text-decoration: none;
}
.tab__label {
  display: block;
  background: var(--label);
  color: var(--label-ink);
  font: 700 0.9375rem/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px 5px;
  box-shadow: 0 1px 0 rgb(var(--shade) / 0.18);
}
a.tab:hover .tab__label { text-decoration: underline; text-decoration-thickness: 2px; }
a.tab:focus-visible { outline: none; }
a.tab:focus-visible .tab__label { outline: 3px solid var(--ink); outline-offset: 2px; }

.btn {
  flex: 0 1 auto;
  align-self: center;
  margin: 0 var(--pad) 8px 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  background: var(--stamp);
  color: var(--on-stamp);
  font: 700 1rem/1.2 var(--text);
  text-align: center;
  text-wrap: balance;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 1px 1px rgb(var(--shade) / 0.25), 0 6px 14px -6px rgb(var(--shade) / 0.45);
  transition: background-color 160ms ease-out, transform 160ms cubic-bezier(.16, 1, .3, 1);
}
.btn:hover { background: var(--stamp-press); text-decoration: none; }
.btn:active { transform: translateY(1px); }
@media (max-width: 420px) {
  .btn { font-size: 0.9375rem; padding: 8px 14px; max-width: 46vw; }
  .tab { padding-inline: 22px; }
  .tab__label { max-width: calc(10.8ch + 20px); }
}

/* ---------- The folder ---------- */
.folder {
  width: var(--folder-w); margin-inline: auto;
  background: var(--folder);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 1px 2px rgb(var(--shade) / 0.12), 0 24px 48px -28px rgb(var(--shade) / 0.40);
  position: relative;
  overflow-x: clip;
}
@media (min-width: 760px) { .folder { border-top-right-radius: 12px; } }

.sec { padding: var(--sec) var(--pad) 0; }
.sec:last-child { padding-bottom: var(--sec); }
.sec h2 { font-size: clamp(1.875rem, 1.05rem + 3.4vw, 3.25rem); line-height: 1.04; max-width: 20ch; }
.lead { margin-top: 20px; max-width: 46ch; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); }

/* Score lines: the creases pressed into every manila folder */
.score { position: relative; }
.score::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 28px; height: 9px;
  border-top: 1px solid var(--score); border-bottom: 1px solid var(--score);
  pointer-events: none;
}

/* ---------- Hero: the folder front ---------- */
.hero {
  min-height: calc(100vh - 60px);
  min-height: calc(100svh - 60px);
  display: grid; align-content: center;
  padding: 56px var(--pad) 104px;
}
.hero h1 {
  font-size: clamp(2.375rem, 0.9rem + 5.2vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero__sub {
  margin-top: clamp(20px, 3vw, 32px);
  max-width: 40ch;
  font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.4;
  text-wrap: balance;
}
  .nb { white-space: nowrap; }
.hero__free { margin-top: clamp(18px, 2.4vw, 28px); }

.starter {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-weight: 700;
}
.starter svg { width: 1.1em; height: 1.1em; flex: none; transition: transform 200ms cubic-bezier(.16, 1, .3, 1); }
.starter:hover svg { transform: translateX(3px); }
a.starter:not([href]) { text-decoration: none; font-weight: 600; }
a.starter:not([href]) svg { display: none; }

/* ---------- Sheets of bond paper ---------- */
.sheet {
  position: relative;
  background: var(--sheet);
  border-radius: 3px;
  box-shadow: 0 1px 1px rgb(var(--shade) / 0.10), 0 14px 30px -16px rgb(var(--shade) / 0.38);
  padding: clamp(18px, 4vw, 48px);
}
.stack { position: relative; isolation: isolate; }
.stack::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sheet-back); border-radius: 3px;
  box-shadow: 0 1px 1px rgb(var(--shade) / 0.10), 0 10px 24px -14px rgb(var(--shade) / 0.32);
  transform: rotate(-1.3deg) translate(-6px, 10px);
}
.tag + .out, .tag + .decode { margin-top: 26px; }
.ds code { white-space: nowrap; }
.tag {
  position: absolute; top: 12px; right: 14px;
  font: 700 0.9375rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
}

/* ---------- What's in the folder: the tree ---------- */
.inside__sheet { margin-top: clamp(36px, 5vw, 56px); }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree { font: 400 0.9375rem/1.6 var(--mono); }
@media (min-width: 760px) { .tree { font-size: 1rem; } }
.tree ul { padding-left: 2.6ch; }
@media (min-width: 760px) { .tree ul { padding-left: 3ch; } }
.tree ul > li { position: relative; }
.tree ul > li::before {
  content: ""; position: absolute;
  left: -2.1ch; top: 0; width: 1.6ch; height: 0.8em;
  border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
}
.tree ul > li:not(:last-child)::after {
  content: ""; position: absolute; left: -2.1ch; top: 0; bottom: 0;
  border-left: 1.5px solid var(--ink);
}
@media (min-width: 760px) {
  .tree ul > li::before, .tree ul > li:not(:last-child)::after { left: -2.4ch; }
  .tree ul > li::before { width: 1.9ch; }
}
.row { display: flex; flex-wrap: wrap; column-gap: 2ch; padding-bottom: 2px; }
.nm { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 360px) { .tree ul { padding-left: 2.2ch; } .tree ul > li::before, .tree ul > li:not(:last-child)::after { left: -1.8ch; } .tree ul > li::before { width: 1.4ch; } }
.dir > .row .nm { font-weight: 700; }
.ds { flex: 1 1 26ch; min-width: 0; font: 400 0.9375rem/1.5 var(--text); padding-top: 0.1em; padding-bottom: 6px; }
@media (min-width: 760px) {
  .tree .ds { font-size: 1rem; }
  .tree > li > .row .nm { width: 34ch; }
  .tree > li > ul > li > .row .nm { width: 31ch; }
  .tree > li > ul > li > ul > li > .row .nm { width: 28ch; }
  .tree > li > ul > li > ul > li > ul > li > .row .nm { width: 25ch; }
}
.cmd { font-weight: 700; color: var(--stamp); }

.three {
  list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0;
  display: grid; gap: 24px 40px;
}
@media (min-width: 900px) { .three { grid-template-columns: repeat(3, 1fr); } }
.three li { border-top: 2px solid var(--ink); padding-top: 14px; max-width: 42ch; }

/* ---------- A day with your company ---------- */
.moment {
  display: grid; gap: 20px 56px;
  margin-top: clamp(48px, 6vw, 80px);
}
@media (min-width: 980px) { .moment { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); align-items: start; } }
.moment__cue h3 { font-family: var(--display); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.01em; }
.moment__cue p { margin-top: 8px; }
.moment__cue blockquote {
  margin: 14px 0 0; padding: 0;
  font-size: 1.1875rem; line-height: 1.45; font-weight: 600;
}
kbd { font-weight: 700; color: var(--stamp); }
.moment figure { margin: 0; }
.moment figcaption { margin-top: 16px; max-width: 58ch; font-size: 1rem; }
.out {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.9375rem; line-height: 1.6;
  padding-top: 6px;
}
@media (min-width: 760px) { .out { font-size: 1rem; } }
.out b { font-weight: 700; }

.decode { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.4; }
.decode th, .decode td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.decode thead th { font-weight: 700; border-bottom: 2px solid var(--ink); padding-top: 4px; }
.decode td:first-child { font-family: var(--mono); font-weight: 700; width: 2ch; }
.decode .who { font-family: var(--mono); font-weight: 700; }
@media (min-width: 760px) { .decode td:nth-child(n+4) { white-space: nowrap; } }
.decode s { text-decoration-thickness: 2px; }
.decode tr.changed td { text-decoration: none; }
@media (max-width: 759px) {
  .decode thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .decode, .decode tbody, .decode tr, .decode td { display: block; width: auto; }
  .decode tr { position: relative; padding: 12px 0 12px 3ch; border-bottom: 1px solid var(--rule); }
  .decode td { border: 0; padding: 0; }
  .decode td:first-child { position: absolute; left: 0; top: 12px; }
  .decode td:nth-child(2) { font-weight: 700; }
  .decode td:nth-child(n+4) { display: inline; }
  .decode td:nth-child(n+4):not(.nil)::before { content: attr(data-l) " "; font-weight: 700; }
  .decode td:nth-child(n+5):not(.nil)::before { content: " · " attr(data-l) " "; }
  .decode td.nil { display: none; }
}

/* ---------- Why not the free stuff ---------- */
.why {
  list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0;
  display: grid; gap: 0 56px;
}
@media (min-width: 900px) { .why { grid-template-columns: 1fr 1fr; } }
.why li { border-top: 1px solid var(--score); padding: 20px 0 24px; max-width: 54ch; }
.why strong { display: block; font-size: 1.1875rem; margin-bottom: 4px; }

/* ---------- Guard-rails: the stamps ---------- */
.brakes { display: grid; gap: 40px 64px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 980px) { .brakes { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.log h3 { font: 700 1rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.blocked { list-style: none; margin: 14px 0 0; padding: 0; }
.blocked li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.blocked li:last-child { border-bottom: 0; padding-bottom: 4px; }
.blocked span:first-child { max-width: 36ch; }
.stamp {
  flex: none;
  font: 800 0.9375rem/1 var(--display);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--stamp);
  padding: 8px 10px 7px;
  border: 2.5px solid currentColor; border-radius: 5px;
  box-shadow: inset 0 0 0 2px var(--sheet), inset 0 0 0 3.5px currentColor;
  transform: rotate(var(--r, -5deg));
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) { .stamp { mix-blend-mode: normal; } }
@media (max-width: 479px) {
  .blocked li { flex-direction: column; align-items: flex-start; }
  .blocked .stamp { align-self: flex-end; margin-top: -4px; }
}
.is-armed .stamp { opacity: 0; transform: rotate(calc(var(--r, -5deg) - 9deg)) scale(1.6); filter: blur(3px); }
.is-armed.is-stamped .stamp {
  opacity: 1; transform: rotate(var(--r, -5deg)) scale(1); filter: blur(0);
  transition: transform 420ms cubic-bezier(.16, 1, .3, 1), opacity 90ms linear, filter 260ms ease-out;
  transition-delay: calc(var(--i, 0) * 150ms);
}
.more { list-style: none; margin: 0; padding: 0; }
.more li { padding: 18px 0; border-top: 1px solid var(--score); }
.more li:first-child { border-top: 2px solid var(--ink); }
.more code { white-space: nowrap; }

/* ---------- The story + the ledger ---------- */
.story { display: grid; gap: 40px 64px; margin-top: clamp(36px, 5vw, 56px); }
@media (min-width: 980px) { .story { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.story__text { max-width: 60ch; }
.ledger { margin: 0; }
.ledger table { width: 100%; border-collapse: collapse; }
.ledger th { text-align: left; font-weight: 700; font-size: 0.9375rem; padding: 0 8px 10px 0; border-bottom: 2px solid var(--ink); }
.ledger td { font: 700 clamp(1.25rem, 1rem + 1vw, 1.625rem)/1.2 var(--mono); padding: 14px 8px 12px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.ledger td small { font-size: 0.9375rem; font-weight: 400; }
.ledger__go { margin-top: 18px; }
@media (max-width: 479px) {
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger table, .ledger tbody, .ledger tr { display: block; }
  .ledger tr { display: grid; grid-template-columns: 1fr 1fr; }
  .ledger td { display: block; padding-top: 12px; }
  .ledger td::before { content: attr(data-l); display: block; font: 700 0.9375rem/1.3 var(--text); margin-bottom: 4px; }
}

/* ---------- Free vs Full ---------- */
.compare__sheet { margin-top: clamp(36px, 5vw, 56px); padding-inline: clamp(14px, 4vw, 48px); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.4; hyphens: auto; }

@media (min-width: 760px) { .compare { font-size: 1.0625rem; } }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--rule); }
.compare thead th { font: 800 1rem/1.2 var(--display); letter-spacing: -0.01em; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.compare thead th.full { color: var(--stamp); }
.compare tbody th { font-weight: 600; width: 46%; padding-left: 0; }
.compare td { width: 27%; }
.compare td.full { font-weight: 700; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.tick { width: 22px; height: 22px; display: block; color: var(--ink); }
.compare td.full .tick { color: var(--stamp); }
.with { display: inline-flex; align-items: center; gap: 8px; }
.with .tick { flex: none; }
.none { display: block; width: 14px; height: 0; border-top: 1.5px solid var(--ink); margin-top: 0.7em; }
.free__go { margin-top: 28px; }
@media (max-width: 599px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .compare tr:last-child { border-bottom: 0; }
  .compare tbody th { grid-column: 1 / -1; padding: 0; border: 0; width: auto; }
  .compare td { padding: 0; border: 0; width: auto; display: flex; align-items: flex-start; gap: 8px; }
  .compare td::before { content: attr(data-l); flex: none; font-weight: 700; color: var(--ink); }
  .compare td.full::before { color: var(--stamp); }
  .compare .none { margin-top: 0.75em; }
}

/* ---------- FAQ ---------- */
.faq { margin-top: clamp(32px, 4vw, 48px); max-width: 820px; }
.faq details { border-top: 1px solid var(--score); }
.faq details:last-child { border-bottom: 1px solid var(--score); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 0;
  font-weight: 700; font-size: 1.125rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { flex: none; width: 16px; height: 16px; transition: transform 220ms cubic-bezier(.16, 1, .3, 1); }
.faq details[open] .plus { transform: rotate(45deg); }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.faq details > p { padding: 0 0 22px; max-width: 64ch; }

/* ---------- Close ---------- */
.close { padding: var(--sec) var(--pad) calc(var(--sec) + 24px); }
.close h2 { font-size: clamp(2.25rem, 1rem + 5vw, 4.75rem); line-height: 1; max-width: 13ch; }
.close p { margin-top: 22px; max-width: 44ch; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); }
.close p + p { margin-top: 12px; font-size: 1rem; font-weight: 700; }

/* ---------- Footer on the desk ---------- */
.foot { width: var(--folder-w); margin-inline: auto; padding: 40px var(--pad) 48px; font-size: 0.9375rem; line-height: 1.5; }
.foot p { max-width: 72ch; }
.foot nav { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ---------- Legal pages ---------- */
.doc-wrap { padding: clamp(28px, 5vw, 64px) var(--pad) var(--sec); }
.doc { max-width: 800px; margin-inline: auto; padding: clamp(22px, 5vw, 64px); }
.doc h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3rem); line-height: 1.05; }
.doc__ver { margin-top: 10px; font: 700 0.9375rem/1.4 var(--mono); }
.doc ol { margin: 28px 0 0; padding-left: 1.6em; max-width: 66ch; }
.doc li { padding-left: 0.3em; }
.doc li + li { margin-top: 14px; }
.doc li::marker { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
