/* Room Paint Finish Picker - Styles */

:root {
  --color-bg: #FAF8F5;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F3EDE4;
  --color-border: #D9CFC2;
  --color-text: #2C2418;
  --color-text-secondary: #6B5D4F;
  --color-text-muted: #9A8B7A;
  --color-primary: #8B6F52;
  --color-primary-hover: #6B4F3A;
  --color-primary-light: #F0E6D8;
  --color-accent: #C8956A;
  --color-success: #5A8A5A;
  --color-warning: #C4883C;
  --color-danger: #B85C5C;
  --color-focus: #6B8FBF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1120px;
  --header-height: 64px;
}

*, *::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);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 18px;
}
.logo:hover {
  color: var(--color-primary);
  text-decoration: none;
}
.logo-icon {
  flex-shrink: 0;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}
.main-nav a {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 15px;
  padding: 4px 0;
}
.main-nav a:hover {
  color: var(--color-primary);
}

/* Hero */
.hero-section {
  padding: 48px 0 32px;
  text-align: center;
}
.hero-section h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* Picker Section */
.picker-section {
  padding: 24px 0 48px;
}
.picker-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.picker-main {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.picker-main h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}
.picker-intro {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}
.picker-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.control-group:last-of-type {
  grid-column: 1 / -1;
}
.control-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.control-select {
  appearance: none;
  background: var(--color-bg) url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B5D4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 36px 10px 14px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.15s;
}
.control-select:focus {
  outline: none;
  border-color: var(--color-focus);
  box-shadow: 0 0 0 3px rgba(107,143,191,0.25);
}
.control-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  grid-column: 1 / -1;
}
.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-hover);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  font-size: 13px;
}
.btn-ghost:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}
.btn-danger-text {
  color: var(--color-danger);
}
.btn-danger-text:hover {
  background: #fdf2f2;
}

/* Recommendation Box */
.recommendation-box {
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.rec-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.rec-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-primary-hover);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rec-icon {
  color: var(--color-primary);
  flex-shrink: 0;
}
.rec-text {
  color: var(--color-text);
  font-size: 15px;
}
.rec-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  background: #FFF8F0;
  border: 1px solid #F0D9B8;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #7A4A10;
}
.warn-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Plan Output */
.plan-output {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}
.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.plan-header h3 {
  font-size: 18px;
  font-weight: 700;
}
.plan-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.plan-item-room {
  font-weight: 600;
  font-size: 15px;
}
.plan-item-details {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}
.plan-item-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}
.plan-item-remove:hover {
  color: var(--color-danger);
  background: #fdf2f2;
}
.plan-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* Sidebar */
.picker-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-height) + 16px);
}
.picker-sidebar h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.sidebar-note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.presets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.preset-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.preset-btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.preset-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}
.preset-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}
.sidebar-tips {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}
.sidebar-tips h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}
.sidebar-tips ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-tips li {
  font-size: 13px;
  color: var(--color-text-secondary);
  padding-left: 16px;
  position: relative;
}
.sidebar-tips li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--color-accent);
}

/* Comparison Section */
.comparison-section {
  padding: 48px 0;
  background: var(--color-surface-alt);
}
.comparison-section h2 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.section-intro {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.finish-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.finish-swatch {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.finish-swatch.flat { background: linear-gradient(135deg, #E8E0D4 0%, #DDD5C8 100%); }
.finish-swatch.eggshell { background: linear-gradient(135deg, #E8E0D4 0%, #E2D8C8 50%, #E8DFD0 100%); }
.finish-swatch.satin { background: linear-gradient(135deg, #E0D5C5 0%, #E8DFD0 40%, #DDD3C2 100%); }
.finish-swatch.semi-gloss { background: linear-gradient(135deg, #D8CDBA 0%, #E5DCCD 30%, #D5C8B5 70%, #E0D5C2 100%); }
.finish-swatch.gloss { background: linear-gradient(135deg, #C8BBA5 0%, #E8E0D0 25%, #D0C2AD 50%, #E5DCCD 75%, #C8BBA5 100%); }
.finish-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.finish-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  width: 72px;
  flex-shrink: 0;
}
.stat-bar {
  flex: 1;
  height: 6px;
  background: var(--color-surface-alt);
  border-radius: 3px;
  overflow: hidden;
}
.stat-bar span {
  display: block;
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
}
.finish-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}
.finish-rooms {
  font-size: 13px;
  color: var(--color-text-secondary);
}
.finish-rooms strong {
  color: var(--color-text);
}

/* Guide Section */
.guide-section {
  padding: 48px 0;
}
.guide-section h2 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.guide-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.guide-block h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary-hover);
}
.guide-block p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* FAQ Section */
.faq-section {
  padding: 48px 0;
  background: var(--color-surface-alt);
}
.faq-section h2 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-question::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.faq-question[aria-expanded="true"]::after {
  content: "−";
}
.faq-question:hover {
  background: var(--color-bg);
}
.faq-question:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}
.faq-item dd {
  padding: 0 20px 16px;
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-name {
  font-weight: 700;
  font-size: 15px;
}
.footer-version {
  font-size: 12px;
  color: var(--color-text-muted);
}
.footer-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 14px;
  color: var(--color-text-secondary);
}
.footer-note {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-text);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: toast-in 0.3s ease;
}
.toast-out {
  animation: toast-out 0.3s ease forwards;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(12px); }
}

/* Print */
@media print {
  .site-header, .site-footer, .picker-controls, .picker-sidebar, .plan-actions, .plan-item-remove, .faq-section, .hero-section { display: none !important; }
  .picker-main { border: none; box-shadow: none; padding: 0; }
  .plan-output { border-top: 2px solid #333; }
  body { background: #fff; color: #000; }
}

/* Responsive */
@media (max-width: 768px) {
  .picker-layout {
    grid-template-columns: 1fr;
  }
  .picker-sidebar {
    position: static;
  }
  .picker-controls {
    grid-template-columns: 1fr;
  }
  .btn-primary {
    grid-column: 1;
  }
  .comparison-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding: 32px 0 24px;
  }
  .picker-main {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .plan-actions {
    width: 100%;
  }
  .plan-header {
    flex-direction: column;
    align-items: flex-start;
  }
}



/* 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;
}
