/* Base - iOS-inspired */
:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #ffffff;
  --border: #111827;
  --brand-1: #0ea5e9;
  --brand-2: #6366f1;
  --surface: #000000;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #ffffff;
    --muted: #ffffff;
    --border: #111827;
    --surface: #000000;
  }
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100%;
}
html {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
/* Apply layout constraints directly to inner sections (containers removed) */
.header-inner,
.hero-inner,
.footer-inner,
.doc-wrapper {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.brand-name {
  font-weight: 700;
  font-size: 31px;
  letter-spacing: -0.01em;
}
.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Temporarily hide social icons */
.top-actions { display: none; }
.icon-link {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  border: none;
  background: transparent;
  box-shadow: none;
  transition: transform 160ms ease;
}
.icon-link:hover { transform: translateY(-1px); }
.icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 1px, 1px);
  white-space: nowrap; border: 0;
}

/* Hero */
.hero {
  padding: 0 0 24px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}
.hero-content {
  width: 100%;
  max-width: 1440px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 20px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.hero-subtitle {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
}
.hero-note {
  margin: 36px 0 0;
  font-size: 16px;
  color: var(--muted);
  opacity: 0.9;
  font-weight: 600;
}
.apple-icon {
  width: 16px;
  height: 16px;
  vertical-align: -2px;
  margin: 0 0 0 6px;
  color: currentColor;
}
.app-store-link {
  display: inline-block;
  margin: 36px 0 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.app-store-link:hover {
  opacity: 0.85;
  transform: scale(1.02);
}
.app-store-badge {
  height: 44px;
  width: auto;
}
.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image {
  width: 100%;
  max-width: 760px;
  height: auto;
  max-height: 70vh;
  border-radius: 0;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.08),
    0 20px 60px rgba(0,0,0,0.06);
  border: none;
  background: var(--surface);
}

/* Features */
.feature-list {
  margin-top: 64px;
  display: grid;
  gap: 34px;
}
.feature-item {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  column-gap: 10px;
  row-gap: 6px;
}
.feature-icon {
  width: 22px;
  height: 22px;
  grid-column: 1;
  grid-row: 1;
  margin-top: 0;
  display: none;
}
.feature-item h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  grid-column: 1;
  grid-row: 1;
}
.feature-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
  grid-column: 1;
  grid-row: 2;
}

/* Footer */
.site-footer {
  padding: 18px 0;
  margin-top: 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.legal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.legal a {
  color: var(--muted);
  text-decoration: none;
}
.legal a:hover { text-decoration: underline; }
.copyright {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { height: auto; }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-text-wrapper {
    grid-row: 1;
  }
  .hero-note-desktop {
    display: none;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-media {
    grid-row: 2;
  }
  .hero-note-mobile {
    grid-column: 1;
    grid-row: 3;
    text-align: center;
    margin: 24px 0 0;
    display: block;
  }
  .hero-image {
    max-width: 420px;
    max-height: 66vh;
  }
  .hero {
    padding-top: 0;
    min-height: 72vh;
    display: flex;
    align-items: center;
  }
  .header-inner {
    height: 56px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .feature-list {
    justify-items: center;
  }
  /* Ensure feature icon and title stay together on one row */
  .feature-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .feature-item h3 {
    display: inline-block;
    white-space: nowrap;
  }
  .feature-item p {
    text-align: center;
    width: 100%;
  }
}

/* Desktop horizontal alignment */
@media (min-width: 901px) {
  .hero-content {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
  .hero-text-wrapper {
    grid-column: 1;
    grid-row: 1;
  }
  .hero-copy {
    text-align: left;
  }
  .hero-note-desktop {
    text-align: left;
    margin: 36px 0 0;
    display: block;
  }
  .hero-note-mobile {
    display: none;
  }
  .hero-media {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 1;
  }
}


