:root {
  --accent: #3b6fd9;
  --accent-dark: #2a55b3;
  --ink: #223047;
  --muted: #64748b;
  --card-bg: #ffffff;
  --bg-alt: #eef3fb;
  --border: #d6e2f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 60, 110, 0.10);
  --font-body: 'Cairo', 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-hand: 'Patrick Hand', 'Cairo', cursive;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

a { color: inherit; }

.eyebrow {
  margin: 0 0 6px;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(59, 111, 217, 0.35);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-small { padding: 9px 16px; font-size: 0.9rem; }
.btn-wide { width: 100%; max-width: 320px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}
.brand-icon { width: 32px; height: 32px; border-radius: 8px; }
.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}
.topnav a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 600; }
.topnav a:not(.btn):hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-alt) 0%, #fff 100%);
  padding: 64px 20px 56px;
  text-align: center;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.brand-en {
  font-family: var(--font-hand);
  color: var(--accent-dark);
}
.hero-tagline {
  font-size: 1.15rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin: 0 0 18px;
}
.hero-desc {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0 0 30px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section { padding: 64px 20px; max-width: 1080px; margin: 0 auto; }
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin: 0 0 40px;
  color: var(--ink);
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.feature-icon { font-size: 2rem; margin-bottom: 10px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}
.pricing-label { color: var(--muted); font-weight: 600; margin: 0 0 6px; }
.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0;
}
.pricing-amount span { font-size: 1.2rem; font-weight: 600; }
.pricing-period { color: var(--muted); margin: 0 0 22px; }
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  text-align: right;
  display: inline-block;
}
.pricing-list li { margin-bottom: 10px; font-size: 0.95rem; }
.pricing-note { color: var(--muted); font-size: 0.85rem; margin: 14px 0 0; }

/* ---------- Buy steps ---------- */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.steps-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.step-num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.steps-list h3 { margin: 0 0 4px; font-size: 1rem; }
.steps-list p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.buy-contact,
.download-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Download ---------- */
.download-desc {
  text-align: center;
  color: var(--muted);
  margin: 0 0 24px;
}
#download { text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '+ ';
  color: var(--accent);
}
.faq-item[open] summary::before { content: '− '; }
.faq-item p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 28px 20px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}
.footer-credit {
  margin: 6px 0 0;
  font-size: 0.78rem;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .topnav { gap: 12px; font-size: 0.85rem; }
  .topnav a:not(.btn) { display: none; }
  .hero h1 { font-size: 1.9rem; }
}

/* ---------- Two apps (CNote, Yawmi) ---------- */
.hero-inner h1 { font-size: 2.2rem; }
.hero .hero-tagline { margin-bottom: 36px; }

.app-cards {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.app-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.app-card-icon { width: 96px; height: 96px; object-fit: contain; }
.app-card h2 { margin: 4px 0 0; font-size: 1.35rem; }
.app-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.app-card-more { margin-top: 6px; color: var(--accent); font-weight: 700; font-size: 0.95rem; }

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: #e8effc;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
}
.badge-green { background: #e3f5ea; color: #1e7a45; }

.app-head {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 36px;
}
.app-head-icon { width: 120px; height: 120px; object-fit: contain; flex: none; }
.app-head h2 { font-size: 1.9rem; margin: 8px 0 8px; }
.app-head-desc { margin: 0; color: var(--muted); }

.app-offer {
  margin: 30px auto 0;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 26px;
}
.app-price .pricing-amount { font-size: 2.2rem; line-height: 1.2; }
.app-price .pricing-period { margin: 0; }
.app-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.compare-wrap { max-width: 820px; margin: 0 auto; overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}
.compare th, .compare td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.compare th { background: var(--bg-alt); font-weight: 700; }
.compare td:first-child { text-align: right; font-weight: 600; color: var(--ink); }
.compare tr:last-child td { border-bottom: none; }

@media (max-width: 640px) {
  .hero-inner h1 { font-size: 1.7rem; }
  .app-head { flex-direction: column; text-align: center; }
  .app-head-icon { width: 96px; height: 96px; }
  .app-offer { flex-direction: column; text-align: center; }
  .app-actions { justify-content: center; }
  .compare th, .compare td { padding: 10px 8px; font-size: 0.85rem; }
}
#cnote .features-grid,
#yawmi .features-grid {
  max-width: 900px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
