/* Kushu's site: the app's stone, and the dark of its session screen. */

@font-face { font-family: 'Figtree'; src: url('fonts/Figtree_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('fonts/Figtree_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('fonts/Figtree_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('fonts/Figtree_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  /* The phone app's own values. */
  --stone: #D9D4D3;
  --ground: #CEC9C8;
  --pill: #E4E0E0;
  --line: #CCC6C6;
  --ink: #282828;
  --ink-2: #4A4445;
  --muted: #5F5859;
  --night: #232323;
  --night-2: #282828;
  --night-3: #303030;
  --on-night: #F2EFEE;
  --on-night-2: #D9D4D3;
  --on-night-muted: #A6A0A1;
  --gutter: clamp(16px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: Figtree, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
.lede { margin: 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--muted); max-width: 560px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-night);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms, transform 150ms;
  white-space: nowrap;
}
.button:hover { background: #3A3A3A; }
.button:active { transform: scale(0.98); }
.button.is-disabled { background: #B4ADAE; color: var(--ink-2); pointer-events: none; }

/* ---- nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(217, 212, 211, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.wordmark { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav nav a { text-decoration: none; color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }
.nav .nav-download {
  height: 40px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-night);
  font-weight: 600;
}
.nav .nav-download:hover { color: var(--on-night); background: #3A3A3A; }
@media (max-width: 640px) { .nav nav a:not(.nav-download) { display: none; } }

/* ---- hero ---- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: clamp(56px, 10vw, 110px) var(--gutter) 24px;
}
.chip {
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.hero h1 { font-size: clamp(40px, 7.4vw, 88px); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 span, .computer h2 span { color: #8A8384; }
.hero .lede { text-align: center; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.cta-alt { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.cta-note { margin: 0; font-size: 13px; color: var(--muted); }
.hero-device {
  width: min(520px, 86vw);
  height: auto;
  margin-top: 12px;
  animation: rise 1100ms cubic-bezier(.2, .8, .2, 1) both 200ms;
}
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---- the story: pinned while it scrolls ---- */

.story { position: relative; height: 900vh; }
.story-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 72px var(--gutter) 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.story-text { display: flex; flex-direction: column; gap: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
/* All steps share one cell; the active one shows. */
.step {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
.step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.step h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 18px; }
.step p { margin: 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: var(--muted); max-width: 440px; }

/* The stage: a phone alone, then a laptop joins it, then the laptop alone. */
.story-visual { position: relative; height: min(76vh, 700px); container-type: size; }
.phone {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  height: 100%;
  aspect-ratio: 390 / 844;
  border-radius: 46px;
  padding: 10px;
  background: #1D1D1D;
  box-shadow: 0 40px 90px rgba(40, 40, 40, 0.28), 0 6px 18px rgba(40, 40, 40, 0.16);
  transform: translate(-50%, -50%);
  transition: transform 800ms cubic-bezier(.2, .8, .2, 1), opacity 500ms ease;
}
.screen {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: cover;
  border-radius: 36px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 500ms ease, transform 700ms cubic-bezier(.2, .8, .2, 1);
}
.screen.is-active { opacity: 1; transform: none; }
/* The island, between the time and the battery. */
.phone::after {
  content: '';
  position: absolute;
  z-index: 4;
  top: 2.6%;
  left: 50%;
  width: 27%;
  height: 3.3%;
  border-radius: 999px;
  background: #0B0B0B;
  transform: translateX(-50%);
}

/* A schedule's reminder, dropping in at the top of the phone. */
.notice-card {
  position: absolute;
  z-index: 3;
  top: 8%;
  left: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(250, 248, 247, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.18);
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink);
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 400ms ease, transform 600ms cubic-bezier(.2, .8, .2, 1);
}
.notice-card strong { font-size: 13.5px; }
.notice-app { font-size: 11px; color: var(--muted); }
.story[data-notice="on"] .notice-card { opacity: 1; transform: none; transition-delay: 350ms; }

.laptop {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: min(100%, 146cqh);
  opacity: 0;
  transform: translate(-40%, -50%) scale(0.94);
  transition: transform 800ms cubic-bezier(.2, .8, .2, 1), opacity 500ms ease;
}
.laptop-lid { padding: 1.6% 1.6% 2.2%; border-radius: 18px 18px 6px 6px; background: #1D1D1D; box-shadow: 0 30px 80px rgba(40, 40, 40, 0.25); }
.laptop-screen { position: relative; aspect-ratio: 1470 / 956; border-radius: 6px; overflow: hidden; background: #282828; }
.laptop-base {
  height: 12px;
  margin: 0 -7%;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(#C9C4C3, #A9A3A2);
  box-shadow: 0 16px 30px rgba(40, 40, 40, 0.2);
}
.lscreen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 500ms ease; }
.lscreen.is-active { opacity: 1; }
/* The desktop: a soft wallpaper, with Kushu open as a window on it. */
.lscreen-desk { background: radial-gradient(120% 90% at 30% 20%, #CFC9C6, #9C9592); }
.window {
  position: absolute;
  left: 7%;
  top: 7%;
  width: 86%;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(20, 20, 20, 0.3);
}
/* The prayer pop-up sits in the middle of whatever you were doing. */
.lscreen-prayer { display: flex; align-items: center; justify-content: center; }
.lscreen-prayer::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(30, 30, 30, 0.3); }
.prayer-card { position: relative; z-index: 2; width: 40%; transform: translateY(18px) scale(0.96); transition: transform 700ms cubic-bezier(.2, .8, .2, 1) 200ms; }
.lscreen-prayer.is-active .prayer-card { transform: none; }
.pill-shot {
  position: absolute;
  top: 3%;
  right: 3%;
  width: 26%;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(20, 20, 20, 0.25);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 400ms ease, transform 600ms cubic-bezier(.2, .8, .2, 1);
}
.story[data-pill="on"] .pill-shot { opacity: 1; transform: none; transition-delay: 400ms; }

/* With the laptop: it fills the stage, the phone steps in front to the left. */
.story[data-laptop] .laptop { opacity: 1; transform: translate(-42%, -54%); }
.story[data-laptop][data-phone] .phone { transform: translate(-112%, -36%) scale(0.6); }
/* The computer alone: the phone steps away. */
.story[data-laptop]:not([data-phone]) .laptop { transform: translate(-50%, -50%); }
.story[data-laptop]:not([data-phone]) .phone { opacity: 0; transform: translate(-112%, -36%) scale(0.52); }

@media (max-width: 820px) {
  .story { height: 860vh; }
  .story-pin { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); padding-top: 76px; gap: 18px; text-align: center; }
  .story-text { gap: 12px; align-items: center; }
  .step h2 { margin-bottom: 8px; }
  .step p { margin: 0 auto; }
  .story-visual { height: 100%; min-height: 0; }
  .story[data-laptop] .laptop { transform: translate(-50%, -62%); }
  .story[data-laptop]:not([data-phone]) .laptop { transform: translate(-50%, -50%); }
  .story[data-laptop][data-phone] .phone { transform: translate(-50%, -30%) scale(0.44); }
}

/* ---- dark section ---- */

.dark { background: var(--night); color: var(--on-night); padding: clamp(80px, 12vw, 140px) var(--gutter); }
.dark-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.dark-device { width: min(300px, 60vw); height: auto; margin-bottom: 8px; }
.dark h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.035em; }
.dark .lede { color: var(--on-night-muted); }
.features {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  text-align: left;
}
.features article { background: var(--night-2); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.features h3 { font-size: 19px; }
.features p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--on-night-muted); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---- computer ---- */

.computer { padding: clamp(80px, 12vw, 150px) var(--gutter); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.computer h2 { font-size: clamp(34px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -0.035em; }
.computer .lede { text-align: center; }
.computer-shots { position: relative; width: min(1100px, 100%); margin-top: 40px; padding-bottom: 12%; }
.shot-app {
  width: 88%;
  border-radius: 18px;
  box-shadow: 0 40px 90px rgba(40, 40, 40, 0.22), 0 4px 14px rgba(40, 40, 40, 0.12);
}
.shot-verse {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56%;
  border-radius: 26px;
  box-shadow: 0 40px 90px rgba(20, 20, 20, 0.35);
}
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 800ms ease, transform 900ms cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- download ---- */

.download {
  background: var(--night);
  color: var(--on-night);
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.download h2 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.035em; }
.download .lede { color: var(--on-night-muted); text-align: center; }
.platforms { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: min(1100px, 100%); }
.platform {
  background: var(--night-2);
  border-radius: 24px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1.5px solid transparent;
}
.platform h3 { font-size: 22px; }
.platform p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; color: var(--on-night-muted); flex-grow: 1; }
.platform .button {
  background: var(--stone);
  color: var(--ink);
  width: 100%;
  /* A long label wraps inside the button instead of running past its edge. */
  height: auto;
  min-height: 52px;
  padding: 12px 18px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
.platform .button:hover { background: #E6E2E1; }
.platform .button.is-disabled { background: var(--night-3); color: var(--on-night-muted); }
.platform.is-yours { border-color: var(--on-night-2); }
.platform.is-yours::before { content: 'Your device'; font-size: 12px; font-weight: 600; color: var(--on-night-2); letter-spacing: 0.08em; text-transform: uppercase; }
.small-link { font-size: 13px; color: var(--on-night-muted); }
@media (max-width: 900px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .platforms { grid-template-columns: 1fr; } }

/* ---- footer ---- */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--gutter);
  background: var(--night);
  color: var(--on-night-muted);
  border-top: 1px solid #333333;
  font-size: 14px;
}
.footer .wordmark { color: var(--on-night); font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-device { animation: none; }
  .step, .screen, .phone, .laptop, .lscreen, .prayer-card, .pill-shot, .notice-card, .reveal { transition: none; }
}

.platform .version { margin: 0; font-size: 13px; color: var(--on-night-muted); flex-grow: 0; }
