/* The app's own colours, from Theme.swift. */
:root {
  --brand: #6600cc;
  --brand-deep: #3b2fb5;
  --accent: #6600cc;
  --icon-bg: #f0e6ff;
  --screen: #f5f5f5;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #5f6368;
  --shadow: 0 4px 18px rgba(30, 20, 60, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #d8b4fe;
    --icon-bg: #4b5563;
    --screen: #1f2937;
    --card: #374151;
    --text: #f5f5f7;
    --muted: #c0c6d0;
    --shadow: none;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--screen);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a {
  color: var(--accent);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  padding: 18px 0 44px;
}

header.hero {
  padding-bottom: 72px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-links a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.2);
}

.page-title {
  text-align: center;
  padding-top: 36px;
}

.page-title h1 {
  font-size: 2.4rem;
}

.page-title p {
  margin-top: 8px;
  opacity: 0.9;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.hero-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 56px;
}

.hero-copy {
  flex: 1 1 50%;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-copy > p {
  font-size: 1.2rem;
  opacity: 0.92;
  max-width: 500px;
  margin-bottom: 26px;
}

.hero-copy .hero-note {
  font-size: 0.95rem;
  margin: 12px 0 0;
  opacity: 0.85;
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

/* The breathing circle: Box breathing, four seconds a phase. */
.breath {
  position: relative;
  flex: 0 0 auto;
  width: min(340px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #1c2c55, #0d0d1f 72%);
  box-shadow: 0 18px 50px rgba(10, 5, 40, 0.45);
}

.breath-ring {
  position: absolute;
  inset: 5%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.breath-circle {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b68f5, #3a7bdc);
  box-shadow: 0 0 44px rgba(90, 120, 240, 0.55);
  animation: breathe 16s ease-in-out infinite;
}

.breath-labels span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0;
  animation: phase 16s linear infinite;
}

.breath-labels span:nth-child(2) { animation-delay: 4s; }
.breath-labels span:nth-child(3) { animation-delay: 8s; }
.breath-labels span:nth-child(4) { animation-delay: 12s; }

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  25%, 50% { transform: scale(1.6); }
  75% { transform: scale(1); }
}

@keyframes phase {
  0%, 24% { opacity: 1; }
  25%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .breath-circle {
    animation: none;
    transform: scale(1.3);
  }

  .breath-labels span {
    animation: none;
  }

  .breath-labels span:first-child {
    opacity: 1;
  }
}

/* Sections */
.band {
  padding: 72px 0;
}

.band.alt {
  background: var(--card);
}

.band h2 {
  font-size: 2.1rem;
  margin-bottom: 14px;
  color: var(--accent);
}

.band.session {
  background: linear-gradient(180deg, #0d0d1f, #1c2c55);
  color: #fff;
}

.band.session h2 {
  color: #fff;
}

.band.plus {
  background: var(--icon-bg);
}

.center {
  text-align: center;
}

.showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}

.showcase.flip {
  flex-direction: row-reverse;
}

.showcase-copy {
  flex: 1 1 0;
  max-width: 480px;
  font-size: 1.1rem;
}

.showcase-copy .small {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 16px;
}

.phone {
  flex: 0 0 auto;
  width: 270px;
  max-width: 70vw;
  border-radius: 34px;
  box-shadow: 0 14px 40px rgba(30, 20, 60, 0.22);
}

.watches {
  flex: 0 0 auto;
  display: flex;
  gap: 16px;
}

.watches img {
  width: 170px;
  max-width: 38vw;
  border-radius: 36px;
  box-shadow: 0 10px 30px rgba(30, 20, 60, 0.22);
}

.ticks {
  list-style: none;
  margin-top: 6px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.52em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b68f5, #3a7bdc);
}

.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  background: var(--screen);
  border-radius: 20px;
  padding: 24px;
}

.card h3 {
  margin-bottom: 6px;
}

.card p {
  color: var(--muted);
}

.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.band.cta h2 {
  color: #fff;
  margin-bottom: 22px;
}

.cta p {
  margin-top: 16px;
}

.cta p a {
  color: #fff;
}

/* Policy and roadmap pages */
#intro,
#privacy,
#terms {
  padding: 56px 0;
  text-align: center;
}

#privacy,
#terms {
  text-align: left;
}

#privacy .container,
#terms .container {
  max-width: 820px;
}

#intro h2,
#features > .container > h2 {
  font-size: 2.1rem;
  color: var(--accent);
  margin-bottom: 14px;
  text-align: center;
}

#privacy h2,
#terms h2 {
  font-size: 2.1rem;
  color: var(--accent);
  margin-bottom: 20px;
  text-align: center;
}

#intro p {
  font-size: 1.15rem;
  max-width: 660px;
  margin: 0 auto;
}

#features {
  padding: 0 0 64px;
}

.content-card {
  background: var(--card);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  text-align: left;
}

.content-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.content-card h4 {
  font-size: 1.1rem;
  margin: 18px 0 6px;
}

.content-card p {
  margin-bottom: 10px;
}

.roadmap-note {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.roadmap-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
}

.roadmap-item {
  flex: 0 1 280px;
  text-align: center;
}

.roadmap-shot {
  width: 100%;
  max-width: 260px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(30, 20, 60, 0.18);
  margin-bottom: 16px;
}

.roadmap-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: 12px;
  background: #e3f4e6;
  color: #1b5e20;
  margin-bottom: 8px;
}

.roadmap-tag.plus {
  background: var(--icon-bg);
  color: var(--accent);
}

.roadmap-item h3 {
  margin-bottom: 8px;
}

.roadmap-item p {
  color: var(--muted);
}

.roadmap-list {
  max-width: 800px;
  margin: 0 auto 20px;
}

.roadmap-list ul {
  padding-left: 20px;
}

.roadmap-list li {
  margin-bottom: 8px;
}

/* Footer */
footer {
  background: #0d0d1f;
  color: #c7c9d6;
  padding: 36px 0;
  text-align: center;
  font-size: 0.92rem;
}

footer a {
  color: #d8b4fe;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}

.footer-note {
  max-width: 720px;
  margin: 14px auto 0;
  font-size: 0.82rem;
  opacity: 0.8;
}

@media (max-width: 820px) {
  .hero-body,
  .showcase,
  .showcase.flip {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }

  .hero-copy > p {
    margin-left: auto;
    margin-right: auto;
  }

  .site-nav {
    justify-content: center;
  }

  .showcase-copy {
    max-width: 560px;
  }

  .ticks {
    text-align: left;
  }

  .band {
    padding: 52px 0;
  }
}
