/* Apple-like base styling */
:root {
  --text: #1d1d1f;
  --text-secondary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --bg-color: #ffffff;
  --bg-secondary: #f5f5f7;
  --border: #d2d2d7;
  --nav-height: 44px;
  --section-spacing: 120px;
}

/* Reset & Base */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--bg-color);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
}

/* Typography */
h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.003em;
}

h1 {
  font-size: 56px;
  line-height: 1.07143;
  margin-bottom: 6px;
}

h2 {
  font-size: 48px;
  line-height: 1.08349;
  margin-bottom: 20px;
}

h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

p {
  font-size: 19px;
  color: var(--text-secondary); /* Apple uses softer grey for body often */
  margin-top: 0;
}

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

a:hover {
  text-decoration: underline;
}

/* Navigation */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.16); /* Very subtle bottom border */
}

.nav-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  color: var(--text);
}

.nav-links a {
  margin-left: 24px;
  font-size: 12px;
  color: var(--text);
  opacity: 0.8;
  font-weight: 400;
  text-decoration: none;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
  color: var(--accent);
}

/* Main Container */
main {
  overflow-x: hidden; /* Prevent horizontal scroll from some animations/images */
}

/* Hero Section */
.hero {
  padding-top: 80px;
  padding-bottom: 60px;
  text-align: center;
  background: #fff;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.subtitle {
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.tagline {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.cta-container {
  margin-top: 20px;
}

.cta {
  display: inline-block;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 980px; /* Pill shape */
  font-size: 17px;
  font-weight: 500;
  transition: background 0.3s;
}

.cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.hero-image-container {
  display: flex;
  justify-content: center;
  padding-bottom: 40px;
}

.hero-phone {
  transform: scale(0.9);
}

/* Feature Sections */
.section {
  padding: var(--section-spacing) 0;
  border-bottom: 1px solid var(--border); /* Optional separator */
}

.section:last-child {
  border-bottom: none;
}

/* Make privacy and contact sections simpler */
.privacy-section, .contact {
  background: var(--bg-secondary);
  border-bottom: none;
}

.feature-section {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 100px 40px;
}

.feature-content {
  flex: 1;
  text-align: left;
}

.feature-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Alternating Layout */
.feature-section.alt {
  flex-direction: row-reverse;
}

.feature-desc {
  font-size: 21px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  font-size: 17px;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
  color: var(--text);
}

.feature-list li::before {
  content: "•"; /* Or a checkmark */
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Privacy Section */
.privacy-section {
  text-align: center;
  padding: 120px 20px;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.badge .icon {
  font-size: 40px;
}

.badge span:not(.icon) {
  font-weight: 500;
  font-size: 17px;
}

/* Contact Section */
.contact {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
}

.text-link {
  font-size: 24px;
  font-weight: 600;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  padding: 40px 0;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content nav a {
  margin-left: 20px;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-content nav a:hover {
  text-decoration: underline;
  color: var(--text);
}

/* iPhone 17 Pro Max mockup */
.iphone17pm {
  --frame-w: 320px;
  position: relative;
  width: var(--frame-w);
  aspect-ratio: 1320/2868;
  background: #000;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 
    0 0 0 2px #333,
    0 0 0 3px #1a1a1a,
    0 20px 40px rgba(0, 0, 0, 0.4);
  /* The border-radius needs to match roughly the screen curve + padding */
  box-sizing: border-box;
}

.iphone17pm img {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  object-fit: cover;
  display: block;
}

.dynamic-island {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px; /* Dynamic island size */
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

/* Privacy Page Specifics */
.page-privacy {
  background: #fff;
}

.page-privacy h1 {
  text-align: center;
  margin-top: 40px;
}

.page-privacy .effective-date {
  text-align: center;
  margin-bottom: 60px;
  font-size: 15px;
}

.page-privacy .content-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.page-privacy section {
  margin-bottom: 40px;
}

.page-privacy h2 {
  font-size: 28px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.page-privacy p, .page-privacy li {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  
  .hero-content { margin-bottom: 30px; }
  
  .feature-section, .feature-section.alt {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 60px 20px;
  }
  
  .feature-content {
    order: 1; /* Text first usually on mobile, or image first? Apple usually does Text first for context, then visual */
  }
  
  .feature-visual {
    order: 2;
  }
  
  .feature-list {
    display: inline-block;
    text-align: left;
  }

  .iphone17pm {
    --frame-w: 260px; /* Scale down for mobile */
  }

  .nav-container {
    justify-content: center;
  }
  
  .nav-links {
    display: none; /* Hide nav links on small mobile for simplicity, or hamburger if needed. Simple centered logo is safer for MVP */
  }
}
