/* Neutrals match Hound-Up's own design tokens exactly — see
   Packages/DesignSystem/Sources/DesignSystem/Colors/ColorTokens.swift
   in the app repo (canvas/surface/ink/mutedBody/hairline). --accent is
   the microsite's own "meadow" green (supabase/functions/render-microsite/
   index.ts's THEMES.meadow), not the app's in-app Indigo — every web page
   (this one, help/terms/privacy/support) uses this same fixed brand
   colour, not a per-walker one. */
:root {
  --bg: #f6f6f5;
  --surface: #ffffff;
  --ink: #1d1e1e;
  --muted: #7c7d7c;
  --hairline: #e9e9e7;
  --accent: #4F7942;
  --accent-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111212;
    --surface: #1a1b1b;
    --ink: #eeefef;
    --muted: #868888;
    --hairline: #272828;
    --accent: #7FB86A;
    --accent-ink: #14210F;
  }
}

:root[data-theme="dark"] {
  --bg: #111212;
  --surface: #1a1b1b;
  --ink: #eeefef;
  --muted: #868888;
  --hairline: #272828;
  --accent: #7FB86A;
  --accent-ink: #14210F;
}

:root[data-theme="light"] {
  --bg: #f6f6f5;
  --surface: #ffffff;
  --ink: #1d1e1e;
  --muted: #7c7d7c;
  --hairline: #e9e9e7;
  --accent: #4F7942;
  --accent-ink: #ffffff;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

header.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}

header.top .brand-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

header.top .brand {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

header.top .brand-tag {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

header.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-left: 18px;
}

header.top nav a:hover,
header.top nav a[aria-current="page"] {
  color: var(--accent);
}

h1 {
  font-size: 30px;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 6px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}

h2 {
  font-size: 19px;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

p, li {
  font-size: 15.5px;
  color: var(--ink);
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

strong {
  font-weight: 700;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 20px 0;
}

.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 13px;
}

.index-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.index-links a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 15.5px;
}

.index-links a:hover {
  border-color: var(--accent);
}

.index-links span {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 4px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
}

.field input,
.field textarea {
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 72px;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.btn {
  display: inline-block;
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  cursor: pointer;
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-secondary {
  display: inline-block;
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 13px 20px;
  cursor: pointer;
  width: 100%;
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-row .btn,
.btn-row .btn-secondary {
  width: auto;
  flex: 1;
}

.review-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 16px 0;
}

.review-list dt {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
}

.review-list dd {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink);
}

.form-error {
  color: #a1483c;
  font-size: 13.5px;
  margin: -8px 0 16px;
}

.avail-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

.avail-legend .swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.month-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.day-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.day-strip::-webkit-scrollbar {
  display: none;
}

.day-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 46px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.day-btn .weekday {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.day-btn .daynum {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.day-btn .daynum.with-month {
  font-size: 12.5px;
}

.day-btn .dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

.day-btn.closed .dot,
.day-btn.full .dot {
  background: var(--hairline);
}

.day-btn.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.day-btn.selected .weekday,
.day-btn.selected .daynum {
  color: var(--accent);
}

.avail-day-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 9px;
}

.today-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 2px 7px;
  border-radius: 999px;
}

.avail-status {
  font-size: 13.5px;
  color: var(--muted);
}

.avail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.avail-chip {
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  /* iOS Safari leaves a tap in a "stuck" :hover/highlight state that can
     visually compete with the .selected background applied right after
     the tap — this is exactly what made a picked chip look unchanged on
     a real phone even though the class toggle itself was correct. */
  -webkit-tap-highlight-color: transparent;
}

.avail-chip:hover {
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
}

.avail-chip.selected,
.avail-chip.selected:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.avail-busy-note {
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--muted);
}
