/* Budget Splitter – Landing page
   Warm, trustworthy palette: cream, deep teal, soft gold */

:root {
  --bg: #faf8f5;
  --bg-card: #fff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --accent: #0d5c5c;
  --accent-hover: #094848;
  --accent-light: #e8f2f2;
  --gold: #b8860b;
  --gold-light: #f5ecd8;
  --border: #e5e2dc;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

/* Language switcher – far right, dropdown style */
.nav .lang-dropdown {
  margin-left: 0.5rem;
}

.lang-dropdown {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: var(--radius);
  min-width: 4.5rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.lang-trigger:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card);
}

.lang-trigger[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 1px var(--accent);
}

.lang-trigger-text {
  flex: 1;
  text-align: left;
}

.lang-trigger-icon {
  font-size: 0.55rem;
  opacity: 0.7;
  transition: transform 0.2s;
}

.lang-trigger[aria-expanded="true"] .lang-trigger-icon {
  transform: rotate(180deg);
}

.lang-list {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 11rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 200;
}

.lang-list.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-list li {
  margin: 0;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.lang-list li:hover {
  background: var(--accent-light);
}

.lang-list li[aria-current="true"] {
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.btn-large {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding: 5rem 1.5rem 6rem;
    gap: 4rem;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 28em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.mock-card {
  width: 100%;
  max-width: 280px;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s;
}

.mock-card:hover {
  transform: translateY(-2px);
}

.mock-card-1 { margin-right: 0; }
.mock-card-2 { margin-right: 1.5rem; }
.mock-card-3 { margin-right: 3rem; }

@media (min-width: 600px) {
  .mock-card-1 { margin-right: 2rem; }
  .mock-card-2 { margin-right: 3.5rem; }
  .mock-card-3 { margin-right: 5rem; }
}

.mock-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mock-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}

.mock-card-3 .mock-value {
  color: var(--gold);
  font-size: 1.5rem;
}

/* Section common */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-align: center;
  color: var(--text);
  margin: 0 0 2.5rem;
  letter-spacing: -0.02em;
}

/* Features */
.features {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 50%, var(--bg) 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.feature {
  padding: 1.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.feature h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* How it works */
.how {
  padding: 4rem 0 5rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* CTA */
.cta {
  padding: 4rem 0 5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
}

.cta-inner {
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.cta-lead {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0 0 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta .btn-primary {
  background: #fff;
  color: var(--accent);
}

.cta .btn-primary:hover {
  background: var(--gold-light);
  color: var(--accent-hover);
}

.cta-note {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
}

/* Footer */
.site-footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.8;
  margin: 0;
}
