/* GH Gallery — ghgallery.com marketing page
 * Honig theme, pushed dark: the canvas borrows the product's own lightbox
 * mood (photos glowing against near-black) instead of a generic light SaaS
 * page. Cantarell/Noto Sans continue the promo-tile typography already
 * established for GH Gallery's marketing materials. */

@import url('https://fonts.googleapis.com/css2?family=Cantarell:wght@400;700&family=Noto+Sans:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  /* Role tokens — flip between the two theme blocks below. */
  --ink: #14110b;
  --ink-deep: #0b0904;
  --paper: #f8f1df;
  --card: #1d1810;
  --card-line: rgba(232, 162, 20, 0.16);
  --smoke: #a99a7d;
  --smoke-dim: #6e6250;
  --honey-glow: #f6b62e;

  /* Brand constants — same value in both themes. honey/honey-deep are the
   * fill+text-on-light brand colors; the rest exist so a handful of
   * elements that sit on a permanently-dark surface (the lightbox chrome,
   * button/chip text on the amber fill) never accidentally inherit a
   * flipped, low-contrast color — see the nav-button contrast bug this
   * was added after. */
  --honey: #e8a214;
  --honey-deep: #8a5b00;
  --honey-bright: #f6b62e;
  --ink-fixed: #14110b;
  --on-dark: #f8f1df;
  --on-dark-line: rgba(232, 162, 20, 0.22);

  --display: 'Cantarell', system-ui, sans-serif;
  --body: 'Noto Sans', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --measure: 40rem;
  --edge: clamp(1.25rem, 4vw, 3.5rem);
}

:root[data-theme='light'] {
  color-scheme: light;
  --ink: #f8f1df;
  --ink-deep: #efe3c4;
  --paper: #2b2417;
  --card: #fdf9ef;
  --card-line: #e7dab9;
  --smoke: #6e5f45;
  --smoke-dim: #8a7a5c;
  --honey-glow: #8a5b00;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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

a {
  color: inherit;
}

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

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: var(--edge);
}

/* ── Nav ───────────────────────────────────────────────────────────── */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--edge);
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark b {
  color: var(--honey-glow);
  font-weight: 700;
}

/* Icon shows what clicking it switches TO. .theme-toggle sits on the page's
 * own background (nav), so its idle color is allowed to flip with --smoke. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--card-line);
  background: transparent;
  color: var(--smoke);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--honey);
  color: var(--honey-glow);
}

.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme='light'] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme='light'] .theme-toggle .icon-moon {
  display: inline;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  font-size: 0.9rem;
}

/* :not(.btn) so this plain-text-link color never fights the button color
 * rules below on specificity — a nav .btn must always win. */
.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--smoke);
  transition: color 0.15s;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn):focus-visible {
  color: var(--honey-glow);
}

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

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

.btn-honey {
  background: var(--honey);
  color: var(--ink-fixed);
}

.btn-honey:hover,
.btn-honey:focus-visible {
  background: var(--honey-bright);
}

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

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--honey);
  color: var(--honey-glow);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) var(--edge) clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey-glow);
  margin: 0 0 0.9rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  max-width: 22ch;
  text-wrap: balance;
}

.hero p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--smoke);
  max-width: var(--measure);
  margin: 0 0 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ── Proof strip / lightbox hero images ──────────────────────────────── */
.proof {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  padding-top: 0.5rem;
}

.print {
  --rot: 0deg;
  position: relative;
  width: clamp(7.5rem, 16vw, 11rem);
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  border: none;
  padding: 0;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 12px 24px -8px rgba(0, 0, 0, 0.55);
  transform: rotate(var(--rot));
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.25s;
  cursor: zoom-in;
  overflow: hidden;
}

.print:nth-child(1) {
  --rot: -6deg;
}
.print:nth-child(2) {
  --rot: 3deg;
  margin-top: 1.2rem;
}
.print:nth-child(3) {
  --rot: -2deg;
}
.print:nth-child(4) {
  --rot: 5deg;
  margin-top: 0.6rem;
}
.print:nth-child(5) {
  --rot: -4deg;
  display: none;
}

@media (min-width: 40rem) {
  .print:nth-child(5) {
    display: block;
  }
}

.print:hover,
.print:focus-visible {
  transform: rotate(0deg) translateY(-6px) scale(1.03);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 20px 34px -10px rgba(0, 0, 0, 0.65);
  z-index: 2;
}

.print-photo {
  position: absolute;
  inset: 0.4rem 0.4rem 1.5rem;
  border-radius: 2px;
}

.print-cap {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.45rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: #6b6255;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proof-hint {
  align-self: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--smoke-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.25rem;
}

/* ── Lightbox overlay ──────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 6, 3, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox[data-open='true'] {
  display: flex;
}

.lightbox-frame {
  position: relative;
  width: min(30rem, 84vw);
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  animation: lightbox-in 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-photo {
  position: absolute;
  inset: 0;
}

.lightbox-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--on-dark);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--on-dark-line);
  background: rgba(20, 17, 11, 0.7);
  color: var(--on-dark);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  border-color: var(--honey);
  color: var(--honey-bright);
}

.lightbox-prev {
  left: clamp(0.5rem, 4vw, 2rem);
}

.lightbox-next {
  right: clamp(0.5rem, 4vw, 2rem);
}

.lightbox-close {
  position: absolute;
  top: clamp(0.75rem, 3vw, 1.75rem);
  right: clamp(0.75rem, 3vw, 1.75rem);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--on-dark-line);
  background: rgba(20, 17, 11, 0.7);
  color: var(--on-dark);
  font-size: 1rem;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: var(--honey);
  color: var(--honey-bright);
}

/* ── Sections ──────────────────────────────────────────────────────── */
section {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--edge);
}

.section-head {
  max-width: var(--measure);
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.section-head p {
  color: var(--smoke);
  font-size: 1.05rem;
  margin: 0;
}

.rule {
  border: none;
  border-top: 1px solid var(--card-line);
  margin: 0;
}

/* ── Blocks showcase ───────────────────────────────────────────────── */
.blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}

.block-chip {
  border: 1px solid var(--card-line);
  background: var(--card);
  border-radius: 10px;
  padding: 1.3rem 1.4rem;
}

.block-chip .chip-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  background: var(--honey);
  color: var(--ink-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.block-chip h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.block-chip p {
  margin: 0;
  color: var(--smoke);
  font-size: 0.9rem;
}

/* ── Publish speed section ────────────────────────────────────────── */
.publish {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .publish {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.url-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--paper);
  margin-top: 1.5rem;
}

.url-bar .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #4caf50;
  flex: none;
}

.url-bar .name {
  color: var(--honey-glow);
}

.stat-card {
  border: 1px solid var(--card-line);
  background: var(--card);
  border-radius: 12px;
  padding: 1.75rem;
}

.stat-card .num {
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 600;
  color: var(--honey-glow);
  line-height: 1;
}

.stat-card .label {
  color: var(--smoke);
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

/* ── Pricing ───────────────────────────────────────────────────────── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.1rem;
}

.price-card {
  border: 1px solid var(--card-line);
  background: var(--card);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-card.is-featured {
  border-color: var(--honey);
  box-shadow: 0 0 0 1px var(--honey);
}

.price-card .plan-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.price-card .plan-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--honey-glow);
}

.price-card .plan-price {
  font-family: var(--mono);
  font-size: 2.1rem;
  font-weight: 600;
}

.price-card .plan-price small {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--smoke);
}

.price-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--smoke);
  flex: 1;
}

.price-card li::before {
  content: '·';
  color: var(--honey);
  font-weight: 700;
  margin-right: 0.5rem;
}

.price-note {
  max-width: var(--measure);
  color: var(--smoke);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* ── Steps ─────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
}

.step .step-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--honey-glow);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.step p {
  margin: 0;
  color: var(--smoke);
  font-size: 0.92rem;
}

/* ── Final CTA ─────────────────────────────────────────────────────── */
.final-cta {
  text-align: center;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.final-cta h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 1.5rem;
  text-wrap: balance;
}

.final-cta .hero-ctas {
  justify-content: center;
}

/* ── Footer ────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--card-line);
  padding: 2.25rem var(--edge);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--smoke-dim);
}

footer .foot-links {
  display: flex;
  gap: 1.25rem;
}

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

footer a:hover,
footer a:focus-visible {
  color: var(--honey-glow);
}

/* ── Entrance ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--honey-glow);
  outline-offset: 2px;
}
