/* Zerorez splash + share pages. Mobile first, system fonts, large tap targets. */
:root {
  --blue: #0b4fa8; /* 7.4:1 on white */
  --blue-dark: #083b7d;
  --blue-tint: #e8f0fb;
  --ink: #16202e;
  --ink-soft: #4a5568; /* 7.0:1 on white */
  --line: #d3dbe6;
  --error: #b42318; /* 6.6:1 on white */
  --bg: #f4f7fb;
  --card: #ffffff;
  --radius: 14px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 4px 16px;
}

.brand-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.brand-loc {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: 0 6px 24px rgba(11, 79, 168, 0.08);
}

.card + .card {
  margin-top: 16px;
}

h1 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 18px;
  margin: 28px 0 8px;
}

p {
  margin: 0 0 12px;
}

.lead {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.muted {
  color: var(--ink-soft);
}

.help,
.fine {
  font-size: 15px;
  color: var(--ink-soft);
}

.fine {
  margin-top: 16px;
  margin-bottom: 0;
}

label {
  display: block;
  font-weight: 600;
  margin: 0 0 8px;
}

input[type='tel'],
input[type='url'] {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  font: inherit;
  font-size: 20px; /* >= 16px so iOS does not zoom */
  letter-spacing: 0.02em;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
}

input[type='url'] {
  font-size: 16px;
  color: var(--blue-dark);
  background: var(--blue-tint);
  word-break: break-all;
}

input:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

input[aria-invalid='true'] {
  border-color: var(--error);
}

.btn {
  display: block;
  width: 100%;
  min-height: 56px;
  margin-top: 12px;
  padding: 14px 18px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}

.btn:hover {
  background: var(--blue-dark);
}

.btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.btn-link {
  display: inline-block;
  width: auto;
  min-width: 200px;
}

.error {
  color: var(--error);
  font-weight: 600;
  margin: 4px 0 8px;
}

.status {
  min-height: 1.4em;
  color: var(--blue-dark);
  font-weight: 600;
  margin: 10px 0 0;
}

.steps {
  margin: 0;
  padding-left: 22px;
}

.steps li {
  margin-bottom: 10px;
}

[hidden] {
  display: none !important;
}

@media (min-width: 600px) {
  .wrap {
    padding-top: 40px;
  }

  .card {
    padding: 32px 28px;
  }

  h1 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background-color 120ms ease;
  }
}

/* ---- SMS opt-in ------------------------------------------------------------------------------ */

/* The consent row. The box and its sentence are one label so the whole sentence is a hit target,
   and the sentence sits beside the control rather than under it, because a carrier reviewer checks
   that the agreement is adjacent to what it agrees to. */
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  margin: 1rem 0 0.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent input[type='checkbox'] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.1rem 0 0;
  accent-color: var(--blue);
  flex: none;
}
.consent strong {
  color: var(--ink);
}

/* Terms and privacy are long-form, so they get headings the other pages do not need. */
.card h2 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
}
.card h2:first-of-type {
  margin-top: 1.1rem;
}
