@import "tailwindcss";
@custom-variant dark (&:is(.dark *));

:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.577 0.245 27.325);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);

  /* Brand Colors */
  --brand-brown: #8f5c45;
  --brand-brown-light: #b0684f;
  --brand-peach: #e7e4e2;
  --brand-pink: #cda08d;
  --brand-pink-light: #f6e8d9;
  --brand-brown-dark: #8b6914;
  --brand-taupe: #a0837e;
  --stats-border: rgba(255, 255, 255, 0.25);

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-black: #1a1a1a;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Typography */
  --font-sans: "Mulish", "Segoe UI", system-ui, sans-serif;

  /* Spacing */
  --spacing-section: 5rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(0.269 0 0);
  --sidebar-ring: oklch(0.439 0 0);
}

/* Helpers */
.bg-brand-taupe {
  background-color: var(--brand-taupe);
}

.border-none-impt {
  border: none !important;
}

@theme inline {
  /* optional: --font-sans, --font-serif, --font-mono if they are applied in the layout.tsx */
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }

  body {
    @apply bg-background text-foreground;
  }
}

/* ===== Base Styles ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-gray-800);
  background-color: var(--color-white);
  line-height: 1.6;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-gray-900);
}

/* ===== Button Components ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand-brown);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--brand-brown-light);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-gray-800);
}

.btn-ghost:hover {
  background-color: var(--color-gray-100);
}

.btn-dark {
  background-color: var(--color-gray-900);
  color: var(--color-white);
}

.btn-dark:hover {
  background-color: var(--color-gray-700);
}

.btn-pink {
  background-color: var(--brand-pink);
  color: var(--color-gray-800);
}

.btn-pink:hover {
  background-color: var(--brand-pink-light);
}

/* ===== Card Components ===== */
.card {
  padding: 1.5rem;
  background-color: var(--color-white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: rgba(139, 105, 20, 0.3);
  box-shadow: var(--shadow-lg);
}

/* ===== Icon Box ===== */
.icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-xl);
  background-color: var(--brand-peach);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-normal);
}

.icon-box svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-brown);
}

.card:hover .icon-box {
  background-color: var(--brand-pink-light);
}

/* ===== Input Components ===== */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  background-color: var(--color-white);
  outline: none;
  transition: border-color var(--transition-fast);
}

.input:focus {
  border-color: var(--brand-brown);
}

.input-dark {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.input-dark::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Section Utilities ===== */
.section {
  padding: var(--spacing-section) 0;
}

.section-muted {
  background-color: var(--color-gray-50);
}

/* ===== Toggle Component ===== */
.toggle-container {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background-color: var(--color-gray-100);
  border-radius: var(--radius-full);
}

.toggle-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: none;
  background-color: transparent;
  color: var(--color-gray-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toggle-btn.active {
  background-color: var(--color-white);
  color: var(--color-gray-800);
  box-shadow: var(--shadow-sm);
}

/* ===== Pricing Cards ===== */
.pricing-card {
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  border: 1px solid transparent;
}

.pricing-card-pink {
  background-color: var(--brand-pink-light);
  border-color: rgba(242, 212, 208, 0.3);
}

.pricing-card-peach {
  background-color: var(--brand-peach);
  border-color: rgba(139, 105, 20, 0.2);
}

/* ===== FAQ Component ===== */
.faq-item {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-200);
  background-color: var(--color-white);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item.active {
  background-color: var(--brand-pink-light);
  border-color: rgba(242, 212, 208, 0.3);
}

.faq-button {
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: var(--color-gray-100);
  color: var(--color-gray-500);
  transition: all var(--transition-fast);
}

.faq-item.active .faq-icon {
  background-color: var(--brand-brown);
  color: var(--color-white);
}

.faq-answer {
  display: none;
  padding: 0 1rem 1rem;
}

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

/* ===== Utility Classes ===== */
.text-brand-brown {
  color: var(--brand-brown);
}

.bg-brand-brown {
  background-color: var(--brand-brown);
}

.bg-brand-peach {
  background-color: var(--brand-peach);
}

.bg-brand-pink {
  background-color: var(--brand-pink);
}

.bg-brand-pink-light {
  background-color: var(--brand-pink-light);
}
