/* Recallog landing — shared styles. Light/dark via CSS variables. */

:root {
  --bg: oklch(0.97 0.012 80);
  --bg-alt: oklch(0.94 0.018 75);
  --surface: #fff;
  --ink: oklch(0.22 0.015 60);
  --ink-2: oklch(0.42 0.012 60);
  --ink-3: oklch(0.58 0.012 60);
  --line: oklch(0.89 0.014 70);
  --accent: oklch(0.62 0.13 40);
  --accent-soft: oklch(0.93 0.04 50);
  --accent-glow: oklch(0.62 0.13 40 / 0.28);
  --header-bg: oklch(0.97 0.012 80 / 0.85);
  --cta-bg: #0f2e88;
}

/* Two separate blocks are required — CSS has no way to merge a @media condition
   with an attribute selector. Keep both in sync when changing dark-mode tokens. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(0.18 0.012 60);
    --bg-alt: oklch(0.22 0.014 60);
    --surface: oklch(0.24 0.014 60);
    --ink: oklch(0.96 0.008 80);
    --ink-2: oklch(0.78 0.01 70);
    --ink-3: oklch(0.6 0.01 70);
    --line: oklch(0.32 0.014 60);
    --accent: oklch(0.72 0.14 45);
    --accent-soft: oklch(0.32 0.04 50);
    --accent-glow: oklch(0.72 0.14 45 / 0.35);
    --header-bg: oklch(0.18 0.012 60 / 0.85);
  }
}

:root[data-theme="dark"] {
  --bg: oklch(0.18 0.012 60);
  --bg-alt: oklch(0.22 0.014 60);
  --surface: oklch(0.24 0.014 60);
  --ink: oklch(0.96 0.008 80);
  --ink-2: oklch(0.78 0.01 70);
  --ink-3: oklch(0.6 0.01 70);
  --line: oklch(0.32 0.014 60);
  --accent: oklch(0.72 0.14 45);
  --accent-soft: oklch(0.32 0.04 50);
  --header-bg: oklch(0.18 0.012 60 / 0.85);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

a {
  -webkit-tap-highlight-color: transparent;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}

.logo__icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

.logo__name {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.4px;
}

.cta-btn {
  padding: 12px 22px;
  background: var(--cta-bg);
  color: #fff;
  border-radius: 8px;
  font: 600 15px/1 Inter, system-ui, sans-serif;
  letter-spacing: -0.1px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.cta-btn:hover {
  background: #0a226a;
}

.cta-btn:active {
  transform: scale(0.98);
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--line);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-2);
  margin-right: 12px;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.icon-moon {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: block;
}

[data-theme="dark"] .icon-sun {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon {
    display: block;
  }

  :root:not([data-theme="light"]) .icon-sun {
    display: none;
  }
}

.header-right {
  display: flex;
  align-items: center;
}

/* ============ Hero ============ */
.hero {
  padding: 40px 32px 80px;
}

.hero-spacer {
  padding: 20px 0;
}

.hero-single,
.hero-stack {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-stack {
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.hero-split {
  max-width: 1240px;
  margin: 0 auto;
}

.hero-lockup {
  display: flex;
  align-items: center;
}

.hero-lockup--center {
  justify-content: center;
}

.hero-lockup__name {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}

.hero-accent-line {
  margin: 0 0 24px 130px;
  padding: 4px 12px;
  display: inline-flex;
  border-radius: 999px;
  width: 210px;
  /* height: 6px; */
  background: var(--accent);
}

.app-icon {
  display: block;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.05);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  font: 600 12px/1 Inter, system-ui;
  color: var(--accent);
  letter-spacing: 0.3px;
  margin-top: 24px;
}

.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -1.6px;
  color: var(--ink);
  margin: 30px 0 0;
}

.hero-single .hero-title {
  font-size: clamp(48px, 6vw, 84px);
}

.hero-split .hero-title {
  font-size: clamp(56px, 7vw, 100px);
  letter-spacing: -2px;
  line-height: 1;
  max-width: 980px;
  margin: 20px auto 0;
}

.hero-stack .hero-title {
  font-size: clamp(48px, 5.5vw, 76px);
  letter-spacing: -1.4px;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 28px 0 0;
  max-width: 480px;
  font-weight: 400;
}

.hero-split .hero-sub {
  margin: 24px auto 0;
  max-width: 580px;
  text-align: center;
}

.rotating-word {
  position: relative;
  display: inline-block;
  color: var(--accent);
  font-style: italic;
}

.rotating-word__measure {
  visibility: hidden;
  white-space: pre;
}

.rotating-word__item {
  position: absolute;
  left: 0;
  top: 0;
  white-space: pre;
  opacity: 0;
  transform: translateY(22%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rotating-word__item.is-active {
  opacity: 1;
  transform: translateY(0);
}

.rotating-word__item.is-prev {
  opacity: 0;
  transform: translateY(-22%);
}

.badge-row {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-split .badge-row {
  justify-content: center;
  margin-top: 32px;
}

.meta-row {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
  font: 400 13px/1.4 Inter, system-ui;
  color: var(--ink-3);
}

.meta-row__sep {
  color: var(--line);
}

.hero-split__center {
  text-align: center;
  margin-bottom: 32px;
}

.hero-phone-slot {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 720px;
}

.halo {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(40px);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.halo--single {
  width: 520px;
  height: 520px;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
}

.halo--split {
  width: 700px;
  height: 500px;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(50px);
}

.halo--stack {
  width: 520px;
  height: 520px;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
}

.halo--gallery {
  width: 380px;
  height: 380px;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
}

.halo--download {
  width: 720px;
  height: 720px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  opacity: 0.7;
}

.phone-scaled {
  position: relative;
  z-index: 1;
  transform-origin: top center;
}

.phone-scaled--78 {
  transform: scale(0.78);
}

.phone-scaled--72 {
  transform: scale(0.72);
}

.phone-scaled--70 {
  transform: scale(0.7);
}

.phone-img {
  display: block;
  max-width: 100%;
  height: auto;
}

.phone-img--dark {
  display: none;
}

[data-theme="dark"] .phone-img--light {
  display: none;
}

[data-theme="dark"] .phone-img--dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone-img--light {
    display: none;
  }

  :root:not([data-theme="light"]) .phone-img--dark {
    display: block;
  }
}

.split-phones {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  min-height: 700px;
}

.split-phones .phone-tilt-l {
  position: relative;
  z-index: 1;
  transform: scale(0.7) translateY(-20px) rotate(-3deg);
  transform-origin: top center;
}

.split-phones .phone-tilt-r {
  position: relative;
  z-index: 1;
  transform: scale(0.7) translateY(40px) rotate(3deg);
  transform-origin: top center;
}

.stack-phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 720px;
}

.stack-phones .phone-back-l {
  position: absolute;
  z-index: 1;
  transform: scale(0.6) translate(-180px, 60px) rotate(-8deg);
  transform-origin: top center;
  opacity: 0.85;
}

.stack-phones .phone-back-r {
  position: absolute;
  z-index: 1;
  transform: scale(0.6) translate(180px, 60px) rotate(8deg);
  transform-origin: top center;
  opacity: 0.85;
}

.stack-phones .phone-front {
  position: relative;
  z-index: 2;
  transform: scale(0.72);
  transform-origin: top center;
}

/* ============ Store badges ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px 18px 26px;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.badge--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.badge--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px var(--accent-glow);
}

.badge--soon {
  background: transparent;
  color: var(--ink-3);
  border: 1.5px dashed var(--line);
  cursor: not-allowed;
}

.badge__icon {
  flex-shrink: 0;
  color: #fff;
}
.badge--soon .badge__icon {
  color: var(--ink-3);
}

.badge__copy {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge__small {
  font-size: 11px;
  opacity: 0.75;
  letter-spacing: 0.3px;
  font-weight: 500;
}

.badge--soon .badge__small {
  opacity: 1;
}

.badge__big {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-top: 3px;
}

/* ============ Gallery ============ */
.gallery {
  background: var(--bg-alt);
  padding: 120px 0 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.gallery__heading {
  margin-bottom: 20px;
  text-align: center;
}

.kicker {
  font: 600 12px/1 Inter, system-ui;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gallery__title {
  font-family: 'Newsreader', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin: 12px auto 0;
  max-width: 800px;
}

.gallery__title em {
  font-style: italic;
  color: var(--ink-3);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: none;
}

.feature__copy {
  order: 1;
}

.feature__phone {
  order: 2;
}

.feature--reverse .feature__copy {
  order: 2;
}

.feature--reverse .feature__phone {
  order: 1;
}

.feature__kicker {
  font: 700 12px/1 Inter, system-ui;
  color: var(--accent);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.feature__title {
  font-family: 'Newsreader', serif;
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 14px 0 18px;
}

.feature__title em {
  font-style: italic;
  color: var(--ink-3);
}

.feature__body {
  font: 400 18px/1.55 Inter, system-ui;
  color: var(--ink-2);
  margin: 0;
  max-width: 460px;
}

.feature__phone {
  display: flex;
  justify-content: center;
  position: relative;
  min-height: 640px;
}

/* ============ Privacy ============ */
.privacy {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.privacy__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.privacy__title {
  font-family: 'Newsreader', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin: 14px 0 0;
}

.privacy__title em {
  font-style: italic;
}

.privacy__body {
  font: 400 17px/1.6 Inter, system-ui;
  color: var(--ink-2);
  margin: 20px auto 0;
  max-width: 620px;
}

.pill-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 13px/1 Inter, system-ui;
  letter-spacing: 0.2px;
}

/* ============ Download ============ */
.download {
  padding: 140px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.download__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.download__title {
  font-family: 'Newsreader', serif;
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1.4px;
  color: var(--ink);
  margin: 36px 0 0;
}

.download__title em {
  font-style: italic;
}

.download__body {
  font: 400 19px/1.55 Inter, system-ui;
  color: var(--ink-2);
  margin: 24px auto 0;
  max-width: 520px;
}

.download__badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-alt);
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.site-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: var(--ink-3);
  text-decoration: none;
  font: 400 14px/1 Inter, system-ui;
}

.site-footer__links a:hover {
  color: var(--ink);
}

.site-footer__bottom {
  padding-top: 24px;
  font: 400 13px/1.4 Inter, system-ui;
  color: var(--ink-3);
  text-align: center;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {

  .hero-single,
  .hero-stack {
    grid-template-columns: 1fr;
  }

  .hero-phone-slot {
    min-height: 0;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
  }

  .feature__copy,
  .feature__phone {
    order: 1 !important;
  }

  .feature__phone {
    min-height: 580px;
  }

  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .split-phones {
    gap: 0;
  }

  .split-phones .phone-tilt-l,
  .split-phones .phone-tilt-r {
    transform: scale(0.5);
  }

  .stack-phones .phone-back-l,
  .stack-phones .phone-back-r {
    display: none;
  }
}