@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
}

:root {
  --paper: #f6f1e7;
  --paper-deep: #ede5d6;
  --card: #fffdf8;
  --ink: #171a21;
  --muted: #5a5f6c;
  --line: #ddd3c1;
  --accent: #c9401a;
  --eb: #0e6657;
  --eb-soft: #dcefe9;
  --yojo: #f2b01e;
  --yojo-ink: #4a3300;
  --yojo-soft: #fbecc4;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --wrap: 1120px;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.75rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 10;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  font-size: 0.975rem;
}

.nav a {
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

/* Shared pieces */

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.lede {
  font-size: clamp(1.125rem, 1.9vw, 1.3125rem);
  color: var(--muted);
  max-width: 40em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

/* Home hero */

.hero {
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.hero h1 {
  max-width: 13em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lede {
  margin-top: 1.6rem;
}

/* Product panels */

.products {
  padding-top: 0;
  display: grid;
  gap: 1.5rem;
}

.product {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border-radius: calc(var(--radius) + 8px);
  background: var(--card);
  border: 1px solid var(--line);
}

.product.eb {
  background: var(--eb);
  color: #f3fbf8;
  border-color: var(--eb);
}

.product.yojo {
  background: var(--yojo);
  color: var(--yojo-ink);
  border-color: var(--yojo);
}

.product .tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.9rem;
}

.product h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}

.product .pitch {
  font-size: 1.1875rem;
  margin-top: 1rem;
  max-width: 30em;
  opacity: 0.94;
}

.product ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.product li {
  padding-left: 1.6rem;
  position: relative;
}

.product li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7rem;
  height: 2px;
  background: currentColor;
  opacity: 0.7;
}

.product .btn {
  border-color: currentColor;
}

.product.eb .btn {
  background: #f3fbf8;
  color: var(--eb);
  border-color: #f3fbf8;
}

.product.eb .btn.ghost {
  background: transparent;
  color: #f3fbf8;
}

.product.eb .btn.ghost:hover {
  background: #f3fbf8;
  color: var(--eb);
}

.product.yojo .btn {
  background: var(--yojo-ink);
  color: #fff6dc;
  border-color: var(--yojo-ink);
}

.product.yojo .btn.ghost {
  background: transparent;
  color: var(--yojo-ink);
}

.product.yojo .btn.ghost:hover {
  background: var(--yojo-ink);
  color: #fff6dc;
}

/* Illustrative app demos */

.demo {
  margin: 0;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.55);
  font-size: 0.9375rem;
  display: grid;
  gap: 0.8rem;
}

.demo figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bubble {
  background: #e3f6d5;
  border-radius: 14px 14px 14px 4px;
  padding: 0.7rem 0.85rem;
  max-width: 92%;
  line-height: 1.45;
}

.demo .arrow {
  font-family: var(--display);
  font-weight: 650;
  font-size: 0.8125rem;
  color: var(--eb);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo .arrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0;
}

.fields div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
}

.fields dt {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fields dd {
  margin: 0;
  font-weight: 600;
}

.roll {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.demo .roll li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.demo .roll li::before {
  content: none;
}

.roll small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.chip {
  flex: none;
  min-width: 2.6rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--eb-soft);
  color: var(--eb);
}

.chip.half {
  background: var(--yojo-soft);
  color: var(--yojo-ink);
}

.chip.off {
  background: #f6dcd3;
  color: #8f2a0d;
}

.demo .total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
}

/* Principles */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.card p {
  color: var(--muted);
}

.card .num {
  font-family: var(--display);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9375rem;
}

.band {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}

/* Product page */

.page-hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.page-hero .product {
  border-radius: calc(var(--radius) + 8px);
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
}

.crumbs {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}

.facts div {
  background: var(--card);
  padding: 1.25rem 1.4rem;
}

.facts dt {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0.3rem 0 0;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.1875rem;
  line-height: 1.25;
}

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
}

.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.125rem;
}

.faq details p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.prose {
  max-width: 44rem;
  display: grid;
  gap: 1.1rem;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 1.4rem;
}

.prose p,
.prose li {
  color: #3b404c;
}

.prose ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

/* Contact */

.contact-card h3 {
  font-size: 1.4rem;
}

.contact-card ul {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: #d9d5cc;
  padding-block: 3.5rem 2rem;
  font-size: 0.975rem;
}

.site-footer .cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 0.9rem;
}

.site-footer h2 {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--body);
  font-weight: 650;
  color: #9a9daa;
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .legal {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid #333744;
  color: #9a9daa;
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

@media (max-width: 860px) {
  .product,
  .grid-3,
  .grid-2,
  .site-footer .cols {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .fields {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
