:root {
  --navy: #0d1b4b;
  --blue: #1565c0;
  --cyan: #00d4ff;
  --white: #ffffff;
  --text: #212121;
  --muted: #6b7280;
  --light-gray: #f5f7fa;
  --font: 'Segoe UI', Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid #e7ebf2;
}

.header-inner {
  text-align: center;
  padding: 1.5rem 0 1.2rem;
}

.logo {
  height: 56px;
  width: auto;
  margin: 0 auto 0.55rem;
  border-radius: 6px;
}

.company-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}

.hero {
  background: linear-gradient(135deg, var(--navy), var(--blue), var(--cyan));
  color: var(--white);
}

.hero-inner {
  text-align: center;
  padding: 5rem 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section {
  padding: 4rem 0;
}

.services h2,
.contact h2 {
  text-align: center;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  margin-bottom: 1.6rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.service-card {
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  padding: 1.3rem;
  background: var(--white);
  text-align: center;
}

.service-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.8rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  align-items: center;
  border-radius: 10px;
  background: #eef4ff;
  color: var(--navy);
  font-size: 1.2rem;
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.service-card p {
  color: var(--muted);
}

.contact {
  background: var(--white);
}

.contact-card {
  background: var(--light-gray);
  border: 1px solid #dbe2ee;
  border-radius: 14px;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.6rem;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e3e8f2;
}

.info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-list span {
  color: var(--muted);
}

.info-list strong {
  color: var(--navy);
  text-align: right;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
}

.footer-inner {
  text-align: center;
  padding: 1.4rem 1.5rem;
  font-size: 0.96rem;
}

.footer-inner p + p {
  margin-top: 0.4rem;
}

.footer-inner a {
  color: var(--white);
}

@media (max-width: 640px) {
  .hero-inner {
    padding: 4rem 1rem;
  }

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

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

  .section {
    padding: 3rem 0;
  }

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

  .info-list li {
    flex-direction: column;
    gap: 0.25rem;
  }

  .info-list strong {
    text-align: left;
  }
}

/* ---- Header nav (used on all pages) ---- */
.site-nav {
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

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

.site-nav a.active {
  color: var(--blue);
  border-bottom: 2px solid var(--cyan);
}

/* ---- Official Apple "Download on the App Store" badge in hero ---- */
/* Apple's marketing guidelines: use the supplied artwork unaltered,
   at a minimum height of 40px, with clear space around it. */
.app-badge {
  display: inline-block;
  margin-top: 1.4rem;
  line-height: 0;
}

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

.app-badge:hover img,
.app-badge:focus img {
  opacity: 0.85;
}

/* ---- Feature rows: pairs of (screenshot + copy) ---- */
/* Each .feature-row holds 1–2 .feature-tile children.
   Each .feature-tile stacks one screenshot above its description. */

.feature-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 2.5rem;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-tile {
  -webkit-box-flex: 1;
  flex: 1 1 0%;
  min-width: 260px;
  max-width: 480px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.feature-media {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
}

.feature-screenshot {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 22px;
  -webkit-box-shadow: 0 12px 32px rgba(13, 27, 75, 0.18);
  box-shadow: 0 12px 32px rgba(13, 27, 75, 0.18);
}

.feature-text h3 {
  color: var(--navy);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  margin-bottom: 0.8rem;
}

.feature-text p {
  color: var(--muted);
  font-size: 1.02rem;
}

@media (max-width: 640px) {
  .feature-row {
    gap: 1.2rem;
    margin-bottom: 2.5rem;
  }

  .feature-tile {
    -webkit-box-flex: 1;
    flex: 1 1 100%;
    max-width: 100%;
  }
}
