/* Little Lamp website. Tokens mirror the app: Shared/BrandColors.swift and Shared/BrandFonts.swift. */

@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ground: #f2f6ff;
  --card: #ffffff;
  --line: #e1e5f2;
  --ink: #161c5c;
  --ink2: #50577e;
  --krishna: #3d4be0;
  --night: #12163a;
  --night-ink: #eef0ff;
  --night-ink2: #b8beeb;
  --amber: #ffb43d;
  --sky: #bfe6ff;
  --shadow: rgba(20, 26, 51, 0.10);
  --margin: clamp(20px, 5vw, 48px);
  --field-corner: 44px;
  --screen-corner: 36px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.125rem/1.6 "Figtree", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--krishna); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--krishna); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--max), 100% - 2 * var(--margin)); margin-inline: auto; }

/* Header: the wordmark and two quiet links, over the hero field. */
.site-header { position: absolute; inset: 0 0 auto; z-index: 3; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.025em; }
.brand img { width: 34px; height: 34px; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.site-nav a:hover { color: var(--krishna); }

/* Hero: the app's welcome scene. Sky field, drifting clouds, layered hills, Krishna waving. */
.field {
  position: relative;
  overflow: hidden;
  background: var(--sky);
  border-radius: 0 0 var(--field-corner) var(--field-corner);
  min-height: min(78vh, 760px);
  display: grid;
  place-items: end center;
  padding-top: 96px;
}
.field .hills { position: absolute; inset: auto 0 0; width: 100%; height: clamp(120px, 18vw, 200px); }
.field .krishna { position: relative; z-index: 1; width: clamp(220px, 30vw, 330px); margin-bottom: clamp(36px, 6vw, 70px); }
.cloud { position: absolute; fill: #fff; animation: drift linear infinite; }
.cloud.a { width: 150px; top: 18%; left: 8%; opacity: 0.85; animation-duration: 70s; }
.cloud.b { width: 104px; top: 30%; left: 66%; opacity: 0.7; animation-duration: 95s; animation-delay: -30s; }
.cloud.c { width: 80px; top: 44%; left: 34%; opacity: 0.55; animation-duration: 120s; animation-delay: -60s; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }

.lockup { text-align: center; padding: clamp(36px, 6vw, 64px) 0 clamp(56px, 9vw, 104px); }
.lockup h1 { font-size: clamp(2.25rem, 5.4vw, 3.75rem); max-width: 14ch; margin-inline: auto; }
.lockup .lead { margin: 18px auto 0; max-width: 36ch; color: var(--ink2); font-size: clamp(1.125rem, 2vw, 1.3rem); }
.soon {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  padding: 12px 22px; border-radius: 999px; background: var(--card);
  box-shadow: 0 6px 20px var(--shadow); font-weight: 600; color: var(--ink);
}
.soon img { width: 22px; height: 22px; }

/* Sections */
section { padding-block: clamp(56px, 9vw, 112px); }
.section-head { max-width: 40ch; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.section-head p { margin-top: 14px; color: var(--ink2); font-size: 1.2rem; }

/* A day: four real screens in the order they come. */
.steps {
  list-style: none; padding: 0; margin: clamp(32px, 5vw, 56px) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px);
}
.steps li { counter-increment: step; }
.screen {
  border-radius: var(--screen-corner);
  box-shadow: 0 18px 44px var(--shadow), 0 0 0 1px rgba(22, 28, 92, 0.05);
  background: var(--card);
}
.steps h3 { margin-top: 22px; font-size: 1.35rem; }
.steps p { margin-top: 6px; color: var(--ink2); font-size: 1.05rem; }

/* The whole Gita: words on one side, two screens on the other. */
.whole { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.features li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: baseline; }
.features li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--krishna); transform: translateY(-2px); }
.pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pair .screen:first-child { transform: translateY(-24px) rotate(-2deg); }
.pair .screen:last-child { transform: translateY(24px) rotate(2deg) translateX(-8%); }

/* Private by design: the night field, the one warm light. */
.night {
  position: relative; overflow: hidden;
  background: var(--night); color: var(--night-ink);
  border-radius: var(--field-corner);
  padding: clamp(48px, 8vw, 96px) clamp(28px, 6vw, 88px);
  text-align: center;
}
.night .diya { width: 88px; height: 88px; margin: 0 auto 22px; filter: drop-shadow(0 0 28px rgba(255, 180, 61, 0.45)); }
.night h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.night p { margin: 16px auto 0; max-width: 46ch; color: var(--night-ink2); font-size: 1.2rem; }
.night a { color: var(--night-ink); }
.star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--night-ink2); opacity: 0.8; }

/* Footer */
.site-footer { padding: 40px 0 56px; color: var(--ink2); font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--krishna); }

/* Text pages: privacy, support. */
.page-header { position: static; }
.page-header .site-nav a[aria-current="page"] { color: var(--krishna); }
.doc { width: min(700px, 100% - 2 * var(--margin)); margin: 24px auto 0; padding-bottom: 40px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.doc .updated { margin-top: 10px; color: var(--ink2); font-size: 1rem; }
.doc .summary { margin-top: 28px; padding: 22px 26px; background: var(--card); border-radius: 22px; font-size: 1.15rem; }
.doc h2 { margin-top: 44px; font-size: 1.5rem; }
.doc p, .doc ul { margin-top: 12px; color: var(--ink); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc .muted { color: var(--ink2); }
details { background: var(--card); border-radius: 18px; padding: 4px 22px; margin-top: 12px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--krishna); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--ink2); }

/* Entrance: one calm rise, staggered. */
.rise { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise.d1 { animation-delay: 0.08s; } .rise.d2 { animation-delay: 0.16s; } .rise.d3 { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rise, .cloud { animation: none; }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .whole { grid-template-columns: 1fr; }
  .pair { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .site-nav { gap: 16px; }
  /* The first screen holds Krishna, the headline and the lead line together. */
  .field { min-height: 58vh; padding-top: 76px; }
  .field .krishna { width: 190px; margin-bottom: 30px; }
  .lockup { padding-top: 28px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 14px; row-gap: 36px; }
  .screen { --screen-corner: 22px; }
  .steps h3 { font-size: 1.15rem; margin-top: 14px; }
  .steps p { font-size: 0.98rem; }
}
