/* JoyPointer storefront — "console night" palette, warm paper by day. */
:root {
  --paper: #f7f4ec;
  --paper-2: #efeadd;
  --ink: #14162a;
  --ink-2: #4a4d66;
  --ink-3: #7a7d94;
  --line: rgba(20, 22, 42, 0.12);
  --surface: #ffffff;
  --navy: #2b2f4a;
  --amber: #ff9f43;
  --amber-ink: #3b2200;
  --focus: #1f6feb;
  --radius: 18px;
  --shadow: 0 24px 60px -32px rgba(20, 22, 42, 0.45);
  --font:
    "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "SF Pro", "Helvetica Neue", Arial,
    sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1020;
    --paper-2: #15172b;
    --ink: #f2efe6;
    --ink-2: #c3c1cf;
    --ink-3: #8f90a6;
    --line: rgba(242, 239, 230, 0.14);
    --surface: #1b1d33;
    --navy: #2b2f4a;
    --shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.8);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

p {
  margin: 0;
}

.shell {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-weight: 600;
}

.nav-links a:not(.button) {
  text-decoration: none;
  color: var(--ink-2);
}

.nav-links a:not(.button):hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .nav-links a:not(.button) {
    display: none;
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--amber-ink);
  box-shadow: 0 10px 30px -14px rgba(255, 159, 67, 0.9);
}

.button-primary:hover {
  background: #ffb066;
  border-color: #ffb066;
}

.button-small {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}

.button-wide {
  width: 100%;
}

.button.is-pending {
  background: var(--paper-2);
  border-color: var(--line);
  color: var(--ink-3);
  box-shadow: none;
  cursor: not-allowed;
}

.button.is-pending:hover {
  transform: none;
}

/* Text helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}

.led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.25);
}

.accent {
  color: var(--amber);
}

.lede,
.section-lede {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 60ch;
}

.fine-print {
  font-size: 0.9rem;
  color: var(--ink-3);
}

.fine-print a {
  color: var(--ink-2);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero-copy .lede {
  margin: 1.4rem 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
}

.checkout-status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-2);
}

.hero-visual {
  margin: 0;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.diagram {
  width: 100%;
  height: auto;
}

.diagram .flow {
  fill: none;
  stroke: var(--amber);
  stroke-width: 3;
  stroke-dasharray: 8 8;
  stroke-linecap: round;
  animation: flow 3s linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: -64;
  }
}

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

.diagram .callout rect {
  fill: var(--ink);
}

.diagram .callout text {
  fill: var(--paper);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.diagram .glyph {
  fill: #3b2200;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
}

.hero-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-3);
  text-align: center;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-head .section-lede {
  margin-top: 1rem;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.feature-grid li {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.feature-grid p {
  color: var(--ink-2);
  font-size: 0.98rem;
}

.feature-key {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 1rem;
}

@media (max-width: 880px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Mapping table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.mapping {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.mapping th,
.mapping td {
  text-align: left;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.mapping th {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.mapping tr:last-child td {
  border-bottom: 0;
}

.mapping td:first-child {
  font-weight: 700;
}

/* Pricing */
.price-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2rem;
  padding: 2.4rem;
  border-radius: calc(var(--radius) + 8px);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  .price-card {
    background: var(--surface);
    border: 1px solid var(--line);
  }
}

.price-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.6rem 0;
}

.price-once {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.7;
  letter-spacing: 0;
}

.price-note {
  opacity: 0.85;
  margin-bottom: 1.6rem;
}

.price-main .fine-print {
  margin-top: 1rem;
  color: inherit;
  opacity: 0.65;
}

.price-includes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  align-content: center;
}

.price-includes li {
  position: relative;
  padding-left: 1.8rem;
}

.price-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--amber);
}

.price-includes a {
  color: var(--amber);
}

@media (max-width: 880px) {
  .price-card {
    grid-template-columns: 1fr;
    padding: 1.8rem;
  }
}

/* Requirements */
.requirements {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  color: var(--ink-2);
}

.requirements li {
  padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--amber);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.requirements strong {
  color: var(--ink);
}

@media (max-width: 720px) {
  .requirements {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.8rem;
  max-width: 820px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 1.4rem;
}

.faq summary {
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--ink-3);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: 1.2rem;
  color: var(--ink-2);
}

/* CTA */
.cta {
  text-align: center;
  padding-bottom: 6rem;
}

.cta h2 {
  margin-bottom: 1.6rem;
}

.cta .fine-print {
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-inner nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* Legal / secondary pages */
.legal {
  max-width: 760px;
  padding: 4rem 0 6rem;
}

.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 1rem 0 0.6rem;
}

.legal h2 {
  font-size: 1.4rem;
  margin: 2.4rem 0 0.6rem;
}

.legal p,
.legal li {
  color: var(--ink-2);
  line-height: 1.75;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal .meta {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-3);
}

.legal .back {
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink-3);
}

.legal .card {
  margin-top: 2rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.legal .card .button {
  margin-top: 1rem;
}
