/* PlopFit — reset & base */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: #f8fafc; color: #0f172a; -webkit-font-smoothing: antialiased; min-height: 100vh; }
main { position: relative; z-index: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* Containers */
.container { width: 100%; max-width: 72rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.container-medium { max-width: 72rem; }
.container-form { max-width: 56rem; }
.container-wide { max-width: 80rem; }
@media (min-width: 640px) { .container, .container-medium, .container-form, .container-wide { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container, .container-medium, .container-form, .container-wide { padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1280px) { .container, .container-medium, .container-form, .container-wide { padding-left: 4rem; padding-right: 4rem; } }

/* Header */
.header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #e2e8f0; background: rgba(248, 250, 252, 0.95); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: 1rem; padding: 1rem 1rem; }
@media (min-width: 640px) { .header-inner { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .header-inner { padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1280px) { .header-inner { padding-left: 4rem; padding-right: 4rem; } }
.header-inner .container-wide { display: flex; align-items: center; }
.header-logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; text-decoration: none; color: #0f172a; border-radius: 0.5rem; outline: none; }
.header-logo:focus-visible { box-shadow: 0 0 0 2px #6366f1; }
.header-logo-box { display: flex; height: 2.5rem; width: 140px; flex-shrink: 0; align-items: center; justify-content: center; overflow: hidden; border-radius: 0.5rem; background: rgba(226, 232, 240, 0.6); }
.header-logo-img { height: 2.5rem; width: auto; max-width: 140px; object-fit: contain; }
.header-logo-img.is-hidden { display: none; }
.header-logo-fallback { font-size: 0.75rem; color: #64748b; display: none; }
.header-logo-fallback.is-visible { display: block; }
.header-title { font-weight: 600; font-size: 1.125rem; color: #0f172a; }
.header-inner { max-width: 80rem; margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 4rem 0; }
@media (min-width: 640px) { .hero { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .hero { padding: 6rem 0; padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1280px) { .hero { padding-left: 4rem; padding-right: 4rem; } }
.hero .container-wide { margin-left: auto; margin-right: auto; }
.hero-grid { display: flex; flex-direction: column; gap: 3rem; }
@media (min-width: 1024px) { .hero-grid { flex-direction: row; align-items: center; justify-content: space-between; gap: 4rem; } }
.hero-content { flex: 1; min-width: 0; max-width: 42rem; }
.hero-badge { display: inline-block; margin-bottom: 1rem; padding: 0.375rem 1rem; border-radius: 9999px; background: #e0e7ff; color: #4338ca; font-size: 0.875rem; font-weight: 500; }
.hero-title { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; color: #0f172a; margin: 0; }
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
.hero-subtitle { margin-top: 1.5rem; font-size: 1.125rem; color: #334155; }
.hero-cta { margin-top: 2.5rem; }
.hero-preview-wrap { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; width: 100%; }
@media (min-width: 1024px) { .hero-preview-wrap { width: 20rem; } }
.hero-preview-carousel { position: relative; width: 100%; display: none; }
.hero-preview-carousel.is-visible { display: block; }
.hero-preview-coming { aspect-ratio: 9/16; width: 100%; display: flex; align-items: center; justify-content: center; border-radius: 1rem; background: linear-gradient(to bottom right, #818cf8, #6366f1, #4f46e5); padding: 2rem; text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); font-size: 1.125rem; font-weight: 500; color: rgba(255,255,255,0.95); }
.hero-preview-coming.is-hidden { display: none; }
.hero-preview-slides { position: relative; aspect-ratio: 9/16; overflow: hidden; border-radius: 1rem; background: #e2e8f0; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.hero-preview-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; z-index: 0; }
.hero-preview-slide.is-active { opacity: 1; z-index: 1; }
.hero-preview-slide .hero-preview-img { width: 100%; height: 100%; object-fit: cover; }
.hero-preview-slide .hero-preview-img.is-error { display: none; }
.hero-preview-slide .hero-preview-placeholder { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; background: linear-gradient(to bottom right, #818cf8, #6366f1, #4f46e5); font-size: 0.875rem; color: rgba(255,255,255,0.9); }
.hero-preview-slide .hero-preview-placeholder.is-visible { display: flex; }
.hero-preview-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: rgba(255,255,255,0.9); padding: 0.5rem; border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.1); color: #334155; display: flex; align-items: center; justify-content: center; }
.hero-preview-btn:hover { background: #fff; }
.hero-preview-btn:focus { outline: none; box-shadow: 0 0 0 2px #6366f1; }
.hero-preview-btn-prev { left: 0.5rem; }
.hero-preview-btn-next { right: 0.5rem; }
.hero-preview-btn-icon { width: 1.25rem; height: 1.25rem; }
.hero-preview-dots { position: absolute; bottom: 0.75rem; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 0.375rem; }
.hero-preview-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; border: none; padding: 0; background: rgba(255,255,255,0.6); transition: all 0.2s; }
.hero-preview-dot:hover { background: rgba(255,255,255,0.8); }
.hero-preview-dot.is-active { width: 1.5rem; background: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.875rem 2rem; font-size: 1rem; font-weight: 600; border-radius: 9999px; border: none; transition: background-color 0.2s; }
.btn-primary { background: #4f46e5; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.btn-primary:hover { background: #4338ca; }
.btn-primary:focus { outline: none; box-shadow: 0 0 0 2px #6366f1; }
.btn-primary:disabled { cursor: not-allowed; opacity: 0.7; }
.btn-block { width: 100%; }

/* Features */
.features { border-top: 1px solid #e2e8f0; background: #fff; padding: 4rem 0; }
@media (min-width: 640px) { .features { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .features { padding: 6rem 0; padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1280px) { .features { padding-left: 4rem; padding-right: 4rem; } }
.features-pain { margin-bottom: 5rem; }
.section-title { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 0; }
@media (min-width: 640px) { .section-title { font-size: 1.875rem; } }
.bullet-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.bullet-list li { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.bullet-list li:last-child { margin-bottom: 0; }
.bullet-icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; background: #4f46e5; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat; }
.bullet-list span:not(.bullet-icon) { color: #334155; }

/* Social */
.social { border-top: 1px solid #e2e8f0; background: #f8fafc; padding: 4rem 0; }
@media (min-width: 640px) { .social { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .social { padding: 6rem 0; padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1280px) { .social { padding-left: 4rem; padding-right: 4rem; } }
.social .section-title { margin-bottom: 0; }
.social-grid { margin-top: 2.5rem; display: grid; gap: 2rem; }
@media (min-width: 640px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .social-grid { grid-template-columns: repeat(3, 1fr); } }
.social-card { border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #fff; padding: 1.5rem; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.social-quote { color: #334155; margin: 0; }
.social-author { margin-top: 1rem; font-size: 0.875rem; font-weight: 500; color: #64748b; }

/* Waitlist */
.waitlist { border-top: 1px solid #e2e8f0; background: #f8fafc; padding: 4rem 0; }
@media (min-width: 640px) { .waitlist { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .waitlist { padding: 6rem 0; padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1280px) { .waitlist { padding-left: 4rem; padding-right: 4rem; } }
.waitlist .section-title { margin-bottom: 0; }
.waitlist-intro { margin-top: 1rem; color: #334155; }
.waitlist-form { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form-trap { position: absolute; left: -9999px; top: 0; }
.form-field label { display: block; font-size: 0.875rem; font-weight: 500; color: #0f172a; margin-bottom: 0.25rem; }
.form-field .required { color: #ef4444; }
.form-field input, .form-field select { width: 100%; padding: 0.625rem 1rem; font-size: 1rem; color: #0f172a; background: #fff; border: 1px solid #cbd5e1; border-radius: 0.5rem; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.form-field input:focus, .form-field select:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 1px #6366f1; }
.form-field input:disabled, .form-field select:disabled { opacity: 0.8; }
.form-message { padding: 1rem; border-radius: 0.5rem; }
.form-message-success { background: #f0fdf4; color: #166534; }
.form-message-error { background: #fef2f2; color: #991b1b; }
.form-message[hidden] { display: none !important; }
.waitlist-note { margin-top: 1rem; font-size: 0.875rem; color: #64748b; }

/* FAQ */
.faq { border-top: 1px solid #e2e8f0; background: #fff; padding: 4rem 0; }
@media (min-width: 640px) { .faq { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .faq { padding: 6rem 0; padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1280px) { .faq { padding-left: 4rem; padding-right: 4rem; } }
.faq-list { margin-top: 2.5rem; margin-bottom: 0; }
.faq-list > div { margin-bottom: 2rem; }
.faq-list > div:last-child { margin-bottom: 0; }
.faq-list dt { font-size: 1rem; font-weight: 600; color: #0f172a; }
.faq-list dd { margin: 0.5rem 0 0; color: #334155; }
.faq-disclaimer { margin-top: 2.5rem; font-weight: 600; color: #0f172a; }

/* Footer */
.footer { border-top: 1px solid #e2e8f0; background: #f8fafc; padding: 2.5rem 0; }
@media (min-width: 640px) { .footer { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .footer { padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1280px) { .footer { padding-left: 4rem; padding-right: 4rem; } }
.footer-inner { max-width: 80rem; margin-left: auto; margin-right: auto; display: flex; justify-content: center; align-items: center; }
.footer-copy { margin: 0; font-size: 0.875rem; color: #475569; text-align: center; }

/* Scroll margin for anchor */
#waitlist { scroll-margin-top: 4rem; }
