:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --ink: #1c2621;
  --muted: #5d6a63;
  --line: #e3ddd2;
  --green: #1f6f4a;
  --green-dark: #17553a;
  --amber: #f0b13a;
  --amber-dark: #d99a22;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 38, 33, .06), 0 8px 24px rgba(28, 38, 33, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--green); }

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header / footer ---------- */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo-tag { color: var(--green); }
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--green);
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px 7px 7px;
  border: 3px solid var(--amber);
  border-top-width: 6px;
  border-radius: 3px;
}

.site-footer {
  margin-top: 64px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .7; cursor: wait; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* ---------- homepage ---------- */
.hero { padding: 40px 0 24px; text-align: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8efe9;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}
.hero h1 {
  margin: 0 auto 16px;
  max-width: 15ch;
  font-size: clamp(36px, 8vw, 60px);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero p { margin: 0 auto; max-width: 560px; color: var(--muted); font-size: 18px; }

.choices {
  display: grid;
  gap: 14px;
  max-width: 640px;
  margin: 32px auto 0;
}
@media (min-width: 640px) { .choices { grid-template-columns: 1fr 1fr; } }

.choice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .12s ease;
}
@media (min-width: 640px) { .choice { display: block; text-align: left; } }
.choice:hover { transform: translateY(-2px); }
.choice strong { display: block; font-size: 22px; letter-spacing: -.01em; }
.choice span { display: block; margin-top: 4px; font-size: 15px; }
.choice-host { background: var(--green); color: #fff; }
.choice-host span { color: #cfe3d7; }
.choice-renter { background: var(--amber); color: var(--ink); }
.choice-renter span { color: #5b4510; }

.section { padding: 48px 0 0; }
.section h2 { margin: 0 0 18px; font-size: 26px; letter-spacing: -.02em; text-align: center; }

.cards { display: grid; gap: 14px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #e8efe9;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 15px;
}

.spaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.spaces li {
  list-style: none;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
}
.spaces { padding: 0; margin: 0; }

/* ---------- form pages ---------- */
.form-page { max-width: 640px; margin: 0 auto; padding-top: 16px; }
.back { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-size: 15px; }
.form-page h1 { margin: 0 0 8px; font-size: clamp(30px, 6vw, 40px); letter-spacing: -.03em; line-height: 1.1; }
.form-page .lead { margin: 0 0 24px; color: var(--muted); }

.panel {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 18px; }
.field label, .field .label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.field .hint { margin: -2px 0 8px; color: var(--muted); font-size: 14px; }
.optional { color: var(--muted); font-weight: 400; }

input[type=text], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cfc7b8;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px stops iPhones from zooming in */
}
textarea { min-height: 110px; resize: vertical; }
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid #bcd9c8; border-color: var(--green); }

.grid-2 { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.field .upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px;
  border: 2px dashed #cfc7b8;
  border-radius: 12px;
  background: #fbfaf7;
  text-align: center;
  cursor: pointer;
}
.upload strong { color: var(--green); }
.upload small { color: var(--muted); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.previews:empty { display: none; }
.previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.link-btn { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }

.submit-row { margin-top: 8px; }
.submit-row .btn { width: 100%; }

/* ---------- thank-you page ---------- */
.thanks { max-width: 560px; margin: 40px auto 0; text-align: center; }
.thanks .check {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 36px;
}
.thanks h1 { margin: 0 0 10px; font-size: clamp(30px, 6vw, 42px); letter-spacing: -.03em; }
.thanks p { color: var(--muted); }
.thanks .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ---------- legal page ---------- */
.legal { max-width: 720px; margin: 0 auto; }
.legal h1 { letter-spacing: -.03em; }
.legal h2 { margin-top: 28px; font-size: 20px; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  background: var(--ink);
  color: #f1efe9;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  font-size: 14px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner a { color: var(--amber); }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { flex: 1; min-height: 44px; }
.cookie-actions .btn-ghost { color: #f1efe9; border-color: #4a5650; }

[hidden] { display: none !important; }
