:root {
  --indigo: #4F63A0;
  --green: #2C6E5E;
  --coral-ink: #A64B3E;
  --gutter: 16px;
  --home-max: 1080px;
}

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 12px var(--gutter) 6px;
}

.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 18px/1 var(--font-head);
  text-decoration: none;
}

.top-brand img { width: 30px; height: 30px; border-radius: 8px; }


.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 6px var(--gutter) 0;
  text-align: center;
}

.home-hero h1 {
  margin: 0;
  font: 700 40px/1.05 var(--font-head);
  letter-spacing: -0.02em;
}

.sub { margin: 8px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.35; }

/* Bob story video */

.bob { width: 100%; max-width: 420px; margin-top: 16px; }

.bob-video {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
}

.bob-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

.bob-sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(47, 42, 59, 0.82);
  color: var(--white);
  font: 600 15px/1 var(--font-body);
  cursor: pointer;
}
.bob-sound svg { width: 18px; height: 18px; }
.bob-sound .spk { fill: currentColor; }
.bob-sound .wave { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bob-sound[aria-pressed="false"] .wave { opacity: 0.35; }
.bob-sound:hover { background: var(--ink); }
.bob-sound:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Sign-up */

.join { width: 100%; max-width: 420px; margin-top: 18px; }

.join-form { display: grid; gap: 8px; }

.join-form input[type="email"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font: 17px var(--font-body);
  outline: none;
}

.join-form input[type="email"]:focus { border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.join-form input[aria-invalid="true"] { border-color: var(--coral); }

.join-form button,
.join-download {
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  font: 600 17px var(--font-body);
  white-space: nowrap;
  cursor: pointer;
}

.join-form button:hover, .join-download:hover { background: #443C55; }
.join-form button:focus-visible, .join-download:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.join-form button:disabled { opacity: 0.6; cursor: default; }

.join-download { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; text-decoration: none; }

.join-note { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.4; }
.join-note.is-error { color: var(--coral-ink); font-weight: 600; }

.join-done {
  margin: 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--mint-soft);
  color: var(--green);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink-soft);
  font: 500 16px var(--font-body);
  cursor: pointer;
}

.share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.share:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* How it differs, privacy */

.diff {
  width: 100%;
  max-width: 420px;
  margin: 20px 0 0;
  padding: 2px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  list-style: none;
  text-align: left;
}

.diff li { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 16px; line-height: 1.3; }
.diff li + li { border-top: 1px solid var(--line); }
.diff b { color: var(--ink); }
.diff-no { color: var(--ink-soft); }

.diff-ico { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.diff-ico svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.diff-no .diff-ico { background: var(--cream-deep); color: var(--ink-soft); }
.diff-yes .diff-ico { background: var(--mint-soft); color: var(--green); }

.priv { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; font-size: 16px; line-height: 1.35; text-align: left; }
.priv img { flex: none; width: 40px; height: 40px; }

/* Know more */

.more { margin: 40px auto 0; padding: 0 var(--gutter); text-align: center; }
.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
}
.more-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.more-btn:hover { background: var(--cream-deep); }
.more-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.spread { margin: 28px auto 0; padding: 0 var(--gutter); text-align: center; }
.spread .share { margin-top: 0; }

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: var(--home-max);
  margin: 32px auto 0;
  padding: 24px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot p { margin: 0; }

@media (min-width: 560px) {
  .join-form {
    display: flex;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .join-form:focus-within { border-color: var(--mint); }
  .join-form input[type="email"] { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; }
  .join-form input[type="email"]:focus { box-shadow: none; }
  .join-form button { height: 48px; border-radius: 999px; }
  .join-download { border-radius: 999px; }
  .home-hero { padding-top: 24px; }
  .home-hero h1 { font-size: 48px; }
  .bob { max-width: 560px; }
}

@media (min-width: 1100px) {
  .top { padding: 18px 32px 6px; }
  .h1-br { display: none; }
  .home-hero { padding: 28px 32px 0; }
  .home-hero h1 { font-size: 56px; }
  .sub { margin-top: 10px; font-size: 20px; }
  .join { order: 1; max-width: 480px; margin-top: 20px; }
  .bob { order: 2; max-width: 540px; margin-top: 24px; }
  .diff { order: 3; }
  .priv { order: 4; }
  .diff {
    display: flex;
    gap: 32px;
    width: auto;
    max-width: none;
    margin-top: 32px;
    padding: 0 22px;
    border-radius: 999px;
  }
  .diff li + li { border-top: 0; }
  .more { margin-top: 56px; }
  .foot {
    flex-direction: row-reverse;
    justify-content: space-between;
    margin-top: 48px;
    padding: 24px 32px 40px;
  }
}

.join-form.is-optional { box-shadow: none; }
