/*
Theme Name: Cognativ
Theme URI: https://performancecapability.com
Description: Secure WordPress theme for Cognativ landing, auth pages, and protected app access.
Version: 1.0.0
Author: Performance Capability
Text Domain: cognativ
*/

:root {
  color-scheme: light;
  font-family: 'Archivo', Arial, sans-serif;
  font-size: 16px;
  --paper: #f7f5f2;
  --ink: #11152d;
  --ink-soft: #4b536a;
  --red: #9d0212;
  --gold: #857550;
  --line: #e8e2d8;
  --white: #ffffff;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* { box-sizing: border-box; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; color: var(--ink); }
.brand .mark { width: 36px; height: 36px; border-radius: 8px; background: var(--red); display: grid; place-items: center; color: var(--white); font-weight: 700; }
.nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; padding: 12px 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover { color: var(--red); }
.button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; border: 1px solid transparent; }
.button-primary, .btn-primary { background: var(--red); color: var(--white); }
.button-secondary, .btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.hero { padding: 72px 0 54px; background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.hero .grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.3vw, 3.5rem); line-height: 1.05; margin: 0 0 18px; }
.hero p { color: var(--ink-soft); font-size: 1.06rem; margin: 0 0 22px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 20px 60px rgba(17, 21, 45, 0.06); }
section { padding: 54px 0; }
section h2 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); margin: 0 0 16px; }
section p.lead { max-width: 760px; color: var(--ink-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature, .price-card, .testimonial, .auth-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.price-card.featured { border-color: var(--red); box-shadow: 0 20px 60px rgba(157, 2, 18, 0.12); }
.price { font-size: 2.3rem; font-weight: 800; }
.site-footer { padding: 40px 0 30px; border-top: 1px solid var(--line); background: #fff; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.site-footer .footer-links a { padding: 10px 8px; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer .footer-copyright { margin-top: 10px; font-size: 12px; color: var(--ink-soft); }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font: inherit; font-size: 1rem; min-height: 48px; }
textarea { min-height: 140px; }
input[type="submit"], button[type="submit"] { border: 0; cursor: pointer; padding: 14px 18px; border-radius: 999px; background: var(--red); color: var(--white); font-weight: 700; min-height: 48px; }
.message { padding: 12px 14px; border-radius: 12px; background: #fef2f2; color: var(--red); margin-bottom: 14px; }
.success { background: #ecfdf3; color: #047857; }
.app-shell { background: #0f172a; color: #f9fafb; border-radius: 26px; padding: 24px; }
.app-shell .toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.app-shell .panel { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 18px; margin-bottom: 16px; }
.app-shell .panel h3 { margin-top: 0; }
.app-shell .grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) { .hero .grid, .grid-2, .grid-3, .app-shell .grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .site-header .container { flex-direction: column; align-items: stretch; gap: 14px; }
  .nav-links { justify-content: center; }
}
@media (max-width: 520px) {
  .container { width: calc(100% - 24px); }
  .button, .btn, input[type="submit"], button[type="submit"] { width: 100%; }
  .hero { padding: calc(54px + var(--safe-top)) 0 40px; }
}
