/* The Maps Gap website. Dark theme from the style guide: page #0D111A, text #F8FAFC,
   muted #94A3B8, accents #00E6A5 and #1E69FF, buttons and calls to action #FF533D.
   Sans-serif everywhere. Fonts are self-hosted (Latin subset). */

@font-face {
  font-family: "MG Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "MG Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "MG Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/sora-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0d111a;
  --panel: #151b28;
  --line: #263041;
  --text: #f8fafc;
  --muted: #94a3b8;
  --teal: #00e6a5;
  --blue: #1e69ff;
  --coral: #ff533d;
  --on-coral: #111111;
  --head: "MG Plus Jakarta Sans", "Segoe UI", Calibri, Arial, sans-serif;
  --body: "MG Inter", "Segoe UI", Calibri, Arial, sans-serif;
  --display: "MG Sora", "MG Plus Jakarta Sans", "Segoe UI", Calibri, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 760px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

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

.brand img {
  display: block;
  width: 40px;
  height: 40px;
}

.brand-name {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--coral);
  color: var(--on-coral);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.08);
}

.button[disabled] {
  opacity: 0.6;
  cursor: default;
}

.button-small {
  padding: 9px 16px;
  font-size: 0.95rem;
}

.button-quiet {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--line);
}

/* Text */
h1,
h2,
h3,
h4 {
  font-family: var(--head);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.9rem, 5.2vw, 2.9rem);
  font-weight: 800;
}

h1.display {
  font-family: var(--display);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.45rem, 3.6vw, 1.9rem);
  margin-top: 2.2em;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.8em;
}

h4 {
  font-size: 1.05rem;
  margin-top: 1.6em;
  color: var(--teal);
}

p {
  margin: 0 0 1em;
}

.lead {
  font-size: 1.2rem;
  color: var(--text);
}

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

main {
  padding: 40px 0 56px;
}

.hero {
  padding: 24px 0 8px;
}

.hero p {
  max-width: 680px;
}

ul,
ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

li {
  margin-bottom: 0.6em;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 18px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  list-style: none;
}

.plans li {
  background: #22314b;
  border: 2px solid #7184a0;
  border-top-width: 6px;
  border-radius: 12px;
  padding: 20px 22px 22px;
  margin: 0;
}

.plans li:nth-child(1) {
  border-top-color: var(--teal);
}

.plans li:nth-child(2) {
  border-top-color: var(--blue);
}

.plans li:nth-child(3) {
  border-top-color: var(--coral);
}

.plans h3 {
  color: var(--teal);
  font-family: var(--head);
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
}

.plans p {
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  padding: 28px 0 40px;
}

.site-footer p {
  margin: 0 0 0.6em;
}

/* Forms (the /pilot page) */
.noscript {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
}

.field {
  margin: 0 0 18px;
}

.field label,
.field .label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.field .req {
  color: var(--muted);
  font-weight: 400;
}

.help {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 6px;
}

.error {
  color: #ffb4a8;
  font-size: 0.95rem;
  margin: 6px 0 0;
}

.warn {
  color: #ffd27a;
  font-size: 0.95rem;
  margin: 6px 0 0;
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  background: #1c2536;
  color: var(--text);
  border: 1px solid #7184a0;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #ff8f7e;
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.row > * {
  flex: 0 1 auto;
}

input[type="color"] {
  width: 48px;
  height: 42px;
  padding: 2px;
  background: #0a0d14;
  border: 1px solid #3a4659;
  border-radius: 8px;
}

.hex {
  width: 9.5em;
}

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 8px;
  font-weight: 400;
}

.choice input {
  margin-top: 0.35em;
  flex: 0 0 auto;
}

.scan {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 4px;
  margin: 0 0 16px;
}

.scan legend {
  font-weight: 700;
  padding: 0 6px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.sub {
  margin-left: 26px;
}

.preview-wrap {
  margin: 0 0 22px;
}

/* The honeypot: off the screen, not display:none, so simple bots still fill it. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.success {
  background: var(--panel);
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 22px 24px;
}

@media (max-width: 720px) {
  .plans {
    grid-template-columns: 1fr;
  }
  main {
    padding-top: 28px;
  }
}

/* /pilot layout */
.field {
  max-width: 640px;
}

.branding-grid .field {
  max-width: none;
}

.branding-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (min-width: 900px) {
  .branding-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .preview-wrap {
    position: sticky;
    top: 16px;
    align-self: start;
  }
}

.hero p,
main .wrap > p {
  max-width: 720px;
}

/* Specificity fixes: the colour code box stays narrow, and radio and tick-box labels are not bold. */
input.hex {
  width: 9.5em;
}

.field label.choice {
  font-weight: 400;
  margin-bottom: 8px;
}

input[type="file"] {
  max-width: 100%;
  color: var(--muted);
}

/* Keep the browser's autofill from turning fields white. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px #1c2536 inset;
  transition: background-color 9999s ease-in-out 0s;
}

select option {
  background: #1c2536;
  color: var(--text);
}
