:root {
  --bg: #ffffff;
  --bg-alt: #f7f6fb;
  --surface: #ffffff;
  --border: #e4e1ef;
  --text: #181622;
  --muted: #5b5670;
  --purple: #6a24c6;
  --purple-dark: #4f1899;
  --purple-soft: #f2ecfc;
  --grad: linear-gradient(135deg, #9b2fae 0%, #6a24c6 55%, #3b28cc 100%);
  --green: #16803c;
  --green-soft: #e7f6ec;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(42, 18, 86, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  display: inline-flex;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(106, 36, 198, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.15rem;
}

.brand-text small {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.94rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--purple);
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background 0.15s ease;
}

.btn:active {
  transform: scale(0.99);
}

.btn-lg {
  padding: 13px 22px;
  font-size: 1rem;
}

.full-width {
  width: 100%;
}

.btn-primary {
  background: var(--grad);
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: var(--purple-soft);
  color: var(--purple-dark);
}

.btn-outline {
  background: #ffffff;
  color: var(--purple-dark);
  border-color: var(--purple);
}

.btn-outline:hover {
  background: var(--purple-soft);
}

.badge,
.pill-purple,
.badge-soft {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge,
.pill-purple {
  background: var(--purple-soft);
  color: var(--purple-dark);
}

.badge-soft {
  background: #efedf7;
  color: var(--text);
}

/* Hero */
.hero {
  padding: 56px 0 64px;
  background: radial-gradient(
    circle at top right,
    rgba(155, 47, 174, 0.08),
    transparent 55%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.18;
  margin: 12px 0 16px;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 24px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Phone Preview Card */
.phone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.phone-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.mini-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-alt);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.metric-big {
  font-size: 1.4rem;
  font-weight: 800;
}

.metric-big span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.tag-green {
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.macro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.macro-box {
  border-radius: 10px;
  padding: 9px;
  text-align: center;
}

.macro-box strong {
  display: block;
  font-size: 1rem;
}

.macro-box span {
  font-size: 0.76rem;
  color: var(--muted);
}

.macro-box.blue {
  background: #e8f2fc;
}

.macro-box.amber {
  background: #fdf4df;
}

.macro-box.pink {
  background: #fce8f0;
}

.micro-line {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.diary-entry-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 10px;
}

.diary-entry-card.ai {
  border-color: #d6c5f5;
  background: #faf7ff;
}

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.entry-cal {
  font-weight: 700;
  color: var(--purple-dark);
  white-space: nowrap;
}

/* Sections & Cards */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-header h2,
.split-grid h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.22;
  margin: 0 0 10px;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.interactive-card {
  box-shadow: var(--shadow);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.card-top-row h3 {
  margin: 0;
  font-size: 1.1rem;
}

.icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.check-list,
.step-list {
  padding-left: 20px;
  margin: 16px 0;
}

.check-list li,
.step-list li {
  margin-bottom: 8px;
}

/* Inputs & Interactive Boxes */
.field-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 12px 0 6px;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfc9e3;
  border-radius: 10px;
  font-size: 0.96rem;
  font-family: inherit;
  background: #ffffff;
  color: var(--text);
}

.input:focus {
  outline: 2px solid rgba(106, 36, 198, 0.25);
  border-color: var(--purple);
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.progress-wrap {
  width: 100%;
  height: 12px;
  background: #ece8f7;
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0 10px;
}

.progress-bar {
  height: 100%;
  background: var(--grad);
  transition: width 0.2s ease;
}

.goal-summary {
  font-size: 0.95rem;
}

.result-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.result-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.result-main strong {
  font-size: 1.3rem;
  color: var(--purple-dark);
}

.micro-highlight {
  margin-top: 6px;
  color: var(--text);
  font-weight: 500;
}

#runVisionDemoBtn {
  margin-top: 14px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
}

.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.featured {
  border: 2px solid var(--purple);
  box-shadow: var(--shadow);
}

.popular-tag {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--grad);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
}

.pricing-card h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.price {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 8px 0;
}

.price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Modal */
.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 14, 34, 0.55);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal {
  position: relative;
  width: min(440px, 100%);
  background: #ffffff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.modal h3 {
  margin: 0 0 6px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}

.form-feedback {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .split-grid,
  .grid-3,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
