/* Baseline marketing site — tokens aligned with baseline-mobile theme */
:root {
  --bg: #ffffff;
  --surface: #f4f6f9;
  --surface-muted: #eef1f5;
  --tile-highlight: #eef4f8;
  --border: #e8ecf1;
  --text: #1a1f2e;
  --text-secondary: #4a5568;
  --muted: #8b95a5;
  --accent: #5bb5e8;
  --accent-dark: #3a9fd9;
  --accent-light: #ebf6fd;
  --accent-muted: #c5e8f7;
  --gradient-start: #7ec8f0;
  --gradient-end: #4ba8e0;
  --sky: #84cbfb;
  --sky-soft: #89cff0;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow: rgba(26, 31, 46, 0.08);
  --radius: 16px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* —— Atmosphere —— */
.sky-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.sky-field::before {
  content: "";
  position: absolute;
  inset: -20% -10% 20%;
  background:
    radial-gradient(ellipse 70% 50% at 70% 10%, rgba(126, 200, 240, 0.55), transparent 55%),
    radial-gradient(ellipse 55% 45% at 15% 30%, rgba(137, 207, 240, 0.4), transparent 50%),
    linear-gradient(180deg, #d6eefb 0%, #eef6fc 42%, #ffffff 78%);
}

.sky-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235bb5e8' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.7;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px var(--shadow);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 18px rgba(75, 168, 224, 0.35);
}

.nav-cta:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-top: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.25rem;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
  }
}

/* —— Layout —— */
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 0.65rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6.5rem 0 4rem;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: end;
}

.hero-brand {
  width: min(100%, 280px);
  margin-bottom: 1.25rem;
  animation: rise 0.9s ease both;
}

.hero-tagline {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text);
  animation: rise 0.9s 0.08s ease both;
}

.hero-copy {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 28rem;
  animation: rise 0.9s 0.16s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s 0.24s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  box-shadow: 0 10px 28px rgba(75, 168, 224, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-phones {
  position: relative;
  height: 520px;
  animation: rise 1s 0.2s ease both;
}

.phone {
  position: absolute;
  width: 230px;
  border-radius: 32px;
  background: #0b0f14;
  padding: 10px;
  box-shadow:
    0 28px 60px rgba(26, 31, 46, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.phone-screen {
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 9 / 19.2;
  position: relative;
}

.phone-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone--main {
  right: 8%;
  bottom: 0;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.phone--side {
  left: 4%;
  bottom: 48px;
  width: 200px;
  z-index: 1;
  transform: rotate(-8deg);
  animation: float 7s 0.6s ease-in-out infinite;
  opacity: 0.96;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.phone--side {
  animation-name: float-tilt;
}

@keyframes float-tilt {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-8deg) translateY(-10px);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-phones {
    height: 440px;
    margin-top: 1rem;
  }

  .phone--main {
    right: 50%;
    transform: translateX(55%);
  }

  .phone--side {
    left: 50%;
    transform: translateX(-95%) rotate(-8deg);
    bottom: 24px;
  }
}

/* —— Features —— */
.features {
  background: var(--surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature {
  padding: 0.25rem 0;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  font-size: 1.15rem;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* —— Screenshots strip —— */
.shots-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.shot-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.5rem;
}

.shot {
  text-align: center;
}

.shot-frame {
  display: inline-block;
  width: min(100%, 240px);
  border-radius: 28px;
  background: #0b0f14;
  padding: 9px;
  box-shadow: 0 18px 40px var(--shadow);
  margin-bottom: 1rem;
}

.shot-frame .phone-shot {
  border-radius: 20px;
  aspect-ratio: 9 / 19.2;
  height: auto;
}

.shot h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 750;
}

.shot p {
  margin: 0 auto;
  max-width: 18rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .shot-rail {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .shot-rail {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* —— Pillars —— */
.pillars {
  background: linear-gradient(180deg, #fff 0%, var(--tile-highlight) 100%);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.pillar {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 180px;
  isolation: isolate;
}

.pillar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 20%, rgba(10, 18, 28, 0.72) 100%);
}

.pillar span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

@media (max-width: 800px) {
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pillar-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Download —— */
.download {
  position: relative;
  overflow: hidden;
}

.download .sky-field::before {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(126, 200, 240, 0.45), transparent 60%),
    linear-gradient(180deg, var(--accent-light), #fff 70%);
}

.download-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.download-inner .section-lead {
  margin-inline: auto;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.store-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  width: min(100%, 260px);
  text-align: center;
}

.store-card img {
  width: 148px;
  height: 148px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.store-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.store-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.store-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* —— Legal pages —— */
.legal-hero {
  position: relative;
  padding: 4.5rem 0 2.5rem;
  overflow: hidden;
}

.legal-hero .wrap {
  position: relative;
  z-index: 1;
}

.legal-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.legal-body {
  padding: 0 0 4rem;
}

.legal-body article {
  max-width: 720px;
}

.legal-body h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.legal-body p,
.legal-body li {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.legal-body ul {
  padding-left: 1.2rem;
}

.legal-body li {
  margin-bottom: 0.4rem;
}

.license-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.92rem;
}

.license-table th,
.license-table td {
  text-align: left;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.license-table th {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.license-table td:first-child {
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
}

/* —— Footer —— */
.site-footer {
  background: #0b121a;
  color: #c5d0dc;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 750;
  font-size: 1.1rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  filter: brightness(1.15);
}

.footer-blurb {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 22rem;
  color: #9aabbc;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: #9aabbc;
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--sky-soft);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #7a8b9c;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
