/*
Theme Name: Smydev Pro
Theme URI: https://smydev.com
Author: smydev
Description: An expanded one-page WordPress theme for showcasing a mobile app. Adds feature deep-dives and an FAQ accordion on top of the minimal Smydev one-pager. All content is editable from Appearance → Customize.
Version: 1.1.0
License: GPL-2.0-or-later
Text Domain: smydev-pro
*/

:root {
  --bg: #0b0d14;
  --bg-soft: #11141d;
  --surface: #161a26;
  --text: #e7ebf3;
  --text-dim: #9aa3b8;
  --accent: #6c7bff;
  --accent-soft: rgba(108, 123, 255, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --max: 1120px;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --surface: #ffffff;
  --text: #0b0d14;
  --text-dim: #5b6478;
  --accent: #5b6cff;
  --accent-soft: rgba(91, 108, 255, 0.10);
  --border: rgba(15, 20, 35, 0.08);
}

@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #ffffff;
    --bg-soft: #f6f7fb;
    --surface: #ffffff;
    --text: #0b0d14;
    --text-dim: #5b6478;
    --accent: #5b6cff;
    --accent-soft: rgba(91, 108, 255, 0.10);
    --border: rgba(15, 20, 35, 0.08);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -20% auto -20%;
  height: 70vh;
  background: radial-gradient(60% 60% at 50% 0%, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

html { scroll-behavior: smooth; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo img {
  max-height: 36px;
  width: auto;
  display: block;
}
.site-logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.site-nav-cta:hover { filter: brightness(1.1); }

/* Hero */
.hero {
  padding: 64px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 700;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin: 0 0 32px;
  max-width: 36ch;
}

/* Store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
  min-width: 180px;
}
.store-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.store-badge svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.store-badge-text small {
  font-size: 11px;
  color: #bfc4d1;
  font-weight: 400;
}
.store-badge-text strong {
  font-size: 16px;
  font-weight: 600;
}

/* Phone mockup */
.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}
.phone {
  width: 260px;
  aspect-ratio: 9 / 19.5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 38px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 2;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phone-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-dim);
  font-size: 13px;
  padding: 24px;
  text-align: center;
}

.phone-stack .phone {
  position: absolute;
  transition: transform 0.4s ease;
}
.phone-stack .phone:nth-child(1) {
  transform: translateX(-110px) rotate(-6deg);
  z-index: 1;
  opacity: 0.85;
}
.phone-stack .phone:nth-child(2) {
  transform: translateY(-10px);
  z-index: 3;
}
.phone-stack .phone:nth-child(3) {
  transform: translateX(110px) rotate(6deg);
  z-index: 1;
  opacity: 0.85;
}

/* Shared section heading */
.section-heading {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  max-width: 24ch;
}

/* Features grid */
.features {
  padding: 32px 0 80px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.feature-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 16px;
}
.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.feature-desc {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.95rem;
}

/* Feature deep-dives */
.deepdives {
  padding: 64px 0;
}
.deepdive {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
}
.deepdive + .deepdive {
  border-top: 1px solid var(--border);
}
.deepdive-right .deepdive-phones { order: 2; }
.deepdive-right .deepdive-copy   { order: 1; }

.deepdive-phones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 560px;
  padding: 16px 0;
}
.deepdive-phones-pair .iphone:nth-child(1) {
  transform: translateY(-20px) rotate(-3deg);
}
.deepdive-phones-pair .iphone:nth-child(2) {
  transform: translateY(20px) rotate(3deg);
}

/* iPhone mockup */
.iphone {
  width: 220px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(160deg, #2a2d3a 0%, #0c0e16 100%);
  border-radius: 42px;
  padding: 9px;
  position: relative;
  flex-shrink: 0;
  box-shadow:
    0 30px 60px -25px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(0, 0, 0, 0.35);
}
.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.iphone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 3;
}
.iphone-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-dim);
  font-size: 12px;
  padding: 24px;
  text-align: center;
  line-height: 1.4;
}

.deepdive-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.deepdive-title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}
.deepdive-desc {
  color: var(--text-dim);
  margin: 0;
  font-size: 1rem;
  max-width: 48ch;
}

/* FAQ accordion */
.faq {
  padding: 64px 0 80px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}
.faq-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  flex: 1;
  letter-spacing: -0.01em;
}
.faq-chevron {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 24px 22px;
  color: var(--text-dim);
  font-size: 0.97rem;
}
.faq-a p { margin: 0; }
.faq-a p + p { margin-top: 12px; }

/* Legal pages (Privacy Policy, etc.) */
.legal {
  padding: 56px 0 96px;
}
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content h1 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.legal-meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 36px;
}
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
}
.legal-content p {
  color: var(--text-dim);
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.65;
}
.legal-content ul {
  color: var(--text-dim);
  padding-left: 22px;
  margin: 0 0 14px;
}
.legal-content li {
  margin-bottom: 6px;
  line-height: 1.6;
}
.legal-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: border-color 0.15s ease;
}
.legal-content a:hover {
  border-bottom-color: var(--accent);
}
.legal-content strong {
  color: var(--text);
}

/* Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  margin-top: 64px;
  color: var(--text-dim);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer-links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 860px) {
  .site-nav { gap: 16px; }
  .site-nav a:not(.site-nav-cta) { display: none; }

  .hero { padding: 32px 0 64px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .store-badges { justify-content: center; }
  .phones { min-height: 480px; }
  .phone { width: 220px; }
  .phone-stack .phone:nth-child(1) { transform: translateX(-80px) rotate(-6deg); }
  .phone-stack .phone:nth-child(3) { transform: translateX(80px) rotate(6deg); }

  .deepdive {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }
  .deepdive-right .deepdive-phones,
  .deepdive-right .deepdive-copy {
    order: initial;
  }
  .deepdive-phones { min-height: 480px; }
  .deepdive-phones .iphone { width: 185px; }
}

@media (max-width: 480px) {
  .phone-stack .phone:nth-child(1),
  .phone-stack .phone:nth-child(3) {
    display: none;
  }
  .deepdive-phones { gap: 10px; min-height: 420px; }
  .deepdive-phones .iphone { width: 155px; border-radius: 32px; padding: 7px; }
  .deepdive-phones .iphone::before { top: 14px; width: 64px; height: 18px; }
  .deepdive-phones .iphone-screen { border-radius: 25px; }
  .deepdive-phones-pair .iphone:nth-child(1) { transform: translateY(-12px) rotate(-3deg); }
  .deepdive-phones-pair .iphone:nth-child(2) { transform: translateY(12px) rotate(3deg); }
}
