/* static/styles.css */
:root { 
  --max-width: 800px; 
  --card-bg: #fff; 
  --primary: #0066ff;
  --primary-dark: #0052cc;
  --success: #00a86b;
  --error: #d32f2f;
  --muted: #666;
  --border: #e6eef8;
  --bg: #f4f7fb;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

body {
  background: var(--bg);
  color: #222;
}

/* Ad Container Styling - Less prominent */
.ad-container {
  margin: 40px auto;
  text-align: center;
  background: #f9f9f9;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  max-width: 728px;
}

.ad-container ins {
  display: block;
  margin: 0 auto;
}

/* Mid and bottom ads start hidden, shown on scroll */
.mid-ad, .bottom-ad {
  margin: 48px auto;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

header {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 20px;
}

h1 {
  margin: 0 0 8px;
  font-size: 2.2rem;
  font-weight: 700;
  color: #111;
}

.subtitle {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 400;
}

.card {
  background: var(--card-bg);
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #333;
}

label strong {
  display: block;
  margin-bottom: 4px;
}

.help-text {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}

input[type=file] {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 2px dashed var(--border);
  background: #f9fbff;
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

input[type=file]:hover {
  border-color: var(--primary);
}

select, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.captcha {
  margin: 24px 0;
  display: flex;
  justify-content: center;
}

.btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  background: #f5f5f5;
  min-height: 20px;
}

.message:empty {
  display: none;
}

/* Content Sections */
.content-section {
  margin-bottom: 32px;
}

.content-section h2 {
  margin: 0 0 24px;
  font-size: 1.8rem;
  color: #111;
  font-weight: 700;
}

.content-section h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #222;
  font-weight: 600;
}

.content-section p {
  margin: 0 0 16px;
  color: #444;
  line-height: 1.7;
}

/* Steps - Detailed */
.steps-detailed {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), #0052cc);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-content {
  flex: 1;
}

/* Use Cases Grid */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.use-case {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}

.use-case h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.use-case p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

/* Features List */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.faq-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.faq-item h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--primary);
}

.faq-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
}

/* Tips List */
.tips-list {
  margin: 16px 0;
  padding-left: 24px;
}

.tips-list li {
  margin-bottom: 12px;
  line-height: 1.7;
  color: #444;
}

.tips-list strong {
  color: #222;
}

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 32px 24px;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  margin: 16px 0 !important;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 8px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-note {
  font-size: 0.85rem !important;
  font-style: italic;
  color: #888 !important;
  max-width: 600px;
  margin: 16px auto 0 !important;
}

/* Mobile optimizations */
@media (max-width: 600px) {
  .container {
    padding: 16px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .card {
    padding: 20px;
  }
  
  .content-section h2 {
    font-size: 1.5rem;
  }
  
  .use-cases {
    grid-template-columns: 1fr;
  }
  
  .step-item {
    flex-direction: column;
    gap: 12px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}

/* Tablet and Desktop */
@media (min-width: 760px) {
  .container {
    padding: 40px 24px;
  }
  
  .card {
    padding: 32px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card, .content-section {
  animation: fadeIn 0.4s ease-out;
}

/** =========================
   HERO HEADER - MOBILE FIXED
   ========================= */

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: -24px -24px 32px -24px;
  padding: 32px 16px 24px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.hero-logo {
  width: 100%;
  max-width: 280px;  /* Limits logo width on mobile */
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease, filter 0.3s ease;
  flex-shrink: 0;
}

.hero-logo:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

.hero-text {
  max-width: 700px;
  padding: 0 8px;  /* Extra padding on mobile */
}

.hero-text h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  line-height: 1.3;
}

.hero-text .subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  line-height: 1.6;
}

.hero-inner img {
  max-width: 100%;
  height: auto;
}

/* Tablet */
@media (min-width: 600px) and (max-width: 759px) {
  .hero {
    padding: 40px 24px 32px;
  }

  .hero-logo {
    max-width: 250px;
  }

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

  .hero-text .subtitle {
    font-size: 1rem;
  }
}

/* Desktop / Large Tablet */
@media (min-width: 760px) {
  .hero {
    margin: -40px -40px 40px -40px;
    padding: 64px 40px;
  }

  .hero-inner {
    flex-direction: row;
    text-align: left;
    gap: 32px;
  }

  .hero-logo {
    width: 220px;
    max-width: 220px;
    height: auto;
    flex: 0 0 auto;
  }

  .hero-text {
    padding: 0;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

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

/* Extra small mobile */
@media (max-width: 400px) {
  .hero {
    margin: -16px -16px 24px -16px;
    padding: 24px 12px 20px;
  }

  .hero-logo {
    max-width: 300px;  /* Even smaller on tiny screens 240 */
  }

  .hero-text h1 {
    font-size: 1.3rem;
  }

  .hero-text .subtitle {
    font-size: 0.9rem;
  }
}

/* Add these styles to the end of your styles.css file */

/* =========================
   EMAIL CAPTURE MODAL
   ========================= */

.email-modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.email-modal-content {
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.4s ease;
  position: relative;
}

.email-modal-content h3 {
  margin: 0 0 16px;
  font-size: 1.8rem;
  color: #111;
}

.email-modal-content p {
  margin: 0 0 24px;
  font-size: 1.1rem;
  color: #555;
}

.email-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.email-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.email-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
  flex: 1;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #e5e7eb;
  color: #555;
  flex: 1;
}

.btn-secondary:hover {
  background: #d1d5db;
  color: #333;
}

.privacy-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .email-modal-content h3 {
    font-size: 1.5rem;
  }
  
  .email-modal-buttons {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

/* =========================
   EMAIL INPUT FIELD
   Add this to the END of your styles.css
   ========================= */

.email-inline-input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.email-inline-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.email-inline-input::placeholder {
  color: #999;
}

/* =========================
   ADD TO HOME SCREEN BUTTON & MODAL
   Add this to the END of your styles.css
   ========================= */

/* Floating "Add to Home Screen" Button */
.add-to-home-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  cursor: pointer;
  display: none; /* Hidden by default, shown via JS */
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: slideInUp 0.5s ease;
}

.add-to-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.add-to-home-btn:active {
  transform: translateY(0);
}

.add-to-home-btn svg {
  flex-shrink: 0;
}

/* iOS Instructions Modal */
.ios-instructions-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.ios-instructions-content {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 400px;
  width: 100%;
  position: relative;
  animation: slideUp 0.4s ease;
}

.ios-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.ios-close-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.ios-instructions-content h3 {
  margin: 0 0 24px;
  font-size: 1.5rem;
  color: #111;
  text-align: center;
}

.ios-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ios-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ios-step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.ios-step p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

.ios-step strong {
  color: #111;
}

.ios-note {
  margin-top: 24px;
  padding: 16px;
  background: #f0f7ff;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #667eea;
  text-align: center;
}

/* Animations */
@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .add-to-home-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .add-to-home-btn span {
    display: none; /* Hide text on very small screens */
  }
  
  .ios-instructions-content {
    padding: 24px 20px;
  }
  
  .ios-instructions-content h3 {
    font-size: 1.3rem;
  }
}

/* =========================
   SHARE FEATURES
   ========================= */

/* Share button in success message */
.btn-share {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.btn-share:hover {
  transform: translateY(-2px);
}

/* Share modal */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.share-modal-content {
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.share-modal-content h3 {
  margin: 0 0 16px;
  font-size: 1.8rem;
}

.share-modal-content p {
  margin: 0 0 24px;
  color: #666;
}

.share-url-container {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.share-url-input {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #f9f9f9;
}

.share-actions-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* =========================
   SHARE FEATURES - UPDATED WITH LARGER LOGO
   Replace this entire section in your styles.css
   ========================= */

/* Share button in success message */
.btn-share {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.btn-share:hover {
  transform: translateY(-2px);
}

/* Share modal */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.share-modal-content {
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.share-modal-content h3 {
  margin: 0 0 16px;
  font-size: 1.8rem;
}

.share-modal-content p {
  margin: 0 0 24px;
  color: #666;
}

.share-url-container {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.share-url-input {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #f9f9f9;
}

.share-actions-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Share page */
.share-page {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
}

.share-header {
  margin-bottom: 32px;
}

.share-logo {
  width: 200px;  /* INCREASED from 120px */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.share-info {
  color: #666;
  font-size: 1rem;
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.btn-large {
  padding: 16px 24px;
  font-size: 1.1rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.share-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 24px;
  background: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-footer {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.share-footer p {
  margin-bottom: 16px;
  color: #666;
}

/* Mobile and desktop adjustments */
@media (max-width: 600px) {
  .share-url-container {
    flex-direction: column;
  }
  
  .share-stats {
    gap: 16px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }

  .share-logo {
    width: 160px;  /* Slightly smaller on mobile but still bigger than before */
  }
}

@media (min-width: 600px) {
  .share-logo {
    width: 280px;  /* Even larger on desktop/tablet */
  }
}