/* AgelessOS Theme CSS — Warm sage + cream healthcare aesthetic
   Fonts: Fraunces (serif) + DM Sans
*/

:root {
  --bg: #FAF7F2;
  --bg-warm: #F5F0E8;
  --fg: #1A1A14;
  --fg-muted: #6A6A5A;
  --fg-subtle: #9A9A8A;
  --accent: #7A9E7E;
  --accent-mid: #A8C5A8;
  --accent-light: #C8D8C8;
  --accent-pale: #EAF0EA;
  --sage-deep: #5A7E5E;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --border: #E0DDD5;
  --shadow: rgba(26,26,20,0.06);
  --shadow-md: rgba(26,26,20,0.10);
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-light); border-radius: 3px; }
::selection { background: var(--accent-pale); color: var(--sage-deep); }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(250,247,242,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; height: 64px; display: flex; align-items: center; gap: 1rem; }
.nav-brand { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--fg); letter-spacing: -0.02em; }
.nav-tagline { font-size: 0.8rem; color: var(--fg-muted); font-weight: 400; padding-left: 1rem; border-left: 1px solid var(--border); }

/* HERO */
.hero { position: relative; padding: 8rem 2rem 6rem; overflow: hidden; min-height: 100vh; display: flex; align-items: center; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero-blob--1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(122,158,126,0.18) 0%, transparent 70%); top: -100px; right: -100px; }
.hero-blob--2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(200,216,200,0.25) 0%, transparent 70%); bottom: 100px; left: -50px; }
.hero-blob--3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(122,158,126,0.10) 0%, transparent 70%); bottom: -50px; right: 200px; }
.hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; }
.hero-headline { font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: var(--fg); margin-bottom: 1.5rem; }
.hero-headline em { font-style: italic; font-weight: 300; color: var(--accent); }
.hero-sub { font-size: 1.1rem; color: var(--fg-muted); line-height: 1.7; max-width: 480px; }
.hero-visual { position: relative; z-index: 1; }
.dashboard-mock { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 20px 60px var(--shadow-md), 0 4px 16px var(--shadow); overflow: hidden; }
.mock-topbar { background: var(--bg-warm); padding: 12px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.mock-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.mock-card--big { grid-column: 1; }
.mock-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-subtle); font-weight: 600; margin-bottom: 0.25rem; }
.mock-val { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; color: var(--fg); line-height: 1; }
.mock-sub { font-size: 0.65rem; color: var(--fg-subtle); margin-top: 0.25rem; }
.mock-bar-row { display: flex; align-items: center; gap: 0.75rem; }
.mock-bar-label { font-size: 0.7rem; color: var(--fg-muted); width: 90px; flex-shrink: 0; }
.mock-bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.mock-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; }

/* PROBLEM */
.problem { padding: 6rem 2rem; background: var(--white); }
.problem-inner { max-width: 1200px; margin: 0 auto; }
.problem-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; margin-bottom: 1rem; }
.problem-headline { font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--fg); margin-bottom: 3rem; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.problem-card { padding: 2rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.problem-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--shadow-md); }
.problem-icon { width: 48px; height: 48px; background: var(--accent-pale); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 1.25rem; }
.problem-card h3 { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--fg); margin-bottom: 0.75rem; }
.problem-card p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.65; }

/* FEATURES */
.features { padding: 6rem 2rem; background: var(--bg); }
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; margin-bottom: 1rem; }
.features-headline { font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--fg); margin-bottom: 5rem; }
.feature-block { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 6rem; padding-bottom: 6rem; border-bottom: 1px solid var(--border); }
.feature-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.feature-block:nth-child(even) .feature-text { order: 2; }
.feature-block:nth-child(even) .feature-visual { order: 1; }
.feature-tag { display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--white); background: var(--accent); padding: 0.3rem 0.75rem; border-radius: 100px; font-weight: 600; margin-bottom: 1rem; }
.feature-text h3 { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--fg); margin-bottom: 1rem; }
.feature-text p { font-size: 0.95rem; color: var(--fg-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.feature-list li { font-size: 0.85rem; color: var(--fg-muted); display: flex; align-items: flex-start; gap: 0.6rem; }
.feature-list li::before { content: ''; display: inline-block; width: 16px; height: 16px; min-width: 16px; background: var(--accent-pale); border-radius: 50%; margin-top: 2px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8l2.5 2.5 4.5-5' stroke='%237A9E7E' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 12px; }
.feature-visual { display: flex; align-items: center; justify-content: center; }

/* FORM MOCK */
.form-mock { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 12px 40px var(--shadow-md); overflow: hidden; width: 100%; max-width: 380px; }
.fm-header { background: var(--accent); color: var(--white); font-size: 0.8rem; font-weight: 600; padding: 0.75rem 1.25rem; letter-spacing: 0.04em; }
.fm-field { padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border); }
.fm-field--active { background: var(--accent-pale); }
.fm-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-subtle); font-weight: 600; margin-bottom: 0.35rem; }
.fm-input { font-size: 0.8rem; color: var(--fg); font-weight: 500; padding: 0.35rem 0; }
.fm-input--muted { color: var(--fg-muted); }
.fm-status { padding: 0.75rem 1.25rem; background: var(--accent-pale); display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--sage-deep); font-weight: 500; }
.fm-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(122,158,126,0.2); }

/* RECALL MOCK */
.recall-mock { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 12px 40px var(--shadow-md); overflow: hidden; width: 100%; max-width: 340px; }
.rm-header { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-subtle); padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.rm-item { padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.8rem; color: var(--fg-subtle); }
.rm-item--done { color: var(--fg-muted); }
.rm-item--active { background: var(--accent-pale); color: var(--fg); font-weight: 500; }
.rm-time { font-size: 0.65rem; font-weight: 600; color: var(--accent); background: var(--accent-pale); padding: 0.2rem 0.5rem; border-radius: 4px; min-width: 44px; text-align: center; flex-shrink: 0; }
.rm-item--active .rm-time { background: var(--accent); color: var(--white); }

/* BILLING MOCK */
.billing-mock { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 12px 40px var(--shadow-md); padding: 1.5rem; width: 100%; max-width: 340px; }
.bm-header { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-subtle); font-weight: 600; margin-bottom: 0.5rem; }
.bm-total { font-family: var(--font-serif); font-size: 2rem; font-weight: 800; color: var(--fg); line-height: 1; margin-bottom: 0.25rem; }
.bm-sub { font-size: 0.75rem; color: var(--fg-muted); margin-bottom: 1.25rem; }
.bm-bars { display: flex; flex-direction: column; gap: 0.6rem; }
.bm-bar-group { display: flex; align-items: center; gap: 0.75rem; }
.bm-bar-label { font-size: 0.7rem; color: var(--fg-muted); width: 70px; flex-shrink: 0; }
.bm-bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bm-bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.bm-bar-val { font-size: 0.7rem; font-weight: 600; color: var(--fg-muted); width: 55px; text-align: right; }

/* AI MOCK */
.ai-mock { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 12px 40px var(--shadow-md); overflow: hidden; width: 100%; max-width: 340px; }
.aim-header { background: var(--sage-deep); color: var(--white); font-size: 0.7rem; font-weight: 600; padding: 0.6rem 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.aim-dot { width: 8px; height: 8px; background: #A8E6A8; border-radius: 50%; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.aim-item { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border); font-size: 0.8rem; color: var(--fg-muted); display: flex; align-items: center; gap: 0.75rem; }
.aim-item--pulse { background: var(--accent-pale); color: var(--fg); font-weight: 500; }
.aim-icon { width: 20px; height: 20px; min-width: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; }
.aim-icon--check { background: var(--accent-pale); color: var(--accent); }
.aim-icon--pulse { background: var(--accent); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.9); } }

/* OUTCOMES */
.outcomes { padding: 6rem 2rem; background: var(--white); }
.outcomes-inner { max-width: 1200px; margin: 0 auto; }
.outcomes-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; margin-bottom: 1rem; }
.outcomes-headline { font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--fg); margin-bottom: 3rem; }
.outcomes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.outcome-card { padding: 2rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; }
.outcome-stat { font-family: var(--font-serif); font-size: 2.75rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.outcome-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-muted); margin-bottom: 0.75rem; }
.outcome-desc { font-size: 0.8rem; color: var(--fg-subtle); line-height: 1.6; }

/* CLOSING */
.closing { position: relative; padding: 8rem 2rem; overflow: hidden; background: var(--bg-warm); }
.closing-blob { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.closing-blob--1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(122,158,126,0.15) 0%, transparent 70%); top: -80px; left: -80px; }
.closing-blob--2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(200,216,200,0.20) 0%, transparent 70%); bottom: -80px; right: -80px; }
.closing-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; text-align: center; }
.closing-headline { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--fg); margin-bottom: 1.5rem; }
.closing-body { font-size: 1.1rem; color: var(--fg-muted); line-height: 1.75; max-width: 600px; margin: 0 auto 2rem; }
.closing-note { display: inline-block; font-size: 0.75rem; color: var(--accent); font-weight: 500; border: 1px solid var(--accent-light); padding: 0.5rem 1.25rem; border-radius: 100px; background: var(--accent-pale); }

/* FOOTER */
.footer { padding: 3rem 2rem; background: var(--fg); color: var(--accent-light); }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-brand { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.footer-desc { font-size: 0.85rem; color: var(--fg-subtle); margin-bottom: 1.5rem; }
.footer-meta { font-size: 0.75rem; color: var(--fg-subtle); display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.footer-sep { color: var(--fg-muted); }
.footer-legal { font-size: 0.7rem; color: var(--fg-muted); max-width: 500px; margin: 0 auto; line-height: 1.6; }

/* RESPONSIVE */
@media (max-width: 1024px) { .hero-inner { gap: 3rem; } .outcomes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .hero { padding: 6rem 1.5rem 4rem; min-height: auto; } .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; } .hero-visual { order: -1; } .problem-grid { grid-template-columns: 1fr; } .feature-block { grid-template-columns: 1fr; gap: 2.5rem; } .feature-block:nth-child(even) .feature-text, .feature-block:nth-child(even) .feature-visual { order: unset; } .outcomes-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } .outcome-card { padding: 1.5rem; } }
@media (max-width: 480px) { .hero-headline { font-size: 2rem; } .outcomes-grid { grid-template-columns: 1fr; } .closing-headline { font-size: 1.75rem; } .nav-tagline { display: none; } }