/* Phaydeon — shared styles. Dark, low-stimulation palette matching the app. */
:root {
  --deep: #0a0d1c;
  --dusk: #1f2142;
  --glow: #8cc7f2;
  --lilac: #b8a3eb;
  --mint: #8fe0c7;
  --peach: #fac7a8;
  --text: rgba(255, 255, 255, 0.92);
  --subtext: rgba(255, 255, 255, 0.64);
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --radius: 22px;
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--dusk) 0%, var(--deep) 55%, #070914 100%) fixed;
  background-color: var(--deep);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--glow); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #b5dcf8; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--glow); color: var(--deep); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--rounded); font-weight: 300; font-size: 22px; letter-spacing: 0.08em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; font-size: 15px; }
.nav ul a { color: var(--subtext); text-decoration: none; }
.nav ul a:hover { color: var(--text); }
@media (max-width: 560px) { .nav ul li.optional { display: none; } }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 1fr; padding: 64px 0 96px; } }

.eyebrow { color: var(--mint); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-family: var(--rounded); font-weight: 200; font-size: clamp(44px, 8vw, 76px); line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 22px; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--glow), var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--subtext); max-width: 34em; margin: 0 0 32px; font-weight: 300; }

.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(135deg, var(--glow), var(--lilac)); color: var(--deep); }
.btn-primary:hover { color: var(--deep); filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.24); }
.note { color: var(--subtext); font-size: 14px; margin: 16px 0 0; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.hero-visual::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 199, 242, 0.42), rgba(184, 163, 235, 0.16) 45%, transparent 70%);
  filter: blur(8px);
  animation: breathe 12s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(0.82); opacity: 0.7; } 33% { transform: scale(1.04); opacity: 1; } 50% { transform: scale(1.04); opacity: 1; } }
.hero-visual .phone { position: relative; width: min(56%, 250px); }
.hero-visual .phone.back { position: absolute; width: min(48%, 215px); transform: translate(58%, 6%) rotate(5deg); opacity: 0.9; }
.hero-visual .phone.front { transform: translateX(-18%) rotate(-3deg); z-index: 1; }

/* ---------- Phone frame ---------- */
.phone {
  position: relative;
  border-radius: 13% / 6.2%;
  background: #05060c;
  padding: 3.2%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 80px -30px rgba(140, 199, 242, 0.45);
}
.phone img { width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: 10.5% / 4.9%; }
/* A consistent Dynamic Island on every screenshot. */
.phone::after {
  content: ""; position: absolute; left: 50%; top: 4.6%; width: 28%; height: 3.6%;
  transform: translateX(-50%); background: #000; border-radius: 999px;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin: 0 0 40px; }
h2 { font-family: var(--rounded); font-weight: 300; font-size: clamp(32px, 5vw, 46px); line-height: 1.12; margin: 0 0 14px; }
h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.section-head p { color: var(--subtext); margin: 0; font-size: 18px; }

.principles { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.principle p { margin: 0; color: var(--subtext); }
.dot { width: 40px; height: 40px; border-radius: 50%; margin-bottom: 18px; }
.dot.glow { background: radial-gradient(circle at 35% 35%, #fff, var(--glow) 45%, transparent 72%); }
.dot.mint { background: radial-gradient(circle at 35% 35%, #fff, var(--mint) 45%, transparent 72%); }
.dot.lilac { background: radial-gradient(circle at 35% 35%, #fff, var(--lilac) 45%, transparent 72%); }

/* Activities gallery: horizontal, snap-scrolling row of phones. */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 250px); gap: 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 16px 28px; margin: 0 -16px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
@media (min-width: 640px) { .gallery { margin: 0 -28px; padding: 10px 28px 28px; } }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery figcaption { margin-top: 18px; }
.gallery figcaption p { margin: 0; color: var(--subtext); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; background: rgba(143, 224, 199, 0.12); color: var(--mint); }
.scroll-hint { color: var(--subtext); font-size: 14px; margin: 6px 0 0; }

.privacy { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(26px, 5vw, 52px); }
@media (min-width: 860px) { .privacy { grid-template-columns: 1fr 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: rgba(143, 224, 199, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fe0c7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }

.crisis { border: 1px solid rgba(250, 199, 168, 0.35); background: rgba(250, 199, 168, 0.06); border-radius: var(--radius); padding: 24px 26px; }
.crisis h2 { font-size: 24px; color: var(--peach); margin-bottom: 8px; font-family: inherit; font-weight: 600; }
.crisis p { margin: 0 0 8px; }
.crisis p:last-child { margin: 0; color: var(--subtext); font-size: 15px; }
.crisis a { color: var(--peach); }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; margin-top: 40px; color: var(--subtext); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
footer a { color: var(--subtext); }
footer .disclaimer { margin: 18px 0 0; max-width: 60em; }

/* ---------- Long-form (privacy policy) ---------- */
.doc { max-width: 720px; padding: 32px 0 40px; }
.doc h1 { font-size: clamp(38px, 6vw, 54px); margin-bottom: 8px; }
.doc .updated { color: var(--subtext); margin: 0 0 36px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; font-family: inherit; font-weight: 600; }
.doc p, .doc li { color: rgba(255, 255, 255, 0.82); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.callout { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 24px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual::before { animation: none; }
}
