/* ═══════════════════════════════════════════
   myFamilyPlanner – Global Styles
═══════════════════════════════════════════ */

:root {
  --coral:    #f07048;
  --coral-d:  #d95a32;
  --blue:     #3b82f6;
  --green:    #35aa5e;
  --dark:     #1a1a1a;
  --mid:      #444;
  --muted:    #888;
  --light:    #f8f8f8;
  --white:    #ffffff;
  --card-bg:  #ffffff;
  --border:   #e8e8e8;
  --radius:   14px;
  --shadow:   0 4px 24px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Utilities ── */
.container    { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 720px;  margin: 0 auto; padding: 0 1.5rem; }
.text-center  { text-align: center; }
.accent       { color: var(--coral); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-lg   { padding: 0.85rem 1.8rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary  { background: var(--coral); color: #fff; border-color: var(--coral); }
.btn-primary:hover  { background: var(--coral-d); border-color: var(--coral-d); text-decoration: none; }

.btn-ghost    { background: transparent; color: var(--dark); border-color: var(--border); }
.btn-ghost:hover    { border-color: var(--coral); color: var(--coral); text-decoration: none; }

.btn-outline  { background: transparent; color: var(--coral); border-color: var(--coral); }
.btn-outline:hover  { background: var(--coral); color: #fff; text-decoration: none; }

.btn-nav      { background: var(--coral); color: #fff; padding: 0.5rem 1.2rem; font-size: 0.9rem; }
.btn-nav:hover      { background: var(--coral-d); text-decoration: none; }

.btn-ki       { background: linear-gradient(135deg, #6366f1, #3b82f6); color: #fff; }
.btn-ki:hover { opacity: 0.9; text-decoration: none; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--coral);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex: 1;
}
.nav-links a {
  color: var(--mid);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--coral); }
.nav-burger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; margin-left: auto; }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.75rem;
  background: #fff;
  border-top: 1px solid var(--border);
}
.nav-mobile a { color: var(--dark); font-weight: 500; padding: 0.35rem 0; }
.nav-mobile.open { display: flex; }

/* ── Sections ── */
.section        { padding: 5rem 0; }
.section-dark   { background: var(--dark); color: #fff; }
.section-tinted { background: var(--light); }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  background: rgba(240,112,72,0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-label.light { color: #f07048; background: rgba(240,112,72,0.15); }

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 3rem;
}
.section-sub.light { color: #aaa; }

/* ── Hero ── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 5rem 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  gap: 4rem;
}
.hero-content { flex: 1; }
.hero-img     { flex: 1; display: flex; justify-content: center; }

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(59,130,246,0.12));
  color: #6366f1;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--mid);
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Phone Mockup */
.phone-mockup {
  width: 240px;
  background: var(--dark);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.2);
}
.phone-screen {
  background: #1e1e2e;
  border-radius: 28px;
  padding: 1.5rem 1.25rem;
  min-height: 400px;
}
.mock-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 1.25rem;
  text-align: center;
}
.mock-item {
  background: #2a2a3e;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #ccc;
}
.mock-item.done { color: #555; text-decoration: line-through; }
.mock-tag {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--coral);
  font-weight: 600;
  text-align: center;
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.feature-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.9rem; color: var(--mid); }

/* ── Sync ── */
.sync-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.sync-grid h2 { color: #fff; }
.sync-grid p  { color: #bbb; margin-bottom: 1.5rem; }
.check-list   { list-style: none; }
.check-list li { color: #ccc; padding: 0.3rem 0; }

.sync-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.device {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}
.sync-arrow { font-size: 1.5rem; color: var(--coral); }

/* ── KI Demo ── */
.chat-demo {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-bubble {
  padding: 0.9rem 1.2rem;
  border-radius: 18px;
  font-size: 0.95rem;
  max-width: 85%;
  line-height: 1.5;
}
.chat-bubble.user {
  background: var(--light);
  border: 1px solid var(--border);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-bubble.bot {
  background: linear-gradient(135deg, rgba(240,112,72,0.1), rgba(59,130,246,0.1));
  border: 1px solid rgba(240,112,72,0.2);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.ki-apps {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.ki-app {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.ki-app-icon { font-size: 1.1rem; }
.ki-note { text-align: center; font-size: 0.85rem; color: var(--muted); }

/* ── Steps ── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p   { font-size: 0.9rem; color: var(--mid); }
.step-arrow { font-size: 1.5rem; color: var(--coral); padding-top: 1.2rem; flex-shrink: 0; }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing-popular { border-color: var(--coral); }
.pricing-ki      { border-color: #6366f1; }

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: 50px;
  white-space: nowrap;
}
.badge-ki { background: linear-gradient(135deg, #6366f1, #3b82f6); }

.pricing-name  { font-size: 1rem; font-weight: 700; color: var(--muted); margin-bottom: 0.5rem; }
.pricing-price { font-size: 2.2rem; font-weight: 900; margin-bottom: 0.25rem; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pricing-desc  { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.pricing-alts  { display: flex; gap: 0.75rem; font-size: 0.8rem; color: var(--muted); margin-bottom: 1.25rem; flex-wrap: wrap; }
.pricing-alts span { background: var(--light); padding: 0.2rem 0.6rem; border-radius: 50px; }

.pricing-features { list-style: none; margin-bottom: 1.5rem; }
.pricing-features li { padding: 0.35rem 0; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.pricing-features li.off { color: var(--muted); }

/* ── Trust ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.trust-item { text-align: center; }
.trust-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.trust-item h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.trust-item p  { font-size: 0.88rem; color: var(--muted); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 2rem; }
.faq-item {
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--coral); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.93rem;
  color: var(--mid);
}

/* ── Store Buttons ── */
.store-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 0.9rem 1.5rem;
  color: #fff;
  text-decoration: none;
  transition: background 0.18s;
}
.store-btn:hover { background: rgba(255,255,255,0.14); text-decoration: none; }
.store-icon { font-size: 1.8rem; }
.store-btn small { display: block; font-size: 0.75rem; color: #aaa; }
.store-btn strong { font-size: 1rem; }

/* ── Footer ── */
.footer {
  background: var(--dark);
  color: #888;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo    { font-size: 1.2rem; font-weight: 800; color: var(--coral); margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.85rem; color: #666; }
.footer h4      { font-size: 0.85rem; font-weight: 700; color: #aaa; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer ul      { list-style: none; }
.footer ul li   { margin-bottom: 0.4rem; }
.footer ul a    { color: #666; font-size: 0.88rem; }
.footer ul a:hover { color: var(--coral); text-decoration: none; }
.footer-bottom  { border-top: 1px solid #2a2a2a; padding-top: 1.25rem; font-size: 0.82rem; color: #555; }
.footer-bottom a { color: #666; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .nav-burger { display: block; }

  .hero {
    flex-direction: column;
    min-height: auto;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
  }
  .hero-btns { justify-content: center; }
  .hero-sub  { margin: 0 auto 2rem; }

  .sync-grid { grid-template-columns: 1fr; gap: 2rem; }
  .step-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .ki-apps { flex-wrap: wrap; }
}
