/*
 * The app's palette and type, on the web.
 *
 * Only system fonts: on Apple devices this resolves to the exact New York and
 * SF the app uses, so the page and the product look like the same object.
 * Nothing is downloaded from a font CDN — faster, and no licence to read.
 */

:root {
  --base: #07070d;
  --elevated: #12111c;
  --panel: #16151f;
  --gold: #c8a961;
  --gold-soft: #8a7440;
  --gold-lit: #eed18c;
  --text: #f2eee6;
  --text-2: #a9a4b4;
  --text-3: #6f6a7d;
  --hairline: rgba(255, 255, 255, 0.08);

  --philosophy: #9e8cf5;
  --psychology: #5fc5c0;
  --mystic: #c98be0;
  --tradition: #d9a566;
  --science: #6fa8dc;
  --modern: #e08ba8;

  --serif: ui-serif, "New York", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --page: min(1120px, 100% - 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

/* The same violet lift the app puts behind the moon. */
body::before {
  content: "";
  position: fixed;
  inset: -20% -20% auto -20%;
  height: 90vh;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 30%, rgba(52, 43, 92, 0.55), transparent 70%);
  pointer-events: none;
}

.wrap { width: var(--page); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.04; }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; }
h3 { font-size: 21px; line-height: 1.3; }
p { margin: 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.lead { color: var(--text-2); font-size: 19px; max-width: 62ch; }

section { padding: clamp(72px, 11vh, 140px) 0; }

.section-head { display: grid; gap: 14px; margin-bottom: 52px; max-width: 68ch; }

/* ── Header ─────────────────────────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(7, 7, 13, 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
header.scrolled { border-bottom-color: var(--hairline); }

header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); }
.brand span { font-family: var(--serif); font-size: 21px; letter-spacing: 0.07em; }

/* One capsule holding the links, so the bar reads as an object rather than as
   text floating at the top of the page. */
nav {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 5px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14.5px;
  padding: 8px 15px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.lang {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
}
nav .lang { border: 1px solid rgba(200, 169, 97, 0.28); }
nav .lang:hover { background: rgba(200, 169, 97, 0.12); color: var(--gold-lit); }

.mobile-lang {
  display: none;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(200, 169, 97, 0.28);
  border-radius: 999px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero { padding-top: clamp(56px, 9vh, 104px); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.hero-copy { display: grid; gap: 26px; justify-items: start; }
/* `justify-items: start` sizes each child to max-content, which for a
   paragraph means one very long line. Nothing may grow past the column. */
.hero-copy > * { max-width: 100%; }
.hero h1 em { font-style: normal; color: var(--gold); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  font-size: 13px;
  color: var(--text-2);
  padding: 7px 13px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), #b08f4b);
  color: #1a1508;
  font-weight: 650;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 12px 40px rgba(200, 169, 97, 0.18);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(200, 169, 97, 0.26); }
.cta-note { font-size: 13.5px; color: var(--text-3); }

/* ── Phone frame ────────────────────────────────────────────────────────── */

.phone {
  position: relative;
  width: 100%;
  max-width: 330px;
  margin-inline: auto;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(160deg, #2a2836, #101019);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone img, .phone .screen {
  display: block;
  width: 100%;
  /* The width/height attributes reserve the right space while the image
     loads; without `height: auto` the browser keeps the literal height and
     the screenshot comes out stretched. */
  height: auto;
  border-radius: 38px;
  background: var(--base);
}
/* The reveal animation also writes `transform`, so the resting tilt has to be
   more specific than `.reveal.in` or it never comes back. */
.phone.tilt, .phone.tilt.reveal.in { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); }
.phone.tilt.reveal { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg) translateY(22px); }

/* ── Steps ──────────────────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  padding: 30px 26px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  display: grid;
  gap: 12px;
  align-content: start;
}
.step .num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(200, 169, 97, 0.35);
  border-radius: 50%;
}
.step p { color: var(--text-2); font-size: 15.5px; }

/* ── Voices ─────────────────────────────────────────────────────────────── */

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat {
  --tint: var(--gold);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 26px 24px 22px;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--tint) 14%, transparent), transparent 60%),
    rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 14px;
  align-content: start;
  transition: transform 0.25s, border-color 0.25s;
}
.cat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tint) 40%, transparent); }
.cat h3 { color: var(--text); }
.cat .tag { color: color-mix(in srgb, var(--tint) 80%, white 10%); font-size: 14px; }
.cat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.cat li {
  font-size: 13px;
  color: var(--text-2);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.25);
}
.cat .count { font-size: 13px; color: var(--text-3); }

/* ── Reading sample ─────────────────────────────────────────────────────── */

.dream-card {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold-soft);
  border-radius: 16px;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 30px;
}
.dream-card .eyebrow { margin-bottom: 8px; }
.dream-card p { font-family: var(--serif); font-size: 19px; line-height: 1.55; }

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.tabs button {
  font: inherit;
  font-size: 15px;
  color: var(--text-2);
  background: none;
  border: 0;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.tabs button[aria-selected="true"] {
  background: linear-gradient(135deg, var(--gold), #b08f4b);
  color: #1a1508;
  font-weight: 600;
}

.reading {
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: clamp(26px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}
.reading[hidden] { display: none; }
.reading .who { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.reading .who .dot {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 18px;
  background: color-mix(in srgb, var(--tint, var(--gold)) 18%, transparent);
  color: color-mix(in srgb, var(--tint, var(--gold)) 85%, white);
  border: 1px solid color-mix(in srgb, var(--tint, var(--gold)) 35%, transparent);
}
.reading .who h3 { line-height: 1.2; }
.reading .who .tag { font-size: 14px; color: var(--text-3); }
.reading .body { font-family: var(--serif); font-size: 18px; line-height: 1.78; color: #e6e1d8; display: grid; gap: 18px; }
.reading .body p:first-child { font-size: 20.5px; color: var(--text); }
.reading .more { display: none; }
.reading.open .more { display: grid; gap: 18px; }
.reading .toggle {
  margin-top: 20px;
  font: inherit; font-size: 15px;
  color: var(--gold);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.fade { position: relative; }
.reading:not(.open) .fade::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 90px;
  background: linear-gradient(transparent, #0d0c15);
  pointer-events: none;
}

/* ── Chat ───────────────────────────────────────────────────────────────── */

.chat-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 6vw, 76px); align-items: center; }
.thread { display: grid; gap: 14px; }
.bubble {
  padding: 16px 20px;
  border-radius: 20px;
  font-size: 16.5px;
  line-height: 1.62;
  max-width: 86%;
  border: 1px solid var(--hairline);
}
.bubble.me {
  justify-self: end;
  background: linear-gradient(135deg, rgba(200, 169, 97, 0.2), rgba(200, 169, 97, 0.08));
  border-color: rgba(200, 169, 97, 0.28);
  border-bottom-right-radius: 6px;
}
.bubble.them {
  background: rgba(255, 255, 255, 0.035);
  border-bottom-left-radius: 6px;
  font-family: var(--serif);
  color: #e6e1d8;
}
.bubble .name { font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); display: block; margin-bottom: 7px; }

/* ── Shots ──────────────────────────────────────────────────────────────── */

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.shot { display: grid; gap: 16px; justify-items: center; text-align: center; }
.shot p { color: var(--text-2); font-size: 15px; max-width: 30ch; }

/* ── Pricing ────────────────────────────────────────────────────────────── */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan {
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 28px 26px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 8px;
  align-content: start;
}
.plan.best { border-color: rgba(200, 169, 97, 0.4); background: rgba(200, 169, 97, 0.06); }
.plan .amount { font-family: var(--serif); font-size: 38px; line-height: 1; }
.plan .amount small { font-size: 15px; color: var(--text-3); font-family: var(--sans); }
.plan .price { color: var(--gold); font-size: 17px; font-weight: 600; }
.plan .note { color: var(--text-3); font-size: 14px; }
.plan .flag { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

/* ── Safety + footer ────────────────────────────────────────────────────── */

.note {
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 30px 32px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 12px;
}
.note p { color: var(--text-2); font-size: 15.5px; max-width: 78ch; }

footer { border-top: 1px solid var(--hairline); padding: 44px 0 60px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer a { color: var(--text-2); text-decoration: none; font-size: 14.5px; margin-right: 22px; }
footer a:hover { color: var(--text); }
footer small { color: var(--text-3); font-size: 13.5px; }

/* ── Motion ─────────────────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .phone.tilt, .phone.tilt.reveal, .phone.tilt.reveal.in { transform: none; }
}

@media (max-width: 900px) {
  :root { --page: min(680px, 100% - 36px); }
  .hero .wrap, .chat-grid { grid-template-columns: 1fr; }
  .hero-copy { justify-items: start; }
  .steps, .cats, .plans, .shots { grid-template-columns: 1fr; }
  .phone.tilt, .phone.tilt.reveal, .phone.tilt.reveal.in { transform: none; }
  nav { display: none; }
  .mobile-lang { display: inline-block; }
  .shots { gap: 44px; }
}
