/* KINN brand system — matches the engagement dashboard.
   forest/orange/sand · Jost + Libre Baskerville */
:root {
  --forest: #3b5444;
  --forest-soft: #5c7a63;
  --forest-tint: #e3e8e1;
  --dark: #202820;
  --orange: #df6d27;
  --sand: #e7e6dc;
  --container: #eceadf;
  --card: #ffffff;
  --line: #d6d5c8;
  --tan: #b89b6a;
  --muted: #6f7a72;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(32,40,32,.07), 0 10px 28px rgba(32,40,32,.06);
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Jost", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--sand);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 44px 20px 80px; }

/* Page header */
.page-head { text-align: center; margin-bottom: 30px; }
.logo {
  height: 30px; width: auto; display: inline-block; margin-bottom: 22px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: 11px;
  font-weight: 500; color: var(--forest); margin: 0 0 12px;
}
.page-head h1 {
  font-family: var(--serif); font-weight: 400; font-size: 38px;
  line-height: 1.12; margin: 0 0 14px; color: var(--dark);
}
.lede { color: var(--muted); margin: 0 auto; max-width: 600px; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; margin-bottom: 18px;
}
.card h2 {
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  margin: 0 0 16px; display: flex; align-items: center; gap: 10px;
}
.card h2 .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--forest-tint); color: var(--forest); font-size: 13px; font-weight: 700;
}
.req {
  margin-left: auto; font-size: 11px; font-weight: 600; color: var(--orange);
  text-transform: uppercase; letter-spacing: .08em;
}
.rate { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--orange); }
.opt-tag, h2 em { color: var(--muted); font-style: normal; font-weight: 400; font-size: 13px; }

/* Fields */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--dark); }
.field em { color: var(--muted); font-weight: 400; font-style: normal; }
input[type=text], input[type=email], input[type=date], select, textarea {
  font-family: var(--sans); font-size: 15px; color: var(--dark);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(59,84,68,.14);
}
textarea { resize: vertical; }
.counter { text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; }

.member-row { margin-top: 14px; }
.code-input { display: flex; gap: 8px; }
.code-input input { text-transform: uppercase; }
.hint { font-size: 12px; min-height: 14px; }
.hint.ok { color: var(--forest); }
.hint.bad { color: var(--orange); }

/* Slots */
.slots { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.slots-empty, .slots-loading { color: var(--muted); font-size: 13px; margin: 4px 0; }
.slot {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  border: 1px solid var(--line); background: #fff; color: var(--dark);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; transition: all .12s;
}
.slot:hover { border-color: var(--forest); }
.slot.sel { background: var(--forest); border-color: var(--forest); color: #fff; }
.slot:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* Options */
.options { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  transition: border-color .12s, background .12s;
}
.opt:hover { border-color: var(--forest-soft); }
.opt input { accent-color: var(--forest); width: 18px; height: 18px; flex: none; }
.opt:has(input:checked) { border-color: var(--forest); background: rgba(59,84,68,.05); }
.opt-main { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.opt-main strong { font-weight: 600; font-size: 14px; }
.opt-main small { color: var(--muted); font-size: 12.5px; }
.opt-price { font-weight: 600; font-size: 14px; color: var(--dark); white-space: nowrap; }

/* Summary */
.summary { padding: 18px 22px; }
.line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--dark); }
.line small { color: var(--muted); }
.line.discount { color: var(--forest); }
.total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px;
  font-weight: 700; font-size: 18px;
}
.total-row span:last-child { color: var(--orange); }

/* Todo */
.todo {
  background: #faf0e7; border: 1px solid rgba(223,109,39,.25);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 16px;
}
.todo p { margin: 0 0 6px; font-weight: 600; color: var(--orange); }
.todo ul { margin: 0; padding-left: 18px; color: #b4540f; font-size: 14px; }

/* Buttons */
.btn-primary {
  width: 100%; font-family: var(--sans); font-size: 16px; font-weight: 600;
  letter-spacing: .01em; color: #fff; background: var(--orange); border: none;
  border-radius: 12px; padding: 16px; cursor: pointer; transition: background .15s, transform .05s;
}
.btn-primary:hover { background: #c95f1d; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { background: #e9b893; cursor: not-allowed; }
.btn-ghost {
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--forest);
  background: var(--forest-tint); border: none; border-radius: 10px;
  padding: 0 16px; cursor: pointer; white-space: nowrap;
}
.btn-ghost:hover { background: #d3ddd2; }

.policy { text-align: center; color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }

@media (max-width: 560px) {
  .page-head h1 { font-size: 32px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
}
