/* tapebid.com: the first page and the pages of terms, privacy and account
   deletion. The page a customer signs on has its own sheet, page.css.

   The tokens are those of the app (design/Components.dc.html). Headings
   are in the app's own IBM Plex Sans Condensed; the text is in the fonts
   of the device, so a page is read before any font arrives.

   There is no script and no inline style here: the site's
   Content-Security-Policy (firebase.json) allows neither. */
@font-face {
  font-family: "Plex Condensed";
  src: url("/fonts/IBMPlexSansCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f4f5f2;
  --surface: #ffffff;
  --ink: #15181b;
  --ink2: #49515a;
  --muted: #646c75;
  --line: #d9dcd6;
  --accent: #0b57b0;
  --info-bg: #e3edf9;
  --warn: #8f5300;
  --warn-bg: #fbebd3;
  --tape: #a9d4f2;
  --tape-ink: #0d2c4d;
  --head: "Plex Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

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

/* A link of the menu glides to its part of the page, for those who have
   not asked their device for less motion. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  color: var(--accent);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* The bar at the top: the sign, the name and the menu. */
.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font: 700 26px/1 var(--head);
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--info-bg);
  color: var(--accent);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* On a phone the menu is a row of its own, which slides sideways. */
@media (max-width: 760px) {
  .site-head .wrap {
    padding-top: 10px;
  }

  .nav {
    width: calc(100% + 40px);
    margin: 0 -20px;
    padding: 0 8px 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }
}

/* The opening: what the app is, where to get it, and what it looks like. */
.hero {
  padding: 64px 0 56px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
}

.kicker {
  color: var(--muted);
  font: 600 13px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 14px;
  font: 700 clamp(46px, 8.4vw, 88px) / 0.96 var(--head);
  letter-spacing: -0.01em;
}

.lead {
  max-width: 33em;
  margin-top: 22px;
  color: var(--ink2);
  font-size: 20px;
  line-height: 1.45;
}

/* A strip of painter's tape with a few words on it, as in the app. */
.tape {
  display: inline-block;
  padding: 8px 12px;
  background: var(--tape);
  color: var(--tape-ink);
  font: 600 13px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* A way to a store. Until the app is in one, it says so and leads nowhere. */
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 190px;
  min-height: 60px;
  padding: 8px 22px;
  border-radius: 14px;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
}

.store small {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0.72;
}

.store b {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

a.store:hover {
  background: var(--accent);
}

.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.hero-art {
  position: relative;
  justify-self: center;
}

/* The tape sits on the corner of the phone, clear of its screen. */
.hero-art .tape {
  position: absolute;
  top: -12px;
  left: -40px;
  z-index: 1;
  box-shadow: 0 6px 14px -8px rgba(13, 44, 77, 0.6);
}

/* A screen of the app, in the outline of a phone. */
.phone {
  width: min(300px, 76vw);
  overflow: hidden;
  border: 10px solid var(--ink);
  border-radius: 46px;
  background: var(--ink);
  box-shadow: 0 34px 60px -26px rgba(13, 44, 77, 0.55);
}

.phone img {
  border-radius: 36px;
}

@media (max-width: 880px) {
  .hero {
    padding: 40px 0 44px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-art .tape {
    left: -14px;
  }
}

/* The parts of the page under the opening. */
.section {
  padding: 64px 0;
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin-top: 10px;
  font: 700 clamp(32px, 5vw, 46px) / 1.04 var(--head);
}

.intro {
  max-width: 38em;
  margin-top: 12px;
  color: var(--ink2);
  font-size: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.band .card {
  background: var(--paper);
}

.ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--info-bg);
  color: var(--accent);
}

.card h3 {
  margin-top: 16px;
  font: 700 23px/1.15 var(--head);
}

.card p {
  margin-top: 8px;
  color: var(--ink2);
  font-size: 16px;
}

/* Three steps, each with the screen it happens on. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
}

.num {
  color: var(--accent);
  font: 600 14px/1 var(--mono);
  letter-spacing: 0.06em;
}

.step h3 {
  margin-top: 10px;
  font: 700 26px/1.1 var(--head);
}

.step p {
  margin-top: 8px;
  color: var(--ink2);
  font-size: 16px;
}

.step .phone {
  width: min(236px, 66vw);
  margin: 26px auto 0;
  border-width: 8px;
  border-radius: 38px;
}

.step .phone img {
  border-radius: 30px;
}

/* What the app goes on doing after the customer signed. */
.after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.after li {
  position: relative;
  padding-left: 30px;
  color: var(--ink2);
}

.after li::before {
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 14px;
  height: 3px;
  background: var(--accent);
  content: "";
}

.after b {
  color: var(--ink);
  font-weight: 600;
}

/* The two plans. */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 840px;
  margin-top: 32px;
}

.plan {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.plan.pro {
  border: 2px solid var(--accent);
}

.plan h3 {
  font: 700 26px/1.1 var(--head);
}

.price {
  margin-top: 14px;
  font: 600 34px/1.1 var(--mono);
}

.price small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.plan .or {
  margin-top: 6px;
  color: var(--ink2);
  font-size: 15px;
}

.plan ul {
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  margin-top: 8px;
  padding-left: 26px;
  color: var(--ink2);
  font-size: 16px;
}

.plan li::before {
  position: absolute;
  top: 0.32em;
  left: 2px;
  width: 11px;
  height: 6px;
  border-bottom: 2.5px solid var(--accent);
  border-left: 2.5px solid var(--accent);
  content: "";
  transform: rotate(-45deg);
}

/* The last word, on ink. */
.cta {
  padding: 72px 0;
  background: var(--ink);
  color: #ffffff;
  text-align: center;
}

.cta h2 {
  max-width: 16em;
  margin: 0 auto;
  font: 700 clamp(34px, 5.6vw, 54px) / 1.02 var(--head);
}

.cta .stores {
  justify-content: center;
}

.cta .store {
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.cta a.store:hover {
  background: var(--tape);
}

.cta .note {
  color: var(--tape);
}

/* The foot of every page. */
.site-foot {
  padding: 30px 0 44px;
  color: var(--muted);
  font-size: 15px;
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.site-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink2);
}

.site-foot .legal {
  margin-left: auto;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 30em;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 48px 0;
  }

  .grid,
  .after,
  .plans {
    grid-template-columns: 1fr;
  }

  .store {
    flex: 1 1 100%;
  }

  .site-foot .legal {
    margin-left: 0;
  }
}

/* The pages of words: terms, privacy, deleting an account. */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 20px 56px;
}

.doc h1 {
  font: 700 clamp(36px, 6vw, 48px) / 1.04 var(--head);
}

.doc h2 {
  margin-top: 32px;
  font: 700 25px/1.15 var(--head);
}

.doc p,
.doc ul {
  margin-top: 12px;
  color: var(--ink2);
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-top: 6px;
}

.doc .draft {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 600;
}

.doc .updated {
  color: var(--muted);
  font-size: 15px;
}

/* A trade chip that leads to the page of its trade. */
.chips a {
  display: block;
  margin: -9px -14px;
  padding: 9px 14px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.chips a:hover {
  color: var(--accent);
}

/* The questions on the first page. */
.faq {
  display: grid;
  gap: 22px;
  max-width: 760px;
  margin-top: 28px;
}

.faq h3 {
  font: 600 19px/1.3 system-ui, sans-serif;
}

.faq p {
  margin-top: 6px;
  color: var(--ink2);
}

/* The pages of the trades: what Tapebid works out, with an example. */
.doc .lead {
  margin-top: 14px;
  font-size: 19px;
  color: var(--ink2);
}

.doc h3 {
  margin-top: 0;
  font: 600 13px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc .example {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.doc .example ul {
  margin-top: 10px;
}

.doc .shot {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin: 28px auto 0;
  border: 1px solid var(--line);
  border-radius: 28px;
}

.doc .stores {
  margin-top: 22px;
}

.doc .more {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
