/* The home page. Uses the colours from styles.css, so it follows each light
   and dark mode. The pictures are drawn with HTML and CSS (no photos), and are
   described for screen readers with role="img" and aria-label. */

.landing main {
  max-width: none;
  padding: 0;
}

.lp-wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.lp-narrow {
  max-width: 44rem;
}

.lp-section {
  padding: 3rem 0;
}

.lp-section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lp-sub {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.lp-tint {
  background: var(--accent-soft);
}

/* ---- Hero ---- */

.lp-hero {
  padding: 2rem 0 3rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, var(--warm-soft), transparent 45%),
    radial-gradient(circle at 10% 90%, var(--accent-soft), transparent 50%);
}

.lp-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.lp-kicker {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.lp-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.lp-ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.lp-ticks li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 700;
}

.lp-hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  /* Room above and below the phone for the floating notes. */
  padding: 2.75rem 0;
}

/* A phone, drawn with CSS. */
.lp-phone {
  width: min(270px, 78vw);
  border: 9px solid var(--phone-frame);
  border-radius: 34px;
  background: var(--bg);
  box-shadow: 0 24px 60px rgb(31 42 31 / 22%);
  overflow: hidden;
  transform: rotate(-2deg);
}

.lp-screen {
  padding: 0.9rem 0.7rem 1rem;
  font-size: 0.72rem;
  line-height: 1.3;
}

.lp-app-head {
  display: grid;
  padding: 0.6rem 0.7rem;
  border-radius: 14px;
  background: var(--accent-soft);
}

.lp-app-head strong {
  font-size: 0.9rem;
}

.lp-app-head span {
  color: var(--muted);
}

.lp-chip-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin: 0.6rem 0;
  padding: 0.2rem;
  border-radius: 999px;
  background: var(--surface);
}

.lp-tab {
  padding: 0.3rem;
  border-radius: 999px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.lp-tab.on {
  background: var(--accent);
  color: var(--accent-text);
}

.lp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.lp-card {
  display: grid;
  gap: 0.15rem;
  padding: 0.45rem;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lp-card .lp-pic {
  width: 100%;
  height: 3.6rem;
  font-size: 1.7rem;
}

.lp-card b {
  font-size: 0.75rem;
}

.lp-card i,
.lp-mini-item i {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

.lp-badge {
  justify-self: start;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--warm-soft);
  color: var(--warm);
  font-style: normal;
  font-weight: 700;
  font-size: 0.62rem;
}

/* A soft coloured square with an emoji, standing in for a product photo. */
.lp-pic {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--pic, var(--accent-soft));
}

.lp-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.lp-bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.lp-bar.wide {
  margin-top: 0.6rem;
}

/* Little notes floating beside the phone. */
.lp-float {
  position: absolute;
  margin: 0;
  padding: 0.5rem 0.8rem;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(31 42 31 / 16%);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  animation: lp-bob 5s ease-in-out infinite;
}

.lp-float-a {
  top: 0;
  left: 0;
}

.lp-float-b {
  bottom: 0;
  right: 0;
  animation-delay: -2.5s;
}

@keyframes lp-bob {
  50% {
    transform: translateY(-6px);
  }
}

/* ---- How it works ---- */

.lp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.lp-steps li {
  position: relative;
}

.lp-steps h3 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.25rem;
}

.lp-steps p {
  margin: 0;
}

.lp-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-top: 1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
}

.lp-art {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.6rem;
  min-height: 12rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.lp-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 16rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}

.lp-link svg,
.lp-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.lp-arrow {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.lp-mini-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 16rem;
  padding: 0.5rem;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
}

.lp-mini-item .lp-pic {
  width: 2.8rem;
  height: 2.8rem;
  flex: none;
  font-size: 1.4rem;
}

.lp-mini-item > span:last-child {
  display: grid;
  line-height: 1.3;
}

.lp-chat {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  max-width: 16rem;
}

.lp-chat-name {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.lp-bubble {
  padding: 0.6rem 0.8rem;
  border-radius: 4px 16px 16px 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lp-bubble u {
  color: var(--accent);
}

.lp-buttons {
  display: flex;
  gap: 0.5rem;
}

.lp-btn {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  font-size: 0.9rem;
}

.lp-btn.warm {
  border-color: var(--warm);
  background: var(--warm);
  color: var(--warm-text);
}

.lp-feed-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  width: 100%;
  max-width: 17rem;
  padding: 0.75rem;
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lp-feed-card.news {
  border-left-color: var(--warm);
}

.lp-feed-card .lp-mini-item {
  padding: 0;
  box-shadow: none;
}

.lp-tag {
  justify-self: start;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
}

.lp-tag.warm {
  background: var(--warm-soft);
  color: var(--warm);
}

.lp-thanks {
  font-weight: 800;
  color: var(--accent);
}

.lp-raised {
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  background: var(--warm-soft);
  color: var(--warm);
  font-weight: 700;
}

.lp-raised strong {
  font-size: 1.6rem;
  margin-right: 0.2rem;
}

/* A sprinkle of confetti behind the "it's arrived" card. */
.lp-confetti {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--warm) 0 3px, transparent 4px) 12% 18% / 100% 100% no-repeat,
    radial-gradient(circle, var(--accent) 0 3px, transparent 4px) 86% 14% / 100% 100% no-repeat,
    radial-gradient(circle, #e8b931 0 3px, transparent 4px) 90% 82% / 100% 100% no-repeat,
    radial-gradient(circle, #6b8ee0 0 3px, transparent 4px) 8% 80% / 100% 100% no-repeat,
    radial-gradient(circle, var(--warm) 0 2px, transparent 3px) 50% 6% / 100% 100% no-repeat;
}

/* ---- Two ways to help, and who it's for ---- */

.lp-two,
.lp-roles {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.lp-panel,
.lp-role {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lp-panel h3,
.lp-role h3 {
  margin: 0.75rem 0 0.4rem;
  font-size: 1.2rem;
}

.lp-panel p {
  margin: 0;
}

.lp-demo {
  margin-top: 1rem;
}

.lp-demo .lp-mini-item {
  max-width: none;
  box-shadow: none;
  background: var(--bg);
}

.lp-icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.lp-icon.warm {
  background: var(--warm-soft);
  color: var(--warm);
}

.lp-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.lp-role ul {
  margin: 0;
  padding-left: 1.1rem;
}

.lp-role li {
  margin-bottom: 0.3rem;
}

/* ---- The Good news feed ---- */

.lp-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.lp-split p {
  font-size: 1.05rem;
}

.lp-feed {
  position: relative;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  padding-left: 1.25rem;
}

.lp-feed::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.4;
}

.lp-feed .lp-feed-card {
  max-width: 22rem;
}

/* ---- Built for schools ---- */

.lp-trust {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.lp-trust li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  align-items: start;
}

.lp-trust .lp-icon {
  grid-row: span 2;
}

.lp-trust strong {
  font-size: 1.05rem;
}

.lp-trust span:last-child {
  color: var(--muted);
}

/* ---- How is it free? ---- */

.lp-flow {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  margin: 1.5rem 0 1rem;
}

.lp-flow-step {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  width: 100%;
  max-width: 18rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 600;
}

.lp-flow-emoji {
  font-size: 1.8rem;
}

.lp-flow-arrow {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 800;
  transform: rotate(90deg);
}

.lp-free-note {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
}

/* ---- Questions ---- */

.lp-faq {
  display: grid;
  gap: 0.6rem;
  max-width: 48rem;
  margin-top: 1rem;
}

.lp-faq details {
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lp-faq summary {
  padding: 0.9rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.lp-faq details p {
  margin: 0;
  padding: 0 1rem 1rem;
}

/* ---- Waiting list ---- */

.lp-join {
  text-align: center;
}

.lp-join #waitlist-form {
  text-align: left;
  margin: 1.5rem 0 1rem;
}

.lp-ant {
  width: 110px;
  height: auto;
}

/* ---- Wider screens ---- */

@media (min-width: 760px) {
  .lp-steps,
  .lp-roles {
    grid-template-columns: repeat(3, 1fr);
  }

  .lp-two {
    grid-template-columns: 1fr 1fr;
  }

  .lp-trust {
    grid-template-columns: repeat(3, 1fr);
  }

  .lp-flow {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
  }

  .lp-flow-arrow {
    transform: none;
  }
}

@media (min-width: 900px) {
  .lp-hero {
    padding: 4rem 0 5rem;
  }

  .lp-hero-grid,
  .lp-split {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* On small phones the notes sit tidily over the phone's edges. */
@media (max-width: 420px) {
  .lp-float {
    font-size: 0.78rem;
  }
}

/* ---- Colours for the drawings ---- */

:root {
  --phone-frame: #1f2a1f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --phone-frame: #000;
  }

  .lp-phone {
    box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgb(0 0 0 / 50%);
  }

  /* The pastel picture squares, toned down for dark mode. */
  .lp-pic {
    background: color-mix(in srgb, var(--pic, var(--accent-soft)) 22%, var(--surface));
  }

  .lp-float {
    box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgb(0 0 0 / 40%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-float {
    animation: none;
  }

  .lp-phone {
    transform: none;
  }
}
