@import url("font.css");
:root {
  --bg: #f5f2eb;
  --bg-soft: #ebe7dc;
  --ink: #171713;
  --muted: #6f6b61;
  --faint: #9f998d;
  --accent: #1f2d20;
  --accent-2: #8b5e34;
  --paper: rgba(255, 255, 255, .54);
  --line: rgba(23, 23, 19, .12);
  --shadow: 0 30px 80px rgba(33, 31, 25, .14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11110f;
    --bg-soft: #181713;
    --ink: #f4f0e8;
    --muted: #b3ac9d;
    --faint: #7f786b;
    --accent: #d6e3bd;
    --accent-2: #d3a56f;
    --paper: rgba(255, 255, 255, .055);
    --line: rgba(244, 240, 232, .12);
    --shadow: 0 30px 80px rgba(0, 0, 0, .36);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -10%, rgba(139, 94, 52, .18), transparent 32rem),
    radial-gradient(circle at 88% 4%, rgba(31, 45, 32, .14), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  line-height: 1.55;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

img { max-width: 100%; }

.app {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 58px;
}

.noscript,
.boot,
.error {
  width: min(720px, calc(100% - 32px));
  margin: 64px auto;
  color: var(--muted);
}

.boot {
  display: grid;
  place-items: center;
  gap: 18px;
  min-height: 50vh;
}

.boot-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--accent));
  mask: radial-gradient(circle, transparent 52%, #000 53%);
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(1turn); } }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand__name {
  font-weight: 760;
  letter-spacing: -.03em;
}

.brand__kicker {
  display: block;
  margin-top: -2px;
  font-size: .76rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 9px 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  font-size: .92rem;
}

.nav a:hover {
  color: var(--ink);
  background: var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  min-height: calc(100vh - 140px);
}

.gallery {
  min-width: 0;
}

.gallery__stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--paper), transparent 20%);
  aspect-ratio: 1.08 / 1;
  cursor: zoom-in;
}

.gallery__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__caption {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: .95rem;
}

.gallery__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .68);
  color: #171713;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.gallery__control:hover { background: rgba(255, 255, 255, .9); }
.gallery__control--prev { left: 14px; }
.gallery__control--next { right: 14px; }

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 2px 2px 8px;
}

.thumb {
  flex: 0 0 74px;
  height: 58px;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  opacity: .56;
  cursor: pointer;
  padding: 0;
}

.thumb.is-active {
  opacity: 1;
  outline: 2px solid color-mix(in srgb, var(--accent), transparent 22%);
  outline-offset: 2px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__content {
  padding: 12px 0;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--accent-2);
  font-size: .8rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.status {
  margin-top: 24px;
  display: inline-flex;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 88%);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .86rem;
  font-weight: 720;
}

h1 {
  margin: 20px 0 14px;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  line-height: .84;
  letter-spacing: -.085em;
  max-width: 9ch;
}

.subtitle {
  margin: 0;
  font-family: "IBMVGA";
  font-size: clamp(1.18rem, 2vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -.03em;
}

.summary {
  margin: 22px 0 0;
  color: var(--muted);
  max-width: 58ch;
}

.purchase {
  display: grid;
  gap: 6px;
  margin-top: 30px;
}

.price {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -.06em;
  font-weight: 820;
}

.note,
.availability {
  color: var(--muted);
  font-size: .92rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 760;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--ink); color: var(--bg); }
.button--secondary { background: var(--paper); color: var(--ink); }

.section {
  margin-top: clamp(58px, 10vw, 120px);
}

.section__head {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.section__label {
  color: var(--accent-2);
  font-weight: 780;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .76rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.07em;
}

.story {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.story p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.highlights,
.feature-grid,
.included-grid,
.downloads,
.faq,
.social-grid {
  display: grid;
  gap: 12px;
}

.highlights {
  grid-template-columns: repeat(3, 1fr);
}

.highlight,
.feature,
.included,
.download,
.faq-item,
.social-link {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.highlight h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.highlight p,
.download span,
.footer p {
  margin: 0;
  color: var(--muted);
}

.feature-grid,
.included-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature,
.included {
  min-height: 96px;
  display: flex;
  align-items: flex-end;
  font-weight: 680;
}

.specs {
  display: grid;
  background: var(--paper);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.spec {
  display: grid;
  grid-template-columns: minmax(160px, .45fr) 1fr;
  gap: 20px;
  padding: 19px 22px;
}

.spec + .spec { border-top: 1px solid var(--line); }
.spec__name { color: var(--muted); }
.spec__value { font-weight: 680; }

.downloads { grid-template-columns: repeat(3, 1fr); }
.download { text-decoration: none; }
.download strong { display: block; margin-bottom: 6px; }
.download:hover { background: color-mix(in srgb, var(--paper), var(--accent) 9%); }

.faq { grid-template-columns: 1fr; }
.faq-item summary {
  cursor: pointer;
  font-weight: 760;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { color: var(--muted); margin: 14px 0 0; max-width: 76ch; }

.social-grid { grid-template-columns: repeat(3, 1fr); }
.social-link { text-decoration: none; font-weight: 760; }
.social-link:hover { background: color-mix(in srgb, var(--paper), var(--accent-2) 10%); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-top: 84px;
  padding-top: 24px;
  color: var(--muted);
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(10, 10, 8, .86);
  display: grid;
  place-items: center;
  padding: 28px;
}

.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; width: min(1100px, 100%); }
.lightbox__figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}
.lightbox__figure figcaption {
  color: rgba(255,255,255,.72);
  margin-top: 12px;
  text-align: center;
}
.lightbox__close,
.lightbox__nav {
  position: fixed;
  border: 0;
  color: white;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.lightbox__close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 72px;
  border-radius: 999px;
  font-size: 2.4rem;
}
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

@media (max-width: 900px) {
  .hero,
  .story,
  .section__head {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .highlights,
  .feature-grid,
  .included-grid,
  .downloads,
  .social-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .app { width: min(100% - 22px, var(--max)); padding-top: 18px; }
  .topbar { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  .nav { justify-content: flex-start; }
  .gallery__stage { border-radius: 24px; }
  .gallery__control { width: 38px; height: 38px; }
  .highlights,
  .feature-grid,
  .included-grid,
  .downloads,
  .social-grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .spec { grid-template-columns: 1fr; gap: 4px; }
  .footer { flex-direction: column; }
  .lightbox__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* PayPal Hosted Button ----------------------------------------------------- */
.paypal-payment {
  width: min(100%, 420px);
  margin-top: 20px;
}

.paypal-payment__button {
  width: 100%;
  min-height: 45px;
}

.paypal-payment__button > div,
.paypal-payment__button iframe {
  max-width: 100% !important;
}

.paypal-payment__status {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}

.paypal-payment__status.is-error {
  color: #a13b32;
}

@media (prefers-color-scheme: dark) {
  .paypal-payment__status.is-error {
    color: #ff9e94;
  }
}

@media (max-width: 620px) {
  .paypal-payment {
    width: 100%;
  }
}
