/*
 * The company's front door — lodgeos.click.
 *
 * Deliberately a hand-written stylesheet with no build step: this site has to
 * be deployable by pointing Cloudflare Pages at a folder, by anybody, in a
 * minute, with no toolchain. It is also the page an SES reviewer reads, so it
 * must render on a first request with no JavaScript at all.
 *
 * The palette and type are lifted from the app's own `frontend/src/index.css`
 * so the front door and the product look like the same company. Values are
 * COPIED rather than imported — this file cannot reach into the app's build,
 * and a marketing page that broke when a token moved would be worse than a
 * little duplication. If the brand colours change, change both.
 */

:root {
  --bg: #f4f1ea;
  --bg-elev: #faf8f4;
  --card: #ffffff;
  --border: #e2dbcf;
  --border-soft: #ece6dc;

  --text: #2c251d;
  --text-sec: #6f665a;
  --muted: #948a7c;

  --forest: #1c3829;
  --accent: #3d6b4f;
  --accent-soft: #e4eee5;
  --sage: #8baf7e;

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;

  --radius: 14px;
  --radius-sm: 8px;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  /* Painted explicitly: a page that inherits its ground from the browser is a
     page that looks broken in dark mode. */
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent);
}

/* One place owns the side gutter, set as padding-inline so no shorthand can
   ever zero it. */
.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* ── the bar ─────────────────────────────────────────────────────────── */

.bar {
  padding-block: 1.4rem;
}

.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.mark svg {
  display: block;
  border-radius: 10px;
  background: var(--forest);
  padding: 6px;
}

.mark b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bar nav {
  display: flex;
  gap: 1.3rem;
  font-size: 0.92rem;
}

.bar nav a {
  color: var(--text-sec);
  text-decoration: none;
}

.bar nav a:hover {
  color: var(--accent);
}

/* ── the opening ─────────────────────────────────────────────────────── */

.hero {
  padding-block: 3.5rem 2.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 20ch;
  color: var(--forest);
}

.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--text-sec);
  max-width: 54ch;
  margin: 0 0 1.6rem;
}

.beta {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.3rem;
}

.cta {
  display: inline-block;
  background: var(--forest);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
}

.cta:hover {
  background: var(--accent);
}

.cta + .cta-note {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── sections ────────────────────────────────────────────────────────── */

section {
  padding-block: 2.4rem;
}

section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 1.8rem);
  color: var(--forest);
  margin: 0 0 0.5rem;
}

section .sub {
  color: var(--text-sec);
  max-width: 58ch;
  margin: 0 0 1.6rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}

.card h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-sec);
}

.rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── the mail statement ──────────────────────────────────────────────── */

/* Given its own surface on purpose. It is the section a mailbox provider, a
   guest, or a reviewer at Amazon comes here to read, and it should not have
   to be hunted for among the sales copy. */
.mail {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}

.mail h2 {
  margin-top: 0;
}

.mail dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.mail dt {
  font-weight: 600;
  color: var(--text);
}

.mail dd {
  margin: 0.15rem 0 0;
  color: var(--text-sec);
}

/* ── prose pages (privacy, terms) ────────────────────────────────────── */

.prose {
  padding-block: 2rem 3rem;
  max-width: 44rem;
}

.prose h1 {
  font-family: var(--font-display);
  color: var(--forest);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin: 0 0 0.3rem;
}

.prose .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.prose h2 {
  font-family: var(--font-display);
  color: var(--forest);
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text-sec);
}

.prose li {
  margin-bottom: 0.4rem;
}

/* ── the footer ──────────────────────────────────────────────────────── */

footer {
  padding-block: 2rem 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

footer a {
  color: var(--text-sec);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}
