:root {
  --blue: #1d3557;
  --blue-light: #2b4c7e;
  --accent: #e63946;
  --green: #2a9d8f;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --text: #22303f;
  --muted: #64748b;
  --border: #dbe2ea;
  --radius: 10px;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 700px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 0.6em; color: var(--blue); }
h2 { font-size: 1.4rem; margin: 1.6em 0 0.5em; color: var(--blue); }
h3 { font-size: 1.05rem; margin-bottom: 0.4em; color: var(--blue); }
p { margin-bottom: 0.8em; }
a { color: var(--blue-light); }

/* Header / Footer */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.logo { font-size: 1.25rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.logo span { color: var(--green); }
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 24px 0; font-size: 0.85rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-inner a { color: var(--muted); margin-left: 16px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--green); color: #fff;
  padding: 10px 22px; border-radius: var(--radius); border: none;
  font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: filter 0.15s;
}
.btn:hover { filter: brightness(1.08); }
.btn-big { font-size: 1.15rem; padding: 14px 32px; }
.btn-small { font-size: 0.9rem; padding: 7px 16px; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-light) 100%); color: #fff; padding: 72px 0; text-align: center; }
.hero h1 { color: #fff; font-size: 2.6rem; }
.hero h1 em { color: #8fe3d9; font-style: normal; }
.hero .lead { font-size: 1.2rem; max-width: 620px; margin: 0 auto 28px; color: #dbe6f3; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: #b8c9dd; }

/* Sections & cards */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--green);
  color: #fff; font-weight: 700; display: flex; align-items: center;
  justify-content: center; margin-bottom: 12px;
}

/* Forms */
.form-grid fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.form-grid legend { padding: 0 8px; font-weight: 700; color: var(--blue); }
.form-grid label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 0.92rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type=text], input[type=email], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; margin-top: 4px;
  border: 1px solid var(--border); border-radius: 8px;
  font: inherit; font-weight: 400; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
label.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.checkbox input { width: auto; margin-top: 5px; }

.waitlist-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 8px; }
.waitlist-form input[type=email] { flex: 2 1 220px; margin: 0; }
.waitlist-form select { flex: 1 1 180px; margin: 0; width: auto; }

/* Report */
.pending-box { text-align: center; padding: 48px 0; }
.spinner {
  width: 48px; height: 48px; margin: 0 auto 24px;
  border: 5px solid var(--border); border-top-color: var(--green);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.price-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; margin: 24px 0; text-align: center; }
.price-range { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.price-range span { font-weight: 700; font-size: 1.1rem; color: var(--muted); }
.price-range .price-mid { font-size: 2.2rem; color: var(--blue); }
.price-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.price-sub { margin-top: 14px; color: var(--muted); }

.factors { list-style: none; margin: 12px 0; }
.factor { display: flex; gap: 12px; padding: 10px 12px; border-radius: 8px; margin-bottom: 8px; background: var(--bg-alt); }
.factor-sign { font-weight: 800; width: 22px; text-align: center; flex-shrink: 0; }
.factor-plus .factor-sign { color: var(--green); }
.factor-minus .factor-sign { color: var(--accent); }
.factor-neutral .factor-sign { color: var(--muted); }

.tips { margin: 12px 0 12px 20px; }
.tips li { margin-bottom: 8px; }

.provision-box { background: #eaf6f4; border: 1px solid #bfe3dd; border-radius: var(--radius); padding: 24px; margin: 32px 0; }
.provision-box h2 { margin-top: 0; }

/* Admin */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
.badge { padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.badge-done { background: #d9f2ee; color: #14655b; }
.badge-pending { background: #fdf3d7; color: #8a6d1a; }
.badge-error { background: #fbdde0; color: #a4232f; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.9rem; }
  h1 { font-size: 1.7rem; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .price-range .price-mid { font-size: 1.6rem; }
}
