/* Bone Dog Studios — site design system (new pages only; legal pages use style.css) */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-vf.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-vf.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0B0B0D;
  --bg-raised: #131316;
  --bone: #F2EBDD;
  --ink: #DDD7CB;
  --muted: #A8A29A;
  --line: rgba(242, 235, 221, 0.12);
  --line-strong: rgba(242, 235, 221, 0.25);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--bone); color: var(--bg); }

a { color: var(--bone); text-decoration: none; }
img { max-width: 100%; display: block; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--bone); color: var(--bg); padding: 8px 16px; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Nav ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 22px 24px;
}
.nav.flow { position: static; } /* pages without a hero (legal) */
.brand {
  display: flex; align-items: center; gap: 12px;
  font: 600 17px/1 var(--display); color: var(--bone); letter-spacing: 0.01em;
}
.brand-mark { width: 30px; height: 30px; object-fit: contain; }
.nav nav { display: flex; gap: 28px; }
.nav nav a {
  font: 500 15px/1 var(--body); color: var(--muted);
  letter-spacing: 0.04em; /* no uppercase: "plan" must stay lowercase */
  transition: color 0.2s;
}
.nav nav a:hover { color: var(--bone); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
#sphere {
  position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: pan-y; /* vertical scroll always wins on touch */
  cursor: grab;
}
.hero-inner {
  position: relative; z-index: 2; padding: 96px 24px 48px;
  pointer-events: none; /* let the sphere receive drags... */
}
.hero-inner a { pointer-events: auto; } /* ...but keep links clickable */
.hero-logo {
  width: 132px; margin: 0 auto 28px;
  filter: drop-shadow(0 0 36px rgba(242, 235, 221, 0.16)); /* faint bone glow */
}
.hero-logo.app-logo { width: 96px; margin: 26px auto 26px; }
.hero h1 {
  font: 600 clamp(2.6rem, 7vw, 4.6rem)/1.05 var(--display);
  color: var(--bone); letter-spacing: -0.02em;
}
.tagline {
  margin-top: 18px;
  font: 500 clamp(1.05rem, 2.4vw, 1.35rem)/1.4 var(--display);
  color: var(--ink);
}
.sub {
  max-width: 560px; margin: 14px auto 0;
  color: var(--muted); font-size: 1rem;
}
.btn {
  display: inline-block; margin-top: 34px; padding: 13px 30px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  font: 500 15px/1 var(--display); letter-spacing: 0.04em;
  color: var(--bone); transition: background 0.2s, border-color 0.2s;
}
.btn:hover { background: rgba(242, 235, 221, 0.08); border-color: var(--bone); }
.btn.solid { background: var(--bone); color: var(--bg); border-color: var(--bone); }
.btn.solid:hover { background: #fff; }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 110px 24px; }
.section + .section { border-top: 1px solid var(--line); }
.section-kicker {
  font: 600 13px/1 var(--display); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.section h2 {
  font: 600 clamp(1.7rem, 4vw, 2.4rem)/1.2 var(--display);
  color: var(--bone); letter-spacing: -0.01em; margin-bottom: 20px;
  max-width: 640px;
}
.section > p { max-width: 640px; color: var(--muted); }

.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 48px;
}
.card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: 12px; padding: 28px 26px;
}
.card h3 {
  font: 600 1.15rem/1.3 var(--display); color: var(--bone); margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Product card (homepage) ---------- */
.product-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 48px; padding: 34px 32px;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.product-logo { width: 64px; flex-shrink: 0; }
.product-card p { color: var(--muted); max-width: 520px; }
.product-card .go { font: 500 15px/1 var(--display); color: var(--muted); white-space: nowrap; }
.product-card:hover .go { color: var(--bone); }

/* ---------- Plan page ---------- */
.wordmark {
  font: 600 clamp(3.2rem, 9vw, 5.5rem)/1 var(--display);
  color: var(--bone); letter-spacing: -0.03em;
}
.phones {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 56px; justify-items: center;
}
.shot {
  width: min(100%, 290px);
  filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.55));
}

.cta-panel {
  margin-top: 90px; padding: 56px 32px; text-align: center;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 16px;
}
.cta-panel h2 { margin: 0 auto 12px; }
.cta-panel p { margin: 0 auto; max-width: 520px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  max-width: var(--max); margin: 0 auto;
  padding: 44px 24px 56px;
  display: flex; flex-wrap: wrap; gap: 18px 40px;
  align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 0.9rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--muted); transition: color 0.2s; }
.site-footer a:hover { color: var(--bone); }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-content { max-width: 780px; margin: 0 auto; padding: 34px 24px 72px; }
.legal-content .back-link {
  display: inline-block; margin-bottom: 30px;
  color: var(--muted); font: 500 14px/1 var(--display);
}
.legal-content .back-link:hover { color: var(--bone); }
.legal-content h1 { font: 600 2rem/1.2 var(--display); color: var(--bone); margin-bottom: 10px; }
.legal-content .effective-date { color: var(--muted); font-size: 0.92rem; margin-bottom: 34px; }
.legal-content h2 {
  font: 600 1.3rem/1.3 var(--display); color: var(--bone);
  margin: 42px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.legal-content h3 { font: 600 1.05rem/1.3 var(--display); color: var(--ink); margin: 24px 0 10px; }
.legal-content p { margin-bottom: 14px; color: var(--ink); font-size: 0.98rem; }
.legal-content ul, .legal-content ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink); font-size: 0.98rem; }
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--bone); }
.legal-content a { text-decoration: underline; text-underline-offset: 2px; }
.legal-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 0.92rem; }
.legal-content th, .legal-content td { padding: 10px 12px; text-align: left; border: 1px solid var(--line); color: var(--ink); }
.legal-content th { background: var(--bg-raised); color: var(--bone); font-weight: 600; }
.legal-content footer {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.9rem;
}

/* ---------- Reveal animation ----------
   Hidden state only applies when JS is running (html.js set inline in <head>),
   so content stays visible with JS off, in print, and in readers. */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media print {
  html.js .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .product-card, .product-card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .phones { grid-template-columns: 1fr; }
  .phones { max-width: 300px; margin-left: auto; margin-right: auto; }
  .shot:nth-child(n+2) { display: none; } /* one screenshot on small screens */
  .product-card { flex-direction: column; align-items: flex-start; }
  .section { padding: 72px 24px; }
  .nav nav { gap: 18px; }
}
