/* about.lovuli.com: the coming-soon page and the legal pages. Colors are the app's tokens
   (packages/shared/tokens.js): always cream and coral, even when the computer or phone is set to dark (Jay,
   2026-11-03). */
:root {
  --page: #fff8f1;
  --surface: #ffffff;
  --soft: #fff1e6;
  --line: #f1e2d6;
  --text: #25265e;
  --text-2: #4a4c68;
  --text-3: #787993;
  --accent: #c35150;
  --accent-press: #a93d3c;
  --accent-text: #c35150;
  --blush: #fbe3e2;
  --peach: #fde6da;
  --berry: #c2255c;
  --ok: #2b8a3e;
  --error: #c92a2a;
  --ink: #25265e;
  --shadow: 0 24px 60px rgba(84, 44, 30, 0.16);
  --sans: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--page);
  line-height: 1.55;
}

a {
  color: var(--accent-text);
}

img {
  max-width: 100%;
  /* The width and height attributes reserve space; this keeps the shape when an image is narrowed. */
  height: auto;
  display: block;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* The logo: the wordmark (the same drawing as the app's BrandWordmark), in ink, with ™. */
.logo {
  position: relative;
  display: inline-block;
  width: 160px;
  margin-bottom: 44px;
}

.logo img {
  width: 100%;
}

.logo .tm {
  position: absolute;
  right: -12px;
  bottom: 2px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-2);
}

/* Cream to peach at the top, bold Nunito Sans headlines with the words that matter in coral, and a coral to berry
   band at the end. One look only: no dark theme (Jay, 2026-11-03). */
h1,
h2,
.feature h3 {
  font-weight: 900;
  letter-spacing: -0.01em;
}

h1 em,
h2 em {
  font-style: normal;
  color: var(--accent-text);
}

/* Hero */
.hero {
  overflow: hidden;
  background: linear-gradient(180deg, var(--page) 0%, var(--peach) 100%);
}

.hero .wrap {
  display: grid;
  /* minmax(0, …) lets a column shrink below its content's natural width. */
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 56px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 72px;
}

.badge {
  display: table;
  background: var(--blush);
  color: var(--accent-text);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.03;
  margin: 0 0 22px;
}

.lead {
  font-size: 19px;
  color: var(--text-2);
  max-width: 32em;
  margin: 0 0 28px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 12px;
}

.button:hover {
  background: var(--accent-press);
}

/* The waitlist sign-up box */
.waitlist {
  max-width: 470px;
}

.waitlist-center {
  margin: 0 auto;
}

.waitlist-row {
  display: flex;
  gap: 8px;
}

.waitlist input {
  flex: 1;
  width: 0;
  min-width: 0;
  font: inherit;
  font-size: 17px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.waitlist input::placeholder {
  color: var(--text-3);
}

.waitlist input:focus {
  outline: none;
  border-color: var(--accent);
}

.waitlist button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.waitlist button:disabled {
  opacity: 0.6;
  cursor: default;
}

.waitlist .cf-turnstile {
  margin-top: 10px;
}

.waitlist-status {
  min-height: 1.5em;
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-2);
}

.waitlist-status.ok {
  color: var(--ok);
}

.waitlist-status.error {
  color: var(--error);
}

.waitlist.done .waitlist-row {
  display: none;
}

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

.fine {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 12px;
}

/* The hero picture: two phones, Explore and a conversation, with two notes floating over them. */
.hero-art {
  position: relative;
  height: 600px;
}

.hero-art .phone {
  position: absolute;
  width: 250px;
}

.hero-art .phone:first-of-type {
  left: 10px;
  top: 60px;
  transform: rotate(-4deg);
}

.hero-art .phone:nth-of-type(2) {
  right: 10px;
  top: 10px;
  transform: rotate(3deg);
}

.float {
  position: absolute;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.3;
}

.float b {
  grid-column: 2;
}

.float small {
  grid-column: 2;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 700;
}

.float .hourglass {
  grid-row: span 2;
  font-size: 22px;
}

.float-fade {
  left: -20px;
  bottom: 0;
  transform: rotate(-2deg);
}

/* A phone-shaped frame around a screenshot */
.phone {
  border-radius: 36px;
  padding: 8px;
  background: #1c1d3a;
  box-shadow: var(--shadow);
}

.phone img {
  border-radius: 29px;
}

/* Sections */
section {
  padding: 88px 0;
}

h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.1;
  margin: 0 0 12px;
}

.section-lead {
  font-size: 18px;
  color: var(--text-2);
  max-width: 38em;
  margin: 0 0 40px;
}

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

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}

.feature h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.feature p {
  margin: 0;
  color: var(--text-2);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  text-align: center;
  font-weight: 800;
  color: var(--text-2);
  margin-top: 12px;
}

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

.closing {
  text-align: center;
  color: #fff;
  background: linear-gradient(120deg, var(--accent) 0%, var(--berry) 100%);
}

.closing h2,
.closing h2 em,
.closing .waitlist-status {
  color: #fff;
}

.closing p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  margin: 0 0 28px;
}

.closing .button {
  background: var(--ink);
}

.closing .waitlist input {
  border-color: transparent;
  background: #fff;
  color: #1c1d3a;
}

/* Footer */
footer {
  background: var(--page);
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 15px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer a {
  color: var(--text-2);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-text);
}

footer small {
  color: var(--text-3);
}

/* Legal pages */
.page-header {
  border-bottom: 1px solid var(--line);
}

.page-header .wrap {
  padding-top: 20px;
  padding-bottom: 20px;
}

.page-header .logo {
  width: 124px;
  margin: 0;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.legal h1 {
  font-size: 40px;
  margin-bottom: 4px;
}

.legal .updated {
  color: var(--text-3);
  margin: 0 0 24px;
}

.legal h2 {
  font-size: 22px;
  margin: 32px 0 8px;
}

.legal p,
.legal li {
  font-size: 17px;
  color: var(--text-2);
}

.legal ul {
  padding-left: 22px;
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 32px;
    gap: 32px;
  }

  .logo {
    width: 132px;
    margin-bottom: 32px;
  }

  .hero-art {
    height: 120vw;
    max-height: 560px;
  }

  .hero-art .phone {
    width: 46%;
    max-width: 250px;
  }

  .hero-art .phone:first-of-type {
    left: 3%;
  }

  .hero-art .phone:nth-of-type(2) {
    right: 3%;
  }

  .float-fade {
    left: 0;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(4, 70%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .gallery figure {
    scroll-snap-align: center;
  }

  section {
    padding: 60px 0;
  }
}

/* Small phones: the email box gets the full width, with the button under it. */
@media (max-width: 400px) {
  .waitlist-row {
    flex-direction: column;
  }

  .waitlist input {
    width: 100%;
  }
}
