/* Similia Radionics: the landing's one stylesheet, for every page.
   Plain CSS, no JavaScript and no request to any other site: the privacy page says so.
   Light and dark follow the device, like the app. Brand colours: cyan #06B6D4, deep teal #0E7490,
   blue #4F7CFF, indigo #6366F1. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  /* Outfit, variable, Latin subset (@fontsource-variable/outfit 5.3.0, SIL OFL: fonts/OFL.txt). */
  src: url("/fonts/outfit-latin-wght-5.3.0.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --cyan: #06b6d4;
  --teal: #0e7490;
  --blue: #4f7cff;
  --indigo: #6366f1;

  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(15, 23, 42, 0.08);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 34px -14px rgba(15, 23, 42, 0.14);
  --link: #0e7490;
  --link-hover: #155e75;
  --label: #0e7490;
  --grad-text: linear-gradient(120deg, #0e7490 0%, #3d63e0 60%, #4f46e5 100%);
  --grad-solid: linear-gradient(135deg, #0e7490 0%, #3d63e0 100%);
  --glow-1: rgba(6, 182, 212, 0.16);
  --glow-2: rgba(99, 102, 241, 0.12);
  --ring: rgba(6, 182, 212, 0.55);
  --focus: #0e7490;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1f;
    --text: #f1f5f9;
    --muted: #a5b4c8;
    --line: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.045);
    --glass-line: rgba(255, 255, 255, 0.09);
    --shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.7);
    --link: #67e8f9;
    --link-hover: #a5f3fc;
    --label: #67e8f9;
    --grad-text: linear-gradient(120deg, #22d3ee 0%, #4f7cff 55%, #818cf8 100%);
    --glow-1: rgba(6, 182, 212, 0.18);
    --glow-2: rgba(99, 102, 241, 0.22);
    --ring: rgba(34, 211, 238, 0.5);
    --focus: #67e8f9;
  }
}

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

/* `hidden` wins over any display rule below (the store badges rely on it). */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The sky: soft cyan and indigo light behind every page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(56rem 36rem at 12% -12%, var(--glow-1), transparent 62%),
    radial-gradient(46rem 34rem at 96% 4%, var(--glow-2), transparent 62%);
}

/* At night, a few still stars, as in the app. */
@media (prefers-color-scheme: dark) {
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
      radial-gradient(1.5px 1.5px at 8% 14%, rgba(255, 255, 255, 0.55), transparent 70%),
      radial-gradient(1px 1px at 22% 38%, rgba(255, 255, 255, 0.4), transparent 70%),
      radial-gradient(1.5px 1.5px at 36% 8%, rgba(255, 255, 255, 0.45), transparent 70%),
      radial-gradient(1px 1px at 47% 62%, rgba(255, 255, 255, 0.3), transparent 70%),
      radial-gradient(1.5px 1.5px at 58% 22%, rgba(255, 255, 255, 0.5), transparent 70%),
      radial-gradient(1px 1px at 69% 48%, rgba(255, 255, 255, 0.35), transparent 70%),
      radial-gradient(1.5px 1.5px at 81% 12%, rgba(255, 255, 255, 0.5), transparent 70%),
      radial-gradient(1px 1px at 91% 34%, rgba(255, 255, 255, 0.4), transparent 70%),
      radial-gradient(1px 1px at 14% 82%, rgba(255, 255, 255, 0.3), transparent 70%),
      radial-gradient(1.5px 1.5px at 76% 78%, rgba(255, 255, 255, 0.35), transparent 70%),
      radial-gradient(1px 1px at 94% 90%, rgba(255, 255, 255, 0.3), transparent 70%),
      radial-gradient(1px 1px at 33% 92%, rgba(255, 255, 255, 0.25), transparent 70%);
  }
}

img,
svg {
  display: block;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

h2 {
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}

h3 {
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

strong {
  font-weight: 600;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2.5rem, 44rem);
  margin-inline: auto;
}

/* Small capitals over a heading, like the app's labels. */
.label,
.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
}

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Header */

.site-header {
  padding-block: 1.25rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  flex-shrink: 0;
  border-radius: 8px;
}

.brand img {
  height: 3.25rem;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1.25rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

@media (max-width: 30rem) {
  .brand img {
    height: 2.75rem;
  }
}

@media (max-width: 22.5rem) {
  .brand img {
    height: 2.4rem;
  }

  .nav {
    gap: 0.25rem 0.9rem;
    font-size: 0.9rem;
  }
}

/* Home: hero */

.hero {
  padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 8vw, 6rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 52rem) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.lead {
  max-width: 34rem;
  margin-bottom: 2rem;
  font-size: clamp(1.12rem, 2.2vw, 1.3rem);
  color: var(--muted);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.soon .dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.18);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

/* Apple's badge is drawn edge to edge; Google's carries its own margin. */
.badges .app-store {
  height: 3rem;
  width: auto;
}

.badges .google-play {
  height: 4.2rem;
  width: auto;
  margin: -0.6rem -0.45rem;
}

/* The moon of the app's Start, with the rings a session sends out. */
.orb {
  position: relative;
  width: min(23rem, 64vw);
  aspect-ratio: 1;
  margin-inline: auto;
}

.orb span {
  position: absolute;
  inset: 25%;
  border-radius: 50%;
}

.orb .ring {
  border: 1.5px solid var(--ring);
  opacity: 0;
  animation: ripple 7.5s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
}

.orb .ring:nth-child(2) {
  animation-delay: 2.5s;
}

.orb .ring:nth-child(3) {
  animation-delay: 5s;
}

.orb .moon {
  background:
    radial-gradient(circle at 33% 28%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 50% 50%, #22d3ee 0%, #4f7cff 64%, #6366f1 100%);
  box-shadow:
    0 0 2.5rem rgba(6, 182, 212, 0.45),
    0 0 6rem rgba(79, 124, 255, 0.32),
    inset 0 -1.2rem 2.4rem rgba(49, 46, 129, 0.35);
  animation: breathe 7.5s ease-in-out infinite;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }

  100% {
    transform: scale(1.95);
    opacity: 0;
  }
}

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

  50% {
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orb .moon,
  .orb .ring {
    animation: none;
  }

  .orb .ring:nth-child(1) {
    transform: scale(1.3);
    opacity: 0.4;
  }

  .orb .ring:nth-child(2) {
    transform: scale(1.6);
    opacity: 0.25;
  }

  .orb .ring:nth-child(3) {
    transform: scale(1.9);
    opacity: 0.12;
  }
}

/* Home: sections */

.section {
  padding-block: clamp(2rem, 5vw, 4rem);
}

/* Running text keeps a readable line length, aligned with the rest of the page. */
.prose {
  max-width: 44rem;
}

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

.steps,
.principles {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.step {
  padding: 1.6rem 1.5rem 1.2rem;
}

.step .num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  font-weight: 500;
  color: #ffffff;
  background: var(--grad-solid);
}

.principles li {
  padding: 0.5rem 0.25rem;
}

.principles svg,
.notice svg {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.9rem;
  color: var(--link);
}

.notice {
  max-width: 48rem;
  display: grid;
  gap: 0.25rem 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-left: 3px solid var(--cyan);
}

@media (min-width: 36rem) {
  .notice {
    grid-template-columns: auto 1fr;
  }
}

.notice h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.notice p {
  color: var(--text);
}

.notice p:last-child {
  margin-bottom: 0;
}

/* Privacy and support */

.doc {
  padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5rem);
}

.doc h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  margin-bottom: 0.5rem;
}

.doc h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.9rem;
  font-size: 1.5rem;
  font-weight: 500;
}

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

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.doc li {
  margin-bottom: 0.7rem;
}

.doc li::marker {
  color: var(--cyan);
}

.summary {
  margin: 2rem 0 0.5rem;
  padding: 1.4rem 1.5rem;
}

.summary p {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--grad-solid);
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(14, 116, 144, 0.7);
}

.button:hover {
  color: #ffffff;
  filter: brightness(1.08);
}

.button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.faq {
  display: grid;
  gap: 0.9rem;
}

.faq .card {
  padding: 1.3rem 1.5rem 0.4rem;
}

.faq h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

.center {
  text-align: center;
}

/* Footer */

.site-footer {
  margin-top: auto;
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 1.25rem 2rem;
}

@media (min-width: 52rem) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-grid p {
  margin: 0;
}

.footer-name {
  margin-bottom: 0.25rem !important;
  font-weight: 500;
  color: var(--text);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--text);
}

.fineprint {
  grid-column: 1 / -1;
  font-size: 0.85rem;
}
