/*
Theme Name: Wordvane Landing
Theme URI: https://wordvane.com
Author: TopDevs
Author URI: https://topdevs.net
Description: Single-page marketing theme for Wordvane, an AI SEO content generator for WordPress. Instrument-panel-inspired design system (brass/verdigris/ink) with a signature settling-compass hero animation, and GA4 + Freemius ecommerce tracking wired into the pricing CTAs.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wordvane-landing
*/

/* ==========================================================================
   Wordvane landing page
   Design tokens per wordvane-visual-guide.md
   ========================================================================== */

:root {
  --ink: #1C2430;
  --canvas: #EEF1ED;
  --verdigris: #4B7A6F;
  --brass: #B8863B;
  --slate: #5C6670;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 8px;
  --max-width: 1200px;
  --gutter: 24px;
  --section-spacing: 80px;
  --section-spacing-mobile: 48px;

  --hairline: color-mix(in srgb, var(--slate) 20%, transparent);
  --canvas-on-ink: color-mix(in srgb, var(--canvas) 92%, transparent);
  --canvas-on-ink-secondary: color-mix(in srgb, var(--canvas) 65%, transparent);
  --verdigris-tint: color-mix(in srgb, var(--verdigris) 12%, var(--canvas));
}

/* ---- Reset ---- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

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

a {
  color: var(--verdigris);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: inherit;
}

p {
  margin: 0 0 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Focus ring (accessibility floor) ---- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ---- Layout helpers ---- */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Each .section carries half the rhythm value on top and bottom, so two
   adjacent sections together add up to --section-spacing, not double it. */
.section {
  padding: calc(var(--section-spacing) / 2) 0;
}

/* Keeps anchor-linked sections (e.g. #pricing, targeted by the nav and hero
   CTA) from landing underneath the sticky header. */
section[id] {
  scroll-margin-top: 84px;
}

@media (max-width: 768px) {
  .section {
    padding: calc(var(--section-spacing-mobile) / 2) 0;
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--verdigris);
  margin: 0 0 12px;
}

.eyebrow--heading {
  font-size: 36px;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .eyebrow--heading {
    font-size: 28px;
  }
}

.section-lede {
  font-size: 18px;
  color: var(--slate);
  max-width: 640px;
  margin-bottom: 48px;
}

h2 {
  font-size: 36px;
}

@media (max-width: 768px) {
  h2 {
    font-size: 28px;
  }
}

/* ---- Buttons ---- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 150ms ease, transform 150ms ease;
}

.button--brass {
  background: var(--brass);
  color: var(--ink);
}

.button--brass:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
}

.button--ghost {
  background: transparent;
  color: var(--canvas-on-ink);
  border-color: color-mix(in srgb, var(--canvas) 40%, transparent);
}

.button--ghost:hover {
  filter: brightness(1.15);
}

.button--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--slate);
  width: 100%;
}

.button--outline:hover {
  filter: brightness(0.97);
}

.button--small {
  padding: 10px 18px;
  font-size: 14px;
}

/* ---- Site header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a:not(.button) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:not(.button):hover {
  color: var(--verdigris);
}

/* WP-admin-managed menu (Appearance > Menus, "Primary Navigation") sits
   inline alongside the hardcoded Pricing/Install Free links above. */
.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- Hero ---- */

.hero {
  background: var(--ink);
  color: var(--canvas-on-ink);
  padding: 64px 0 80px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

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

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid color-mix(in srgb, var(--brass) 40%, transparent);
  border-radius: 999px;
  padding: 6px 16px;
  margin: 0 0 24px;
}

.hero__headline {
  color: var(--canvas);
  font-size: 56px;
  line-height: 1.05;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .hero__headline {
    font-size: 36px;
  }
}

.hero__subhead {
  font-size: 18px;
  color: var(--canvas-on-ink-secondary);
  max-width: 46ch;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.fine-print {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--canvas-on-ink-secondary);
  margin: 0;
}

.hero__compass {
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass {
  width: 100%;
  max-width: 320px;
  height: auto;
}

@media (max-width: 900px) {
  .hero__compass {
    max-width: 220px;
    margin: 0 auto;
  }
}

.compass__ring {
  fill: none;
  stroke: color-mix(in srgb, var(--canvas) 30%, transparent);
  stroke-width: 1.5;
}

.compass__ring--inner {
  stroke: color-mix(in srgb, var(--canvas) 18%, transparent);
}

.compass__tick {
  stroke: color-mix(in srgb, var(--canvas) 40%, transparent);
  stroke-width: 1.5;
}

.compass__tick--major {
  stroke: var(--canvas);
  stroke-width: 2;
}

.compass__label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  fill: var(--canvas);
  text-anchor: middle;
  dominant-baseline: middle;
}

.compass__needle {
  transform-origin: 160px 160px;
  opacity: 0;
  transition: opacity 600ms ease;
}

.compass__needle-arm {
  stroke: var(--brass);
  stroke-width: 4;
  stroke-linecap: round;
}

.compass__needle-arm--tail {
  stroke: color-mix(in srgb, var(--brass) 55%, transparent);
  stroke-width: 3;
}

.compass__pivot {
  fill: var(--brass);
}

/* ---- Trust bar ---- */

.trust-bar {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}

.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.trust-bar__line {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--slate);
  margin: 0;
}

/* ---- Problem / Agitation ---- */

.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

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

.problem__card h3 {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.problem__card p {
  color: var(--slate);
  margin: 0;
}

/* ---- Solution / How it works ---- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .steps__line {
    display: none;
  }
}

.steps__line {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hairline);
}

.step {
  position: relative;
}

.step__tick {
  display: block;
  width: 2px;
  height: 24px;
  background: var(--slate);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.step p {
  color: var(--slate);
  margin: 0;
}

/* ---- Feature highlights ---- */

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

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

.feature-card {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--slate);
  margin: 0;
}

.feature-card--pro {
  border-top: 2px solid var(--brass);
}

.pro-tag {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--brass);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 var(--radius) 0 var(--radius);
}

/* ---- ChatGPT objection band ---- */

.chatgpt-band {
  background: var(--verdigris-tint);
}

.chatgpt-band h2 {
  max-width: 24ch;
}

.chatgpt-band p {
  max-width: 70ch;
  font-size: 18px;
}

/* ---- Social proof ---- */

.social-proof {
  text-align: center;
}

.social-proof__line {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--slate);
  margin: 0;
}

/* Shared inline emphasis for trial-period callouts — a solid brass chip
   reads clearly without the contrast risk of brass text on canvas. */
.pricing__highlight {
  display: inline-block;
  background: var(--brass);
  color: var(--ink);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ---- Pricing ---- */

.pricing {
  text-align: center;
}

.pricing .eyebrow {
  text-align: center;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-top: 48px;
  text-align: left;
  align-items: start;
}

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

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--canvas);
}

.price-card--featured {
  border-top: 3px solid var(--brass);
  transform: scale(1.04);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 12%, transparent);
}

@media (max-width: 900px) {
  .price-card--featured {
    transform: none;
  }
}

.price-card__badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--brass);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.price-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.price-card__tagline {
  color: var(--slate);
  font-size: 15px;
  margin-bottom: 20px;
}

.price-card__price {
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.price-card__amount {
  font-size: 32px;
  font-weight: 500;
}

.price-card__amount-unit {
  font-size: 18px;
  color: var(--ink);
}

.price-card__billing-note {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--slate);
  margin-top: 4px;
}

.price-card__billing-alt {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
  margin-top: 2px;
}

.price-card__site-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  text-align: center;
  margin: 12px 0 0;
}

.price-card__site-note a {
  color: var(--verdigris);
}

.price-card__includes {
  font-weight: 600;
  margin-bottom: 12px;
}

.price-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.price-card__includes-text {
  color: var(--slate);
  font-size: 15px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.price-card__features li {
  position: relative;
  padding-left: 20px;
  color: var(--ink);
  font-size: 15px;
}

.price-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 1px;
  background: var(--verdigris);
}

.pricing__footnote {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--slate);
  text-align: center;
  margin-top: 40px;
  margin-bottom: 0;
}

/* ---- FAQ ---- */

.faq h2 {
  margin-bottom: 32px;
}

.accordion__item {
  border-bottom: 1px solid var(--hairline);
}

.accordion__item h3 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  color: var(--ink);
  padding: 24px 0;
  cursor: pointer;
}

.accordion__icon {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--verdigris);
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(45deg);
}

.accordion__panel {
  overflow: hidden;
  height: 0;
  transition: height 200ms ease;
}

.accordion__panel-inner {
  padding-bottom: 24px;
}

.accordion__panel-inner p {
  color: var(--slate);
  margin: 0;
  max-width: 70ch;
}

/* ---- Final CTA ---- */

.final-cta {
  background: var(--ink);
  color: var(--canvas);
  text-align: center;
  padding: var(--section-spacing) 0;
}

@media (max-width: 768px) {
  .final-cta {
    padding: var(--section-spacing-mobile) 0;
  }
}

.final-cta h2 {
  color: var(--canvas);
  margin-bottom: 16px;
}

.final-cta p {
  color: var(--canvas-on-ink-secondary);
  max-width: 50ch;
  margin: 0 auto 32px;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--ink);
  color: var(--slate);
  padding: 32px 0;
  border-top: 1px solid color-mix(in srgb, var(--canvas) 10%, transparent);
}

.site-footer__line {
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 0;
  text-align: center;
}

/* ---- Scroll entrance animation ---- */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- 404 CTA row modifier ---- */

.cta-row--center {
  justify-content: center;
}

/* ---- Blog: index / home / archive / search ---- */

.blog-index h1 {
  margin-bottom: 48px;
}

.archive-header {
  margin-bottom: 48px;
}

.archive-header__description {
  color: var(--slate);
  max-width: 640px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

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

.post-card {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.post-card__type-tag {
  position: absolute;
  top: -1px;
  right: -1px;
  z-index: 1;
  background: var(--verdigris-tint);
  color: var(--verdigris);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 var(--radius) 0 var(--radius);
}

.post-card__thumb {
  display: block;
}

.post-card__thumb img {
  width: 100%;
  height: auto;
}

.post-card__body {
  padding: 24px;
}

.post-card__title {
  font-size: 22px;
  margin-bottom: 8px;
}

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

.post-card__title a:hover {
  color: var(--verdigris);
}

.post-card__excerpt {
  color: var(--slate);
  margin-bottom: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-card__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  margin: 0 0 16px;
}

.post-card__link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

/* ---- Homepage: Latest from the Blog ---- */

.blog-teaser__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .blog-teaser__grid {
    grid-template-columns: 1fr;
  }
}

.blog-teaser__more {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

/* ---- Single post / static page ---- */

.wrap--narrow {
  max-width: 760px;
}

.single-post__thumb {
  margin-bottom: 32px;
}

.single-post__thumb img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
  margin-top: 40px;
}

.single-post__content p,
.single-post__content ul,
.single-post__content ol {
  color: var(--ink);
}

.single-post__content ul,
.single-post__content ol {
  padding-left: 1.4em;
  margin: 0 0 16px;
}

.single-post__content ul {
  list-style: disc;
}

.single-post__content ol {
  list-style: decimal;
}

.single-post__content blockquote {
  margin: 0 0 16px;
  padding-left: 20px;
  border-left: 3px solid var(--brass);
  color: var(--slate);
  font-style: italic;
}

.single-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.single-post__content a {
  text-decoration: underline;
}

.page-links {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: 32px;
}

/* ---- Pagination (the_posts_pagination / the_comments_pagination) ---- */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14px;
}

.pagination .page-numbers.current {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
  font-weight: 600;
}

.pagination .page-numbers.dots {
  border-color: transparent;
}

/* ---- Comments ---- */

.comments-area {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--hairline);
}

.comments-title {
  font-size: 24px;
  margin-bottom: 24px;
}

.comments-list {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.comments-list .children {
  list-style: none;
  padding-left: 32px;
}

.comment-body {
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}

.comment-author .fn {
  font-weight: 600;
  font-style: normal;
}

.comment-metadata {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  margin-bottom: 8px;
}

.comment-metadata a {
  color: var(--slate);
}

.comment-content p {
  margin: 0 0 12px;
}

.comment-reply-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.comments-closed {
  color: var(--slate);
}

.comment-respond {
  padding-top: 24px;
}

.comment-reply-title {
  font-size: 20px;
}

.comment-form p {
  margin-bottom: 16px;
}

.comment-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
}

.comment-form textarea {
  min-height: 140px;
}

.comment-form .form-submit {
  margin-bottom: 0;
}

.comment-form #submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--brass);
  color: var(--ink);
  cursor: pointer;
}

.comment-form #submit:hover {
  filter: brightness(1.08);
}
