/* Brasspage shared styles: home, agencies, trade pages, 404.
   Page extras live in home.css, /websites-for/trade.css, and the agencies page's <style>.
   "Price tag" design: white page, black Libre Franklin, one signal red. */
:root {
  --red: #c8102e;
  --red-dark: #a00d25;
  --ink: #000;
  --paper: #fff;
  --fog: #f3f3f1;
  --muted: #5a5a5a;
  --rule: #c9c9c4;
  --gutter: 20px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 1.125rem/1.6 "Libre Franklin",
    Arial,
    sans-serif;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  margin: 0 0 0.4em;
  line-height: 1.15;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 800;
}
h3 {
  font-size: 1.25rem;
  font-weight: 800;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
strong {
  font-weight: 800;
}
a {
  color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--red-dark);
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
}
.skip:focus {
  top: 12px;
  color: #fff;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  background: var(--red);
  border: 3px solid var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}
.btn-line {
  background: var(--paper);
  border-color: var(--ink);
  color: var(--ink);
}
.btn-line:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.btn:active {
  transform: translateY(1px);
}
.btn-small {
  min-height: 44px;
  padding: 0 14px;
  font-size: 1rem;
  background: var(--ink);
  border-color: var(--ink);
}
.btn-small:hover {
  background: #333;
  border-color: #333;
}

/* Header bar: wordmark, section links (wide screens), one small button */
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border-bottom: 6px solid var(--ink);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-right: auto;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark::before {
  content: "";
  width: 30px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22'%3E%3Cpath d='M8 1h21v20H8L1 11z' fill='%23c8102e'/%3E%3Ccircle cx='7.5' cy='11' r='2.2' fill='%23fff'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.wordmark:hover {
  color: var(--ink);
}
.top nav {
  display: none;
}
.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.top nav a:hover {
  text-decoration: underline 3px var(--red);
}

/* Sign: the first screen under the bar */
.sign {
  padding: 32px 0 56px;
}
.sign h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 0.45em;
}
.sign > p {
  max-width: 34em;
  font-size: 1.1875rem;
}
.actions {
  display: grid;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.disclosure {
  margin: 20px 0 0;
  font-weight: 800;
}

/* Sections */
.section {
  padding: 64px 0;
}
.examples-bg {
  background: var(--fog);
}
.intro {
  max-width: 40em;
  margin: 0 0 32px;
  color: var(--muted);
}
.note {
  max-width: 40em;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Price steps: heavy rules, big figures */
.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-bottom: 6px solid var(--ink);
}
.steps li {
  border-top: 6px solid var(--ink);
  padding: 22px 0 28px;
}
.step-n {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
}
.price {
  margin: 4px 0 14px;
  font-size: clamp(4rem, 3rem + 4vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.price small {
  margin-left: 6px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0;
}
.steps h3 {
  font-size: 1.5rem;
}
.steps p:last-child {
  margin-bottom: 0;
}

/* Example demos: the whole card is one link */
.demos {
  display: grid;
  gap: 40px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.demo a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.frame {
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: var(--paper);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 10px 24px -10px rgba(0, 0, 0, 0.22);
}
.demo h3 {
  margin: 16px 0 4px;
}
.demo .open {
  margin-top: 8px;
  color: var(--red);
  font-weight: 800;
  text-decoration: underline 2px;
  text-underline-offset: 3px;
}
.demo a:hover .frame {
  border-color: var(--red);
  box-shadow:
    0 0 0 2px var(--red),
    0 14px 30px -12px rgba(0, 0, 0, 0.28);
}

/* Before and after phones (the frame itself is in phone.css) */
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
}
.phones .phone {
  width: min(160px, 43vw);
}
.phone:not(.after) .screen {
  filter: grayscale(1);
}
.phone figcaption {
  width: fit-content;
  margin: 20px auto 0;
  padding: 2px 10px 3px;
  border: 2px solid var(--rule);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.phone.after figcaption {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 800;
}

/* Questions */
details {
  border-top: 3px solid var(--ink);
}
details:last-of-type {
  border-bottom: 3px solid var(--ink);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 0;
  font-weight: 800;
  font-size: 1.1875rem;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  flex: none;
  color: var(--red);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  max-width: 40em;
  margin: 0;
  padding: 0 0 22px;
}
@media (prefers-reduced-motion: no-preference) {
  summary::after {
    transition: transform 0.15s;
  }
  .btn,
  .frame {
    transition:
      background-color 0.15s,
      border-color 0.15s,
      color 0.15s,
      box-shadow 0.2s;
  }
}

/* Contact footer: black, white type, red button */
.contact {
  padding: 64px 0 32px;
  background: var(--ink);
  color: #fff;
}
.contact :focus-visible {
  outline-color: #fff;
}
.contact a,
.contact a:hover {
  color: #fff;
  text-decoration-color: var(--red);
}
.contact .sign {
  padding: 0;
}
.contact ul {
  list-style: none;
  margin: 18px 0 28px;
  padding: 0;
}
.contact li {
  position: relative;
  margin: 6px 0;
  padding-left: 26px;
  font-weight: 600;
  text-wrap: pretty;
}
.contact li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  background: var(--red);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 3px solid #fff;
  color: #ccc;
  font-size: 1rem;
}
.demo p,
.foot p {
  margin: 0;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.trades {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.25rem;
}

@media (min-width: 720px) {
  :root {
    --gutter: 40px;
  }
  .actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }
  .demos {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
@media (min-width: 960px) {
  .top nav {
    display: flex;
    gap: 4px;
    margin-right: 8px;
  }
  .sign {
    padding: 56px 0 80px;
  }
  .section {
    padding: 96px 0;
  }
  /* Steps: label and price on the left, words on the right */
  .steps li {
    display: grid;
    grid-template-columns: 340px 1fr;
    grid-auto-flow: row dense;
    column-gap: 40px;
    padding: 32px 0 36px;
  }
  .steps li > * {
    grid-column: 2;
  }
  .steps li > .step-n,
  .steps li > .price {
    grid-column: 1;
  }
  .faq {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: start;
  }
  .contact {
    padding-top: 96px;
  }
  .contact .sign {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row dense;
    column-gap: 56px;
    align-items: start;
  }
  .contact .sign > * {
    grid-column: 2;
  }
  .contact .sign > h2 {
    grid-column: 1;
    grid-row: span 3;
  }
}
