:root {
  --red: #ff0000;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --pad-x: 32px;
  --pad-y: 24px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--red);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: var(--pad-y) var(--pad-x);
}

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: 100%;
  align-items: start;
}

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

.row > .col:nth-child(1) {
  grid-column: span 2;
}

.row > .col:nth-child(2) {
  grid-column: span 2;
}

.row > .col:nth-child(3) {
  grid-column: span 2;
}

.row > .col:nth-child(4) {
  grid-column: span 3;
}

.row > .col:nth-child(5) {
  grid-column: span 2;
}

.row > .col:nth-child(6) {
  grid-column: span 1;
}

.col span,
.col a,
.col button {
  display: block;
}

.logo {
  font-weight: 400;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
}

.wip {
  margin: 0;
}

.footer {
  align-items: end;
}

.footer .col {
  gap: 0;
}

.copy-email {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  position: relative;
}

.copy-email:hover {
  text-decoration: underline;
}

.copy-feedback {
  position: absolute;
  left: 0;
  top: -1.6em;
  font-size: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
  white-space: nowrap;
}

.copy-email.copied .copy-feedback {
  opacity: 1;
  transform: translateY(0);
}

.phone-link {
  pointer-events: none;
  cursor: default;
}

/* scale widget */
.scale {
  width: 100%;
  max-width: 190px;
}

.scale-unit {
  display: block;
  text-align: right;
  margin-bottom: 4px;
}

.scale-line {
  position: relative;
  height: 1px;
  background: var(--red);
  margin-bottom: 4px;
}

.scale-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--red);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
}

/* mobile */
@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
    --pad-y: 20px;
  }

  .page {
    min-height: 100vh;
    height: auto;
  }

  .row {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .col {
    width: 100%;
  }

  .col:empty {
    display: none;
  }

  .filters-only {
    display: none;
  }

  .phone-link {
    pointer-events: auto;
    cursor: pointer;
  }

  .main {
    padding: 48px 0;
  }

  .footer {
    margin-top: 32px;
  }

  .copy-feedback {
    top: 0;
    left: calc(100% + 8px);
  }
}
