/* ===== CSS Variables ===== */
:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1140px;
  --header-height: 64px;
}

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

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

body {
  font-family: var(--font-family);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== Utilities ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--teal-800);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

/* Placeholder logo when no image provided */
.header__logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--teal-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-900);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  color: var(--teal-100);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--white);
}

.nav__link--cta {
  background: var(--white);
  color: var(--teal-800);
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.nav__link--cta:hover {
  background: var(--teal-100);
  color: var(--teal-800);
  transform: translateY(-1px);
}

/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

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

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

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--teal-700) 0%, var(--teal-600) 50%, var(--teal-500) 100%);
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero__content {
  flex: 1;
  max-width: 520px;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero__tagline {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--teal-100);
  line-height: 1.5;
  margin-bottom: 32px;
}

.hero__badges {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.app-store-badge img {
  height: 52px;
  width: auto;
}

.hero__visual {
  flex: 0 0 auto;
}

/* ===== iPhone Mockup ===== */
.iphone-mockup {
  position: relative;
  width: 260px;
  height: 530px;
  background: #1a1a1a;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #2a2a2a,
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 0 0 6px rgba(0, 0, 0, 0.1);
}

.iphone-mockup__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.iphone-mockup__screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.iphone-mockup__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iphone-mockup__placeholder {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.85rem;
  padding: 20px;
}

.iphone-mockup__placeholder-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Smaller mockups for gallery */
.iphone-mockup--sm {
  width: 220px;
  height: 448px;
  border-radius: 38px;
  padding: 10px;
}

.iphone-mockup--sm .iphone-mockup__notch {
  top: 10px;
  width: 100px;
  height: 24px;
  border-radius: 0 0 14px 14px;
}

.iphone-mockup--sm .iphone-mockup__screen {
  border-radius: 30px;
}

/* ===== Feature Rows ===== */
.feature-row {
  padding: 80px 0;
  background: var(--white);
}

.feature-row--alt {
  background: var(--teal-50);
}

.feature-row__inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.feature-row--alt .feature-row__inner {
  flex-direction: row-reverse;
}

.feature-row__text {
  flex: 1;
}

.feature-row__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.feature-row__desc {
  font-size: 1.1rem;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: 480px;
}

.feature-row__visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

/* ===== CTA Section ===== */
.cta {
  padding: 80px 0;
  background: var(--white);
  text-align: center;
}

.cta__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.cta__subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-bottom: 32px;
}

/* ===== Footer ===== */
.footer {
  background: var(--teal-900);
  padding: 48px 0 32px;
  color: var(--teal-200);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  color: var(--teal-200);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--white);
}

.footer__contact {
  font-size: 0.9rem;
  color: var(--teal-300);
}

.footer__contact a {
  color: var(--teal-200);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__contact a:hover {
  color: var(--white);
}

.footer__copyright {
  font-size: 0.8rem;
  color: var(--teal-400);
  opacity: 0.7;
}

/* ===== Legal Pages ===== */
.legal-page {
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 80px;
  min-height: 100vh;
  background: var(--gray-100);
}

.legal-page__content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px 40px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.legal-page__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.legal-page__date {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.legal-page__content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page__content p {
  margin-bottom: 16px;
  color: var(--gray-700);
  line-height: 1.7;
}

.legal-page__content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page__content li {
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-page__content a {
  color: var(--teal-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__content a:hover {
  color: var(--teal-700);
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__badges {
    justify-content: center;
  }

  .feature-row__inner,
  .feature-row--alt .feature-row__inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .feature-row__desc {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  /* Mobile nav */
  .nav__toggle {
    display: block;
  }

  .nav__list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--teal-800);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav__list.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .feature-row {
    padding: 48px 0;
  }

  .iphone-mockup {
    width: 220px;
    height: 448px;
    border-radius: 38px;
    padding: 10px;
  }

  .iphone-mockup__notch {
    top: 10px;
    width: 100px;
    height: 24px;
    border-radius: 0 0 14px 14px;
  }

  .iphone-mockup__screen {
    border-radius: 30px;
  }

  .iphone-mockup--sm {
    width: 180px;
    height: 366px;
    border-radius: 32px;
    padding: 8px;
  }

  .iphone-mockup--sm .iphone-mockup__notch {
    top: 8px;
    width: 80px;
    height: 20px;
    border-radius: 0 0 12px 12px;
  }

  .iphone-mockup--sm .iphone-mockup__screen {
    border-radius: 26px;
  }


  .legal-page__content {
    padding: 32px 20px;
    border-radius: 0;
  }

  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

/* ===== WordPress Admin Bar Fix ===== */
@media screen and (min-width: 783px) {
  .admin-bar .header {
    top: 32px;
  }
}

@media screen and (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}

/* WordPress custom logo integration */
.header__logo .custom-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

/* WordPress nav menu link styling */
.nav__list .menu-item a {
  color: var(--teal-100);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__list .menu-item a:hover {
  color: var(--white);
}
