/*
Theme Name: Spento Landing
Theme URI: https://spento.app/
Author: Spento
Author URI: https://spento.app/
Description: Marketing landing theme for Spento — track your spending, set budgets, and stay in control of your finances. Ported from the static landing-gemini build.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spento-landing
Tags: one-column, custom-menu, custom-logo, editor-style, translation-ready, landing
*/

:root {
  --primary: #003b95;
  --primary-light: #4ecdc4;
  --background: #f7f9fb;
  --card: #ffffff;
  --text: #222222;
  --subtitle: #888888;
  --border: #e0e6ed;
  --accent: #ff9900;
  --green: #2e7d32;
  --red: #c62828;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --container-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--background);
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 48px;
  color: var(--primary);
}

.section-title {
  font-size: 36px;
  margin-bottom: 60px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--subtitle);
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 59, 149, 0.25);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 59, 149, 0.3);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 18px;
}

/* Header */
.site-header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 800;
  font-size: 24px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

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

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--primary);
}

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}

/* Hero */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-image {
  max-width: 320px;
  margin: 0 auto;
  position: relative;
  background-color: #000;
  padding: 12px;
  border-radius: 54px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.hero-image-inner {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border-radius: 42px;
  position: relative;
  background-color: #000;
  z-index: 1;
}

.hero-image::before,
.hero-image::after {
  content: '';
  position: absolute;
  background: #000;
  width: 3px;
  z-index: 0;
}

.hero-image::before {
  left: -3px;
  top: 100px;
  height: 40px;
  box-shadow: 0 50px 0 #000;
  border-radius: 4px 0 0 4px;
}

.hero-image::after {
  right: -3px;
  top: 140px;
  height: 60px;
  border-radius: 0 4px 4px 0;
}

.app-mockup {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
}

.trial-text {
  margin-top: 30px;
  font-size: 14px;
  color: var(--subtitle);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 40px;
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.dashboard-icon { background-color: #e8f0fe; color: #1a73e8; }
.categories-icon { background-color: #e6f4ea; color: #0b8043; }
.recurring-icon { background-color: #fef7e0; color: #c98b00; }
.budget-icon { background-color: #fce8e6; color: #d93025; }

/* How it Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  margin: 0 auto 24px;
}

.step-img-container {
  max-width: 260px;
  margin: 30px auto 0;
  position: relative;
  background-color: #000;
  padding: 10px;
  border-radius: 44px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.step-img-inner {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border-radius: 34px;
  position: relative;
  background-color: #000;
  z-index: 1;
}

.step-img-container::before,
.step-img-container::after {
  content: '';
  position: absolute;
  background: #000;
  width: 3px;
  z-index: 0;
}

.step-img-container::before {
  left: -3px;
  top: 80px;
  height: 32px;
  box-shadow: 0 40px 0 #000;
  border-radius: 4px 0 0 4px;
}

.step-img-container::after {
  right: -3px;
  top: 110px;
  height: 48px;
  border-radius: 0 4px 4px 0;
}

.step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
  display: block;
}

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: center;
}

.security-item {
  display: flex;
  gap: 20px;
  margin-top: 32px;
}

.security-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.security-item h4 {
  margin-bottom: 8px;
  font-size: 18px;
}

.security-item p {
  color: var(--subtitle);
}

.plaid-badge {
  background: var(--background);
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.plaid-badge span {
  font-size: 13px;
  color: var(--subtitle);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.plaid-logo {
  height: 44px;
  width: auto;
  display: block;
}

/* CTA */
.cta {
  background-color: var(--primary);
  color: var(--white);
}

.cta-title {
  font-size: 40px;
}

.cta-subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.cta .btn-primary {
  background-color: var(--white);
  color: var(--primary);
}

.coming-soon {
  font-size: 14px;
  opacity: 0.7;
}

/* Footer */
.site-footer {
  padding: 80px 0 40px;
  background-color: var(--background);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--subtitle);
}

.footer-links h4 {
  font-size: 16px;
  margin-bottom: 24px;
}

.footer-links a {
  display: block;
  text-decoration: none;
  color: var(--subtitle);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

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

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--subtitle);
  font-size: 14px;
}

/* Legal pages */
.legal-content {
  max-width: 820px;
  margin: 120px auto 80px;
  padding: 0 24px;
}

.legal-content h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.legal-content .updated {
  color: #888;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 24px;
  margin-top: 44px;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-content p,
.legal-content li {
  color: #333;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-content ul ul {
  margin-top: 8px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--primary);
}

.legal-content .callout {
  background: var(--background);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.legal-content .callout.warning {
  background: #fff7e6;
  border-left-color: var(--accent);
}

.legal-content .toc {
  background: var(--background);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0 40px;
}

.legal-content .toc h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.legal-content .toc ol {
  margin: 0;
  padding-left: 20px;
}

.legal-content .toc a {
  text-decoration: none;
}

.legal-content .toc a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .security-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 32px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .nav {
    display: none;
  }
}
