/* Same palette and type as the extension's editor, so the site and the product read as one thing. */
:root {
  --desk: #e8ecf1;
  --paper: #ffffff;
  --ink: #1e2433;
  --muted: #5d6678;
  --rule: #cdd4dd;
  --accent: #0f766e;
  --accent-deep: #0b4f4a;
  --danger: #b42318;
  font: 17px/1.6 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0;
}

p {
  margin: 0 0 1em;
  max-width: 62ch;
}

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

/* header / footer */

.site-head {
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 28px 0 40px;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}

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

.site-foot a {
  color: var(--muted);
}

/* hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  padding: 48px 0 88px;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-deep);
}

.fine {
  font-size: 0.92rem;
  color: var(--muted);
}

/* the compose window: the one memorable thing on the page */

.compose {
  background: var(--paper);
  border-radius: 12px 12px 6px 6px;
  box-shadow:
    0 1px 2px rgb(30 36 51 / 0.12),
    0 24px 48px -18px rgb(30 36 51 / 0.35);
  overflow: hidden;
  font: 14px/1.5 Arial, Helvetica, sans-serif;
  color: #222;
}

.compose-bar {
  background: #404756;
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
}

.compose-field {
  display: flex;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid #eceff3;
  color: #222;
}

.compose-field span {
  color: #6b7280;
  min-width: 52px;
}

.compose-body {
  padding: 16px 16px 28px;
}

.compose-body p {
  margin: 0 0 12px;
}

.compose-sig {
  margin-top: 18px;
  padding-top: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .compose-sig {
    animation: sign 700ms 350ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @keyframes sign {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
}

.compose-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 14px;
  font-size: 13px;
  color: #5f6368;
}

.compose-send {
  background: #0b57d0;
  color: #fff;
  border-radius: 18px;
  padding: 7px 18px;
  font-weight: bold;
}

.compose-pick {
  margin-left: auto;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  border-radius: 6px;
  padding: 4px 10px;
}

/* sections */

.band {
  background: var(--desk);
  padding: 80px 0;
}

.section {
  padding: 80px 0;
}

.intro {
  margin-bottom: 36px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(480px, 100%), 1fr)); /* signatures are built for up to 600 px */
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery li {
  background: var(--paper);
  border-radius: 8px;
  padding: 20px 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 200px;
  overflow: hidden;
}

.gallery .name {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--desk);
  padding-top: 10px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 3px solid var(--accent);
  padding-top: 18px;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}

.pair {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}


.faq details {
  max-width: 760px;
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.closing {
  text-align: center;
  padding: 88px 0;
}

.closing h2,
.closing p {
  margin-inline: auto;
}

/* single-column pages: welcome, feedback, privacy */

.page {
  width: min(720px, 100% - 48px);
  margin: 24px auto 88px;
}

.page h1 {
  max-width: none;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.page h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}

.page.wide {
  width: min(960px, 100% - 48px);
}

.guide {
  display: grid;
  gap: 56px;
  margin: 36px 0 40px;
}

.guide figure {
  margin: 18px 0;
}

.guide img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(30 36 51 / 0.08);
}

.guide h2 {
  margin-top: 0;
}

/* same coral as the numbered callouts on the pictures */
.guide .n {
  display: inline-grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  margin-right: 6px;
  border-radius: 50%;
  background: #e0336f;
  color: #fff;
  font-weight: 700;
  font-size: 0.85em;
}

.page ol.steps {
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 36px 0;
}

form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

legend {
  font-weight: 600;
  margin-bottom: 10px;
}

.choice {
  display: flex;
  gap: 10px;
  align-items: center;
}

.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

label.field {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

textarea,
input[type='email'] {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  width: 100%;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.status {
  min-height: 1.6em;
  margin: 0;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .hero,
  .steps,
  .pair {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 40px;
    padding-top: 24px;
  }
}
