/* Colours from frontend/src/theme.ts. */
:root {
  --paper: #f4f1eb;
  --card: #ffffff;
  --ink: #191918;
  --ink2: #6c6c67;
  --wordmark: #302f2e;
  --rule: rgba(0, 0, 0, 0.13);
  --error: #a4281e;
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: inherit;
}

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

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 20px;
}

/* As in the app's header: the logo sits on the wordmark's baseline, as tall as its capitals. */
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--wordmark);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
  text-decoration: none;
}

.brand img {
  width: 25.5px;
  height: 17px;
}

.soon {
  color: var(--ink2);
  font-size: 13px;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.04em;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* The clip is cropped to 5:3 to hold the phone through the whole shot. The height cap keeps the email field in view. */
.hero {
  display: block;
  width: 100%;
  max-width: calc(55svh * 5 / 3);
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
}

h1 {
  margin: 24px 0 6px;
  font-size: clamp(25px, 4.4vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.4px;
  text-wrap: balance;
}

.lead {
  max-width: 34em;
  margin: 0 auto 20px;
  color: var(--ink2);
}

#signup {
  max-width: 560px;
  margin: 0 auto;
}

.row {
  display: flex;
  gap: 8px;
}

input,
select,
button {
  min-height: 50px;
  border-radius: 10px;
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink);
}

input::placeholder {
  color: var(--ink2);
}

button {
  flex: none;
  padding: 0 22px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

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

.note {
  margin: 10px 0 0;
  color: var(--ink2);
  font-size: 14px;
}

.error {
  margin: 8px 0 0;
  color: var(--error);
  font-size: 15px;
}

.error:empty {
  display: none;
}

.trap {
  position: absolute;
  left: -9999px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#thanks h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  outline: none;
}

#thanks p {
  margin: 6px 0 16px;
  color: var(--ink2);
}

#answers-form {
  text-align: left;
}

#answers-form p {
  text-align: center;
}

#answers-form label:not(.trap label) {
  display: block;
  margin-bottom: 14px;
  font-size: 15px;
}

#answers-form select {
  margin-top: 4px;
}

#answers-form button {
  width: 100%;
}

.how h2 {
  margin: 44px 0 16px;
  font-size: 20px;
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  counter-reset: step;
  color: var(--ink2);
  font-size: 15px;
  list-style: none;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  color: var(--ink);
  font-weight: 600;
}

footer {
  padding: 40px 20px 28px;
  color: var(--ink2);
  font-size: 14px;
  text-align: center;
}

.top.narrow {
  max-width: 600px;
}

.notice {
  max-width: 600px;
  margin: 12px auto 48px;
  padding: 0 20px;
}

.notice h1 {
  margin-top: 16px;
}

.notice h2 {
  margin: 28px 0 4px;
  font-size: 18px;
  font-weight: 600;
}

.notice p {
  margin: 0 0 10px;
}

@media (max-width: 560px) {
  .row {
    flex-direction: column;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* A phone scrolls past a tall column, and the width is what limits the image there. */
  .hero {
    max-width: 100%;
  }
}
