/*
Theme Name: FirstLocal Studio
Theme URI: https://firstlocalstudio.com
Author: FirstLocal Studio
Author URI: https://firstlocalstudio.com
Description: The official theme for FirstLocal Studio — a growing suite of professional tools that run entirely in your browser. No accounts. No uploads. No tracking. Software that stays where it belongs.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: firstlocal-studio
Tags: dark, custom-menu, custom-logo, featured-images, full-width-template, theme-options, one-column, two-columns
*/

/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
  --bg:         #0c0f0e;
  --surface:    #131714;
  --surface-2:  #161c19;
  --border:     #1e2420;
  --text:       #dde8e2;
  --muted:      #6b7f74;
  --accent:     #3ddc84;
  --accent-dim: #1a4a33;
  --serif:      'Instrument Serif', Georgia, serif;
  --mono:       'DM Mono', monospace;
  --sans:       'Manrope', system-ui, sans-serif;
  --radius:     10px;
  --radius-lg:  14px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: .4;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
p { line-height: 1.75; }

/* ═══════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.section-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
section { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(12,15,14,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: padding .3s;
}
.site-header.scrolled { padding: 14px 48px; }

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.site-logo-text {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.site-logo-text span { color: var(--muted); }
.custom-logo { height: 32px; width: auto; }

/* Primary nav */
.primary-navigation {
  display: flex; align-items: center; gap: 8px;
}
.primary-navigation ul {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.primary-navigation ul li {
  position: relative;
}
.primary-navigation ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color .2s;
  border-radius: 6px;
  white-space: nowrap;
}
.primary-navigation ul li a:hover,
.primary-navigation ul li.current-menu-item > a,
.primary-navigation ul li.current-menu-ancestor > a {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

/* Dropdown submenu (Tools) */
.primary-navigation ul ul {
  position: absolute; top: calc(100% + 8px); left: 0;
  flex-direction: column; gap: 2px;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s ease;
  box-shadow: var(--shadow);
}
.primary-navigation ul li:hover > ul,
.primary-navigation ul li:focus-within > ul {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-navigation ul ul li a {
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 6px;
}
.primary-navigation ul ul li a:hover { color: var(--accent); }

/* Dropdown arrow indicator */
.primary-navigation ul li.menu-item-has-children > a::after {
  content: ' ↓';
  font-size: 10px;
  color: var(--muted);
  margin-left: 2px;
}

/* Nav right: login + CTA */
.nav-actions {
  display: flex; align-items: center; gap: 12px;
  margin-left: 24px;
}
.nav-login {
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all .2s;
}
.nav-login:hover { color: var(--text); border-color: var(--muted); }
.nav-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: #0c0f0e;
  border-radius: 6px;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: .85; color: #0c0f0e; }

/* Account menu (logged in) */
.nav-account {
  display: flex; align-items: center; gap: 12px;
}
.nav-account-name {
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.nav-account-avatar {
  width: 32px; height: 32px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--accent); font-family: var(--mono);
  border: 1px solid var(--accent-dim);
}
.nav-logout {
  font-size: 12px; color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  text-decoration: none;
  transition: all .2s;
}
.nav-logout:hover { color: var(--text); border-color: var(--muted); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 6px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--muted);
  transition: all .3s;
}

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #0c0f0e;
  border-radius: 8px;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  transition: all .2s;
  letter-spacing: 0.3px;
  border: none; cursor: pointer;
}
.btn-primary:hover { opacity: .88; color: #0c0f0e; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  font-weight: 500; font-size: 14px;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: block; width: 32px; height: 1px;
  background: var(--accent-dim);
}
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--text);
  max-width: 900px;
  margin-bottom: 24px;
}
.hero-h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 18px; color: var(--muted);
  max-width: 560px; line-height: 1.7;
  margin-bottom: 48px;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.scroll-hint {
  position: absolute; bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  letter-spacing: 2px; text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.scroll-hint::after {
  content: ''; width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--muted), transparent);
}

/* ═══════════════════════════════════════════════
   PROBLEM SECTION
═══════════════════════════════════════════════ */
.problem-section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.problem-h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.problem-body {
  color: var(--muted); font-size: 16px; line-height: 1.8;
  margin-bottom: 16px;
}
.problem-body strong { color: var(--text); }
.problem-list { display: flex; flex-direction: column; gap: 16px; }
.problem-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.problem-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.problem-item-title { font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.problem-item-body { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════
   PHILOSOPHY SECTION
═══════════════════════════════════════════════ */
.philosophy-section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.philosophy-h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1; letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.philosophy-sub {
  color: var(--muted); font-size: 17px;
  max-width: 540px; margin: 0 auto 72px; line-height: 1.7;
}
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.pillar {
  padding: 48px 36px;
  background: var(--surface);
  text-align: left;
  transition: background .2s;
}
.pillar:hover { background: var(--surface-2); }
.pillar-num {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 2px;
  margin-bottom: 20px; display: block;
}
.pillar-title {
  font-family: var(--serif); font-size: 28px;
  color: var(--text); margin-bottom: 12px; line-height: 1.2;
}
.pillar-body { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ═══════════════════════════════════════════════
   TOOLS SECTION
═══════════════════════════════════════════════ */
.tools-section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.tools-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 56px; flex-wrap: wrap; gap: 24px;
}
.tools-h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1; letter-spacing: -0.5px;
}
.tools-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px;
}

/* Tool cards */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 48px;
  text-decoration: none;
  display: block;
  transition: background .2s;
  position: relative;
  overflow: hidden;
  color: var(--text);
}
.tool-card:hover { background: var(--surface-2); color: var(--text); }
.tool-card.tool-featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.tool-card.tool-coming { cursor: default; }
.tool-card.tool-coming:hover { background: var(--surface); }
.tool-card:not(.tool-featured):not(.tool-coming):first-child,
.tool-card:not(.tool-featured):first-child { border-radius: 0; }
.tool-coming-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; grid-column: 1 / -1;
}
.tool-coming-wrap .tool-card:first-child { border-radius: 0 0 0 var(--radius-lg); }
.tool-coming-wrap .tool-card:last-child  { border-radius: 0 0 var(--radius-lg) 0; }

/* If only one coming-soon card */
.tool-coming-wrap .tool-card:only-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Badge */
.tool-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; padding: 5px 12px; border-radius: 20px;
  margin-bottom: 20px;
}
.tool-badge.live {
  background: rgba(61,220,132,0.1);
  border: 1px solid rgba(61,220,132,0.3);
  color: var(--accent);
}
.tool-badge.live::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.tool-badge.soon {
  background: rgba(107,127,116,0.1);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* Tool content */
.tool-name {
  font-family: var(--serif); font-size: 36px;
  color: var(--text); margin-bottom: 12px; line-height: 1.1;
}
.tool-card.tool-coming .tool-name { color: var(--muted); }
.tool-desc {
  font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 24px;
}
.tool-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.tool-feature {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--muted);
}
.tool-feature::before {
  content: '→'; color: var(--accent);
  font-family: var(--mono); flex-shrink: 0; margin-top: 1px;
}
.tool-price {
  font-family: var(--mono); font-size: 28px;
  color: var(--accent); font-weight: 500; margin-bottom: 6px;
}
.tool-price-note { font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.tool-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: var(--accent); color: #0c0f0e;
  border-radius: 7px; font-weight: 700; font-size: 13px;
  text-decoration: none; transition: opacity .2s;
}
.tool-cta:hover { opacity: .85; color: #0c0f0e; }

/* Tool visual (terminal preview) */
.tool-visual {
  background: #0e1410;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); line-height: 2;
}
.tv-line { display: flex; gap: 12px; }
.tv-time  { color: var(--accent-dim); }
.tv-type  { color: var(--accent); }
.tv-text  { color: var(--text); }
.tv-footer {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--accent); font-size: 11px;
}

/* Smaller card variant */
.tool-card:not(.tool-featured) .tool-name { font-size: 26px; }
.tool-card:not(.tool-featured) .tool-desc { font-size: 13px; }

/* ═══════════════════════════════════════════════
   PROMISE / GUARANTEES
═══════════════════════════════════════════════ */
.promise-section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.promise-h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1; letter-spacing: -0.5px;
  max-width: 700px; margin: 0 auto 20px;
}
.promise-sub {
  font-size: 17px; color: var(--muted);
  max-width: 480px; margin: 0 auto 64px; line-height: 1.7;
}
.guarantees {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; text-align: left;
}
.guarantee { padding: 32px 28px; background: var(--surface); }
.guarantee-icon { font-size: 24px; margin-bottom: 16px; display: block; }
.guarantee-title { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 8px; }
.guarantee-body { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════ */
.cta-banner-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-banner-h2 {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1; color: var(--text); margin-bottom: 16px;
}
.cta-banner-sub { font-size: 16px; color: var(--muted); margin-bottom: 40px; }
.cta-banner-note {
  margin-top: 20px;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════
   NEWSLETTER SECTION
═══════════════════════════════════════════════ */
.newsletter-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--surface);
  position: relative; z-index: 1;
}
.newsletter-eyebrow {
  font-family: var(--mono); font-size: 10px;
  color: var(--accent); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 16px; display: block;
}
.newsletter-h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1; letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.newsletter-sub {
  color: var(--muted); font-size: 16px;
  max-width: 500px; margin: 0 auto 20px; line-height: 1.7;
}
.newsletter-benefits {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  margin-bottom: 48px;
}
.newsletter-benefit {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  font-family: var(--mono);
}
.newsletter-benefit::before {
  content: '✓'; color: var(--accent);
  font-size: 12px;
}
.newsletter-form-wrap {
  max-width: 600px; margin: 0 auto;
}

/* Override Fluent Forms to match theme */
.newsletter-form-wrap .ff-el-form-control,
.newsletter-form-wrap input[type="email"],
.newsletter-form-wrap input[type="text"] {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  padding: 14px 16px !important;
}
.newsletter-form-wrap .ff-el-form-control:focus,
.newsletter-form-wrap input:focus {
  border-color: var(--accent) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(61,220,132,0.12) !important;
}
.newsletter-form-wrap .ff-btn-submit,
.newsletter-form-wrap button[type="submit"] {
  background: var(--accent) !important;
  color: #0c0f0e !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: var(--sans) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 14px 32px !important;
  cursor: pointer !important;
  transition: opacity .2s !important;
}
.newsletter-form-wrap .ff-btn-submit:hover,
.newsletter-form-wrap button[type="submit"]:hover {
  opacity: .85 !important;
}
.newsletter-form-wrap .ff-el-group label {
  color: var(--muted) !important;
  font-size: 13px !important;
}
.newsletter-note {
  margin-top: 16px;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════
   SITE FOOTER
═══════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
  position: relative; z-index: 1;
}
.footer-brand {}
.footer-logo-text {
  font-family: var(--mono); font-size: 15px;
  color: var(--accent); letter-spacing: -0.5px;
  text-decoration: none; display: block; margin-bottom: 6px;
}
.footer-logo-text span { color: var(--muted); }
.footer-tagline {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.5px;
}
.footer-nav-center {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.footer-nav ul {
  display: flex; flex-wrap: wrap; gap: 24px;
  list-style: none; margin: 0; padding: 0;
  justify-content: center;
}
.footer-nav ul li a {
  font-size: 13px; color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.footer-nav ul li a:hover { color: var(--text); }
.footer-legal {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.3px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.footer-legal a {
  color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.footer-legal a:hover { color: var(--accent); }
.footer-right { text-align: right; }
.footer-social {
  display: flex; gap: 12px; justify-content: flex-end; margin-bottom: 8px;
}
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--muted); font-size: 14px;
  text-decoration: none; transition: all .2s;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent-dim); }

/* ═══════════════════════════════════════════════
   GENERIC PAGE CONTENT
═══════════════════════════════════════════════ */
.page-hero {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--border);
}
.page-hero-label {
  font-family: var(--mono); font-size: 10px;
  color: var(--accent); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 16px; display: block;
}
.page-hero-h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1; letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 18px; color: var(--muted); max-width: 560px; line-height: 1.7;
}
.page-content {
  padding: 80px 0;
}
.page-content-inner {
  max-width: 760px;
}
.page-content-inner h2 {
  font-family: var(--serif); font-size: 32px; margin: 48px 0 16px;
}
.page-content-inner h3 {
  font-family: var(--serif); font-size: 24px; margin: 32px 0 12px;
}
.page-content-inner p {
  color: var(--muted); margin-bottom: 16px; line-height: 1.8;
}
.page-content-inner strong { color: var(--text); }
.page-content-inner a { color: var(--accent); }
.page-content-inner ul, .page-content-inner ol {
  color: var(--muted); padding-left: 24px; margin-bottom: 16px; line-height: 1.8;
}

/* ═══════════════════════════════════════════════
   TOOLS ARCHIVE PAGE
═══════════════════════════════════════════════ */
.tools-archive-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px; margin-top: 48px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.tools-archive-grid .tool-card { border-radius: 0; border: none; }

/* ═══════════════════════════════════════════════
   SINGLE TOOL PAGE
═══════════════════════════════════════════════ */
.tool-single-hero {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--border);
}
.tool-single-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.tool-single-content .tool-name { font-size: 52px; margin-bottom: 16px; }
.tool-single-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ═══════════════════════════════════════════════
   MY ACCOUNT PAGE
═══════════════════════════════════════════════ */
.account-section { padding: 160px 0 80px; }
.account-grid {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 48px; align-items: start;
}
.account-sidebar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 100px;
}
.account-user {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.account-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-dim); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 18px; color: var(--accent);
  flex-shrink: 0;
}
.account-name { font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 2px; }
.account-email { font-size: 12px; color: var(--muted); }
.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav a {
  padding: 9px 12px; border-radius: 6px;
  font-size: 13px; color: var(--muted); text-decoration: none;
  transition: all .2s; display: flex; align-items: center; gap: 8px;
}
.account-nav a:hover, .account-nav a.active {
  color: var(--text); background: rgba(255,255,255,0.05);
}
.account-main { }
.account-main h2 {
  font-family: var(--serif); font-size: 32px; margin-bottom: 32px;
}
.owned-tools-grid {
  display: flex; flex-direction: column; gap: 16px;
}
.owned-tool-card {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.owned-tool-icon {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--accent-dim); display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.owned-tool-info { flex: 1; }
.owned-tool-name { font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.owned-tool-meta { font-size: 12px; color: var(--muted); }
.owned-tool-actions { display: flex; gap: 10px; }
.owned-no-tools {
  text-align: center; padding: 60px 24px;
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.owned-no-tools p { color: var(--muted); margin-bottom: 20px; }

/* ═══════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════ */
.login-section {
  min-height: 80vh; display: flex;
  align-items: center; justify-content: center;
  padding: 120px 24px;
}
.login-box {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px;
}
.login-box h1 {
  font-family: var(--serif); font-size: 32px; margin-bottom: 8px;
}
.login-box .login-sub {
  color: var(--muted); font-size: 14px; margin-bottom: 32px; line-height: 1.6;
}
.login-box .login-username label,
.login-box .login-password label {
  font-size: 13px; font-weight: 500; color: var(--muted);
  display: block; margin-bottom: 6px;
}
.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 7px; color: var(--text);
  font-family: var(--sans); font-size: 14px;
  transition: border-color .2s;
}
.login-box input:focus {
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 0 3px rgba(61,220,132,0.12);
}
.login-box .login-username,
.login-box .login-password { margin-bottom: 20px; }
.login-box .login-submit input[type="submit"] {
  width: 100%; padding: 13px;
  background: var(--accent); color: #0c0f0e;
  border: none; border-radius: 7px;
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  cursor: pointer; transition: opacity .2s;
}
.login-box .login-submit input[type="submit"]:hover { opacity: .85; }
.login-box .login-remember {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px; font-size: 13px; color: var(--muted);
}
#nav { display: none; }
.login-box a { color: var(--accent); font-size: 13px; }
.login-notice {
  padding: 12px 16px; margin-bottom: 24px;
  background: rgba(61,220,132,0.08); border: 1px solid var(--accent-dim);
  border-radius: 7px; font-size: 13px; color: var(--muted); line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   404 PAGE
═══════════════════════════════════════════════ */
.error-404 {
  min-height: 80vh; display: flex;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px 24px;
}
.error-404 .error-code {
  font-family: var(--mono); font-size: 120px; font-weight: 500;
  color: var(--accent-dim); line-height: 1;
  margin-bottom: 24px;
}
.error-404 h1 {
  font-family: var(--serif); font-size: 40px; margin-bottom: 16px;
}
.error-404 p { color: var(--muted); margin-bottom: 32px; }

/* ═══════════════════════════════════════════════
   WPADMIN BAR OFFSET
═══════════════════════════════════════════════ */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .guarantees { grid-template-columns: repeat(2, 1fr); }
  .tool-card.tool-featured { grid-template-columns: 1fr; }
  .tool-visual { display: none; }
}

@media (max-width: 768px) {
  .site-header { padding: 16px 24px; }
  .container { padding: 0 24px; }
  .primary-navigation { display: none; }
  .primary-navigation.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: 65px; left: 0; right: 0;
    background: rgba(12,15,14,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 0;
  }
  .primary-navigation.is-open ul {
    flex-direction: column; gap: 4px;
  }
  .primary-navigation.is-open ul ul {
    position: static; opacity: 1; visibility: visible;
    transform: none; border: none; background: transparent;
    padding: 0 0 0 16px; box-shadow: none;
  }
  .nav-toggle { display: flex; }
  .nav-actions { display: none; }
  .primary-navigation.is-open + .nav-actions { display: flex; }
  .problem-grid { grid-template-columns: 1fr; gap: 48px; }
  .pillars { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card.tool-featured { grid-column: auto; }
  .tool-coming-wrap { grid-template-columns: 1fr; }
  .guarantees { grid-template-columns: 1fr 1fr; }
  .tool-single-grid { grid-template-columns: 1fr; gap: 40px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center; padding: 40px 24px;
  }
  .footer-social { justify-content: center; }
  .footer-right { text-align: center; }
  .newsletter-benefits { flex-direction: column; align-items: center; gap: 12px; }
}

@media (max-width: 480px) {
  .guarantees { grid-template-columns: 1fr; }
  .tool-coming-wrap .tool-card:first-child { border-radius: 0; }
  .tool-coming-wrap .tool-card:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}
