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

:root {
  --bg: #f7f3ed;
  --panel: #ffffff;
  --sage: #6f8c7a;
  --sage-deep: #4f6a5d;
  --terracotta: #d88c73;
  --sand: #e5dbcf;
  --text: #1f2b2c;
  --muted: #4f5e5c;
  --border: rgba(79, 94, 92, 0.18);
  --shadow: 0 24px 60px rgba(31, 43, 44, 0.10);
  --radius: 18px;
  --radius-sm: 12px;
  --space: clamp(18px, 2vw, 22px);
}

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

body {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(circle at 15% 20%, rgba(216, 140, 115, 0.08), transparent 32%),
              radial-gradient(circle at 80% 10%, rgba(111, 140, 122, 0.08), transparent 30%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border-radius: var(--radius-sm); }

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

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

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(247, 243, 237, 0.86);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--sage-deep);
}

.brand .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(111, 140, 122, 0.95), rgba(216, 140, 115, 0.85));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(111, 140, 122, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: rgba(111, 140, 122, 0.12);
  color: var(--sage-deep);
  box-shadow: inset 0 0 0 1px rgba(111, 140, 122, 0.25);
}

.nav-actions { display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(79, 106, 93, 0.24);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(79, 106, 93, 0.30); }

.btn-ghost {
  background: rgba(111, 140, 122, 0.10);
  color: var(--sage-deep);
  border: 1px solid rgba(111, 140, 122, 0.35);
}

.btn-ghost:hover { background: rgba(111, 140, 122, 0.18); }

.hero {
  padding: 110px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(216, 140, 115, 0.12);
  color: var(--sage-deep);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  margin: 18px 0 14px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 26px;
}

.hero-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.tag {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sand);
  color: var(--sage-deep);
  font-weight: 600;
  text-align: center;
}

.section {
  padding: 86px 0;
}

.section h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 14px;
}

.section p.subtitle {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 32px;
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.04);
  display: grid;
  gap: 12px;
}

.card h3 { font-size: 20px; }

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

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(111, 140, 122, 0.12);
  display: grid;
  place-items: center;
  color: var(--sage-deep);
  font-weight: 700;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px;
  background: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.quote {
  font-size: 18px;
  color: var(--text);
  position: relative;
  padding-left: 18px;
}

.quote:before {
  content: "“";
  position: absolute;
  left: 0;
  top: -6px;
  color: var(--terracotta);
  font-size: 28px;
}

.badge-outline {
  border: 1px solid rgba(111, 140, 122, 0.35);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--sage-deep);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.faq {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255,255,255,0.9);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--muted);
  display: none;
}

.faq-item.active .faq-answer { display: block; }

.pill-list { display: flex; gap: 10px; flex-wrap: wrap; }

.testimonial {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 18px 36px rgba(31,43,44,0.06);
}

.testimonial footer {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 600;
}

.callout {
  padding: 36px;
  background: linear-gradient(135deg, rgba(111, 140, 122, 0.16), rgba(216, 140, 115, 0.10));
  border: 1px solid rgba(111, 140, 122, 0.25);
  border-radius: 22px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.footer {
  padding: 42px 0;
  border-top: 1px solid var(--border);
  margin-top: 70px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

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

.list-clean { list-style: none; display: grid; gap: 10px; }

.hero-visual {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--sand);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar .fill {
  width: 78%;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--terracotta));
}

.checklist {
  display: grid;
  gap: 10px;
}

.checklist li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.check {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(111, 140, 122, 0.15);
  display: grid;
  place-items: center;
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 700;
}

.form-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.06);
  display: grid;
  gap: 16px;
}

label { font-weight: 600; color: var(--text); }

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  font-family: inherit;
  font-size: 15px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(79, 106, 93, 0.6);
  box-shadow: 0 0 0 4px rgba(111, 140, 122, 0.18);
}

textarea { min-height: 140px; resize: vertical; }

.contact-meta {
  display: grid;
  gap: 12px;
}

.small-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.85);
}

.hero-mini {
  padding: 70px 0 40px;
}

@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; gap: 14px; }
  .nav-links { width: 100%; flex-wrap: wrap; }
  .nav-actions { width: 100%; justify-content: flex-start; }
  .hero { padding-top: 80px; }
  header { position: sticky; }
}

@media (max-width: 540px) {
  .btn { width: 100%; }
  .nav-links { flex-direction: column; align-items: flex-start; }
  .nav-actions { flex-direction: column; }
}

/* ---------- App UI (ex-Nymia webapp) ---------- */
.app-shell {
  min-height: 100vh;
  background: radial-gradient(circle at 30% 20%, rgba(111, 140, 122, 0.14), transparent 32%),
              radial-gradient(circle at 70% 10%, rgba(216, 140, 115, 0.12), transparent 30%),
              #fdfbf7;
  padding: 40px 0 64px;
}

.app-container { width: min(1100px, 92vw); margin: 0 auto; }

.app-hero {
  text-align: center;
  display: grid;
  gap: 14px;
  margin-bottom: 42px;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(111, 140, 122, 0.12);
  color: var(--sage-deep);
  font-weight: 600;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.app-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(31, 43, 44, 0.08);
}

.app-card h3 { font-size: 20px; color: var(--text); margin-bottom: 6px; }
.app-card p { color: var(--muted); }

.app-cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

.app-section-title { font-size: 28px; margin: 28px 0 12px; }

.pill-badge { padding: 8px 12px; border-radius: 12px; background: var(--sand); color: var(--sage-deep); font-weight: 600; }

.chat-shell {
  background: #f9f9f6;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.chat-header,
.chat-footer { background: #fff; border: 1px solid var(--border); padding: 14px 18px; }

.chat-body { padding: 18px; overflow-y: auto; display: grid; gap: 18px; }

.chat-bubble { padding: 14px; border-radius: 18px; max-width: 70%; box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.chat-bubble.me { margin-left: auto; background: var(--sage-deep); color: #fff; border-bottom-right-radius: 6px; }
.chat-bubble.them { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 6px; color: var(--text); }
.chat-bubble.nymia { background: #fff; border: 1px solid rgba(111,140,122,0.25); color: var(--text); position: relative; }
.chat-bubble.nymia:after { content: "★"; position: absolute; top: -10px; right: -10px; color: var(--sage); font-size: 12px; }

.chat-meta { font-size: 11px; color: var(--muted); margin-top: 6px; text-align: right; }

.swipe-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.swipe-btn { width: 64px; height: 64px; border-radius: 999px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; font-size: 22px; color: var(--text); box-shadow: 0 12px 28px rgba(0,0,0,0.06); }
.swipe-btn.like { color: var(--sage-deep); }
.swipe-btn.nope { color: var(--terracotta); }

.list-condensed { list-style: none; display: grid; gap: 10px; padding: 0; }
.list-condensed li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--sage); display: inline-block; }

/* Calendar */
.calendar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cal-nav {
  display: flex;
  gap: 8px;
}
.cal-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.cal-title { font-weight: 700; color: var(--text); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.cal-cell {
  min-height: 72px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.cal-cell.muted { opacity: 0.5; }
.cal-day { font-weight: 700; color: var(--text); }
.cal-events { display: grid; gap: 4px; }
.cal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(111, 140, 122, 0.12);
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 600;
}

/* Solutions cards */
.solution-card { display: grid; gap: 8px; padding: 20px; }
.solution-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill-badge.soft {
  background: rgba(111, 140, 122, 0.12);
  color: var(--sage-deep);
}
.solution-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f9f7f2 100%);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.solution-card:after {
  content: "";
  position: absolute;
  inset: auto -20% -60% auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(216,140,115,0.18), transparent 60%);
  transform: rotate(8deg);
}
.solution-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.like-btn.liked {
  background: rgba(111, 140, 122, 0.12);
  border-color: rgba(111, 140, 122, 0.4);
  color: var(--sage-deep);
  box-shadow: inset 0 0 0 1px rgba(111, 140, 122, 0.3);
}
.solution-title {
  font-size: 20px;
  color: var(--text);
  margin: 4px 0;
}
.solution-desc {
  color: var(--muted);
  line-height: 1.5;
}
