:root {
  color-scheme: light;
  --bg: #fff8f1;
  --bg-soft: #fffdf9;
  --text: #241812;
  --muted: #75665c;
  --primary: #b45134;
  --primary-dark: #873820;
  --accent: #f1b955;
  --line: #ead9ca;
  --shadow: 0 24px 60px rgba(78, 42, 23, 0.14);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #ffe7c9 0, transparent 34rem), var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.site-header, main, .site-footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--primary); color: white; }
.nav-links { display: flex; gap: 20px; color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--primary); }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 64px 0 84px; }
.eyebrow { color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; margin: 0 0 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.7rem, 7vw, 5.8rem); line-height: 0.94; letter-spacing: -0.065em; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.045em; margin-bottom: 14px; }
h3 { margin-bottom: 10px; }
.hero-text, .section-heading p, .feature-card p, .site-footer { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.hero-actions, .form-actions, .toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.primary { background: var(--primary); color: #fff; box-shadow: 0 12px 30px rgba(180, 81, 52, 0.24); }
.primary:hover { background: var(--primary-dark); }
.secondary, .ghost { background: #fff; color: var(--primary-dark); border: 1px solid var(--line); }
.secondary:hover, .ghost:hover { border-color: var(--primary); }

.hero-card, .card, .feature-card {
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(234, 217, 202, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: 26px; transform: rotate(2deg); }
.window-dots { display: flex; gap: 7px; margin-bottom: 22px; }
.window-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); }
.check-row input { width: 18px; height: 18px; accent-color: var(--primary); margin-top: 2px; }
.check-row:has(input:checked) { color: var(--text); text-decoration: line-through; text-decoration-color: var(--accent); }

.panel { padding: 56px 0; }
.section-heading { max-width: 720px; margin-bottom: 26px; }
.converter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); gap: 22px; align-items: start; }
.card { padding: 24px; }
.form-card { display: grid; gap: 12px; }
label { font-weight: 800; }
input[type="text"], input[type="search"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}
textarea { resize: vertical; min-height: 260px; line-height: 1.55; }
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(180, 81, 52, 0.12); }
.card-header, .project-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pill { background: #f9ead4; color: var(--primary-dark); border-radius: 999px; padding: 6px 10px; font-size: 0.82rem; font-weight: 800; white-space: nowrap; }
.empty-state { border: 1px dashed var(--line); border-radius: 18px; padding: 24px; color: var(--muted); text-align: center; }
.preview-list, .checklist { display: grid; gap: 8px; }
.preview-item, .check-item { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: #fff; }
.preview-item { color: var(--muted); }

.toolbar { margin-bottom: 20px; }
.toolbar input[type="search"] { flex: 1 1 240px; }
.import-button { cursor: pointer; }
.project-list { display: grid; gap: 18px; }
.project-meta { color: var(--muted); margin: 0; font-size: 0.92rem; }
.project-actions, .edit-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.project-edit-form { display: grid; gap: 12px; margin-top: 18px; }
.project-edit-form textarea { min-height: 180px; }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f7e4d6; color: var(--primary-dark); font-size: 1.5rem; cursor: pointer; }
.icon-button:hover { background: #f1c9b7; }
.progress-wrap { height: 10px; border-radius: 999px; background: #f5e8dc; overflow: hidden; margin: 18px 0; }
.progress-bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.2s ease; }
.check-item { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; line-height: 1.45; }
.check-item input { width: 22px; height: 22px; accent-color: var(--primary); flex: 0 0 auto; margin-top: 0; }
.check-item.done span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--accent); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 24px; box-shadow: none; }
.site-footer { padding: 40px 0 52px; text-align: center; }

@media (max-width: 820px) {
  .site-header, main, .site-footer { width: min(100% - 24px, 1180px); }
  .nav { align-items: flex-start; gap: 16px; }
  .nav-links { display: none; }
  .hero, .converter-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 48px; gap: 24px; }
  .hero-card { transform: none; }
  .panel { padding: 38px 0; }
}

@media (max-width: 560px) {
  body { background: var(--bg); }
  .site-header, main, .site-footer { width: min(100% - 16px, 1180px); }
  h1 { font-size: 2.55rem; }
  h2 { font-size: 2rem; }
  .card, .hero-card, .feature-card { border-radius: 18px; padding: 16px; }
  .hero-actions, .form-actions, .toolbar, .project-actions, .edit-actions { align-items: stretch; flex-direction: column; }
  .button, .toolbar input[type="search"] { width: 100%; min-height: 48px; }
  textarea { min-height: 200px; }
  .project-topline { flex-direction: column; }
  .project-actions { width: 100%; }
  .icon-button { width: 100%; border-radius: 999px; }
  .check-item, .preview-item { padding: 14px; border-radius: 14px; }
  .check-item input { width: 26px; height: 26px; }
}
