/* Home page (/) and privacy notice (/privacy/). Loaded after setup/setup.css (tokens, fonts, fields,
   buttons) and, on the home page, start/start.css (the signup form). Only what these two pages add is
   here; the look follows the sample Terence picked (b2-combined, 3 Dec 2026). */

.home {
  /* Where the portrait sits in its peach block. The stand-in is a wide cut-out; a different crop only
     needs this changed (first value left to right, second top to bottom). */
  --portrait-focus: 58% 100%;
  overflow-x: clip;
}

.home a {
  color: inherit;
}
.home a:focus-visible {
  outline: 2px solid var(--peach-text);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Top bar ---- */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
}
.top-name {
  font: 600 15px var(--font-title);
  text-decoration: none;
}
.top-links {
  display: flex;
  gap: 22px;
}
.top-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}
.top-links a:hover {
  color: var(--ink);
}

/* ---- Top section: words, portrait, form ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-areas:
    "text portrait"
    "form portrait";
  grid-template-rows: auto 1fr;
  column-gap: 64px;
  align-items: start;
  padding-top: 26px;
}
.hero-text {
  grid-area: text;
}
.hero-portrait {
  grid-area: portrait;
  position: relative;
  margin-top: 14px;
}
.hero-form {
  grid-area: form;
  margin-top: 28px;
  max-width: 560px;
}

.home h1 {
  margin: 0;
  font-size: clamp(52px, 7.4vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.home h1 .hl {
  padding: 0 0.06em;
}
.intro {
  max-width: 560px;
  margin: 22px 0 0;
  font: 500 clamp(20px, 2.1vw, 26px) / 1.3 var(--font-title);
  letter-spacing: -0.01em;
}
.promise {
  max-width: 540px;
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--ink-2);
}
.promise strong {
  color: var(--ink);
  font-weight: 600;
}

/* The peach block with the portrait standing in it. The block's colour comes from the page, not the
   image; the image only fills the lower part, so a head never touches the top edge. */
.portrait-block {
  position: relative;
  height: 620px;
  border-radius: 26px;
  overflow: hidden;
  background-color: var(--peach);
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}
.portrait {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 92%;
  object-fit: cover;
  object-position: var(--portrait-focus);
}

/* The three ink drawings around the portrait (decorative). */
.ink {
  position: absolute;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
}
.ink-one {
  width: 168px;
  left: -78px;
  top: 56px;
  transform: rotate(-7deg);
}
.ink-two {
  width: 150px;
  right: -24px;
  top: 300px;
  transform: rotate(6deg);
}
.ink-three {
  width: 176px;
  left: -64px;
  bottom: -44px;
  transform: rotate(3deg);
}
@media (min-width: 1280px) {
  .ink-two {
    right: -58px;
  }
}

/* The form, inside the shared card. */
.hero-form.card {
  padding: 26px;
}
.home .options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.home .option {
  min-height: 44px;
  padding: 8px 15px 8px 12px;
  gap: 9px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.25;
}
.home .dot {
  width: 16px;
  height: 16px;
}
.home .dot::after {
  width: 8px;
  height: 8px;
}
.home .consent {
  font-size: 13.5px;
}
.home .btn-wide {
  width: 100%;
  min-height: 52px;
}
.home .under {
  font-size: 13.5px;
}

/* ---- Three steps ---- */
.how {
  margin-top: 88px;
}
.how-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.how-step {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.how-step img {
  display: block;
  width: 84px;
  height: 84px;
}
.how-step p {
  margin: 0;
  padding-top: 8px;
}
.how-num {
  display: inline-block;
  margin-bottom: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--ink);
  font: 700 12px / 1.5 var(--font-title);
  letter-spacing: 0.04em;
}
.how-text {
  display: block;
  font: 600 20px / 1.25 var(--font-title);
  letter-spacing: -0.01em;
}

/* ---- Footer ---- */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 56px;
  padding: 26px 0 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 14px;
  color: var(--ink-2);
}
.site-foot a {
  text-decoration: none;
}
.site-foot a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-foot .push {
  margin-left: auto;
}

/* ---- Privacy notice: one plain text column ---- */
.notice-page {
  max-width: 680px;
  padding: 40px 0 8px;
}
.notice-page h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
}
.notice-lede {
  margin: 18px 0 8px;
  font-size: 18px;
  color: var(--ink-2);
}
.notice-page h2 {
  margin: 36px 0 8px;
  font: 600 22px / 1.25 var(--font-title);
  letter-spacing: -0.01em;
}

/* ---- Opening: one short, staggered rise ---- */
@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-text > *,
.portrait-block,
.hero-form {
  animation: home-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-text > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero-text > :nth-child(3) {
  animation-delay: 0.14s;
}
.portrait-block {
  animation-delay: 0.1s;
}
.hero-form {
  animation-delay: 0.2s;
}
@media (prefers-reduced-motion: reduce) {
  .hero-text > *,
  .portrait-block,
  .hero-form {
    animation: none;
  }
}

/* ---- Phones and narrow windows: portrait above the form, drawings hidden, steps stacked ---- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "text"
      "portrait"
      "form";
    grid-template-rows: auto;
    padding-top: 8px;
  }
  .hero-portrait {
    margin-top: 28px;
  }
  .portrait-block {
    height: 400px;
    border-radius: 22px;
  }
  .ink {
    display: none;
  }
  .hero-form {
    max-width: none;
  }
  .how {
    margin-top: 56px;
  }
  .how-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }
  .top {
    padding: 16px 0;
  }
  .top-links {
    gap: 14px;
  }
  .top-links a {
    font-size: 13px;
  }
  .intro {
    margin-top: 18px;
  }
  .promise {
    font-size: 17px;
  }
  .portrait-block {
    height: 340px;
  }
  .hero-form.card {
    padding: 22px 18px 20px;
  }
  .how-step {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding-top: 14px;
  }
  .how-step img {
    width: 56px;
    height: 56px;
  }
  .how-text {
    font-size: 18px;
  }
  .site-foot {
    margin-top: 44px;
  }
  .site-foot .push {
    margin-left: 0;
  }
}
