:root {
  /* Core Colors from App Tokens */
  --background: #FAF8F3;    /* Ivory */
  --surface: #FFFFFF;       /* White */
  --surface-muted: #F1F4F7; /* Cool gray */
  --ink: #10233F;           /* Deep navy */
  --muted: #647084;         /* Secondary text */
  --subtle: #8F98A7;        /* Tertiary text */
  --border: rgba(16, 35, 63, 0.08);
  
  --primary: #102B4A;       /* Deep navy blue */
  --primary-pressed: #0B2038;
  --primary-soft: #E7EEF6;
  
  --gold: #C98619;
  --gold-soft: #FFF1D7;
  
  --blue: #0F62B4;
  --blue-soft: #E3F0FF;
  
  --green: #21874D;
  --green-soft: #E4F5EA;

  --shadow-sm: 0 2px 8px rgba(16, 35, 63, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 35, 63, 0.06);
  --shadow-lg: 0 24px 64px rgba(16, 35, 63, 0.08);
  
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--background);
}

body {
  background-color: var(--background);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

p {
  margin-bottom: 1rem;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.eyebrow-badge svg {
  color: var(--gold);
}

.eyebrow {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 600px;
  font-weight: 400;
}

/* Header */
.site-header {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.brand-logo-small {
  height: 28px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

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

.nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

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

.muted-link {
  color: var(--subtle) !important;
}

/* Buttons */
.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.button.primary {
  background: var(--primary);
  color: var(--surface);
}

.button.primary:hover {
  background: var(--primary-pressed);
  transform: translateY(-1px);
}

.button.secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.button.secondary:hover {
  background: var(--surface-muted);
}

.full-width {
  width: 100%;
}

.mt-auto {
  margin-top: auto;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.bg-white {
  background-color: var(--surface);
}

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

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

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.disclaimer {
  color: var(--subtle);
  font-size: 13px;
  max-width: 500px;
  line-height: 1.5;
}

/* Phone UI Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}

.phone-bar {
  width: 80px;
  height: 5px;
  background: var(--border);
  border-radius: 10px;
  margin: 0 auto 12px;
}

.app-card, .stat-box, .entry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.privacy-card {
  background: var(--surface-muted);
  border: none;
  display: flex;
  gap: 16px;
  align-items: center;
}

.privacy-card h2 {
  font-size: 18px;
  margin-bottom: 4px;
  font-family: var(--font-sans);
}

.privacy-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.4;
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lock-icon {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1;
  color: var(--ink);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.entry-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
  font-family: var(--font-sans);
}

.entry-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.entry-category {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-handover {
  background: var(--green-soft);
  color: var(--green);
}

.badge-expense {
  background: var(--blue-soft);
  color: var(--blue);
}

.entry-date {
  font-size: 12px;
  color: var(--subtle);
  font-weight: 500;
}

.muted-entry {
  background: var(--primary-soft);
  border-color: transparent;
}

/* Features */
.section-heading {
  max-width: 680px;
  margin-bottom: 64px;
}

.center-heading {
  text-align: center;
  margin: 0 auto 64px;
}

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

.feature-card {
  padding: 32px;
  position: relative;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-number {
  font-size: 48px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--surface-muted);
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
  pointer-events: none;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

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

/* Privacy Split */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.split-desc {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.privacy-item p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.check-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Pricing */
.pricing-section {
  padding-bottom: 120px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.card-top {
  margin-bottom: 32px;
}

.price-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.price-container {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 12px;
}

.price-currency {
  font-size: 24px;
  font-weight: 700;
  margin-top: 8px;
  color: var(--muted);
}

.price {
  font-size: 56px;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
}

.renewal {
  color: var(--muted);
  font-size: 14px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
}

.bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.featured {
  background: var(--primary);
  color: var(--surface);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border: none;
}

.plan-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--surface);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.featured h3 {
  color: var(--surface);
}

.featured .price {
  color: var(--surface);
}

.featured .price-currency,
.featured .renewal,
.featured .feature-list li {
  color: rgba(255, 255, 255, 0.8);
}

.featured .button.primary {
  background: var(--surface);
  color: var(--primary);
}

.featured .button.primary:hover {
  background: var(--surface-muted);
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background-color: var(--background);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  color: var(--subtle);
  font-size: 14px;
  margin: 0;
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1100px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  .hero-copy {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .lede {
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .split-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .featured {
    transform: none;
  }
}

@media (max-width: 820px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .header-container {
    padding: 16px 20px;
  }
  
  .nav {
    display: none; /* simple mobile hide for now */
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  
  .section-container, .hero-container {
    padding: 0 20px;
  }
  
  .phone {
    padding: 16px;
    border-radius: 30px;
  }
}
