/* =============================================================
   Day Planner — Public Website Stylesheet
   Style: White + Purple, Modern, Premium, Responsive
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --primary:      #7c5cfc;
  --primary-dark: #6244e0;
  --primary-light:#a78bfa;
  --surface:      #ffffff;
  --bg:           #f8f7ff;
  --bg-2:         #f1edff;
  --text-primary: #1e1b2e;
  --text-secondary:#5b5471;
  --text-muted:   #9b95b0;
  --border:       #e8e4f5;
  --error:        #ff6b78;
  --success:      #56c596;
  --radius-card:  24px;
  --radius-btn:   18px;
  --shadow-card:  0 8px 40px rgba(124,92,252,.10), 0 2px 8px rgba(0,0,0,.04);
  --gradient:     linear-gradient(135deg, #8d72ff, #6244e0);
  --gradient-soft:linear-gradient(135deg, #f1edff, #ede9fe);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== UTILITY ===== */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-purple { color: var(--primary); }
a { color: var(--primary); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .78; }
img { max-width: 100%; height: auto; }

/* ===== NAV ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-icon svg { width: 24px; height: 24px; fill: #fff; }
.nav-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); opacity: 1; }
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--gradient);
  color: #fff !important;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(124,92,252,.28);
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,92,252,.4); opacity: 1; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: var(--gradient-soft);
}
.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(124,92,252,.06);
  pointer-events: none;
}
.hero-bg-circle.c1 { width: 600px; height: 600px; top: -200px; right: -150px; }
.hero-bg-circle.c2 { width: 400px; height: 400px; bottom: -120px; left: -100px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124,92,252,.1);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; }
.hero-title {
  font-size: 58px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.hero-title .hl { color: var(--primary); }
.hero-tagline {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(124,92,252,.36);
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124,92,252,.45); opacity: 1; }
.btn-primary svg { width: 22px; height: 22px; fill: #fff; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--surface);
  color: var(--text-primary);
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--primary); background: var(--bg-2); opacity: 1; }
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-frame {
  width: 280px;
  height: 560px;
  background: var(--text-primary);
  border-radius: 40px;
  border: 8px solid #2d2a3e;
  box-shadow: 0 30px 80px rgba(0,0,0,.25), 0 0 0 2px #4a4560;
  overflow: hidden;
  position: relative;
}
.phone-notch {
  width: 100px;
  height: 28px;
  background: #2d2a3e;
  border-radius: 0 0 18px 18px;
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a1630 0%, #2d2048 100%);
  display: flex;
  flex-direction: column;
  padding: 36px 16px 20px;
}
.phone-header {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.phone-date {
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 20px;
}
.phone-task {
  background: rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-task-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.phone-task-text { font-size: 12px; color: rgba(255,255,255,.85); font-weight: 500; }
.phone-task-time { font-size: 10px; color: rgba(255,255,255,.45); margin-top: 2px; }

/* ===== SECTION SHARED ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--gradient-soft); }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(124,92,252,.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.8px;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 50px rgba(124,92,252,.14); }
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
}
.feature-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== SCREENSHOTS ===== */
.screenshots-scroll {
  display: flex;
  gap: 24px;
  margin-top: 56px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}
.screenshots-scroll::-webkit-scrollbar { height: 6px; }
.screenshots-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 3px; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }
.screenshot-item {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: 28px;
  overflow: hidden;
  background: var(--text-primary);
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  height: 430px;
  display: flex;
  align-items: stretch;
}
.screenshot-item img { width: 100%; object-fit: cover; }
/* Placeholder screens when no real screenshots yet */
.screenshot-placeholder {
  width: 100%;
  background: linear-gradient(160deg, #1a1630 0%, #2d2048 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,.4);
  font-size: 13px;
  padding: 20px;
  text-align: center;
}
.screenshot-placeholder .ph-icon { font-size: 36px; margin-bottom: 6px; }

/* ===== DOWNLOAD ===== */
.download-section {
  background: var(--gradient);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-bg-dot {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
}
.download-bg-dot.d1 { top: -150px; right: -100px; }
.download-bg-dot.d2 { bottom: -200px; left: -100px; }
.download-section h2 {
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.download-section p {
  font-size: 17px;
  color: rgba(255,255,255,.78);
  margin-bottom: 40px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 38px;
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-btn);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  transition: transform .15s, box-shadow .15s;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,.25); opacity: 1; }
.btn-download svg { width: 28px; height: 28px; fill: var(--primary); }
.download-note { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.55); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.contact-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.contact-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.contact-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.contact-val {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo-icon svg { width: 20px; height: 20px; fill: #fff; }
.footer-logo-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  max-width: 280px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  margin-bottom: 16px;
  letter-spacing: .5px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--primary-light); opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,.45); transition: color .2s; font-size: 13px; }
.footer-legal a:hover { color: var(--primary-light); opacity: 1; }

/* ===== SHARED PAGE WRAPPER (for policy, terms, etc.) ===== */
.page-wrapper {
  min-height: 100vh;
  padding: 80px 0 60px;
}
.page-hero {
  background: var(--gradient-soft);
  padding: 60px 0 50px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}
.page-hero .section-label { margin-bottom: 14px; }
.page-hero h1 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -.8px;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.page-hero p { font-size: 15px; color: var(--text-secondary); }
.prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}
.prose h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 12px;
}
.prose h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 8px;
}
.prose p { margin-bottom: 16px; }
.prose ul { padding-left: 22px; margin-bottom: 16px; }
.prose ul li { margin-bottom: 6px; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose strong { color: var(--text-primary); font-weight: 600; }

/* ===== 404 ===== */
.not-found {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.not-found-code {
  font-size: 120px;
  font-weight: 900;
  color: var(--primary);
  opacity: .12;
  line-height: 1;
  letter-spacing: -4px;
  margin-bottom: -20px;
}
.not-found-icon { font-size: 64px; margin-bottom: 20px; }
.not-found h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.not-found p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 420px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-mockup { display: none; }
  .hero-desc { margin: 0 auto 36px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 64px 0 56px; }
  .hero-title { font-size: 40px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 30px; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .download-section h2 { font-size: 30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-brand { grid-column: auto; }
}
