/* ============================================
   KIRU — Global Styles
   kiru-mindful-apps.com
   ============================================ */

:root {
  --black: #0A0A0A;
  --beige: #f7e9c5;
  --beige-dim: rgba(247,233,197,0.15);
  --beige-glow: rgba(247,233,197,0.35);
  --divider: rgba(247,233,197,0.08);
  --font: 'Nunito Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--black);
  color: var(--beige);
  font-family: var(--font);
  font-weight: 300;
  overflow-x: hidden;
  text-transform: none;
}

h1, h2, h3, h4, h5, h6, p, a, span, li, button, label { font-weight: 300; }

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--divider);
}

.nav-logo {
  font-size: 1.3225rem;
  font-weight: 300;
  color: var(--beige);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 1.1569rem;
  font-weight: 300;
  color: rgba(247,233,197,0.6);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--beige); }

.nav-ig {
  display: flex;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.nav-ig:hover { opacity: 1; }

/* ── Hero Split ── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

.hero-half {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: default;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.6s ease;
  filter: brightness(0.45) saturate(0.8);
}

.hero-half:hover .hero-video {
  transform: scale(1.04);
  filter: brightness(0.6) saturate(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.1) 0%,
    rgba(10,10,10,0.0) 40%,
    rgba(10,10,10,0.75) 100%
  );
}

.hero-half-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 2rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* "Kiru Rides" / "Kiru Rowing" */
.hero-app-label {
  font-size: 1.3915rem;
  font-weight: 300;
  color: var(--beige);
  letter-spacing: 0.02em;
}

/* "Indoor cycling, stripped of noise." */
.hero-app-title {
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--beige);
}

/* "Breathwork synced to cadence..." */
.hero-app-sub {
  font-size: 1.3915rem;
  color: rgba(247,233,197,0.7);
  font-weight: 300;
  max-width: 420px;
  line-height: 1.5;
}

/* ── Pills ── */
.pills-section { padding: 0; }

.pills-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}

.pills-label {
  font-size: 1.1902rem;
  font-weight: 300;
  color: var(--beige);
  letter-spacing: 0.01em;
}

.pro-trigger {
  font-family: var(--font);
  font-size: 0.9919rem;
  font-weight: 300;
  color: rgba(247,233,197,0.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.pro-trigger:hover { color: var(--beige); }

/* Stacked pills — 1/3 width */
.pills {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 340px;
}

.pill {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 74px;
  border-radius: 999px;
  border: 3.6px solid rgba(247,233,197,0.85);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  padding: 0;
  font-family: var(--font);
}

.pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  border-radius: inherit;
  transition: background 0.2s;
}

.pill:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(247,233,197,0.85);
}

.pill:hover::before {
  background: rgba(0,0,0,0.5);
}

.pill-badge-circle {
  position: relative;
  z-index: 1;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-free {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #7a9e2e;
  font-size: 0.9257rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  font-family: var(--font);
}

.badge-pro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  background: var(--beige);
  border: none;
  gap: 2px;
  color: #0A0A0A;
  font-family: var(--font);
}

.badge-pro span {
  font-size: 0.8625rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0A0A0A;
  line-height: 1;
}

.pill-name {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: left;
  padding-left: 0.875rem;
  font-size: 1.4375rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--beige);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  font-family: var(--font);
}

/* ── Hover Video Preview — 16:9 landscape ── */
.pill-preview {
  position: fixed;
  width: 380px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 0 0.5px rgba(247,233,197,0.1);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92) translateY(8px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  z-index: 200;
}
.pill-preview.visible { opacity: 1; transform: scale(1) translateY(0); }
.pill-preview video { width: 100%; height: 100%; object-fit: cover; }
.pill-preview-label {
  position: absolute;
  bottom: 0.75rem;
  left: 0.875rem;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--beige);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ── Centre Divider ── */
.hero-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 0.5px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(247,233,197,0.12) 20%,
    rgba(247,233,197,0.3) 50%,
    rgba(247,233,197,0.12) 80%,
    transparent 100%
  );
  z-index: 10;
  pointer-events: none;
}

/* ── Journey CTA ── */
.journey-cta {
  background: var(--black);
  padding: 5rem 2.5rem;
  text-align: center;
  border-top: 0.5px solid var(--divider);
}

.journey-cta h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--beige);
}

.journey-cta p {
  font-size: 1.3225rem;
  color: rgba(247,233,197,0.5);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.125rem 2.5rem;
  border-radius: 999px;
  font-size: 1.3225rem;
  font-weight: 300;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  border: none;
}

.cta-btn-primary {
  background: var(--beige);
  color: var(--black);
}
.cta-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(247,233,197,0.2);
}

.cta-btn-secondary {
  background: rgba(247,233,197,0.08);
  color: var(--beige);
  border: 0.5px solid rgba(247,233,197,0.2);
}
.cta-btn-secondary:hover {
  background: rgba(247,233,197,0.14);
  transform: translateY(-2px);
}

/* ── Story Strip ── */
.story-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 0.5px solid var(--divider);
}

.story-cell {
  padding: 4rem 2.5rem;
  border-right: 0.5px solid var(--divider);
}
.story-cell:last-child { border-right: none; }

.story-eyebrow {
  font-size: 0.8596rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,233,197,0.4);
  margin-bottom: 1rem;
}

.story-cell h3 {
  font-size: 1.725rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--beige);
}

.story-cell p {
  font-size: 1.1902rem;
  color: rgba(247,233,197,0.5);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.story-link {
  font-size: 1.0741rem;
  font-weight: 300;
  color: var(--beige);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  opacity: 0.7;
  transition: opacity 0.2s, gap 0.2s;
}
.story-link:hover { opacity: 1; gap: 0.625rem; }

/* ── Footer ── */
.footer {
  padding: 2rem 2.5rem;
  border-top: 0.5px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.9257rem;
  color: rgba(247,233,197,0.25);
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.9919rem;
  color: rgba(247,233,197,0.3);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--beige); }

/* ── Inner pages ── */
.page-hero {
  padding: 8rem 2.5rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-eyebrow {
  font-size: 0.9885rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,233,197,0.4);
  margin-bottom: 1.25rem;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--beige);
}

.page-sub {
  font-size: 1.4052rem;
  color: var(--beige);
  line-height: 1.6;
  font-weight: 300;
}

.page-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2.5rem 6rem;
}

.page-body h2 {
  font-size: 1.8184rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 3rem 0 0.75rem;
  color: var(--beige);
}
.page-body h2:first-child { margin-top: 0; }

.page-body p {
  font-size: 1.4257rem;
  color: var(--beige);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-weight: 300;
}

.page-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.page-body li {
  font-size: 1.4257rem;
  color: var(--beige);
  line-height: 1.75;
  margin-bottom: 0.375rem;
  font-weight: 300;
}

.page-body a {
  color: var(--beige);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.7;
}
.page-body a:hover { opacity: 1; }

/* ── Strava callback ── */
.callback-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  gap: 1.5rem;
}

.callback-wrap h1 {
  font-size: 1.725rem;
  font-weight: 300;
  color: var(--beige);
}

.callback-wrap p {
  font-size: 1.1902rem;
  color: rgba(247,233,197,0.5);
  max-width: 340px;
  line-height: 1.6;
  font-weight: 300;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-video { transition: none; }
  .pill-preview { transition: none; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .hero { flex-direction: column; height: auto; }
  .hero-half { height: 100vh; min-height: 100vh; flex: none; width: 100%; }
  .hero-divider { display: none; }
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.25rem; }
  .story-strip { grid-template-columns: 1fr; }
  .story-cell { border-right: none; border-bottom: 0.5px solid var(--divider); }
  .footer { flex-direction: column; align-items: flex-start; }
  .pill-preview { display: none; }
  .pills { width: 100%; }
}

/* ── Page background image ── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('https://kiru-apps.b-cdn.net/kiru-rows/Kiru%20Row%20Mangroves%20Start%20Frame%2001.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

/* Inner pages on dark bg — ensure text is beige */
.page-hero,
.page-body {
  position: relative;
  z-index: 1;
}

.page-hero { color: var(--beige); }
