:root {
  --ink: #1a2233;
  --muted: #5a6478;
  --accent: #c8541a;
  --accent-dark: #a23f0e;
  --bg: #f7f5f1;
  --card: #ffffff;
  --line: #ddd8cf;
  --ok: #1d7a3e;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

.hero { background: linear-gradient(160deg, #21304d, #16223a); color: #fff; padding: 48px 0 56px; }
.brand { font-weight: 800; letter-spacing: .5px; color: #f0b08a; margin-bottom: 28px; font-size: 18px; }
.hero h1 { font-size: 40px; margin: 0 0 12px; line-height: 1.15; max-width: 720px; }
.hero .sub { font-size: 19px; color: #cdd6e6; max-width: 680px; }
.hero .privacy { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 10px 14px; max-width: 640px; font-size: 14px; color: #e6ecf7; }
.cta { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 18px; padding: 14px 28px; border-radius: 8px; text-decoration: none; margin-top: 10px; }
.cta:hover { background: var(--accent-dark); }
.beta-note { font-size: 14px; color: #aab6cc; }
.beta-note a { color: #f0b08a; }
.founding-form { display: flex; gap: 8px; margin-top: 14px; max-width: 520px; flex-wrap: wrap; }
.founding-form input[type=email] { flex: 1; min-width: 220px; padding: 11px 12px; border-radius: 7px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.95); font-size: 15px; }
.founding-form button { background: var(--accent); border: none; color: #fff; font-weight: 700; font-size: 15px; padding: 11px 18px; border-radius: 7px; cursor: pointer; }
.founding-form button:hover { background: var(--accent-dark); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; padding: 34px 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
.tab { background: #e9e4da; border: 1px solid var(--line); border-bottom: none; padding: 10px 18px; font-size: 15px; font-weight: 600; color: var(--muted); border-radius: 8px 8px 0 0; cursor: pointer; }
.tab.active { background: var(--card); color: var(--ink); }
.panel { display: none; background: var(--card); border: 1px solid var(--line); border-radius: 0 10px 10px 10px; padding: 22px; margin-bottom: 40px; }
.panel.active { display: block; }

h2 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid #f0b08a; border-color: var(--accent); }
.field { margin-bottom: 4px; }
.hint { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.row-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

button.primary { background: var(--accent); border: none; color: #fff; font-weight: 700; font-size: 15px; padding: 10px 20px; border-radius: 7px; cursor: pointer; }
button.primary:hover { background: var(--accent-dark); }
button.secondary { background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 7px; cursor: pointer; }
button.danger { background: #fff; border: 1px solid #d99; color: #a33; font-size: 13px; padding: 6px 12px; border-radius: 6px; cursor: pointer; }

.list { margin-top: 18px; }
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; background: #fbfaf7; }
.list-item .title { font-weight: 700; }
.list-item .meta { font-size: 13px; color: var(--muted); }

.saved-flash { color: var(--ok); font-weight: 600; font-size: 14px; align-self: center; }

table.hours { border-collapse: collapse; width: 100%; margin-top: 10px; font-size: 13.5px; }
table.hours th, table.hours td { border: 1px solid var(--line); padding: 4px 6px; text-align: center; }
table.hours th { background: #efece5; font-size: 12px; }
table.hours input { width: 52px; padding: 4px; text-align: center; font-size: 13.5px; }
table.hours .emp-name { text-align: left; font-weight: 600; min-width: 130px; }
table.hours .calc { background: #f4f8f4; font-weight: 600; }

.ded-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 12px; margin-top: 8px; }
.emp-week { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; background: #fbfaf7; }
.emp-week h4 { margin: 0 0 8px; }
.totals-line { font-size: 14px; margin-top: 8px; color: var(--muted); }
.totals-line strong { color: var(--ink); }

.export-box { border: 2px solid var(--accent); border-radius: 10px; padding: 18px; margin-top: 22px; background: #fff8f3; }
.export-box h3 { margin-top: 0; }
.error { color: #a33; font-size: 14px; white-space: pre-wrap; }

.faq { padding-bottom: 40px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin-bottom: 8px; }
summary { font-weight: 700; cursor: pointer; }

footer { background: #21304d; color: #cdd6e6; padding: 26px 0; font-size: 14px; }
footer a { color: #f0b08a; }
footer .fine { font-size: 12px; color: #8794ab; }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  table.hours { display: block; overflow-x: auto; }
}
