/* ============================================
   Wallification Landing Page
   Brand: #007CBC (blue), #00D574 (green)
   ============================================ */

/* --- Custom Properties --- */
:root {
  --blue: #007CBC;
  --blue-dark: #005F8F;
  --green: #00D574;
  --green-dark: #00B862;
  --red: #F75C5C;
  --amber: #FFA844;
  --yellow: #FFDF44;

  --text-primary: #1A1D2B;
  --text-secondary: #4D5566;
  --text-muted: #7A8299;

  --bg-white: #FFFFFF;
  --bg-cool: #F3F6FB;
  --bg-blue-tint: #E8F2F8;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --max-width: 1120px;
  --section-pad: 80px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--blue-dark);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p + p { margin-top: 1em; }

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

section {
  padding: var(--section-pad) 0;
}

.section-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-intro {
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-brand span {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--blue);
  color: var(--bg-white) !important;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--blue-dark);
  color: var(--bg-white) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-white);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }
}

/* --- Hero --- */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(170deg, var(--bg-white) 40%, var(--bg-cool) 100%);
  overflow: hidden;
}

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

.hero-copy h1 {
  margin-bottom: 20px;
}

.hero-copy h1 .highlight {
  color: var(--blue);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--text-primary);
  color: var(--bg-white);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--bg-white);
}

.btn-store svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-store-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-phone-img {
  width: 280px;
}

@media (max-width: 768px) {
  .hero {
    padding: 48px 0 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-phone-img {
    width: 200px;
  }
}

/* --- How it Works --- */
.how-it-works {
  background: var(--bg-white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-cool);
  border: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.step-card:nth-child(1) .step-icon {
  background: rgba(0, 213, 116, 0.12);
}

.step-card:nth-child(2) .step-icon {
  background: rgba(0, 124, 188, 0.12);
}

.step-card:nth-child(3) .step-icon {
  background: rgba(255, 168, 68, 0.12);
}

.step-card h3 {
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

/* --- Features --- */
.features {
  background: var(--bg-cool);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  background: var(--bg-blue-tint);
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

/* --- Pricing --- */
.pricing {
  background: var(--bg-white);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
}

.pricing-card {
  border: 2px solid var(--bg-cool);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: border-color 0.3s;
}

.pricing-card.featured {
  border-color: var(--blue);
  position: relative;
}

.pricing-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--blue);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.pricing-card h3 {
  margin-bottom: 4px;
}

.pricing-price {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin: 12px 0;
}

.pricing-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.pricing-list {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-list li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

/* --- FAQ --- */
.faq {
  background: var(--bg-cool);
}

.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question:hover {
  color: var(--blue);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  stroke: var(--text-muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--blue);
  color: white;
  text-align: center;
  padding: 64px 0;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.cta-banner .hero-actions {
  justify-content: center;
}

.cta-banner .btn-store {
  background: var(--bg-white);
  color: var(--text-primary);
}

.cta-banner .btn-store:hover {
  background: var(--bg-cool);
}

/* --- Footer --- */
.site-footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
  margin-top: 12px;
}

.footer-brand .nav-brand span {
  color: white;
}

.site-footer h4 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--green);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===========================
   Legal Pages (T&C, Privacy)
   =========================== */
.legal-page {
  padding: 48px 0 80px;
}

.legal-page h1 {
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-body h3 {
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-body p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-body ul {
  color: var(--text-secondary);
  margin: 8px 0 16px 24px;
}

.legal-body ul li {
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(0, 124, 188, 0.3);
  text-underline-offset: 2px;
}

.legal-body a:hover {
  text-decoration-color: var(--blue);
}

/* ===========================
   404 Page
   =========================== */
.page-404 {
  text-align: center;
  padding: 120px 0;
}

.page-404 h1 {
  font-size: 6rem;
  color: var(--blue);
  margin-bottom: 8px;
}

.page-404 p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: var(--blue);
  color: var(--bg-white);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--bg-white);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --- Focus states --- */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

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