@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #0e1114;
  --bg-elevated: #161b20;
  --ink: #f2efe8;
  --ink-muted: #a8a297;
  --accent: #d4a574;
  --accent-hot: #e8c49a;
  --line: rgba(242, 239, 232, 0.12);
  --success: #8fbc8f;
  --danger: #c97b7b;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Nav —— */
.site-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 1.25rem 0;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.nav-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 0.65rem 1rem;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-hot);
  color: var(--bg);
  transform: translateY(-1px);
}

.nav-link {
  color: var(--ink-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--ink);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(212, 165, 116, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(143, 188, 143, 0.08), transparent 50%),
    linear-gradient(165deg, #1a2229 0%, #0e1114 45%, #0a0c0e 100%);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 239, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 232, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 85%);
  animation: gridDrift 28s linear infinite;
}

.hero-sheet {
  position: absolute;
  right: -4%;
  top: 12%;
  width: min(52vw, 640px);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(22, 27, 32, 0.9), rgba(14, 17, 20, 0.95));
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  padding: 1.25rem 1.25rem 1.5rem;
  transform: rotate(-2deg) translateY(12px);
  opacity: 0;
  animation: sheetIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
  z-index: -1;
}

.hero-sheet .bar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.hero-sheet .bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.hero-sheet .bar i:nth-child(1) {
  background: #c97b7b;
}
.hero-sheet .bar i:nth-child(2) {
  background: var(--accent);
}
.hero-sheet .bar i:nth-child(3) {
  background: var(--success);
}

.hero-sheet pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.1vw, 0.82rem);
  line-height: 1.6;
  color: var(--ink-muted);
  white-space: pre-wrap;
}

.hero-sheet .hl {
  color: var(--accent-hot);
}

.hero-sheet .ok {
  color: var(--success);
}

.hero-content {
  padding: 7.5rem 0 4.5rem;
  max-width: 36rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  line-height: 0.95;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.hero-brand em {
  font-style: italic;
  color: var(--accent);
}

.hero h1 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.35;
  margin: 0 0 0.85rem;
  max-width: 22ch;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.hero-lead {
  color: var(--ink-muted);
  margin: 0 0 1.75rem;
  max-width: 34ch;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hot);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hot);
}

.price-hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
  width: 100%;
}

/* —— Sections —— */
section {
  padding: 5rem 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.section-copy {
  color: var(--ink-muted);
  max-width: 38rem;
  margin: 0 0 2rem;
}

.problem {
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }

  .split.reverse .copy {
    order: 2;
  }
}

.quote-block {
  border-left: 2px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.25;
  color: var(--ink);
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.flow-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.flow-list li.in {
  opacity: 1;
  transform: none;
}

.flow-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 0.2rem;
}

.flow-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

.flow-list p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.pillars {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.pillar p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.platforms {
  background:
    linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.06), transparent),
    var(--bg);
  border-block: 1px solid var(--line);
  text-align: center;
}

.platforms .section-title {
  margin-inline: auto;
}

.platforms .section-copy {
  margin-inline: auto;
}

.os-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.os-row strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.25rem;
}

/* —— Pricing —— */
.pricing {
  background: var(--bg-elevated);
}

.price-panel {
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg);
}

.price-panel .product {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.price-panel .amount {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  margin: 0 0 0.35rem;
}

.price-panel .amount small {
  font-size: 1.5rem;
  vertical-align: super;
}

.price-panel .meta {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

.price-panel ul {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 0.55rem;
}

.price-panel li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.price-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
}

.price-panel .btn {
  width: 100%;
}

.stripe-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* —— FAQ —— */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  color: var(--ink-muted);
  margin: 0.75rem 0 0;
  max-width: 40rem;
}

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

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

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

.site-footer a:hover {
  color: var(--accent-hot);
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 3rem 0;
}

.thanks-card {
  max-width: 44rem;
  width: min(44rem, calc(100% - 2.5rem));
}

.thanks-card h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  margin: 0 0 1rem;
}

.thanks-card p {
  color: var(--ink-muted);
}

.thanks-card .thanks-intro {
  color: var(--ink);
  font-size: 1.15rem;
  margin-top: -0.5rem;
}

.purchase-state {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  margin: 2rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.purchase-state strong {
  display: block;
  color: var(--ink);
}

.purchase-state p {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
}

.state-icon {
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.38rem;
  border: 2px solid var(--ink-muted);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.purchase-state[data-state="verified"] {
  border-color: rgba(143, 188, 143, 0.45);
}

.purchase-state[data-state="verified"] .state-icon {
  border: 0;
  border-radius: 0;
  background: var(--success);
  animation: none;
}

.purchase-state[data-state="pending"] .state-icon {
  border: 0;
  border-radius: 0;
  background: var(--accent);
  animation: none;
}

.purchase-state[data-state="missing"],
.purchase-state[data-state="denied"],
.purchase-state[data-state="error"] {
  border-color: rgba(201, 123, 123, 0.45);
}

.purchase-state[data-state="missing"] .state-icon,
.purchase-state[data-state="denied"] .state-icon,
.purchase-state[data-state="error"] .state-icon {
  border: 0;
  border-radius: 0;
  background: var(--danger);
  animation: none;
}

.text-button {
  display: none;
  margin-top: 0.55rem;
  padding: 0;
  border: 0;
  color: var(--accent-hot);
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.purchase-state[data-state="pending"] .text-button,
.purchase-state[data-state="error"] .text-button {
  display: inline;
}

.thanks-steps {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.thanks-steps li {
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
}

.onboarding-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
}

.step-number {
  padding-top: 0.12rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.thanks-steps strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.onboarding-steps p {
  margin: 0 0 0.85rem;
}

.installer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.onboarding-steps .btn {
  padding: 0.72rem 1rem;
  font-size: 0.88rem;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.download-message,
.pilot-warning {
  margin: 0.8rem 0 0 !important;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  font-size: 0.84rem;
}

.download-message[data-state="error"] {
  border-color: rgba(201, 123, 123, 0.55);
  color: var(--danger);
}

.pilot-warning {
  border-color: rgba(219, 169, 107, 0.45);
  color: var(--muted);
}

.guide-link {
  font-size: 0.9rem;
}

.support-note {
  margin-top: 1.5rem;
  font-size: 0.88rem;
}

[hidden] {
  display: none !important;
}

.legal-page {
  padding: 6rem 0 4rem;
  max-width: 40rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.5rem;
}

.legal-page h2 {
  font-size: 1.1rem;
  margin-top: 2rem;
}

.legal-page p,
.legal-page li {
  color: var(--ink-muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sheetIn {
  from {
    opacity: 0;
    transform: rotate(-6deg) translateY(40px);
  }
  to {
    opacity: 0.95;
    transform: rotate(-2deg) translateY(0);
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 48px 48px;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 859px) {
  .hero-sheet {
    opacity: 0.35;
    width: 70vw;
    right: -18%;
    top: 8%;
  }

  .hero-content {
    padding-top: 6.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-brand,
  .hero h1,
  .hero-lead,
  .cta-row,
  .hero-sheet,
  .flow-list li {
    opacity: 1;
    transform: none;
  }
}
