:root {
  --ink: #161221;
  --muted: #5b536a;
  --line: #e7e2ef;
  --paper: #fff;
  --wash: #f7f4fb;
  --purple: #6f2bd9;
  --purple-deep: #24103f;
  --green: #87dd32;
  --green-deep: #4d8f18;
  --sky: #3d9fda;
  --danger: #b42318;
  --ok: #237a35;
  --shadow: 0 16px 50px rgba(22, 18, 33, .14);
}

* { box-sizing: border-box; }
html { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
body { margin: 0; color: var(--ink); background: var(--wash); }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav { max-width: 1180px; margin: 0 auto; min-height: 66px; padding: 0 18px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 900; font-size: 1.05rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 8px; background: var(--purple); color: var(--green); display: grid; place-items: center; font-weight: 900; box-shadow: inset 0 -4px 0 rgba(0,0,0,.16); }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a, .nav-links button { min-height: 38px; border: 1px solid transparent; padding: 8px 11px; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.nav-links a:hover, .nav-links button:hover { background: var(--wash); text-decoration: none; }
.app-install-top { justify-self: end; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 13px; border-radius: 8px; background: var(--green); border: 1px solid var(--green); color: #102300; font-weight: 900; white-space: nowrap; box-shadow: inset 0 -3px 0 rgba(0,0,0,.16); }
.app-install-top:hover { text-decoration: none; filter: brightness(.97); }

.hero { min-height: calc(100vh - 66px); display: grid; align-items: start; background-color: var(--purple-deep); background-image: linear-gradient(90deg, rgba(20,9,39,.88), rgba(20,9,39,.52), rgba(20,9,39,.08)), url('/assets/rhodes-hero-billboard.png'); background-size: cover, cover; background-position: center, center 30%; background-repeat: no-repeat; color: #fff; }
.hero-inner { width: min(1180px, 100%); margin: 0 auto; padding: clamp(86px, 13vh, 132px) 18px 36px; }
.hero h1 { max-width: 760px; margin: 0 0 14px; font-size: clamp(2.4rem, 8vw, 6rem); line-height: .95; letter-spacing: 0; }
.hero p { max-width: 620px; margin: 0 0 26px; font-size: clamp(1rem, 2.4vw, 1.35rem); color: rgba(255,255,255,.9); }
.hero-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.price-chip { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px; border-radius: 8px; background: var(--green); color: #102300; font-weight: 900; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }

.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 28px 18px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel, .card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(22,18,33,.06); }
.panel { padding: 18px; }
.card { padding: 16px; }
.metric { font-size: 1.8rem; font-weight: 900; color: var(--purple-deep); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.section-title { margin: 0 0 14px; font-size: 1.45rem; }

.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--purple); background: var(--purple); color: #fff; font-weight: 800; cursor: pointer; text-decoration: none; font: inherit; }
.btn:hover { text-decoration: none; filter: brightness(.97); }
.btn.secondary { background: #fff; color: var(--purple); }
.btn.green { background: var(--green); border-color: var(--green); color: #102300; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }

form { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 6px; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 42px; border: 1px solid #d9d1e6; border-radius: 8px; padding: 10px 11px; font: inherit; color: var(--ink); background: #fff; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(111,43,217,.18); border-color: var(--purple); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; }
.check input { width: 18px; min-height: 18px; margin-top: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }

.flash { width: min(1180px, calc(100% - 36px)); margin: 16px auto 0; padding: 12px 14px; border-radius: 8px; border: 1px solid; background: #fff; }
.flash.ok { border-color: #9dd5a8; color: var(--ok); }
.flash.error { border-color: #efb2aa; color: var(--danger); }
.flash.info { border-color: #c7b8ed; color: var(--purple-deep); }

.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { min-height: 92px; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; align-content: space-between; }
.day.closed { background: #f1eef6; color: var(--muted); }
.day strong { font-size: .95rem; }
.badge { display: inline-flex; align-items: center; width: max-content; padding: 5px 8px; border-radius: 999px; font-size: .78rem; font-weight: 900; background: #ece4ff; color: var(--purple-deep); }
.badge.ok { background: #e8f8df; color: var(--green-deep); }
.badge.bad { background: #ffe8e5; color: var(--danger); }
.status { text-transform: capitalize; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f4eefc; font-size: .84rem; text-transform: uppercase; color: var(--purple-deep); }
tr:last-child td { border-bottom: 0; }
.tos-box { max-height: 260px; overflow: auto; border: 1px solid var(--line); background: #fbf9fe; padding: 14px; border-radius: 8px; white-space: pre-wrap; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery a { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; display: block; }
.gallery img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }

.footer { background: var(--purple-deep); color: rgba(255,255,255,.82); }
.footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer a { color: #fff; }

@media (max-width: 800px) {
  .nav { grid-template-columns: minmax(0, 1fr) auto; padding-top: 12px; padding-bottom: 12px; }
  .brand { min-width: 0; }
  .brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-install-top { grid-column: 2; grid-row: 1; min-height: 38px; padding: 8px 10px; font-size: .92rem; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 6px; }
  .nav-links a, .nav-links button { min-height: 36px; padding: 7px 9px; font-size: .94rem; }
  .hero { min-height: 640px; background-size: cover, cover; background-position: center, 54% 34%; }
  .hero-inner { padding-top: 72px; }
  .grid.two, .grid.three, .grid.four, .form-grid { grid-template-columns: 1fr; }
  .calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .calendar { grid-template-columns: 1fr; }
  .app-install-top { font-size: .84rem; padding-left: 8px; padding-right: 8px; }
  .nav-links a, .nav-links button { padding-left: 8px; padding-right: 8px; }
}
