/* AstroPal site: base, nav, buttons, hero type, phone frames and the overview.
   Layout borrowed from the LD Coda plug-in sites (aurorax/prismx); colours from themes.css.
   Sections are in sections.css, motion and the hero sky in motion.css. */
@font-face { /* the app's own logo font, bundled in the app (SIL OFL, fonts/JuliusSansOne-OFL.txt) */
  font-family: "Julius Sans One";
  src: url("fonts/julius-sans-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --logo-font: "Julius Sans One", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --r: 14px;
  --r-lg: 20px;                /* the app's cards and panels */
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--sub); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--violet); text-decoration: none; transition: color .2s; }
a:hover { color: var(--head); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--violet-rgb), .4); color: #fff; }
h1, h2, h3 { color: var(--head); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
strong { color: var(--text); font-weight: 600; }
.mono { font-family: var(--mono); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px;
  background: var(--gold); color: var(--cta-ink); font-weight: 600;
}
.skip:focus { top: 12px; color: var(--cta-ink); }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(10, 10, 26, .66); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.wordmark {
  font-family: var(--logo-font); font-size: 1.12rem; letter-spacing: .2em; text-transform: uppercase;
  background: var(--logo); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: .9rem; }
.nav-links a { position: relative; padding: 6px 0; color: var(--sub); }
.nav-links a:hover, .nav-links a[aria-current="true"], .nav-links a[aria-current="page"] { color: var(--head); }
.nav-links a[aria-current]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--gold); box-shadow: 0 0 10px rgba(var(--gold-rgb), .7);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px;
  border-radius: 999px; font: inherit; font-size: .98rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn-primary {
  color: var(--cta-ink); background: linear-gradient(100deg, var(--cta-from), var(--cta-to));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 12px 32px -12px rgba(var(--gold-rgb), .75), 0 0 44px -16px rgba(var(--gold-rgb), .8);
}
.btn-primary:hover {
  color: var(--cta-ink); transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 16px 40px -12px rgba(var(--gold-rgb), .9), 0 0 60px -12px rgba(var(--gold-rgb), .9);
}
.btn-ghost { color: var(--head); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn-ghost:hover { color: var(--head); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .86rem; }
.btn .sep { opacity: .55; }
.btn svg { width: 16px; height: 16px; }

/* ── Hero type (the stage and its sky are in motion.css) ───── */
.hero-copy { text-align: center; max-width: 940px; margin: 0 auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10, 10, 26, .45);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sub);
}
.kicker .dot, .pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none;
  box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .12), 0 0 12px rgba(var(--gold-rgb), .9);
}
html.motion .kicker .dot, html.motion .pill .dot { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(var(--gold-rgb), .04), 0 0 18px rgba(var(--gold-rgb), .5); } }
.hero h1 {
  margin-top: 26px; font-family: var(--logo-font); font-weight: 400; font-size: clamp(2.7rem, 10.5vw, 7.4rem);
  letter-spacing: .14em; line-height: 1; text-transform: uppercase; margin-right: -.14em; /* optical centre */
}
.hero h1 span { background: var(--logo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { text-wrap: balance; margin-top: 22px; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.22; color: var(--head); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 26px; list-style: none;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--sub);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: .85; }

/* ── Phone frame around a real screenshot ─────────────── */
.phone {
  position: relative; padding: 9px; border-radius: 46px; background: linear-gradient(160deg, #2a2a4a, #0e0e22 40%, #1c1c38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 110px -40px rgba(0, 0, 0, .95), 0 30px 90px -50px rgba(var(--violet-rgb), .8);
}
.phone img { width: 100%; border-radius: 38px; background: var(--bg-well); }
.phone::after { /* glass highlight */
  content: ""; position: absolute; inset: 9px; border-radius: 38px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), transparent 26%);
}

/* framed UI crop */
.frame {
  position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--bg-well);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 90px -40px rgba(0, 0, 0, .95), 0 24px 70px -46px rgba(var(--violet-rgb), .8);
}
.frame img { width: 100%; }

/* ── Overview: three real screens, a lead and the key numbers ── */
.overview { position: relative; z-index: 1; padding-top: clamp(28px, 5vw, 64px); }
.trio { position: relative; display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: center; gap: clamp(16px, 3vw, 44px); max-width: 1040px; margin: 0 auto; }
.trio .phone:nth-of-type(1) { transform: perspective(1600px) rotateY(16deg) scale(.92); opacity: .9; }
.trio .phone:nth-of-type(3) { transform: perspective(1600px) rotateY(-16deg) scale(.92); opacity: .9; }
.trio figcaption { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); }
.trio .glow {
  position: absolute; inset: 6% 10% 0; z-index: -1; filter: blur(70px); opacity: .8; pointer-events: none;
  background: radial-gradient(45% 50% at 50% 45%, rgba(var(--violet-rgb), .5), transparent 70%),
              radial-gradient(30% 40% at 70% 70%, rgba(var(--gold-rgb), .18), transparent 70%);
}
.overview-lead { max-width: 780px; margin: clamp(64px, 8vw, 96px) auto 0; text-align: center; font-size: clamp(1.15rem, 2vw, 1.38rem); line-height: 1.55; color: #d4d4ee; letter-spacing: -.01em; }
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(36px, 5vw, 56px); list-style: none;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
}
.stats li { padding: 22px 24px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats .v { font-family: var(--mono); font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 500; letter-spacing: -.03em; color: var(--head); line-height: 1.15; }
.stats .v small { margin-left: 4px; font-size: .5em; letter-spacing: 0; color: var(--sub); }
.stats .k { margin-top: 6px; font-size: .86rem; line-height: 1.4; }
