/* Lodgekit for Filament — site styles. No external requests. */

@font-face {
  font-family: "Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #18202b;
  --muted: #566070;
  --line: #d8dde4;
  --accent: #2b4fb8;
  --accent-ink: #ffffff;
  --booked: #dfe4eb;
  --booked-edge: #b9c2cf;
  --booked-ink: #364152;
  --reject: #b42318;
  --reject-bg: #fdecea;
  --code-bg: #eceff3;

  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius-sm: 3px;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181e;
    --surface: #1b2028;
    --ink: #e4e8ee;
    --muted: #9aa4b2;
    --line: #2d343e;
    --accent: #8ea8f0;
    --accent-ink: #14181e;
    --booked: #2a313c;
    --booked-edge: #3c4552;
    --booked-ink: #c9d0da;
    --reject: #f2877d;
    --reject-bg: #3a1f1d;
    --code-bg: #1f252e;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

code,
pre {
  font-family: var(--mono);
  font-size: 0.9em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.5rem;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
}
.brand svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.brand small {
  font-weight: 400;
  color: var(--muted);
  font-size: var(--step--1);
}
.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--step--1);
}
.site-nav a:hover {
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: var(--step-4);
  max-width: 14ch;
}
.hero .lede {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  color: var(--muted);
  background: var(--surface);
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d18b00;
  flex: none;
}

/* Availability-guard illustration (the one memorable element) */

.chart {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.75rem;
}
.chart-grid {
  --nights: 10;
  display: grid;
  grid-template-columns: 5.5rem repeat(var(--nights), minmax(0, 1fr));
  grid-auto-rows: 2.5rem;
  font-size: 0.75rem;
  position: relative;
}
.chart-grid .d {
  font-family: var(--mono);
  color: var(--muted);
  text-align: center;
  align-self: end;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.chart-grid .d.we {
  color: var(--ink);
}
.chart-grid .corner {
  border-bottom: 1px solid var(--line);
}
.chart-grid .u {
  grid-column: 1;
  align-self: center;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chart-grid .row-line {
  grid-column: 1 / -1;
  border-bottom: 1px dashed var(--line);
  pointer-events: none;
}
.bar {
  align-self: center;
  height: 1.7rem;
  margin-inline: 2px;
  border-radius: var(--radius-sm);
  background: var(--booked);
  border: 1px solid var(--booked-edge);
  color: var(--booked-ink);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.6rem;
  padding-inline: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar.rejected {
  background: var(--reject-bg);
  border: 1px dashed var(--reject);
  color: var(--reject);
  transform: translateY(0.55rem);
  z-index: 1;
  animation: knock 0.9s ease-out 0.6s both;
}
@keyframes knock {
  0% { opacity: 0; transform: translate(-1.5rem, 0.55rem); }
  55% { opacity: 1; transform: translate(0.2rem, 0.55rem); }
  70% { transform: translate(-0.15rem, 0.55rem); }
  100% { opacity: 1; transform: translate(0, 0.55rem); }
}
.chart figcaption {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.chart figcaption strong {
  color: var(--reject);
  font-weight: 600;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}
.section-head h2 {
  font-size: var(--step-3);
}
.section-head p {
  margin-top: 0.75rem;
  color: var(--muted);
}

/* Features: two editions side by side */

.editions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.edition h3 {
  font-size: var(--step-1);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
}
.edition h3 span {
  font-weight: 400;
  font-size: var(--step--1);
  color: var(--muted);
}
.edition.pro h3 {
  border-bottom-color: var(--accent);
}
.edition ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.edition li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.edition li b {
  display: block;
  font-weight: 600;
}
.edition li span {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Install snippet */

.install {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: start;
}
.install h3 {
  font-size: var(--step-1);
}
.install p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.install pre {
  margin: 0;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  line-height: 1.7;
}
.install pre .c {
  color: var(--muted);
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.plan {
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.plan + .plan {
  border-left: 1px solid var(--line);
}
.plan h3 {
  font-size: var(--step-1);
}
.plan .for {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 0.25rem;
  min-height: 3em;
}
.price {
  margin: 1.25rem 0 0.25rem;
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price small {
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.plan ul {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  flex: 1;
}
.plan li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  font-size: 0.9375rem;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.95rem;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-60%) rotate(-45deg);
}
.plan.featured {
  box-shadow: inset 0 3px 0 var(--accent);
}
.btn {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn[aria-disabled="true"],
.btn:disabled {
  color: var(--muted);
  background: var(--code-bg);
  cursor: not-allowed;
}
a.btn:hover {
  border-color: var(--ink);
}
.price-note {
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.includes {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 1rem 3rem;
}
.includes h3 {
  font-size: var(--step-1);
}
.includes dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.includes dt {
  font-weight: 600;
}
.includes dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* FAQ */

.faq {
  max-width: 46rem;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 1.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  top: 1.7rem;
}
.faq details > div {
  padding: 0 0 1.1rem;
  color: var(--muted);
}
.faq details > div p:last-child {
  margin-bottom: 0;
}

/* ---------- Legal pages ---------- */

.legal {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem);
}
.legal article {
  max-width: 44rem;
}
.legal h1 {
  font-size: var(--step-3);
}
.legal .updated {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: var(--step--1);
}
.legal h2 {
  font-size: var(--step-1);
  margin: 2.25rem 0 0.75rem;
}
.legal ul {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}
.legal li {
  margin-bottom: 0.35em;
}
.legal blockquote {
  margin: 0 0 1em;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}
.legal blockquote p:last-child {
  margin-bottom: 0;
}
.legal address {
  font-style: normal;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
}
.site-footer p {
  margin: 0;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer .mor {
  grid-column: 1 / -1;
  max-width: 60ch;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap,
  .install,
  .includes {
    grid-template-columns: minmax(0, 1fr);
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .plan .for {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }
  .editions,
  .includes dl {
    grid-template-columns: minmax(0, 1fr);
  }
  .chart {
    padding-inline: 0.75rem;
  }
  .chart-grid {
    grid-template-columns: 3.75rem repeat(var(--nights), minmax(0, 1fr));
    font-size: 0.6875rem;
  }
  .bar {
    padding-inline: 0.25rem;
    font-size: 0.625rem;
  }
  .site-footer .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
