/* === MedChart – Free Medical Records App for Doctors === */
/* Vercel – Ultra-Minimalist, Typography-Driven Design       */
/* All solid colors, 1px borders, zero shadows               */

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;background:#ffffff;color:#475569;line-height:1.7;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

::selection{background:#3b82f6;color:#ffffff}
img{max-width:100%;height:auto;display:block}
a{color:#3b82f6;text-decoration:none;transition:opacity .25s}
a:hover{opacity:.7}
a:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}

/* ── Layout ── */
.container{max-width:1040px;margin:0 auto;padding:0 24px}
.section{padding:100px 0}
.section-alt{background:#fafafa}
.section-divider{border:none;border-top:1px solid #e5e7eb;margin:0}

/* ── Typography ── */
h1,.h1{font-size:clamp(2.25rem,5vw,3.5rem);font-weight:700;line-height:1.15;letter-spacing:-.03em;color:#0f172a}
h2,.h2{font-size:clamp(1.75rem,3.5vw,2.5rem);font-weight:700;line-height:1.2;letter-spacing:-.02em;color:#0f172a;margin-bottom:20px}
h3,.h3{font-size:1.125rem;font-weight:600;line-height:1.4;color:#0f172a;margin-bottom:8px}
h4,.h4{font-size:1rem;font-weight:600;color:#0f172a;margin-bottom:6px}
p{margin-bottom:16px;max-width:72ch}
p:last-child{margin-bottom:0}
.lead{font-size:1.25rem;line-height:1.6;color:#475569}
.small{font-size:.875rem;color:#64748b}
.meta{font-size:.8125rem;color:#94a3b8;text-transform:uppercase;letter-spacing:.06em;font-weight:500;margin-bottom:12px;display:block}

/* ── Header ── */
.site-header{border-bottom:1px solid #e5e7eb;padding:20px 0;background:#ffffff;position:sticky;top:0;z-index:100}
.header-inner{display:flex;align-items:center;justify-content:space-between}
.header-brand{display:flex;align-items:center;gap:10px}
.header-brand svg{flex-shrink:0}
.header-brand-text{font-size:1.125rem;font-weight:700;color:#0f172a;letter-spacing:-.02em}
.header-brand-sub{font-size:.75rem;color:#64748b;font-weight:400}
.header-nav{display:flex;align-items:center;gap:32px}
.header-nav a{font-size:.875rem;font-weight:500;color:#475569;transition:opacity .25s}
.header-nav a:hover{opacity:.7}
.header-nav a.active{color:#3b82f6}
.header-cta{display:inline-flex;align-items:center;gap:6px;font-size:.875rem;font-weight:600;color:#3b82f6;border:1px solid #3b82f6;padding:8px 20px;transition:opacity .25s}
.header-cta:hover{opacity:.7}
.mobile-toggle{display:none;background:none;border:none;cursor:pointer;padding:4px;color:#0f172a}

/* ── Hero ── */
.hero{padding:120px 0 80px}
.hero .container{max-width:760px}
.hero h1{margin-bottom:24px}
.hero p{margin-bottom:32px}
.hero-badge{display:inline-flex;align-items:center;gap:6px;font-size:.8125rem;font-weight:500;color:#3b82f6;border:1px solid #3b82f6;padding:4px 14px;margin-bottom:28px}

/* ── Buttons ── */
.btn{display:inline-flex;align-items:center;gap:8px;font-size:.9375rem;font-weight:600;padding:12px 28px;border:1px solid transparent;cursor:pointer;transition:opacity .25s;line-height:1}
.btn:hover{opacity:.7}
.btn-primary{background:#0f172a;color:#ffffff;border-color:#0f172a}
.btn-outline{background:transparent;color:#3b82f6;border-color:#3b82f6}
.btn-group{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}

/* ── Stats / Metrics ── */
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;border:1px solid #e5e7eb}
.stat-cell{padding:32px 24px;text-align:center}
.stat-cell+.stat-cell{border-left:1px solid #e5e7eb}
.stat-number{font-size:2rem;font-weight:700;color:#0f172a;display:block;margin-bottom:4px;letter-spacing:-.02em}
.stat-label{font-size:.8125rem;color:#64748b;font-weight:500}

/* ── Evidence / Data rows ── */
.evidence-list{list-style:none;display:grid;gap:1px;background:#e5e7eb;border:1px solid #e5e7eb}
.evidence-item{background:#ffffff;padding:24px 28px;display:flex;align-items:flex-start;gap:16px}
.evidence-marker{font-size:1.5rem;font-weight:700;color:#3b82f6;line-height:1;flex-shrink:0;min-width:40px}
.evidence-text{font-size:.9375rem;color:#475569}
.evidence-text strong{color:#0f172a}

/* ── Feature columns ── */
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#e5e7eb;border:1px solid #e5e7eb}
.feature-cell{background:#ffffff;padding:36px 28px}
.feature-icon{margin-bottom:16px;color:#3b82f6}
.feature-cell p{font-size:.9375rem}

/* ── Two-column ── */
.cols-2{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
.cols-2-right{border-left:1px solid #e5e7eb;padding-left:48px}

/* ── Numbered list ── */
.numbered-list{list-style:none;counter-reset:nlist}
.numbered-item{counter-increment:nlist;padding:20px 0;border-bottom:1px solid #e5e7eb;display:flex;gap:20px;align-items:flex-start}
.numbered-item:last-child{border-bottom:none}
.numbered-marker{font-size:2rem;font-weight:200;color:#3b82f6;line-height:1;min-width:48px;flex-shrink:0}
.numbered-content h4{margin-bottom:4px}
.numbered-content p{font-size:.9375rem;margin-bottom:0}

/* ── FAQ ── */
.faq-item{border-bottom:1px solid #e5e7eb}
.faq-question{width:100%;background:none;border:none;padding:24px 0;font-size:1.0625rem;font-weight:600;color:#0f172a;cursor:pointer;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:16px;transition:opacity .25s;font-family:inherit}
.faq-question:hover{opacity:.7}
.faq-question::after{content:'+';font-size:1.5rem;font-weight:300;color:#3b82f6;flex-shrink:0;transition:opacity .25s}
.faq-question.open::after{content:'−'}
.faq-answer{padding:0 0 24px;display:none;font-size:.9375rem;color:#475569;max-width:72ch}
.faq-answer.open{display:block}

/* ── Portfolio / Gallery ── */
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#e5e7eb;border:1px solid #e5e7eb}
.gallery-item{background:#ffffff;aspect-ratio:9/19;display:flex;align-items:center;justify-content:center;padding:20px;overflow:hidden;position:relative}
.gallery-item img{width:100%;height:100%;object-fit:contain}
.gallery-item .placeholder{text-align:center;color:#94a3b8;font-size:.8125rem}
.gallery-item .placeholder svg{margin-bottom:12px}
.gallery-filters{margin-bottom:40px;display:flex;flex-wrap:wrap;gap:8px}
.gallery-filter{font-size:.8125rem;font-weight:500;color:#64748b;background:none;border:1px solid #d1d5db;padding:6px 16px;cursor:pointer;transition:all .25s;font-family:inherit}
.gallery-filter:hover{border-color:#3b82f6;color:#3b82f6}
.gallery-filter.active{background:#3b82f6;color:#ffffff;border-color:#3b82f6}

/* ── Form ── */
.form{padding:60px 0}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.form-fields{display:grid;gap:20px}
.form-group{display:grid;gap:6px}
.form-group label{font-size:.8125rem;font-weight:600;color:#0f172a}
.form-group input,.form-group select,.form-group textarea{font-family:'Inter',sans-serif;font-size:.9375rem;padding:12px 16px;border:1px solid #d1d5db;background:#ffffff;color:#0f172a;transition:border-color .25s;border-radius:0}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#3b82f6}
.form-group textarea{resize:vertical;min-height:120px}
.form-side{padding-left:40px;border-left:1px solid #e5e7eb}
.form-submit{padding:14px 32px;background:#0f172a;color:#ffffff;font-size:.9375rem;font-weight:600;border:none;cursor:pointer;transition:opacity .25s;font-family:inherit}
.form-submit:hover{opacity:.7}
.form-status{margin-top:16px;font-size:.875rem;padding:12px 16px;display:none}
.form-status.error{display:block;background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.form-status.success{display:block;background:#f0fdf4;color:#166534;border:1px solid #bbf7d0}

/* ── Footer ── */
.site-footer{border-top:1px solid #e5e7eb;padding:48px 0;font-size:.875rem;color:#64748b}
.footer-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.footer-links{display:flex;gap:24px}
.footer-links a{color:#64748b;font-size:.8125rem}
.footer-links a:hover{color:#3b82f6}

/* ── Breadcrumbs ── */
.breadcrumbs{display:flex;gap:8px;align-items:center;font-size:.8125rem;color:#94a3b8;margin-bottom:48px;flex-wrap:wrap;padding-top:100px}
.breadcrumbs a{color:#64748b}
.breadcrumbs a:hover{color:#3b82f6}
.breadcrumbs span{color:#94a3b8}

/* ── Page header ── */
.page-header{padding:0 0 48px}
.page-header h1{margin-bottom:16px}
.page-header p{font-size:1.125rem;color:#475569}

/* ── Waitlist banner ── */
.waitlist-banner{background:#fafafa;border:1px solid #e5e7eb;padding:48px;text-align:center;margin-top:60px}
.waitlist-banner h3{margin-bottom:12px}
.waitlist-banner p{margin-bottom:20px;margin-left:auto;margin-right:auto}

/* ── Contact info rows ── */
.contact-info{list-style:none;display:grid;gap:16px}
.contact-info li{display:flex;align-items:center;gap:12px;font-size:.9375rem}
.contact-info li svg{flex-shrink:0;color:#3b82f6}

/* ── Testimonials ── */
.testimonial-grid{display:grid;gap:1px;background:#e5e7eb;border:1px solid #e5e7eb}
.testimonial-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1px}
.testimonial-cell{background:#ffffff;padding:32px 28px}
.testimonial-text{font-size:.9375rem;color:#475569;margin-bottom:16px;font-style:italic}
.testimonial-author{font-size:.8125rem;font-weight:600;color:#0f172a}
.testimonial-role{font-size:.75rem;color:#64748b}

/* ── Services list ── */
.service-detail{padding:24px 0;border-bottom:1px solid #e5e7eb;display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start}
.service-detail:last-child{border-bottom:none}
.service-detail h3{font-size:1.25rem}
.service-detail ul{padding-left:0;list-style:none}
.service-detail ul li{padding:4px 0 4px 20px;position:relative;font-size:.9375rem}
.service-detail ul li::before{content:'—';position:absolute;left:0;color:#3b82f6}

/* ── Animations ── */
.fade-in{opacity:0;transition:opacity .6s ease}
.fade-in.visible{opacity:1}

/* ── Mobile ── */
@media(max-width:768px){
  .header-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#ffffff;border-bottom:1px solid #e5e7eb;flex-direction:column;padding:20px 24px;gap:16px;align-items:flex-start}
  .header-nav.open{display:flex}
  .header-cta{margin-top:8px}
  .mobile-toggle{display:block}
  .hero{padding:80px 0 48px}
  .section{padding:60px 0}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .stat-cell+.stat-cell{border-left:none}
  .stat-cell:nth-child(odd){border-left:none}
  .stat-cell{border-bottom:1px solid #e5e7eb}
  .stat-cell:nth-last-child(-n+2){border-bottom:none}
  .feature-grid{grid-template-columns:1fr}
  .cols-2{grid-template-columns:1fr;gap:32px}
  .cols-2-right{border-left:none;padding-left:0}
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
  .form-grid{grid-template-columns:1fr}
  .form-side{border-left:none;padding-left:0;padding-top:24px;border-top:1px solid #e5e7eb}
  .service-detail{grid-template-columns:1fr;gap:12px}
  .testimonial-row{grid-template-columns:1fr}
  .waitlist-banner{padding:32px 24px}
  .footer-inner{flex-direction:column;text-align:center}
}
@media(max-width:480px){
  .gallery-grid{grid-template-columns:1fr}
  .btn-group{flex-direction:column}
  .btn{text-align:center;justify-content:center}
}
