:root {
  color-scheme: light;
  --background: #fbfaf7;
  --foreground: #2a2527;
  --card: #ffffff;
  --card-foreground: #2a2527;
  --primary: #8a3549;
  --primary-foreground: #fff8f5;
  --secondary: #e9f0ec;
  --secondary-foreground: #26312c;
  --muted: #eef0ec;
  --muted-foreground: #69605f;
  --accent: #e7f2ef;
  --accent-foreground: #213531;
  --border: #ded9d2;
  --input: #d9d4cd;
  --ring: #8a3549;
  --gold: #b98625;
  --radius: 0.75rem;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-serif {
  font-family: 'Playfair Display', ui-serif, Georgia, serif;
}

.bg-background { background-color: var(--background); }
.bg-foreground { background-color: var(--foreground); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-muted { background-color: var(--muted); }
.bg-accent { background-color: var(--accent); }
.bg-gold { background-color: var(--gold); }

.text-foreground { color: var(--foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-gold { color: var(--gold); }

.border-border { border-color: var(--border); }
.border-input { border-color: var(--input); }
.border-primary { border-color: var(--primary); }

.fill-current { fill: currentColor; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}
.btn-outline:hover { background: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
}
.btn-ghost:hover { color: var(--foreground); background: var(--muted); }

.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8rem; }
.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--input);
  background: var(--background);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  outline: none;
}
.input:focus {
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--ring) 50%, transparent);
}

.chip {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: color-mix(in oklch, var(--primary) 50%, transparent); background: var(--accent); }
.chip.selected { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-sm { width: 0.875rem; height: 0.875rem; }
.icon-lg { width: 1.25rem; height: 1.25rem; }

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.container-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
.container-medium { max-width: 56rem; margin: 0 auto; padding: 0 1rem; }

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
}

.nav-desktop { display: none; align-items: center; gap: 1.5rem; }
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-desktop a:hover { color: var(--foreground); }

.nav-cta { display: none; align-items: center; gap: 0.75rem; }
.nav-cta a.link { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); text-decoration: none; }
.nav-cta a.link:hover { color: var(--foreground); }

.menu-toggle {
  display: flex;
  padding: 0.5rem;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  color: var(--foreground);
}
.menu-toggle:hover { background: var(--muted); }

.nav-mobile {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.nav-mobile.open { max-height: 24rem; padding-bottom: 1rem; }
.nav-mobile nav { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.5rem; }
.nav-mobile a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  border-radius: 0.5rem;
}
.nav-mobile a:hover { color: var(--foreground); background: var(--muted); }
.nav-mobile .mobile-cta { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.5rem; }

@media (min-width: 768px) {
  .nav-desktop, .nav-cta { display: flex; }
  .menu-toggle, .nav-mobile { display: none; }
}

/* Footer */
.site-footer {
  background: var(--foreground);
  color: var(--primary-foreground);
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand p { font-size: 0.875rem; color: color-mix(in oklch, var(--primary-foreground) 60%, transparent); line-height: 1.6; max-width: 20rem; }
.footer-brand .disclaimer { margin-top: 1rem; font-size: 0.75rem; color: color-mix(in oklch, var(--primary-foreground) 40%, transparent); }

.footer-col h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: color-mix(in oklch, var(--primary-foreground) 80%, transparent);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  font-size: 0.875rem;
  color: color-mix(in oklch, var(--primary-foreground) 50%, transparent);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: color-mix(in oklch, var(--primary-foreground) 90%, transparent); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in oklch, var(--primary-foreground) 10%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-bottom p { font-size: 0.75rem; color: color-mix(in oklch, var(--primary-foreground) 40%, transparent); margin: 0; }

/* Sections */
.section { padding: 5rem 0; }
.section-sm { padding: 4rem 0; }
.section-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; margin: 0 0 1rem; }
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }

.eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

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

.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.25rem; }
.grid-4 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2.sm-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-2.md-2 { grid-template-columns: repeat(2, 1fr); } .grid-3.md-3 { grid-template-columns: repeat(3, 1fr); } .grid-4.md-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .grid-2.lg-2 { grid-template-columns: repeat(2, 1fr); } .grid-4.lg-4 { grid-template-columns: repeat(4, 1fr); } }

.text-center { text-align: center; }
.hidden { display: none !important; }

/* FAQ accordion */
.faq-item { width: 100%; text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem; cursor: pointer; transition: box-shadow 0.2s; }
.faq-item:hover { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 500; font-size: 0.875rem; }
.faq-answer { display: none; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.2s; color: var(--muted-foreground); }

/* Plan wizard */
.progress-bar { display: flex; gap: 0.25rem; margin-bottom: 2rem; }
.progress-segment { height: 0.375rem; flex: 1; border-radius: 9999px; background: var(--border); transition: background 0.3s; }
.progress-segment.active { background: var(--primary); }

.plan-step { display: none; }
.plan-step.active { display: flex; flex-direction: column; gap: 1.5rem; }

/* Login */
.login-layout { min-height: 100vh; display: flex; }
.login-panel {
  display: none;
  width: 50%;
  background: var(--foreground);
  color: var(--primary-foreground);
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) { .login-panel { display: flex; } }
.login-form-panel { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 3rem 1.5rem; }

.login-mode { display: none; }
.login-mode.active { display: block; }

.toggle-switch {
  width: 3rem;
  height: 1.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 2px;
  transition: all 0.2s;
}
.toggle-switch.on { background: var(--primary); border-color: var(--primary); justify-content: flex-end; }
.toggle-switch span { width: 1.25rem; height: 1.25rem; border-radius: 9999px; background: white; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }

/* Dashboard tabs */
.tab-group { display: flex; background: var(--muted); border-radius: 9999px; padding: 0.25rem; gap: 0.25rem; }
.tab-btn {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active { background: var(--card); color: var(--foreground); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

img { max-width: 100%; height: auto; display: block; }
.object-cover { object-fit: cover; width: 100%; height: 100%; }

.hero-image-wrap {
  position: relative;
  height: 20rem;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
@media (min-width: 1024px) { .hero-image-wrap { height: 35rem; } }

.image-card { position: relative; overflow: hidden; border-radius: 1rem; }
.image-card.h-64 { height: 16rem; }
.image-card.h-48 { height: 12rem; }
.image-card.h-52 { height: 13rem; }
.image-card.h-44 { height: 11rem; }

.floating-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: color-mix(in oklch, var(--card) 95%, transparent);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.star { color: var(--gold); fill: var(--gold); }

.scrollbar-hide { overflow-x: auto; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
