/*
 Theme Name:   YakWP Dark
 Template:     twentytwentyfive
 Version:      1.0.0
 Author:       YakWP
 Description:  Linear-inspired dark mode child theme for Twenty Twenty-Five. Enforces dark palette site-wide via theme.json and includes YakWP landing page component styles.
 Tags:         dark-mode, block-theme, full-site-editing
 Text Domain:  yakwp-dark
*/

/* ── Import Inter font ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS custom properties (light-dark() with fallback) ── */
:root {
  color-scheme: dark;
  --bg-canvas:    light-dark(#010102, #010102);
  --bg-marketing: light-dark(#08090a, #08090a);
  --bg-panel:     light-dark(#0f1011, #0f1011);
  --bg-surface:   light-dark(#191a1b, #191a1b);
  --bg-hover:     light-dark(#28282c, #28282c);
  --text-primary: light-dark(#f7f8f8, #f7f8f8);
  --text-secondary: light-dark(#d0d6e0, #d0d6e0);
  --text-tertiary:  light-dark(#8a8f98, #8a8f98);
  --text-quaternary: light-dark(#62666d, #62666d);
  --brand-bg:     light-dark(#5e6ad2, #5e6ad2);
  --brand-accent: light-dark(#7170ff, #7170ff);
  --brand-hover:  light-dark(#828fff, #828fff);
  --border-subtle:   light-dark(rgba(255,255,255,0.05), rgba(255,255,255,0.05));
  --border-standard: light-dark(rgba(255,255,255,0.08), rgba(255,255,255,0.08));
  --border-visible:  light-dark(#23252a, #23252a);
}

/* ── Global smooth rendering ── */
.dark-mode, body.dark-mode {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Navigation overrides (dark background guarantee) ── */
.dark-mode .wp-block-navigation a,
.dark-mode header a,
.dark-mode header span,
.dark-mode .wp-block-navigation-item__label,
.dark-mode .wp-block-navigation-item__content,
.dark-mode .wp-block-site-title a {
  color: var(--text-secondary) !important;
}
.dark-mode .wp-block-navigation a:hover,
.dark-mode header a:hover {
  color: var(--brand-accent) !important;
}
.dark-mode .wp-block-site-title a {
  color: var(--text-primary) !important;
}
.dark-mode .wp-block-navigation__responsive-container {
  background: var(--bg-panel) !important;
}

/* ── Footer overrides ── */
.dark-mode footer,
.dark-mode footer a,
.dark-mode footer p,
.dark-mode footer span {
  color: var(--text-quaternary) !important;
}

/* ── YakWP Hero ── */
.yakwp-hero {
  background: var(--bg-marketing);
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.yakwp-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(94,106,210,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.yakwp-hero h1 {
  font-size: 3.5rem;
  font-weight: 510;
  letter-spacing: -1.056px;
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  position: relative;
}
.yakwp-hero h1 span {
  background: linear-gradient(135deg, #7170ff, #5e6ad2, #828fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.yakwp-hero p {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-tertiary);
  max-width: 560px;
  margin: 0 auto 40px auto;
}
.yakwp-hero .cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.cta-primary {
  display: inline-block;
  background: var(--brand-bg);
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
}
.cta-primary:hover { background: var(--brand-hover); }
.cta-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.02);
  color: var(--text-secondary);
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid var(--border-standard);
  transition: background 0.2s, border-color 0.2s;
}
.cta-secondary:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }

/* ── Chat mockup ── */
.yakwp-mockup {
  max-width: 380px;
  margin: 56px auto 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-standard);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: rgba(0,0,0,0.4) 0px 20px 60px, rgba(0,0,0,0.2) 0px 0px 0px 1px;
}
.yakwp-mockup-header {
  background: var(--brand-bg);
  color: #fff;
  padding: 10px 16px;
  font-weight: 510;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.yakwp-mockup-header .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.yakwp-mockup-body {
  padding: 16px;
  min-height: 120px;
}
.yakwp-mockup-msg {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8125rem;
  max-width: 80%;
  line-height: 1.5;
}
.yakwp-mockup-bot {
  background: rgba(94,106,210,0.15);
  color: var(--brand-hover);
  border-bottom-left-radius: 3px;
}
.yakwp-mockup-user {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border-bottom-right-radius: 3px;
  margin-left: auto;
}
.yakwp-mockup-input {
  border-top: 1px solid var(--border-subtle);
  padding: 10px 16px;
  color: var(--text-quaternary);
  font-size: 0.8125rem;
}

/* ── Sections ── */
.yakwp-section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.yakwp-section h2 {
  font-size: 2rem;
  font-weight: 510;
  letter-spacing: -0.288px;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 48px;
}

/* ── Features grid ── */
.yakwp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-standard);
  border-radius: 8px;
  overflow: hidden;
}
.yakwp-feature {
  background: var(--bg-panel);
  padding: 28px;
  transition: background 0.2s;
}
.yakwp-feature:hover { background: var(--bg-surface); }
.yakwp-feature-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
}
.yakwp-feature h3 {
  font-size: 1.0625rem;
  font-weight: 590;
  letter-spacing: -0.24px;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}
.yakwp-feature p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin: 0;
}

/* ── Steps ── */
.yakwp-steps {
  max-width: 560px;
  margin: 0 auto;
}
.yakwp-steps ol {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.yakwp-steps li {
  counter-increment: step;
  padding: 20px 20px 20px 56px;
  position: relative;
  margin-bottom: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.yakwp-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 20px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-bg);
  color: #fff;
  text-align: center;
  line-height: 26px;
  font-weight: 590;
  font-size: 0.75rem;
}
.yakwp-steps li strong { color: var(--text-primary); font-weight: 510; }

/* ── Table ── */
.yakwp-table-wrap {
  border: 1px solid var(--border-standard);
  border-radius: 8px;
  overflow: hidden;
}
.yakwp-table {
  width: 100%;
  border-collapse: collapse;
}
.yakwp-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 510;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-standard);
}
.yakwp-table th.center { text-align: center; }
.yakwp-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.yakwp-table td.center { text-align: center; }
.yakwp-table tr.pro-row { background: rgba(94,106,210,0.06); }
.yakwp-table td.pro-label { color: var(--text-primary); font-weight: 510; }
.yakwp-table tr:last-child td { border-bottom: none; }

/* ── Pricing ── */
.yakwp-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}
.yakwp-price-card {
  padding: 36px;
  border-radius: 8px;
  text-align: center;
}
.yakwp-price-free {
  background: var(--bg-panel);
  border: 1px solid var(--border-standard);
}
.yakwp-price-pro {
  background: var(--brand-bg);
  border: 1px solid transparent;
  color: #fff;
}
.yakwp-price-card h3 {
  font-size: 1.25rem;
  font-weight: 510;
  margin: 0 0 8px 0;
}
.yakwp-price-card .price {
  font-size: 2.5rem;
  font-weight: 590;
  letter-spacing: -0.704px;
  margin: 8px 0;
}
.yakwp-price-card .price small {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: normal;
  opacity: 0.7;
}
.yakwp-price-card p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
  margin: 16px 0;
}
.yakwp-price-free p { color: var(--text-tertiary); }
.yakwp-price-free a {
  color: var(--brand-accent);
  font-weight: 510;
  text-decoration: none;
}
.yakwp-price-free a:hover { color: var(--brand-hover); }
.yakwp-price-pro a {
  color: #fff;
  font-weight: 590;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.yakwp-price-pro a:hover { opacity: 0.9; }

/* ── FAQ ── */
.yakwp-faq {
  max-width: 640px;
  margin: 0 auto;
}
.yakwp-faq h4 {
  font-size: 1.0625rem;
  font-weight: 510;
  color: var(--text-primary);
  margin: 28px 0 8px 0;
  letter-spacing: -0.24px;
}
.yakwp-faq h4:first-child { margin-top: 0; }
.yakwp-faq p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin: 0 0 8px 0;
}

/* ── CTA section ── */
.yakwp-cta {
  text-align: center;
  padding: 80px 24px;
  max-width: 600px;
  margin: 0 auto;
}
.yakwp-cta h2 {
  font-size: 2rem;
  font-weight: 510;
  color: var(--text-primary);
  letter-spacing: -0.288px;
  margin-bottom: 16px;
}
.yakwp-cta p {
  font-size: 1.0625rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  font-weight: 300;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .yakwp-hero { padding: 80px 16px 48px; }
  .yakwp-hero h1 { font-size: 2.25rem; letter-spacing: -0.704px; }
  .yakwp-features { grid-template-columns: 1fr; }
  .yakwp-pricing { grid-template-columns: 1fr; }
  .yakwp-section { padding: 48px 16px; }
}
