/* === LaundryFlow Styles === */
:root {
  --color-bg: #F8FAF9;
  --color-surface: #FFFFFF;
  --color-primary: #2D6A4F;
  --color-primary-light: #95D5B2;
  --color-primary-dark: #1B4332;
  --color-accent: #D4A373;
  --color-text: #1A1A2E;
  --color-text-muted: #5A6370;
  --color-border: #E0E5E2;
  --color-error: #D64045;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --container-max: 1100px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-primary-dark);
}
.logo:hover {
  text-decoration: none;
  color: var(--color-primary);
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 4px 0;
  text-decoration: none;
}
.main-nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: white;
  padding: 80px 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 640px;
  margin: 0 auto 16px;
}

.hero-sub {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: inherit;
}
.btn:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-accent);
  color: #1A1A2E;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: #C4935F;
  border-color: #C4935F;
  color: #1A1A2E;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
  text-decoration: none;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Planner Section */
.planner-section {
  padding: 64px 0;
}

.planner-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.planner-form-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.planner-form-panel h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.panel-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.form-group {
  border: none;
  margin-bottom: 24px;
}

.form-group legend {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 12px;
  padding: 0;
}

.field-row {
  margin-bottom: 12px;
}

.field-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.field-row input,
.field-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
}
.field-row input:focus,
.field-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
  display: block;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-card,
.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  font-size: 0.9rem;
}
.radio-card:hover,
.checkbox-card:hover {
  border-color: var(--color-primary-light);
  background: rgba(149, 213, 178, 0.08);
}
.radio-card input,
.checkbox-card input {
  accent-color: var(--color-primary);
}
.radio-card:has(input:checked),
.checkbox-card:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(149, 213, 178, 0.12);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Results Panel */
.planner-results {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
}

.empty-state svg {
  margin: 0 auto 16px;
}

.empty-state h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.schedule-output {
  animation: fadeIn 0.3s ease;
}

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

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.output-header h3 {
  font-size: 1.15rem;
}

.output-actions {
  display: flex;
  gap: 8px;
}

.schedule-summary {
  background: rgba(149, 213, 178, 0.12);
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.schedule-summary p {
  margin-bottom: 4px;
}
.schedule-summary p:last-child {
  margin-bottom: 0;
}

.schedule-days {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.day-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.day-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.day-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}

.day-time {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.day-tasks {
  list-style: none;
  font-size: 0.88rem;
  padding-left: 0;
}

.day-tasks li {
  padding: 3px 0;
  padding-left: 18px;
  position: relative;
}
.day-tasks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary-light);
}

.day-card.rest-day {
  background: var(--color-bg);
}
.day-card.rest-day .day-name {
  color: var(--color-text-muted);
}

.supply-section,
.etiquette-section {
  margin-bottom: 24px;
}

.supply-section h4,
.etiquette-section h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.supply-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.supply-list,
.etiquette-list {
  list-style: none;
  padding: 0;
}

.supply-list li,
.etiquette-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.supply-list li:last-child,
.etiquette-list li:last-child {
  border-bottom: none;
}

.supply-list li::before {
  content: "☐";
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.4;
}

.etiquette-list li::before {
  content: "→";
  flex-shrink: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* Tips Section */
.tips-section {
  padding: 64px 0;
  background: var(--color-surface);
}

.tips-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-intro {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 0.95rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tip-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow var(--transition);
}
.tip-card:hover {
  box-shadow: var(--shadow-md);
}

.tip-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.tip-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  padding: 64px 0;
}

.faq-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item dt {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
}

.faq-item dd {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  padding-left: 0;
  margin: 0;
}

/* Assumptions Section */
.assumptions-section {
  padding: 64px 0;
  background: var(--color-surface);
}

.assumptions-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

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

.assumption-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.assumption-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.assumption-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand .logo-text {
  color: white;
  font-size: 1.1rem;
}

.footer-tag {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 4px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.footer-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  text-decoration: none;
}
.footer-nav a:hover {
  color: white;
  text-decoration: underline;
}

.footer-meta {
  font-size: 0.82rem;
  opacity: 0.6;
}

.footer-meta a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}
.footer-meta a:hover {
  color: white;
}

.footer-small {
  margin-top: 4px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-primary-dark);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: slideUp 0.3s ease;
}

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

/* Responsive */
@media (max-width: 900px) {
  .planner-layout {
    grid-template-columns: 1fr;
  }
  .planner-results {
    position: static;
    max-height: none;
  }
  .tips-grid {
    grid-template-columns: 1fr;
  }
  .assumptions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 56px 0 48px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero-sub {
    font-size: 0.95rem;
  }
  .main-nav ul {
    gap: 14px;
  }
  .main-nav a {
    font-size: 0.82rem;
  }
  .planner-form-panel,
  .planner-results {
    padding: 20px;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions .btn {
    width: 100%;
  }
  .output-header {
    flex-direction: column;
  }
  .output-actions {
    width: 100%;
  }
  .output-actions .btn {
    flex: 1;
  }
  .header-inner {
    height: auto;
    padding: 12px 0;
    flex-direction: column;
    gap: 8px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .planner-form-panel,
  .hero,
  .tips-section,
  .faq-section,
  .assumptions-section,
  .output-actions {
    display: none !important;
  }
  .planner-results {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
  }
  body {
    background: white;
  }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
