@font-face {
  font-family: 'PP Mori';
  src: url('fonts/PPMori-Regular.woff2') format('woff2'),
       url('fonts/PPMori-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Mori';
  src: url('fonts/PPMori-SemiBold.woff2') format('woff2'),
       url('fonts/PPMori-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #2C7DA0;
  --color-primary-dark: #235e7a;
  --color-accent-teal: #1EADD9;
  --color-accent-red: #BE2026;
  --color-bg: #f5f8fc;
  --color-card: #ffffff;
  --color-text: #2d3748;
  --color-text-light: #4a5568;
  --color-heading: #1a202c;
  --color-border: rgba(179, 229, 232, 0.3);
  --radius-card: 16px;
  --radius-button: 999px;
  --shadow-card: 0 18px 40px rgba(44, 125, 160, 0.08);
  --shadow-phone: 0 25px 50px rgba(8, 62, 102, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'PP Mori', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

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

/* Header */
.site-header {
  padding: 24px 32px;
}

.site-header .logo {
  height: 32px;
  width: auto;
}

/* Main content */
main {
  flex: 1;
}

/* Hero Section */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 48px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}

.hero-content {
  max-width: 400px;
}

.hero-logo {
  height: 41px;
  width: auto;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-heading);
  line-height: 1.1;
}

.hero p {
  margin: 0 0 32px;
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* App Store Buttons */
.app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.app-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.app-badge img {
  display: block;
  height: 46px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Hero Visual - Phone Mockups */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  perspective: 1000px;
}

.hero-phone {
  position: absolute;
  width: 220px;
  filter: drop-shadow(var(--shadow-phone));
  border-radius: 32px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-phone--back {
  left: 0;
  top: 50%;
  transform: translateY(-45%);
  z-index: 1;
}

.hero-phone--front {
  left: 140px;
  top: 50%;
  transform: translateY(-55%);
  z-index: 2;
}

/* Large screen hover animations */
@media (min-width: 901px) and (hover: hover) {
  .hero-phone--back:hover {
    transform: translateY(-45%) scale(1.05) rotateY(8deg) rotateX(-3deg);
    filter: drop-shadow(0 35px 60px rgba(8, 62, 102, 0.35));
    z-index: 3;
  }

  .hero-phone--front:hover {
    transform: translateY(-55%) scale(1.08) rotateY(-5deg) rotateX(3deg);
    filter: drop-shadow(0 40px 70px rgba(8, 62, 102, 0.4));
    z-index: 4;
  }

  .hero-visual:hover .hero-phone--back:not(:hover) {
    transform: translateY(-45%) translateX(-8px) rotateY(3deg);
  }

  .hero-visual:hover .hero-phone--front:not(:hover) {
    transform: translateY(-55%) translateX(8px) rotateY(-3deg);
  }
}

/* Page Layout (Privacy, Terms) */
.page-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-header .home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 48px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 16px rgba(15, 36, 64, 0.08);
  transition: box-shadow 0.2s ease;
}

.page-header .home-link:hover {
  box-shadow: 0 12px 24px rgba(15, 36, 64, 0.12);
}

.page-header .logo-small {
  height: 24px;
  width: auto;
}

.page-header h1 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--color-heading);
}

.page-meta {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Page Content */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: grid;
  gap: 24px;
}

/* Cards */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.card h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  color: var(--color-heading);
}

.card p {
  margin: 0;
}

.card p + p {
  margin-top: 12px;
}

.card ul {
  margin: 0;
  padding-left: 20px;
}

.card li + li {
  margin-top: 8px;
}

/* Policy Pages (Privacy, Terms) */
.policy-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 32px 48px;
}

.policy-card {
  padding: 48px 56px;
}

.policy-card h1 {
  margin: 0 0 8px;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-heading);
}

.policy-date {
  margin: 0 0 40px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.policy-card section {
  margin-top: 32px;
}

.policy-card section:first-of-type {
  margin-top: 0;
}

.policy-card h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-light);
}

.policy-card p {
  margin: 0;
  line-height: 1.7;
}

.policy-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.policy-card li {
  line-height: 1.7;
}

.policy-card li + li {
  margin-top: 12px;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.footer-links span {
  color: var(--color-text-light);
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding: 24px 24px 60px;
  }

  .hero-content {
    max-width: 100%;
    order: 1;
  }

  .hero-visual {
    order: 2;
    min-height: 400px;
  }

  .hero-phone {
    width: 180px;
  }

  .hero-phone--back {
    left: 50%;
    transform: translate(-80%, -50%);
  }

  .hero-phone--front {
    right: auto;
    left: 50%;
    transform: translate(-20%, -50%);
  }

  .app-buttons {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 16px 20px;
  }

  .hero {
    padding: 16px 20px 48px;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-phone {
    width: 150px;
  }

  .hero-phone--back {
    left: 50%;
    transform: translate(-90%, -45%);
  }

  .hero-phone--front {
    left: 50%;
    transform: translate(-10%, -55%);
  }

  .app-buttons {
    justify-content: center;
  }

  .card {
    padding: 24px;
  }

  .page-header {
    padding: 24px 20px 0;
  }

  .page-content {
    padding: 24px 20px 48px;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 24px 20px;
  }

  .policy-content {
    padding: 16px 20px 48px;
  }

  .policy-card {
    padding: 32px 24px;
  }

  .policy-card h1 {
    font-size: 2rem;
  }
}
