:root {
  --bg: #f7f7f7;
  --text: #111;
  --primary: #00796b;
  --secondary: #ffffff;
  --card: #f0f0f0;
  --border: #ccc;
  --shadow: rgba(0, 0, 0, 0.1);
  --link-hover: #00695c;
}

body.dark-mode {
  --bg: #111;
  --text: #fff;
  --primary: #4caf50;
  --secondary: #1c1c1c;
  --card: #2b2b2b;
  --border: #333;
  --shadow: rgba(0, 0, 0, 0.4);
  --link-hover: #45a049;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.app-device {
  width: 390px;
  height: 844px;
  margin: 20px auto;
  border: 16px solid var(--border);
  border-radius: 48px;
  background: var(--secondary);
  box-shadow: 0 0 40px var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.notch {
  width: 160px;
  height: 30px;
  background: var(--border);
  border-radius: 0 0 20px 20px;
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.bookmark-icon {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 22px;
  background: var(--primary);
  padding: 6px 10px;
  border-radius: 20px;
  box-shadow: 0 0 5px var(--shadow);
  cursor: pointer;
  z-index: 5;
}

.screen {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-theme {
  font-size: 14px;
  padding: 6px 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

h1, h2, h3 {
  color: var(--primary);
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  text-align: left;
}

ul li, ol li {
  background: var(--card);
  margin: 5px 0;
  padding: 10px;
  border-left: 4px solid var(--primary);
}

.cta {
  display: inline-block;
  margin: 10px 5px;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.x-share {
  background: #1da1f2;
  color: #fff;
  font-size: 14px;
  border-radius: 20px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: bold;
  margin: 5px;
}

.testimonial {
  background: var(--card);
  margin: 10px 0;
  padding: 10px;
  border-radius: 6px;
  font-style: italic;
}

.sticky-download {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 10px var(--shadow);
  z-index: 99;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: var(--secondary);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.modal input[type="email"] {
  padding: 10px;
  width: 80%;
  margin-top: 10px;
  border: none;
  border-radius: 4px;
}

.modal button {
  margin-top: 10px;
  padding: 10px 16px;
  background: var(--primary);
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

canvas {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 10px;
  max-width: 100%;
}

/* Homepage layout wrapper */
.main-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Sidebar on homepage */
.right-sidebar {
  width: 260px;
  margin-left: 20px;
  margin-top: 30px;
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.right-sidebar .widget-box {
  margin-bottom: 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 15px 0;
}

.pricing-card {
  background: var(--card);
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.pricing-card h3 {
  margin: 0 0 10px 0;
  color: var(--primary);
}

.price {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 10px;
}

.pricing-card ul {
  margin-bottom: 15px;
}

.pricing-card li {
  background: none;
  border: none;
  padding: 0;
  margin: 5px 0;
}

.sticky-download {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 10px var(--shadow);
  z-index: 99;
}

@media screen and (max-width: 768px) {
  .right-sidebar {
    width: 100%;
    margin-left: 0;
    margin-top: 20px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer Styles */
footer {
  background: var(--primary);
  color: white;
  padding: 20px;
  text-align: center;
}

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

.footer-links {
  margin-bottom: 15px;
}

.footer-links a {
  display: inline-block;
  margin: 0 10px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

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