/* joinhilo.app: same voice as the app. Bricolage for display, system font
   for reading, green = Hi, red = Lo, a doodle wallpaper, and nothing glassy. */

:root {
  --hi: #34c759;
  --hi-deep: #1f8f3d;
  --lo: #ff3b30;
  --lo-deep: #c4281f;
  --ink: #111114;
  --muted: #5c5c66;
  --paper: #f4f3ef;
  --card: #ffffff;
  --line: #e3e1db;
  --doodle-opacity: 0.06;
  --display: 'Bricolage Grotesque', ui-rounded, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f2ee;
    --muted: #a7a6ad;
    --paper: #121214;
    --card: #1c1c1f;
    --line: #2c2c31;
    --doodle-opacity: 0.08;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  position: relative;
  min-height: 100vh;
}

/* The doodle wallpaper, tinted to the theme by masking. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--ink);
  -webkit-mask: url('/doodles.png') repeat;
  mask: url('/doodles.png') repeat;
  -webkit-mask-size: 250px;
  mask-size: 250px;
  opacity: var(--doodle-opacity);
  pointer-events: none;
}

a { color: inherit; }

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

/* --- header --------------------------------------------------------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 58px; width: auto; }

.nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* --- hero ----------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 72px;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; }

.hero h1 {
  font-size: clamp(44px, 6.6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hi { color: var(--hi); }
.lo { color: var(--lo); }

.lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 30em;
  margin: 22px 0 30px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font: 700 17px var(--display);
  text-decoration: none;
  border: 2px solid var(--ink);
}
.button.solid { background: var(--ink); color: var(--paper); }
.button.ghost { color: var(--ink); }

.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Two post cards, pinned slightly crooked like stickers on a fridge. */
.stack { position: relative; height: 380px; }

.post {
  position: absolute;
  width: min(330px, 92%);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-left: 6px solid var(--hi);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -18px rgba(0, 0, 0, 0.35);
}
.post.hi-card { top: 6px; left: 0; transform: rotate(-3deg); }
.post.lo-card { top: 170px; right: 0; transform: rotate(2.5deg); border-left-color: var(--lo); }

.post .who { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.post .who span:last-child { margin-left: auto; color: var(--muted); font-weight: 500; }
.post p { margin: 10px 0 12px; font-size: 16px; line-height: 1.45; }
.post .tag {
  display: inline-block;
  font: 700 13px var(--display);
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--hi-deep);
}
.post.lo-card .tag { background: var(--lo-deep); }

/* --- sections ------------------------------------------------------- */

section { padding: 64px 0; }

.kicker {
  font: 700 14px var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

section h2 { font-size: clamp(36px, 5vw, 54px); font-weight: 800; letter-spacing: -0.02em; max-width: 16em; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.step {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font: 800 19px var(--display);
  margin-bottom: 14px;
}
.step:nth-child(1) .num { border-color: var(--hi); color: var(--hi-deep); }
.step:nth-child(2) .num { border-color: var(--lo); color: var(--lo-deep); }
.step h3 { font-size: 23px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.split p { color: var(--muted); margin: 0 0 16px; }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list li {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
.list b { display: block; font-family: var(--display); font-size: 18px; }
.list span { color: var(--muted); font-size: 15px; }

.help {
  margin-top: 28px;
  border: 2px dashed var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  font-size: 15px;
  color: var(--muted);
}

/* --- legal / support pages ------------------------------------------ */

.doc { max-width: 720px; padding: 32px 0 80px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 26px; }
.doc .card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 14px;
}
.doc h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; max-width: none; }
.doc p { margin: 0 0 10px; }
.doc p:last-child { margin-bottom: 0; }

/* --- footer --------------------------------------------------------- */

footer {
  border-top: 1.5px solid var(--line);
  padding: 30px 0 46px;
  font-size: 14px;
  color: var(--muted);
}
footer .row { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .sp { flex: 1; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; gap: 28px; }
  .stack { height: 330px; }
  .post.lo-card { top: 178px; }
  .stack { height: 360px; }
  .steps, .split { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .nav .hide-sm { display: none; }
  section { padding: 44px 0; }
}

/* --- sign-up form ---------------------------------------------------- */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
}
.signup input[type='email'] {
  flex: 1 1 240px;
  min-width: 0;
  font: 500 17px var(--body);
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 14px 20px;
  outline: none;
}
.signup input[type='email']:focus { border-color: var(--ink); }
.signup button {
  font: 700 17px var(--display);
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.signup button:disabled { opacity: 0.5; cursor: default; }
.signup .status { flex-basis: 100%; margin: 0 0 0 8px; font-size: 15px; color: var(--muted); }
.signup .status:empty { display: none; }
.signup.error .status { color: var(--lo-deep); }
.signup.done input, .signup.done button { display: none; }
.signup.done .status { color: var(--hi-deep); font-weight: 700; font-size: 17px; margin-left: 0; }

/* --- "Your Hi. Your Lo." with the logo's own words ------------------- */

.pair { padding-top: 20px; }
.pair h2 { text-align: center; margin: 0 auto 28px; max-width: none; }
.annotated {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 8px 22px; max-width: 1000px; margin: 0 auto;
}
.big-logo { width: 260px; height: auto; display: block; }
.note h3 {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 36px; line-height: 1.05; margin: 0 0 8px; letter-spacing: -0.02em;
}
.note p { margin: 0; color: var(--muted); font-size: 18px; max-width: 290px; }
/* Hi sits level with the green Hi; Lo level with the red Lo. */
.hi-note { align-self: start; margin-top: 28px; text-align: right; }
.hi-note h3 { justify-content: flex-end; color: var(--hi-deep); }
.hi-note p { margin-left: auto; }
.lo-note { align-self: end; margin-bottom: 6px; }
.lo-note h3 { color: var(--lo-deep); }
/* Hand-drawn arrows pointing at each half of the logo. */
.arrow { width: 78px; height: 36px; flex: none; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hi-note .arrow { stroke: var(--hi); }
.lo-note .arrow { stroke: var(--lo); }
@media (prefers-color-scheme: dark) {
  .hi-note h3 { color: var(--hi); }
  .lo-note h3 { color: #ff5a50; }
}
@media (max-width: 760px) {
  .annotated { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
  .hi-note, .lo-note { text-align: center; margin: 0; align-self: auto; }
  .note h3 { justify-content: center; }
  .note p { margin: 0 auto; }
  .big-logo { width: 190px; }
  .arrow { display: none; }
}

.closer { text-align: center; }
.closer h2 { margin: 0 auto 24px; }
.closer .signup { margin: 0 auto; justify-content: center; }
