/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #F7F3ED;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1a1a1a;
  text-decoration: underline;
}

a:hover {
  opacity: 0.7;
}

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

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  position: relative;
}

.site-title {
  font-family: 'Bitter', Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #1a1a1a;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.85rem;
}

/* Main content */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

/* Hero */
.hero-top {
  display: flex;
  align-items: flex-end;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.hero-top img.hero-icon {
  width: 220px;
  border-radius: 12px;
}

.hero-top .mini-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-top .mini-badges img {
  height: 40px;
  width: 120px;
  object-fit: contain;
  opacity: 0.7;
}

.hero-top .mini-badges a:hover img {
  opacity: 1;
}

.hero-text {
  margin-bottom: 2rem;
}

.hero-text p {
  font-size: 1.4rem;
  line-height: 1.4;
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.body-text {
  margin-bottom: 3rem;
}

.body-text p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.7;
}

.italic-note {
  font-style: italic;
}

/* Download section */
.download {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.store-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.store-badge img {
  height: 54px;
  width: auto;
}

.how-link {
  font-size: 0.95rem;
}

/* Screenshots */
.screenshots {
  margin-bottom: 4rem;
}

.screenshots h2 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.screenshot-caption {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #555;
}

.screenshot-item {
  text-align: center;
  margin-bottom: 3rem;
}

.screenshot-item img {
  max-width: 340px;
  margin: 0 auto;
  border-radius: 16px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: #1a1a1a;
  border-top: 1px solid #eee;
}

.footer-links {
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.footer-links span {
  color: #999;
}

.site-footer p {
  color: #999;
  font-size: 0.8rem;
}

/* Inner pages */
.page-content {
  font-family: 'Bitter', Georgia, 'Times New Roman', serif;
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.page-content h1 {
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.page-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.page-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.page-content p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.page-content .subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  line-height: 1.7;
}

.page-content li {
  margin-bottom: 0.6rem;
}

/* Blog */
.post-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.blog-post h1 {
  margin-bottom: 2rem;
}

.blog-post h3 {
  margin-top: 2.5rem;
}

.blog-post ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  line-height: 1.7;
}

.blog-post ol li {
  margin-bottom: 0.4rem;
}

.back-link {
  margin-top: 3rem;
  font-size: 0.9rem;
}

.blog-listing {
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}

.blog-listing h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.blog-listing h3 a {
  text-decoration: none;
}

.blog-listing h3 a:hover {
  text-decoration: underline;
}

.blog-listing p:last-child {
  color: #555;
  font-size: 0.9rem;
}

/* Contact form */
.contact-form {
  margin-top: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group > label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.required {
  font-weight: 400;
  color: #888;
}

.name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid #ccc;
  border-radius: 50px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form textarea {
  border-radius: 20px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #1a1a1a;
}

.send-btn {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 0.9rem 2.2rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.send-btn:hover {
  opacity: 0.8;
}

.form-success p {
  font-size: 1.1rem;
  margin-top: 2rem;
}

/* Mobile */
@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .site-header {
    padding: 1rem 1.2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #F7F3ED;
    flex-direction: column;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(44, 40, 37, 0.1);
    gap: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    font-size: 1.1rem;
    padding: 0.9rem 0.4rem;
    border-bottom: 1px solid rgba(44, 40, 37, 0.06);
  }

  main {
    padding: 1.5rem 1.2rem 3rem;
  }

  .hero-text p {
    font-size: 1.2rem;
  }

  .hero-top img.hero-icon {
    width: 160px;
  }

  .hero-top .mini-badges img {
    height: 34px;
    width: 105px;
  }
}
