:root {
  --bg: #f7fafc;
  --accent: #6c63ff;
  --muted: #64748b;
  --card: #ffffff;
}

* { box-sizing: border-box; }

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: #0f172a;
  font-size: 16px;
  line-height: 1.6;
}

/* layout spacing */
.container { max-width: 1000px; margin: 0 auto; padding: 1rem; }
.site-header { background: transparent; padding: 1rem 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 700; color: var(--accent); text-decoration: none; font-size: 1.6rem; }

/* brand logo in the header */
.brand-logo { height: 40px; display: block; width: auto; }

@media (max-width: 480px) { .brand-logo { height: 34px; } }

/* Navigation block with rounded background and shadow (contains Home/About/Contact) */
.nav-block {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  padding: .45rem .7rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 8px 22px rgba(2,6,23,.07);
}

.nav-block a {
  color: var(--muted);
  text-decoration: none;
  padding: .7rem 1.05rem;
  border-radius: 10px;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  line-height: 1;
  min-width: 0;
  justify-content: center;
  letter-spacing: 0.15px;
}

.nav-block a:hover { background: rgba(99,102,241,.04); color: #111827; }
.nav-block a:focus { outline: none; box-shadow: 0 6px 16px rgba(99,102,241,.14); }
.nav-block a.active { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(108,99,255,.14); }
.nav-block .nav-btn { background: transparent; color: var(--muted); box-shadow: none; }

/* mobile nav toggle button */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(15,23,42,.06);
  padding: .5rem .7rem;
  border-radius: 10px;
  font-size: 1.15rem;
  color: var(--muted);
  align-items: center;
  justify-content: center;
}
.nav-toggle .nav-icon { font-size: 1.2rem; line-height: 1; }

/* Hero */
.hero { padding: 1.2rem 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: center; }
.hero-copy h1 { font-size: 2.6rem; margin: .1rem 0 0; }
.tagline { color: var(--muted); margin: 0.8rem 0 1.2rem; }
.hero-desc { color: var(--muted); margin: 0.5rem 0; }
.features-intro { color: var(--muted); margin: 0.5rem 0 1rem; }
.cta-row { display: flex; gap: .7rem; align-items: center; }
.btn { display: inline-block; text-decoration: none; }
.btn.store { background: transparent; padding: 10px 12px; border-radius: 10px; display: inline-flex; align-items: center; box-shadow: none; min-width: 0; max-width: 100%; justify-content: center; }
.btn.store img { height: 64px; width: auto; max-width: none; display: block; }
.btn.store.large img { max-height: 120px; }

@media (max-width: 480px) {
  .btn.store img { height: 48px; }
  .btn.store.small img { height: 44px; }
}

.phone-mock { width: 100%; max-width: 320px; border-radius: 18px; box-shadow: 2px 12px 30px rgba(2,6,23,.07); }

/* app logo: full-size square with 25% rounded corners and shadow */
.phone-mock.logo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 25%;
  box-shadow: 2px 12px 30px rgba(2,6,23,.07);
  object-fit: cover;
  overflow: hidden;
}

/* Features */
.features { padding: 1.5rem 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.feature { background: var(--card); padding: .85rem; border-radius: 10px; box-shadow: 0 6px 14px rgba(2,6,23,.045); }
.feature h3 { margin-top: 0; }

/* Screenshots */
.screenshots { padding: 1rem 0 1.5rem; }
.shots { display: flex; gap: .75rem; flex-wrap: wrap; }
.shots img { width: calc(33% - .5rem); max-width: calc(33% - .5rem); min-width: 140px; border-radius: 10px; background: #fff; padding: 10px; box-shadow: 0 6px 14px rgba(2,6,23,.05); }

.download-cta { padding: 1.25rem 0; text-align: center; }
.download-cta p { max-width: 700px; margin: 0 auto 1rem; }

/* stacked store badges at page bottom */
.store-stack { display: flex; flex-direction: column; gap: .75rem; align-items: center; justify-content: center; margin-top: .5rem; }
.btn.store.small { padding: 8px 10px; }
.btn.store.small img { height: 64px; }

@media (min-width: 900px) {
  /* keep stacked bottom badges compact on large screens */
  .store-stack { gap: .9rem; }
}

.site-footer {
  border-top: 1px solid rgba(15,23,42,.06);
  padding: 1rem 0;
  margin-top: 2rem;
  color: var(--muted);
  background: transparent;
  text-align: center;
}
.content { padding: .9rem 0; }
.contact-form { display: grid; gap: .6rem; max-width: 640px; }
label { font-size: .98rem; }
input, textarea { width: 100%; padding: .75rem; border-radius: 8px; border: 1px solid #e6eef8; }
button.btn { background: var(--accent); color: #fff; border: none; padding: .7rem 1.1rem; border-radius: 8px; cursor: pointer; }

@media (max-width: 900px) { .container { padding: .9rem; } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .phone-mock { margin: 0 auto; }
  .shots img { width: 100%; min-width: 0; max-width: 480px; margin: 0 auto; padding: 12px; }
  .nav-block { padding: .15rem; }
  .hero-copy h1 { font-size: 1.9rem; }
}

/* responsive nav: hide nav by default on small screens and show toggle */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  /* make mobile nav a sliding side panel overlay */
  /* drop-down panel from the top with backdrop */
  .nav-block {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem;
    border-radius: 0;
    margin-top: 0;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 12px 40px rgba(2,6,23,.12);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    max-height: 92vh;
    overflow: auto;
    transform: translateY(-110%);
    transition: transform .28s ease;
    z-index: 1200;
  }
  .nav-block.open { transform: translateY(0); }
  .nav-block a { min-width: 0; padding: .9rem 1rem; }
  .site-header .container { flex-direction: row; align-items: center; }

  /* backdrop shown when nav is open */
  .nav-backdrop { position: fixed; inset: 0; background: rgba(2,6,23,.45); z-index: 1100; opacity: 1; transition: opacity .2s ease; pointer-events: none; cursor: default; }

  .nav-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 1.25rem;
    padding: .5rem;
    border-radius: 8px;
    cursor: pointer;
  }
  .nav-close:focus { outline: none; box-shadow: 0 6px 16px rgba(99,102,241,.14); }

  /* when placed in the header container, make it inline and visible */
  .site-header .nav-close { position: relative; margin-left: 0.75rem; font-size: 1.15rem; z-index: 1301; background: transparent; border: 0; color: var(--muted); }
}

@media (min-width: 900px) { .nav-toggle { display: none; } }

/* footer links and disclaimer */
.footer-links { margin-bottom: .9rem; color: var(--muted); font-size: .95rem; }
.footer-links a { color: var(--muted); text-decoration: none; margin: 0 .35rem; }
.footer-links a:hover { text-decoration: underline; }
.footer-disclaimer { font-size: .82rem; color: #475569; margin-top: 1rem; max-width: 900px; }

/* small stacked meta lines used across app footers */
.meta-line { margin: 0.28rem 0; font-size: 0.95rem; color: var(--muted); line-height: 1.2; }
