/* Branding is TBD: change the look here. */
:root {
  --bg: #fffdf7;
  --ink: #1c1b19;
  --muted: #6b675f;
  --accent: #e4572e;
  --card: #f4f0e6;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.55 var(--font);
}

header, main, footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

a { color: inherit; }
.logo { font-weight: 800; font-size: 1.3rem; text-decoration: none; }
nav a { margin-left: 20px; }

h1 { font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.08; margin: 0 0 16px; text-wrap: balance; }
h2 { font-size: 1.6rem; margin: 0 0 8px; }
.sub { font-size: 1.25rem; color: var(--muted); max-width: 34em; margin: 0 0 28px; }

.hero { padding: 8vh 0; }

/* Home page: a full-screen carousel of messages with the product pinned in the centre. */
/* Header floats over the carousel. */
body:has(.carousel) header { position: absolute; inset: 0 0 auto; z-index: 4; color: #fff; text-shadow: 0 1px 12px #000c; }
.carousel {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
/* Slides are stacked and cross-fade. */
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s 0.9s; }
.slide.on { opacity: 1; visibility: visible; transition: opacity 0.9s ease; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
/* The dark scrim keeps white text readable on every photo. */
.slide::after { content: ""; position: absolute; inset: 0; background: #0000008c; }
/* Text sits in the top half, ending just above the product. */
.pitch {
  position: absolute;
  inset: 0 0 calc(50% + 95px);
  z-index: 1;
  display: grid;
  align-content: end;
  justify-items: center;
  text-align: center;
  padding: 70px 20px 0;
  text-shadow: 0 2px 18px #000c;
}
.headline { font-size: clamp(2rem, 7vw, 5rem); line-height: 1.08; text-transform: uppercase; max-width: 14em; margin: 0 0 16px; text-wrap: balance; }
.pitch .sub { color: inherit; font-weight: 600; margin: 0; }
.stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  perspective: 800px;
}
.stage .button { position: absolute; bottom: 28px; pointer-events: auto; }
.dots { position: absolute; inset: auto 0 96px; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 4px; }
.dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.dot::before { content: ""; display: block; width: 10px; height: 10px; margin: auto; border-radius: 50%; border: 2px solid #fff; }
.dot[aria-current=true]::before { background: #fff; }
.pause { margin-left: 8px; padding: 2px 12px; font: inherit; font-size: 0.85rem; color: #fff; background: #0006; border: 1px solid #fff; border-radius: 999px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .slide, .slide.on { transition: none; } }

/* Placeholder product until there are renders. */
.bug {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff3 0 28%, #0002 29% 31%, transparent 32%), var(--accent);
  box-shadow: inset -8px -10px 20px #0003, 0 20px 40px #0003;
}

/* Scroll-driven: the product turns as you scroll.
   Browsers without scroll timelines just get a still product. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .bug { animation: turn linear both; animation-timeline: scroll(root); }
  }
}
@keyframes turn {
  from { transform: rotateY(-50deg) rotateX(10deg); }
  to { transform: rotateY(670deg) rotateX(10deg); }
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
}
.button:hover { filter: brightness(1.08); }
button.button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }

.signup-form { display: flex; flex-wrap: wrap; gap: 10px; }
.signup .signup-form { justify-content: center; }
.signup-form input[type=email] {
  flex: 0 1 300px;
  font: inherit;
  padding: 14px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

section { padding: 40px 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}
.grid > * { background: var(--card); border-radius: 16px; padding: 20px; margin: 0; }
.grid h3 { margin: 0 0 4px; font-size: 1.1rem; }
.grid p { margin: 0; color: var(--muted); font-size: 1rem; }

.steps { padding-left: 1.2em; }
.steps li { margin-bottom: 6px; }

.signup { text-align: center; }

/* About page */
.person { text-align: center; }
.person h3 { font-size: 1.2rem; }
.headshot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  background: var(--accent);
  color: #fff;
  font-size: 2.6rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.role { font-weight: 700; color: var(--ink) !important; }
.person a { display: inline-block; margin-top: 10px; font-size: 1rem; }

footer {
  padding-top: 32px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
