@font-face {
  font-family: Metropolis;
  src: url('/assets/fonts/Metropolis-Regular.ttf');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Metropolis;
  src: url('/assets/fonts/Metropolis-SemiBold.ttf');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Metropolis;
  src: url('/assets/fonts/Metropolis-Bold.ttf');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #002e3c;
  --text: #36535e;
  --muted: #4a6670;
  --primary: #0f6a84;
  --red: #ba1a1a;
  --sky: #d6ecf8;
  --pale: #f3f9fc;
  --line: #cfe0e8;
  --field-line: #8fa9b4;
  --on-dark: #c7dbe4;
  --bezel-color: #0a0d0f;
  --frame: #6b7a80;
}

* {
  box-sizing: border-box;
}

/* The page ends in the footer's color, so a short page has no white band below it. */
html {
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ink);
  font: 400 18px/1.55 Metropolis, system-ui, sans-serif;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 5.8vw, 5.25rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1.h1-small {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.06;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h3 {
  font-weight: 600;
}

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

a:hover {
  color: var(--ink);
}

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

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

.container {
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
}

.stack-md,
.stack-lg {
  display: flex;
  flex-direction: column;
}

.stack-md {
  gap: 48px;
}

.stack-lg {
  gap: 56px;
}

/* Header */

.site-header {
  background: var(--pale);
}

.site-header.dark {
  background: var(--ink);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

/* The icon file has white corners, which would show on the dark header. */
.brand img {
  border-radius: 50%;
}

.main-nav {
  display: flex;
  gap: 32px;
  font-size: 17px;
  font-weight: 600;
}

.main-nav a {
  padding-block: 10px;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.dark .brand,
.dark .main-nav a[aria-current='page'],
.dark .main-nav a:hover {
  color: #fff;
}

.dark .main-nav a {
  color: var(--sky);
}

.dark a:focus-visible {
  outline-color: var(--sky);
}

/* Hero */

.hero {
  background: var(--pale);
}

.hero.dark {
  color: #fff;
  background: var(--ink);
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-top: 56px;
}

.hero-copy {
  display: flex;
  flex: 1 1 560px;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  max-width: 800px;
  padding-bottom: 56px;
}

.lead {
  max-width: 34em;
  color: var(--text);
  font-size: 21px;
}

.dark .lead {
  color: var(--sky);
}

.compact .hero-inner {
  gap: 32px 48px;
  padding-top: 32px;
}

.compact .hero-copy {
  align-self: center;
  gap: 20px;
  padding-bottom: 32px;
}

.compact h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  line-height: 1.06;
}

.compact .lead {
  font-size: 19px;
}

.body-copy {
  max-width: 36em;
  color: var(--on-dark);
}

.stores {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

/* Phone frames */

.phone {
  --bezel: 7px;
  --corner: 42px;
  --screen-corner: 35px;
  --island-width: 80px;
  --island-height: 23px;
  --island-top: 15px;
  --action-top: 92px;
  --action-height: 18px;
  --volume-up-top: 126px;
  --volume-down-top: 170px;
  --volume-height: 34px;
  --power-top: 140px;
  --power-height: 52px;
  position: relative;
  padding: var(--bezel);
  background: var(--bezel-color);
  border: 1.5px solid var(--frame);
  border-radius: var(--corner);
}

.screen {
  overflow: hidden;
  border-radius: var(--screen-corner);
}

.screen img {
  display: block;
  width: 100%;
}

.island {
  position: absolute;
  top: var(--island-top);
  left: 50%;
  width: var(--island-width);
  height: var(--island-height);
  background: #000;
  border-radius: calc(var(--island-height) / 2);
  transform: translateX(-50%);
}

.side-button {
  position: absolute;
  left: -4px;
  width: 2.5px;
  background: var(--frame);
  border-radius: 2px 0 0 2px;
}

.side-button.action {
  top: var(--action-top);
  height: var(--action-height);
}

.side-button.volume-up {
  top: var(--volume-up-top);
  height: var(--volume-height);
}

.side-button.volume-down {
  top: var(--volume-down-top);
  height: var(--volume-height);
}

.side-button.power {
  top: var(--power-top);
  right: -4px;
  left: auto;
  height: var(--power-height);
  border-radius: 0 2px 2px 0;
}

.phone-small {
  align-self: center;
  width: 260px;
  max-width: 100%;
}

/* Runs off the bottom of its section: the screenshot is cut at the result. */
.phone-cropped {
  --bezel: 8px;
  --corner: 50px;
  --screen-corner: 42px;
  --island-width: 98px;
  --island-height: 29px;
  --island-top: 18px;
  --action-top: 112px;
  --action-height: 22px;
  --volume-up-top: 152px;
  --volume-down-top: 206px;
  --volume-height: 42px;
  --power-top: 172px;
  --power-height: 64px;
  flex: 0 1 320px;
  max-width: 100%;
  height: 540px;
  padding-bottom: 0;
  border-bottom: 0;
  border-radius: var(--corner) var(--corner) 0 0;
}

.phone-cropped .screen {
  height: 100%;
  border-radius: var(--screen-corner) var(--screen-corner) 0 0;
}

.compact .phone-cropped {
  --bezel: 7px;
  --corner: 42px;
  --screen-corner: 35px;
  --island-width: 76px;
  --island-height: 22px;
  --island-top: 15px;
  --action-top: 88px;
  --action-height: 18px;
  --volume-up-top: 122px;
  --volume-down-top: 166px;
  --volume-height: 34px;
  --power-top: 136px;
  --power-height: 52px;
  flex-basis: 250px;
  height: 360px;
}

/* Example result */

.answer {
  background: #fff;
}

.answer-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-block: 64px;
}

.tallies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px;
}

.tally {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tally.business {
  color: var(--primary);
}

.tally.non-business {
  color: var(--red);
}

.tally-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  font-weight: 600;
}

.tally-number {
  font-size: 112px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.key {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.business .key {
  background: var(--primary);
}

.non-business .key {
  border: 3px solid var(--red);
}

.days {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.week {
  display: flex;
  gap: 4px;
}

.dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
}

.dot.off {
  border: 4px solid var(--red);
  background: none;
}

/* Sections */

.section {
  padding-block: 96px;
  background: #fff;
}

.section.dark {
  color: #fff;
  background: var(--ink);
}

.section.pale {
  background: var(--pale);
}

.questions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 56px 48px;
}

.question {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.question-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question h3 {
  font-size: 26px;
  line-height: 1.2;
}

.question p {
  color: var(--on-dark);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 32px;
}

.stats.audience {
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.stat-number {
  color: var(--primary);
  font-size: 88px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat h3 {
  font-size: 22px;
  line-height: 1.25;
}

.stat p {
  color: var(--text);
}

.closing {
  padding-block: 64px;
  background: var(--sky);
}

.closing .note {
  color: var(--ink);
}

.closing-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 64px;
}

.closing-copy {
  display: flex;
  flex: 1 1 480px;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.closing-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.closing-copy p {
  font-size: 20px;
}

/* About */

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 96px;
}

.facts h2 {
  flex: 1 1 320px;
}

.facts dl {
  display: flex;
  flex: 999 1 560px;
  flex-direction: column;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.facts dl > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.facts dl > div:first-child {
  border-top: 2px solid var(--ink);
}

.facts dt {
  flex: 0 0 180px;
  font-weight: 600;
}

.facts dd {
  flex: 1 1 280px;
}

/* Contact */

.contact {
  background: var(--pale);
}

.contact .hero-inner {
  gap: 48px 96px;
}

.contact .hero-copy {
  gap: 32px;
  max-width: 720px;
  padding-bottom: 80px;
}

.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-aside {
  display: flex;
  flex: 0 1 320px;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
  color: var(--text);
  font-size: 17px;
}

.contact-aside .phone-cropped {
  flex: none;
  height: 560px;
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 16px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  outline: 2px solid var(--primary);
}

/* Bots fill this field; people never see it. */
.trap {
  position: absolute;
  left: -9999px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

button {
  min-height: 52px;
  padding: 12px 40px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 26px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--ink);
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.status {
  color: var(--primary);
  font-weight: 600;
}

.status.error {
  color: var(--red);
}

/* Footer */

.site-footer {
  color: var(--on-dark);
  background: var(--ink);
  font-size: 16px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.site-footer a {
  color: var(--sky);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer a:focus-visible {
  outline-color: var(--sky);
}

/* The phones sit under the text once the row wraps. */
@media (max-width: 960px) {
  .hero-inner {
    justify-content: center;
  }

  .hero-copy,
  .contact .hero-copy {
    flex-basis: 100%;
    max-width: none;
    padding-bottom: 0;
  }

  .tally-number {
    font-size: 88px;
  }

  .section {
    padding-block: 64px;
  }
}
