/* Ferry tokens from apps/web/src/styles.css; fonts are copies of apps/web/public/fonts (SIL Open Font License). */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/work-sans-latin.woff2") format("woff2");
}

:root {
  --background: #f4ecdd;
  --foreground: #1f2a37;
  --card: #fffbf2;
  --primary: #2b6c9c;
  --primary-hover: #245c85;
  --muted-foreground: #5b5f63;
  --border: #d5c7ad;
  --display: "Fraunces", Georgia, serif;
  --sans: "Work Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--background);
  color: var(--foreground);
  font: 400 16px/24px var(--sans);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
a {
  color: inherit;
}

.bar,
.hero,
.see,
.doc,
main:not(.doc) > .faq,
.foot {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 20px;
}
.bar-nav {
  display: flex;
  align-items: center;
  gap: 4px 20px;
  white-space: nowrap;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 3px;
}
.nav-link[aria-current="page"] {
  text-decoration: underline;
}
.button-small {
  min-height: 44px;
  padding-inline: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font: 600 20px/28px var(--display);
  text-decoration: none;
}

.hero {
  padding-block: 48px 40px;
}
h1 {
  max-width: 20ch;
  margin: 0;
  font: 600 clamp(36px, 5.2vw, 64px) / 1.06 var(--display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.wave {
  width: 112px;
  height: 10px;
  margin-top: 20px;
  background: url("/wave.svg") repeat-x;
}
.lede {
  max-width: 36rem;
  margin: 20px 0 0;
  font-size: 19px;
  line-height: 28px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 22px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
.button:hover {
  background: var(--primary-hover);
}
.quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.price {
  margin: 16px 0 0;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 20px;
}

.networks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 28px;
}
.network-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
}
.network-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.logo {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.soon {
  color: var(--muted-foreground);
  font-weight: 400;
}
.soon-tag {
  font-size: 14px;
}
.door {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  max-width: 44rem;
  margin-top: 32px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  text-decoration: none;
  transition: border-color 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
.door:hover {
  border-color: var(--primary);
}
.door-go {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.see {
  margin-bottom: 56px;
}
.tabs {
  display: none;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}
.js .tabs {
  display: flex;
}
.tabs button {
  min-height: 44px;
  padding-inline: 20px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--foreground);
  font: 500 16px/24px var(--sans);
  cursor: pointer;
}
.tabs button[aria-selected="true"] {
  background: var(--primary);
  color: #fff;
}
.panel[hidden] {
  display: none;
}
.panel + .panel {
  margin-top: 40px;
}
.js .panel-title {
  display: none;
}
.panel-title {
  margin: 0 0 12px;
  font: 600 24px/30px var(--display);
}
.panel-lede {
  max-width: 36rem;
  margin: 0 0 20px;
}
.demo {
  margin: 0;
}
.demo video {
  display: block;
  cursor: pointer;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 1px 2px rgb(31 42 55 / 0.06), 0 12px 32px rgb(31 42 55 / 0.08);
}

.doc {
  max-width: 880px;
  padding-bottom: 24px;
}
.doc h1 {
  max-width: none;
  margin-top: 24px;
}
.doc section {
  margin-top: 40px;
}
.doc h2 {
  margin: 0 0 12px;
  font: 600 24px/30px var(--display);
}
.doc p,
.doc li {
  max-width: 44rem;
}
.doc ol,
.doc ul {
  padding-left: 22px;
}
.doc li {
  margin-top: 8px;
}
.doc code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--card);
  font: 500 14px/20px ui-monospace, "Cascadia Mono", Consolas, monospace;
  overflow-wrap: anywhere;
}
.doc pre {
  margin: 12px 0;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}
.doc pre code {
  padding: 0;
  background: none;
  overflow-wrap: normal;
  white-space: pre;
}
.doc a {
  color: var(--primary);
  text-underline-offset: 3px;
}
.doc .button {
  color: #fff;
  text-decoration: none;
}
.doc-cta {
  margin: 40px 0 0;
}
.prompts {
  list-style: none;
  padding: 0 !important;
}
.prompts li {
  padding: 10px 14px;
  border-left: 3px solid var(--primary);
  background: var(--card);
}

.about {
  width: min(100% - 48px, 1200px);
  margin: 0 auto 48px;
}
.about li a {
  color: var(--primary);
  text-underline-offset: 3px;
}
.pricing {
  margin: 28px 0 0;
  font-weight: 500;
}
.about ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.about h3 {
  margin: 0;
  font: 600 16px/22px var(--sans);
}
.about li p {
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 22px;
}
.signin-note {
  max-width: 44rem;
  margin: 28px 0 0;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 20px;
}

.foot {
  padding-block: 32px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 20px;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 32px;
}
.foot-title {
  margin: 0 0 4px;
  color: var(--foreground);
  font: 600 14px/20px var(--sans);
}
.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-line {
  margin: 28px 0 0;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-underline-offset: 3px;
}

.crumbs {
  margin-top: -8px;
  font-size: 14px;
  line-height: 20px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc .crumbs li {
  display: inline-flex;
  margin: 0;
  color: var(--muted-foreground);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
}
.doc .crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.table-wrap {
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}
.doc table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 22px;
}
.doc th,
.doc td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.doc tr:last-child > * {
  border-bottom: 0;
}
.doc thead th {
  background: var(--background);
  font-weight: 600;
}
.doc tbody th {
  width: 24%;
  font-weight: 500;
}
.note {
  max-width: 44rem;
  margin: 24px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  background: var(--card);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0 !important;
  list-style: none;
}
.doc .chips li {
  margin: 0;
}
.chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--foreground);
  font-weight: 500;
  text-decoration: none;
}
.chips a:hover {
  border-color: var(--primary);
}
.network-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  text-decoration: none;
}
.network-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq {
  margin-top: 48px;
}
.faq details {
  border-top: 1px solid var(--border);
}
.faq details:last-child {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-block: 8px;
  font-weight: 500;
  cursor: pointer;
}
.faq p {
  margin: 0 0 16px;
}
.plan {
  max-width: 28rem;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 1px 2px rgb(31 42 55 / 0.06), 0 12px 32px rgb(31 42 55 / 0.08);
}
.doc .plan h2 {
  margin: 0;
}
.plan-price {
  margin: 4px 0 12px;
}
.plan-amount {
  font: 600 48px/56px var(--display);
}
.plan ul {
  margin: 0 0 20px;
}
.plan .price {
  margin-top: 12px;
}
.count-label {
  display: block;
  margin-top: 28px;
  font-weight: 500;
}
.count-input {
  display: block;
  width: 100%;
  max-width: 44rem;
  min-height: 160px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--foreground);
  font: 400 16px/24px var(--sans);
  resize: vertical;
}
.count-total {
  margin: 8px 0 0;
  color: var(--muted-foreground);
  font-size: 14px;
}
.doc .count-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.doc .count-row {
  max-width: none;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}
.count-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
}
.count-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: none;
}
.doc .count-name {
  color: var(--foreground);
}
.count-status {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.count-bar {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 8px;
  appearance: none;
  border: 0;
  border-radius: 4px;
  background: var(--background);
  overflow: hidden;
}
.count-bar::-webkit-progress-bar {
  background: var(--background);
}
.count-bar::-webkit-progress-value {
  background: var(--primary);
}
.count-bar::-moz-progress-bar {
  background: var(--primary);
}
.count-row.over .count-bar::-webkit-progress-value {
  background: #c7482c;
}
.count-row.over .count-bar::-moz-progress-bar {
  background: #c7482c;
}
.count-row.over .count-status,
.count-problem {
  color: #a8371f;
  font-weight: 500;
}
.count-problem {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 20px;
}
.count-problem[hidden] {
  display: none;
}

@media (width < 48rem) {
  .bar,
  .hero,
  .see,
  .doc,
  main:not(.doc) > .faq,
  .foot {
    width: min(100% - 32px, 1200px);
  }
  .bar-nav {
    gap: 4px 12px;
  }
  .nav-wide {
    display: none;
  }
  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-amount {
    font-size: 40px;
    line-height: 48px;
  }
  .nav-link {
    font-size: 15px;
  }
  .button-small {
    padding-inline: 12px;
  }
  .hero .button {
    width: 100%;
    justify-content: center;
  }
  .hero {
    padding-block: 24px 28px;
  }
  .about {
    width: min(100% - 32px, 1200px);
    margin-bottom: 32px;
  }
  .about ul {
    grid-template-columns: 1fr;
  }
  .lede {
    font-size: 17px;
    line-height: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button,
  .door {
    transition: none;
  }
}
