/* Lovida marketing site.
 *
 * One stylesheet for the whole site. It is small enough that splitting it per
 * page would cost more in round trips than it saves in bytes, and the legal
 * pages share the type scale with the landing page by design — they are the
 * pages most likely to be read closely, and they should not look like an
 * afterthought bolted onto the product site.
 */

:root {
  --navy: #171250;
  --plum: #310b59;
  --ink: #0d0418;
  --magenta: #ff2dbb;
  --violet: #9d42f5;
  --coral: #ff785a;
  --gold: #ffc63d;
  --text: #f6f1fb;
  --muted: #bda8d1;
  --panel: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.11);
  --maxw: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* A single fixed backdrop rather than a gradient per section: the page scrolls
 * over it, which keeps the colour from banding at every section boundary. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(157, 66, 245, 0.30), transparent 70%),
    radial-gradient(800px 520px at 90% 5%, rgba(255, 45, 187, 0.22), transparent 70%),
    linear-gradient(170deg, var(--navy) 0%, var(--plum) 45%, var(--ink) 100%);
}

a {
  color: #f7a8e4;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ──────────────────────────────────────────────────────────── */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(13, 4, 24, 0.72);
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 0.3px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  display: grid;
  place-items: center;
  font-size: 15px;
}

nav.site {
  margin-left: auto;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}

nav.site a {
  color: var(--muted);
}

nav.site a:hover {
  color: var(--text);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15.5px;
  color: #fff;
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  box-shadow: 0 10px 30px rgba(255, 45, 187, 0.28);
  border: 0;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.07);
}

.btn.ghost {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--text);
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 56px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--magenta), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 54ch;
}

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

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--muted);
}

.badge-row span {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Hero artwork. The promo graphic already carries its own device frame and
 * glow, so it is shown whole rather than cropped into a CSS bezel. The fixed
 * width/height on the <img> reserves its box up front, so it never shifts the
 * headline as it loads. */
.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

/* The phone frame. Drawn in CSS rather than shipped as a PNG bezel so a
 * swapped screenshot never has to match a particular device outline. */
.phones {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.phone {
  width: 220px;
  aspect-ratio: 9 / 19.5;
  border-radius: 30px;
  padding: 7px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  flex: 0 0 auto;
}

.phone:nth-child(2) {
  margin-top: 36px;
  width: 190px;
  opacity: 0.92;
}

.phone > img,
.phone > .placeholder {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  background: linear-gradient(170deg, #3a1060, #1b0730);
}

.phone > .placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

/* ── Sections ────────────────────────────────────────────────────────── */

section.band {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}

h2.section {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}

p.section-sub {
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 62ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 18.5px;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.card .ico {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(255, 45, 187, 0.9), rgba(157, 66, 245, 0.9));
}

/* The screenshot strip. Horizontally scrollable on a phone rather than
 * wrapping, so the shots keep their aspect ratio at any width. */
.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.shots figure {
  margin: 0;
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: start;
}

/* Images keep their own aspect ratio (height: auto) so a promo graphic is
 * shown whole, and a tall in-app screenshot pushed from the console is shown
 * whole too — neither is force-cropped to a device outline. */
.shots img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.shots .placeholder {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, #3a1060, #1b0730);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 14px;
}

.shots figcaption {
  margin-top: 9px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */

details.faq {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 11px;
}

details.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 16.5px;
  list-style: none;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: "+";
  float: right;
  color: var(--magenta);
  font-size: 22px;
  line-height: 1;
}

details.faq[open] summary::after {
  content: "\2013";
}

details.faq p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 15.5px;
}

/* ── Legal pages ─────────────────────────────────────────────────────── */

.legal {
  padding: 48px 0 72px;
}

.legal .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  font-size: 13.5px;
  color: var(--muted);
}

.legal .meta span {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
}

.legal h1 {
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

.callout {
  background: rgba(255, 45, 187, 0.10);
  border: 1px solid rgba(255, 45, 187, 0.32);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 32px;
}

.callout strong {
  display: block;
  margin-bottom: 5px;
}

.toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  margin: 0 0 40px;
}

.toc h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 12px;
  color: var(--muted);
}

.toc ol {
  columns: 2;
  column-gap: 28px;
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
}

.toc li {
  margin-bottom: 5px;
  break-inside: avoid;
}

.legal section {
  margin-bottom: 38px;
  scroll-margin-top: 80px;
}

.legal section > h2 {
  font-size: 23px;
  font-weight: 900;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.legal section > h2 .num {
  color: var(--magenta);
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}

.legal h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 22px 0 7px;
}

.legal p,
.legal li {
  color: #e3d7ee;
}

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

.legal li {
  margin-bottom: 7px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 15px;
}

.legal th,
.legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal th {
  color: var(--muted);
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.caps {
  text-transform: uppercase;
  font-size: 14.5px;
  letter-spacing: 0.2px;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  background: rgba(0, 0, 0, 0.25);
}

footer.site .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

footer.site h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin: 0 0 12px;
}

footer.site ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

footer.site li {
  margin-bottom: 8px;
}

footer.site a {
  color: var(--muted);
}

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

footer.site .fine {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

/* ── Narrow screens ──────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    padding: 44px 0 36px;
  }

  .phones {
    justify-content: flex-start;
    overflow-x: auto;
  }

  footer.site .cols {
    grid-template-columns: 1fr 1fr;
  }

  .toc ol {
    columns: 1;
  }

  nav.site {
    gap: 14px;
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  nav.site a.hide-sm {
    display: none;
  }

  footer.site .cols {
    grid-template-columns: 1fr;
  }
}

/* Honour a reduced-motion preference: the only motion here is smooth
 * scrolling, and on a long legal page that is exactly the kind of movement
 * people turn off for a reason. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
