* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f5f5f5; color: #333; }
header { background: #1a73e8; color: #fff; padding: 1rem 2rem; display: flex; align-items: center; gap: 1rem; }
header h1 { font-size: 1.3rem; }
nav { display: flex; gap: 0; border-bottom: 2px solid #ddd; background: #fff; }
nav button { flex: 1; padding: .8rem; border: none; background: none; font-size: 1rem; cursor: pointer; border-bottom: 3px solid transparent; }
nav button.active { border-bottom-color: #1a73e8; font-weight: 600; color: #1a73e8; }
.tab { display: none; padding: 1.5rem; max-width: 900px; margin: auto; }
.tab.active { display: block; }
button.primary { background: #1a73e8; color: #fff; border: none; padding: .6rem 1.2rem; border-radius: 4px; cursor: pointer; font-size: .95rem; }
button.primary:hover { background: #1557b0; }
button.danger { background: #d93025; color: #fff; border: none; padding: .4rem .8rem; border-radius: 4px; cursor: pointer; }
.card { background: #fff; border-radius: 8px; padding: 1rem; margin-bottom: .8rem; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.card h3 { margin-bottom: .3rem; }
.card .meta { font-size: .85rem; color: #666; }
.badge { display: inline-block; padding: .15rem .5rem; border-radius: 12px; font-size: .75rem; font-weight: 600; color: #fff; }
.badge.low { background: #5f6368; }
.badge.medium { background: #f9ab00; }
.badge.high { background: #e8710a; }
.badge.critical { background: #d93025; }
.badge.indoor { background: #1a73e8; }
.badge.recurring { background: #34a853; }

/* Modal */
.modal-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 100; justify-content: center; align-items: center; }
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: 8px; padding: 1.5rem; width: 480px; max-height: 90vh; overflow-y: auto; }
.modal h2 { margin-bottom: 1rem; }
.field { margin-bottom: .8rem; }
.field label { display: block; font-weight: 600; margin-bottom: .25rem; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; padding: .5rem; border: 1px solid #ccc; border-radius: 4px; font-size: .9rem; }
.field textarea { height: 60px; resize: vertical; }
.field-row { display: flex; gap: .8rem; }
.field-row .field { flex: 1; }
.actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }

/* Schedule */
.day-group { margin-bottom: 1.5rem; }
.day-group h3 { margin-bottom: .5rem; color: #1a73e8; }
.slot { padding: .5rem .8rem; background: #fff; border-left: 4px solid #34a853; margin-bottom: .3rem; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.slot.deadline-missed { border-left-color: #d93025; background: #fef0ef; }
.slot .time { font-weight: 600; font-size: .9rem; }
.slot .task-name { font-weight: 500; }
.wx-summary { display: flex; gap: .6rem; flex-wrap: wrap; font-size: .8rem; color: #666; }
.wx-summary span { white-space: nowrap; }
.warning { background: #fef7e0; border-left: 4px solid #f9ab00; padding: .8rem; margin-bottom: .5rem; border-radius: 4px; font-size: .9rem; }

/* Settings */
.hours-grid { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: .4rem; align-items: center; margin: 1rem 0; }
.hours-grid label { font-weight: 600; }
.hours-grid input[type="number"] { width: 70px; padding: .3rem; border: 1px solid #ccc; border-radius: 4px; }

/* Weather preview */
.weather-day { margin-bottom: .8rem; }
.weather-day summary { font-weight: 600; cursor: pointer; padding: .4rem 0; }
.weather-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .3rem; padding: .5rem 0; }
.weather-hour { background: #f8f9fa; padding: .4rem; border-radius: 4px; font-size: .82rem; text-align: center; }

/* Landing page */
.hero { text-align: center; padding: 4rem 2rem; background: linear-gradient(135deg, #e8f0fe 0%, #f5f5f5 100%); }
.hero h2 { font-size: 2.2rem; color: #1a73e8; margin-bottom: .8rem; }
.hero p { font-size: 1.2rem; color: #555; max-width: 600px; margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 3rem auto; padding: 0 2rem; }
.feature-card { background: #fff; border-radius: 8px; padding: 1.5rem; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.feature-card h3 { color: #1a73e8; margin-bottom: .5rem; }
.feature-card p { font-size: .95rem; color: #555; line-height: 1.5; }

/* How It Works */
.how-it-works { max-width: 900px; margin: 0 auto; padding: 3rem 2rem; text-align: center; }
.how-it-works h2 { font-size: 1.8rem; margin-bottom: 2rem; }
.steps { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.step { flex: 1; min-width: 200px; max-width: 260px; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: #1a73e8; color: #fff; font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto .8rem; }
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { font-size: .9rem; color: #555; line-height: 1.5; }

.example { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.example-col { flex: 1; min-width: 280px; max-width: 380px; text-align: left; }
.example-col h3 { font-size: 1.1rem; color: #1a73e8; margin-bottom: .8rem; }
.example-task { background: #fff; border-radius: 8px; padding: .8rem 1rem; margin-bottom: .5rem; box-shadow: 0 1px 3px rgba(0,0,0,.1); font-size: .9rem; }
.example-task .meta { font-size: .8rem; color: #888; margin-top: .2rem; }
.example-arrow { font-size: 2rem; color: #1a73e8; flex-shrink: 0; }
.example-day { margin-bottom: .8rem; }
.example-day h4 { font-size: .95rem; margin-bottom: .4rem; }
.example-day h4 .meta { font-weight: 400; color: #888; }
.example-slot { display: flex; align-items: center; gap: .8rem; padding: .5rem .8rem; background: #fff; border-left: 4px solid #34a853; margin-bottom: .3rem; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.05); font-size: .9rem; }
.example-slot .time { font-weight: 600; min-width: 90px; font-size: .85rem; }

.pricing { text-align: center; padding: 3rem 2rem; }
.pricing h2 { font-size: 1.8rem; margin-bottom: 2rem; }
.pricing-grid { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.pricing-card { background: #fff; border-radius: 8px; padding: 2rem; box-shadow: 0 1px 4px rgba(0,0,0,.1); width: 280px; text-align: left; }
.pricing-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.pricing-card .price { font-size: 2rem; font-weight: 700; color: #1a73e8; margin-bottom: 1rem; }
.pricing-card .price span { font-size: .9rem; font-weight: 400; color: #666; }
.pricing-card ul { list-style: none; }
.pricing-card li { padding: .3rem 0; font-size: .95rem; color: #555; }
.pricing-card li::before { content: "\2713 "; color: #34a853; font-weight: 700; }

.landing-footer { text-align: center; padding: 2rem; color: #888; font-size: .85rem; border-top: 1px solid #ddd; margin-top: 2rem; }

/* Header buttons (landing) */
.btn-header { color: #fff; text-decoration: none; padding: .4rem .8rem; border-radius: 4px; font-size: .9rem; }
.btn-header-primary { background: rgba(255,255,255,.2); }

/* Auth pages */
.auth-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #f5f5f5; }
.auth-card { background: #fff; border-radius: 8px; padding: 2rem; width: 400px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.auth-card h1 { color: #1a73e8; font-size: 1.5rem; text-align: center; margin-bottom: .5rem; }
.auth-card h2 { text-align: center; margin-bottom: 1.5rem; font-size: 1.1rem; color: #555; }
.auth-card a { color: #1a73e8; }
.auth-error { background: #fce8e6; color: #d93025; padding: .6rem; border-radius: 4px; margin-bottom: 1rem; font-size: .9rem; }
