:root {
  --bg: #ffffff;
  --bg-sunken: #eef1f3;
  --bg-raised: #f5f7f8;
  --bg-shot: #323232;
  --line: #e1e5e8;
  --text: #1f2a33;
  --muted: #5b666d;
  --accent: #1fb5a4;
  --accent-hover: #27cbb9;
  --accent-ink: #062b27;
  --accent-text: #0e8174;
  --radius: 10px;
  --max: 1120px;
}
/* header and hero stay dark; --bg matches the base colour of welcome-bg.jpg so the image blends in */
.dark {
  --bg: #2e353b;
  --bg-sunken: #262c31;
  --bg-raised: #363e45;
  --line: #434c54;
  --text: #e8ecef;
  --muted: #9aa5ad;
  --accent-text: #1fb5a4;
  background-color: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
header nav { display: flex; gap: 24px; }
header nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
header nav a:hover { color: var(--text); }

.hero {
  text-align: center; padding: 72px 0 88px;
  border-bottom: 6px solid var(--bg-sunken);
  background-image: url(/images/welcome-bg.jpg);
  background-position: center bottom;
  background-size: min(100%, 1600px) auto;
  background-repeat: no-repeat;
}
.badge {
  display: inline-block; padding: 4px 12px; margin-bottom: 20px;
  border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent-text); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; transition: background .15s, color .15s;
}
a.badge:hover { background: var(--accent); color: var(--accent-ink); }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; font-size: 16px;
  background: var(--accent); color: var(--accent-ink);
  transition: background .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn.secondary { background: var(--bg-raised); color: var(--text); border: 1px solid var(--line); }
.btn.secondary:hover { background: var(--line); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.small { font-size: 14px; color: var(--muted); margin-top: 14px; }
.hero-shot-wrap { padding-top: 56px; }
.hero-shot { margin: 0 auto; max-width: min(980px, 100%); border-radius: 12px; box-shadow: 0 24px 60px rgba(20,30,40,.28); }

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; text-align: center; letter-spacing: -.01em; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 40px; }

.notice {
  max-width: 760px; margin: 0 auto; padding: 28px 32px;
  background: var(--bg-raised); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.notice h2 { text-align: left; font-size: 24px; margin-bottom: 12px; }
.notice p { margin: 0 0 12px; }
.notice ol { margin: 16px 0 0; padding-left: 20px; }
.notice li + li { margin-top: 8px; }
.notice .note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
#free { scroll-margin-top: 24px; }
.copy {
  margin-left: 6px; padding: 2px 10px; border-radius: 4px; cursor: pointer;
  background: transparent; color: var(--accent-text); border: 1px solid var(--line);
  font: inherit; font-size: 13px;
}
.copy:hover { border-color: var(--accent-text); }
code { background: var(--bg-sunken); padding: 2px 6px; border-radius: 4px; font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.feature { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature .shot { aspect-ratio: 16 / 10; background: var(--bg-shot); display: flex; align-items: center; justify-content: center; }
.feature .shot img { width: 100%; height: 100%; object-fit: contain; }
.feature div.text { padding: 18px 20px 22px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
blockquote { margin: 0; padding: 22px; background: var(--bg-raised); border-radius: var(--radius); border: 1px solid var(--line); }
blockquote p { margin: 0 0 12px; }
blockquote cite { color: var(--muted); font-style: normal; font-size: 14px; }

.faq { max-width: 760px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-text); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

.cta { text-align: center; }

footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; }
footer .wrap { color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

.page-head { text-align: center; padding: 56px 0 48px; }
.page-head p { color: var(--muted); margin: 0; }

.contact-form { max-width: 620px; margin: 0 auto; display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.contact-form .optional { color: var(--muted); font-weight: 400; }
.contact-form input,
.contact-form textarea {
  font: inherit; font-weight: 400; color: var(--text);
  background: var(--bg); border: 1px solid #c9d0d5; border-radius: 8px;
  padding: 11px 14px; width: 100%;
}
.contact-form textarea { min-height: 180px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.contact-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button { border: 0; cursor: pointer; justify-self: start; }
.contact-form button:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; padding: 12px 16px; border-radius: 8px; }
.form-status[hidden] { display: none; }
.form-status.error { background: #fdecea; color: #8a1c13; }
.form-status.success { background: #e6f6f3; color: #0b5d54; }

/* below this width the background illustrations would run into the text, so sit them underneath it */
@media (max-width: 1000px) {
  .hero { padding-bottom: calc(25vw + 24px); }
}

@media (max-width: 600px) {
  header nav { gap: 14px; }
  header nav a { font-size: 14px; }
  .hero { padding-top: 48px; }
  .hero-shot-wrap { padding-top: 40px; }
  .notice { padding: 22px 20px; }
  .btn { width: 100%; justify-content: center; }
}

/* not enough room for every nav link beside the logo on the narrowest phones */
@media (max-width: 420px) {
  header nav a:first-child { display: none; }
}
