/* Lumelle's home page: the dawn sky of the app (night blue, violet, amber) and the
   screenshots in iPhone frames drawn in CSS. No script, no external font. */

:root {
  --night: #15163f;
  --violet: #4b3b98;
  --dusk: #8a5bb8;
  --amber: #f6b04a;
  --sunlight: #ffd98a;
  --text: #1d1b2e;
  --muted: #625f75;
  --page: #fbf9f5;
  --card: #ffffff;
  --line: rgba(29, 27, 46, .1);
  --accent: #5b45c4;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f1eff8;
    --muted: #a9a5bd;
    --page: #121226;
    --card: #1c1c36;
    --line: rgba(255, 255, 255, .1);
    --accent: #b2a3ff;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; letter-spacing: -.022em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.12; margin: .15em 0 .5em; }
h3 { font-size: 1.05rem; margin: .4em 0 .25em; }
a { color: var(--accent); }
kbd {
  font: 600 .85em ui-monospace, "SF Mono", Menlo, monospace;
  padding: .05em .4em; border-radius: 6px;
  border: 1px solid var(--line); background: var(--card);
}
.muted { color: var(--muted); font-size: .85em; }

/* The sun of the app's logo. */
.sun {
  display: inline-block; width: .9em; height: .9em; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff3cf, var(--amber) 70%);
  box-shadow: 0 0 14px rgba(246, 176, 74, .7);
  margin-right: .45em; vertical-align: -.08em;
}

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

.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(60% 45% at 50% 100%, rgba(255, 196, 110, .55), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, #262465 35%, var(--violet) 62%, var(--dusk) 82%, #e59a6b 100%);
  padding: 0 var(--gutter);
  overflow: hidden;
}
/* A few stars, drawn with gradients. */
.hero::before {
  content: ""; position: absolute; inset: 0 0 50% 0; pointer-events: none; opacity: .8;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 24% 42%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 38% 12%, #fff, transparent),
    radial-gradient(1px 1px at 61% 28%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 74% 9%, #fff, transparent),
    radial-gradient(1px 1px at 86% 36%, #fff, transparent),
    radial-gradient(1px 1px at 93% 16%, #fff, transparent),
    radial-gradient(1px 1px at 5% 48%, #fff, transparent);
}

.top {
  position: relative; z-index: 2;
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
}
.top .brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.top .links { display: flex; gap: clamp(12px, 3vw, 28px); font-size: .95rem; }
.top .links a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.top .links a:hover { color: #fff; }

.hero-text {
  position: relative; z-index: 2;
  max-width: 820px; margin: 0 auto; text-align: center;
  padding: clamp(28px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
}
.eyebrow { margin: 0; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--sunlight); }
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.4rem); line-height: 1.04; margin: .25em 0 .35em; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255, 255, 255, .84); max-width: 640px; margin: 0 auto; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; }
.badges span {
  font-size: .88rem; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.badges span:first-child { background: var(--amber); border-color: transparent; color: #2a1a00; }

.hero-phones {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: flex-end;
  max-width: 1000px; margin: 0 auto;
  /* The phones go past the bottom of the sky, cut there like a horizon. */
  margin-bottom: -16%;
}
.hero-phones .center { --w: clamp(230px, 30vw, 330px); z-index: 2; }
.hero-phones .side { --w: clamp(170px, 24vw, 270px); opacity: .97; }
.hero-phones .left { transform: translateY(-4%) rotate(-7deg); margin-right: -5%; }
.hero-phones .right { transform: translateY(-4%) rotate(7deg); margin-left: -5%; }

/* ---------- iPhone frame ----------
   --w: the frame's width. The screen is 402 × 874 points (iPhone 17 Pro); its corner
   radius and Dynamic Island are proportional to it. */

.phone {
  --w: 280px;
  --b: calc(var(--w) * .037);
  --sw: calc(var(--w) - 2 * var(--b));
  position: relative; flex: none;
  width: var(--w); margin: 0; padding: var(--b);
  border-radius: calc(var(--sw) * .14 + var(--b));
  background: linear-gradient(150deg, #3c3a44, #111015 45%, #26242c);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .16),
    inset 0 0 0 calc(var(--b) * .45) #0b0a0e,
    0 2px 2px rgba(10, 8, 30, .2),
    0 40px 70px -25px rgba(22, 14, 70, .55);
}
.phone img {
  display: block; width: 100%; height: auto;
  border-radius: calc(var(--sw) * .14);
  background: #0b0a0e;
}
/* Dynamic Island. */
.phone::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(var(--b) + var(--sw) * .027);
  width: calc(var(--sw) * .31); height: calc(var(--sw) * .092);
  border-radius: 999px; background: #000;
}
/* Side buttons. */
.phone::before {
  content: ""; position: absolute; right: -2px; top: 26%;
  width: 3px; height: 9%; border-radius: 0 3px 3px 0; background: #2a2830;
}

/* ---------- Sections ---------- */

main { position: relative; z-index: 2; background: var(--page); }
section { padding: clamp(64px, 10vw, 128px) var(--gutter); }

.kicker { margin: 0; color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.copy p { color: var(--muted); }
.copy p.kicker { color: var(--accent); }
.copy strong { color: var(--text); }
.centered { text-align: center; max-width: 720px; margin: 0 auto; }

.feature {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 7vw, 96px); align-items: center;
}
.feature .phone { --w: clamp(240px, 26vw, 300px); justify-self: center; }
.feature.assistant { grid-template-columns: auto 1fr; }

.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.points li {
  position: relative; padding-left: 26px; color: var(--muted);
}
.points li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff3cf, var(--amber) 75%);
}

/* Databases: the four views of the same base. */
.databases {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(91, 69, 196, .09), transparent 70%),
    var(--page);
}
.gallery {
  max-width: 1160px; margin: 48px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 36px);
}
.gallery figure { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gallery .phone { --w: clamp(150px, 20vw, 250px); }
.gallery figure:nth-child(even) { transform: translateY(28px); }
.gallery figcaption { margin-top: 18px; color: var(--muted); font-size: .93rem; max-width: 220px; }
.gallery figcaption strong { display: block; color: var(--text); font-size: 1.05rem; }
.more { text-align: center; color: var(--muted); margin: 72px auto 0; max-width: 640px; }

/* The assistant, on a sky band. */
.assistant {
  max-width: none;
  color: #fff;
  background: linear-gradient(135deg, var(--night), var(--violet) 60%, var(--dusk));
  padding-left: max(var(--gutter), calc((100% - 1080px) / 2));
  padding-right: max(var(--gutter), calc((100% - 1080px) / 2));
}
.assistant .copy p, .assistant .points li { color: rgba(255, 255, 255, .8); }
.assistant .copy strong { color: #fff; }
.assistant .copy p.kicker { color: var(--sunlight); }
.assistant .phone { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2), inset 0 0 0 calc(var(--b) * .45) #0b0a0e, 0 40px 80px -20px rgba(0, 0, 0, .55); }

/* Feature cards. */
.cards {
  list-style: none; padding: 0; max-width: 1080px; margin: 48px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.cards li {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px 20px;
}
.cards p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font-size: 1.1rem; font-weight: 700; color: #2a1a00;
  background: linear-gradient(145deg, var(--sunlight), var(--amber));
}

/* Privacy. */
.privacy {
  max-width: 1080px; margin: 0 auto clamp(48px, 8vw, 96px);
  border-radius: 32px; text-align: center; color: #fff;
  background:
    radial-gradient(50% 70% at 50% 120%, rgba(255, 196, 110, .55), transparent 70%),
    linear-gradient(180deg, var(--night), var(--violet));
  padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 64px);
}
.privacy h2 { margin-top: 0; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; margin: 32px 0; }
.trio p { margin: 0; color: rgba(255, 255, 255, .8); }
.trio strong { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600;
  background: var(--amber); color: #2a1a00;
}
.button:hover { background: var(--sunlight); }

/* Footer. */
.foot {
  max-width: 1080px; margin: 0 auto; padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.foot .brand { margin: 0; font-weight: 700; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: .95rem; }
.foot .muted { flex-basis: 100%; margin: 0; }

/* ---------- Smaller screens ---------- */

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .gallery .phone { --w: clamp(150px, 38vw, 250px); }
  .gallery figure:nth-child(even) { transform: none; }
}

@media (max-width: 720px) {
  .top .links a:not(:last-child) { display: none; }
  .hero-phones .side { --w: 36vw; }
  .hero-phones .center { --w: 52vw; }
  .hero-phones .left { margin-right: -14vw; }
  .hero-phones .right { margin-left: -14vw; }
  .hero-phones { margin-bottom: -28%; }
  .feature, .feature.assistant { grid-template-columns: 1fr; }
  .feature .phone { --w: min(72vw, 300px); }
  .feature.assistant .phone { order: 2; }
  .trio { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
  .gallery { column-gap: 12px; }
  .gallery .phone { --w: 42vw; }
  .gallery figcaption { font-size: .85rem; }
}
