/* RoomRota — marketing + signup styles.
   Standalone from the tenant booking app (style.css). No inline styles/scripts
   anywhere: the app CSP is style-src 'self' / script-src 'self'. */

:root {
  --ink: #1c2620;
  --ink-soft: #44524a;
  --cream: #f6f1e7;
  --cream-deep: #efe7d6;
  --paper: #fffdf8;
  --green: #1f4d3a;
  --green-deep: #16382a;
  --green-bright: #2f7d5b;
  --amber: #e0a44a;
  --amber-deep: #c8862a;
  --terra: #c75c43;
  --line: #e3dccb;
  --shadow: 0 1px 2px rgba(28, 38, 32, .06), 0 12px 32px -12px rgba(28, 38, 32, .18);
  --radius: 14px;
  --maxw: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Georgia", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

* { box-sizing: border-box; }

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

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

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--green-bright);
  margin: 0 0 14px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 1rem/1 var(--sans);
  padding: .85em 1.4em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); background: rgba(31,77,58,.04); }
.btn-amber { background: var(--amber); color: var(--green-deep); box-shadow: var(--shadow); }
.btn-amber:hover { background: var(--amber-deep); color:#fff; }
.btn-lg { font-size: 1.06rem; padding: 1em 1.7em; }
/* Tertiary: reads as a link so it never competes with the primary next to it. */
.btn-tertiary {
  background: transparent; color: var(--ink-soft); border-color: transparent;
  text-decoration: underline; text-underline-offset: 3px; padding: .85em .6em;
}
.btn-tertiary:hover { color: var(--green); }

/* Muted reassurance under a signup CTA ("Takes about 4 minutes"). */
.cta-hint { margin: 10px 0 0; color: var(--ink-soft); font-size: .86rem; }

/* ---- Top nav ---- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between;
             gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55em; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--green); color: var(--amber);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--green); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-signin { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .96rem; white-space: nowrap; }
.nav-signin:hover { color: var(--green); }
.nav-burger { display: none; }

/* ---- Hero ---- */
.hero { padding: 76px 0 40px; position: relative; overflow: hidden; }
/* The visual side takes the larger track: the calendar still now carries a
   sidebar as well as seven day columns, and a day column narrower than the
   words inside a booking is worse than no still at all. */
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); margin: 0 0 18px; }
.hero h1 .accent { color: var(--green-bright); font-style: italic; }
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 28px; max-width: 32ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
/* Two flex items only (tick + one text run) so the sentence wraps as prose
   rather than the bold lead breaking onto its own column. */
.hero-note { margin-top: 18px; color: var(--ink-soft); font-size: .92rem; display: flex; align-items: flex-start; gap: .5em; max-width: 46ch; }
.hero-note .tick { flex: 0 0 auto; line-height: 1.6; }
.hero-note b { color: var(--ink); }

/* ---- Hero still of the admin calendar ------------------------------------
   A scaled-down copy of the signed-in week view, not a generic grid of
   squares: someone who signs up after seeing this has to recognise the screen
   they land on. Every part answers to something in admin.css --
   .dm-cal/.dm-dh/.dm-gutter/.dm-col/.dm-ev are .cal/.dh/.gutter/.col/.ev --
   and the borders and hairlines are real 1px rules for the same reason they
   are there: a calendar with no boundaries reads as a mockup.

   admin.css is not loaded on marketing pages and must not be, so the three
   room-colour triples it would supply are restated here under --dm-. The bar
   colours are already in the palette above (green-bright / terra / amber-deep,
   which are admin's --r1/--r2/--r3). */
.demo-visual { min-width: 0; }
.demo-card {
  --dm-hr: 42px;       /* one hour of calendar height */
  --dm-rows: 9;        /* the canvas runs 10:00-19:00 */
  --dm-faint: #7c867e;
  --dm-line-strong: #d6ccb5;
  --dm-today: rgba(47,125,91,.075);
  --dm-r1-bg: #e4efe8; --dm-r1-ink: #16412e; --dm-r1-line: #bfd9ca;
  --dm-r2-bg: #f7e7e1; --dm-r2-ink: #7d3221; --dm-r2-line: #eec6b8;
  --dm-r3-bg: #f8edd9; --dm-r3-ink: #6d480f; --dm-r3-line: #ead2a3;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  /* admin.css's own --shadow, plus one wider layer: the card has to sit on the
     page rather than float on it, which is the whole complaint about the grid
     of flat squares this replaced. */
  box-shadow:
    0 1px 2px rgba(28,38,32,.06),
    0 14px 34px -18px rgba(28,38,32,.28),
    0 34px 70px -34px rgba(28,38,32,.24);
  /* No padding: the sidebar has to run into the card's own rounded corners,
     so the inset lives on .dm-body instead. */
  padding: 0;
  overflow: hidden;
  transform: rotate(.5deg);
}
.dm-shell { display: grid; grid-template-columns: 88px minmax(0, 1fr); }

/* ---- the rail ----
   The one darker surface in the still. Labels only, no icons: at 88px an icon
   and a word cannot both be legible, and the word is the half that identifies
   the page. */
.dm-side { display: flex; flex-direction: column; background: var(--green); padding: 9px 0 10px; }
.dm-side-brand { display: block; padding: 0 8px 9px; border-bottom: 1px solid rgba(255,255,255,.13); }
.dm-mark {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
  background: var(--amber); color: var(--green-deep);
  font-family: var(--serif); font-weight: 700; font-size: .78rem; line-height: 1;
}
.dm-side-name {
  display: block; margin-top: 6px;
  font-family: var(--serif); font-size: .62rem; line-height: 1.15; color: #fff;
}
.dm-side-name small {
  display: block; font-family: var(--sans); font-size: .46rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 46%, transparent);
}
.dm-nav { display: flex; flex-direction: column; flex: 1 1 auto; gap: 1px; padding: 8px 6px 0; }
.dm-nav-i {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  padding: .34em .4em .34em .5em; border-radius: 5px;
  font-size: .58rem; line-height: 1.2;
  color: color-mix(in srgb, var(--cream) 72%, transparent);
}
.dm-nav-i.is-current {
  background: rgba(255,255,255,.11); color: #fff; font-weight: 700;
  box-shadow: inset 3px 0 0 var(--amber);
}
.dm-badge {
  font-size: .46rem; font-weight: 700; line-height: 1.4; padding: 0 .4em;
  border-radius: 999px; background: rgba(255,255,255,.16); color: var(--cream);
}
/* Settings is setup, not daily work, so it sits away from the four above it. */
.dm-nav-rule { display: block; height: 1px; margin: auto 4px 7px; background: rgba(255,255,255,.2); }

/* ---- topbar across the main area ---- */
.dm-main { display: flex; flex-direction: column; min-width: 0; background: var(--paper); }
.dm-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.dm-search {
  display: flex; align-items: center; gap: .4em; flex: 1 1 auto; min-width: 0;
  border: 1px solid var(--line); border-radius: 6px; background: var(--cream);
  padding: .3em .5em; font-size: .56rem; color: var(--dm-faint);
  white-space: nowrap; overflow: hidden;
}
/* Magnifier without an icon font: a ring and a rotated handle. */
.dm-mag {
  position: relative; flex: 0 0 auto; width: 7px; height: 7px;
  border: 1.2px solid currentColor; border-radius: 50%;
}
.dm-mag::after {
  content: ""; position: absolute; right: -3px; bottom: -1px;
  width: 4px; height: 1.2px; background: currentColor; transform: rotate(45deg);
}
.dm-body { padding: 10px; }
.dm-weeknav { display: flex; align-items: center; gap: 6px; }
.dm-arrow {
  width: 18px; height: 18px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 5px; background: var(--cream-deep);
  color: var(--ink-soft); display: grid; place-items: center; font-size: .56rem; line-height: 1;
}
.dm-wk { font-family: var(--serif); font-size: .82rem; line-height: 1.15; margin: 0 2px; white-space: nowrap; }
.dm-wk small { display: block; font-family: var(--sans); font-size: .52rem; color: var(--dm-faint); }
.dm-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 5px; padding: .26em .5em;
  font-size: .54rem; color: var(--ink-soft); white-space: nowrap;
}
.dm-vt { display: flex; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.dm-vt-b {
  padding: .26em .5em; font-size: .54rem; font-weight: 600;
  background: var(--cream-deep); color: var(--ink-soft);
  border-right: 1px solid var(--line);
}
.dm-vt-b:last-child { border-right: 0; }
.dm-vt-b.is-on { background: var(--paper); color: var(--ink); }

/* room filter -- doubles as the colour key, so the dot is on the control */
.dm-rooms {
  display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 10px;
}
.dm-rf {
  display: inline-flex; align-items: center; gap: .4em;
  background: var(--cream-deep); border-right: 1px solid var(--line);
  padding: .32em .6em; font-size: .62rem; color: var(--ink-soft); white-space: nowrap;
}
.dm-rf:last-child { border-right: 0; }
.dm-rf.is-on { background: var(--paper); color: var(--ink); font-weight: 600; }
.dm-dot { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }
.dm-dot.r1 { background: var(--green-bright); }
.dm-dot.r2 { background: var(--terra); }
.dm-dot.r3 { background: var(--amber-deep); }

/* the grid */
.dm-cal {
  display: grid; grid-template-columns: 30px repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: 9px; overflow: hidden;
  background: var(--paper);
}
.dm-corner { background: var(--cream-deep); border-bottom: 1px solid var(--dm-line-strong); }
.dm-dh {
  background: var(--cream-deep); border-bottom: 1px solid var(--dm-line-strong);
  padding: 4px 2px 3px; text-align: center; line-height: 1.1;
}
.dm-dh b { display: block; font-size: .54rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.dm-dh span { display: block; font-size: .8rem; font-variant-numeric: tabular-nums; }
.dm-dh.is-today { background: var(--dm-today); }
.dm-dh.is-today b, .dm-dh.is-today span { color: var(--green); }
.dm-dh.is-today span { font-weight: 700; }

.dm-gutter { border-right: 1px solid var(--dm-line-strong); background: var(--cream-deep); }
.dm-hr { position: relative; height: var(--dm-hr); border-top: 1px solid var(--line); }
.dm-hr:first-child { border-top: 0; }
.dm-hr i {
  position: absolute; top: 1px; right: 4px; font-style: normal;
  font-size: .5rem; color: var(--dm-faint); font-variant-numeric: tabular-nums;
}

.dm-col {
  position: relative;
  height: calc(var(--dm-rows) * var(--dm-hr));
  border-right: 1px solid var(--line);
  /* One hairline an hour as a gradient, the way .col does it, rather than a
     row of empty cells the browser has to lay out. */
  background-image: repeating-linear-gradient(
    to bottom,
    var(--line) 0, var(--line) 1px,
    transparent 1px, transparent var(--dm-hr));
}
.dm-col:last-child { border-right: 0; }
.dm-col.is-today { background-color: var(--dm-today); }

/* now-line, on today's column only */
.dm-now { position: absolute; display: block; left: 0; right: 0; top: calc(var(--now) * var(--dm-hr)); z-index: 3; }
.dm-now::before { content: ""; display: block; height: 0; border-top: 2px solid var(--terra); }
.dm-now::after {
  content: ""; position: absolute; left: -3px; top: -3px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--terra);
}

/* one booking: as tall as it is long, with the room's colour on its left edge */
.dm-ev {
  position: absolute; left: 2px; right: 2px;
  top: calc(var(--at) * var(--dm-hr));
  height: calc(var(--len) * var(--dm-hr) - 3px);
  display: flex; flex-direction: column;
  padding: 2px 3px 2px 4px;
  border: 1px solid var(--dm-ev-line); border-left: 3px solid var(--dm-ev-bar);
  border-radius: 5px;
  background: var(--dm-ev-bg); color: var(--dm-ev-ink);
  overflow: hidden; line-height: 1.15;
  animation: dmEvIn .5s ease both;
}
.dm-ev-t { font-size: .52rem; opacity: .78; font-variant-numeric: tabular-nums; }
.dm-ev-n { font-size: .6rem; font-weight: 700; letter-spacing: -.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-ev-r { font-size: .52rem; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* awaiting payment, without changing the room's colour */
.dm-ev.is-pending { border-style: dashed; border-left-style: solid; }
.dm-ev.r1 { --dm-ev-bar: var(--green-bright); --dm-ev-bg: var(--dm-r1-bg); --dm-ev-ink: var(--dm-r1-ink); --dm-ev-line: var(--dm-r1-line); }
.dm-ev.r2 { --dm-ev-bar: var(--terra);        --dm-ev-bg: var(--dm-r2-bg); --dm-ev-ink: var(--dm-r2-ink); --dm-ev-line: var(--dm-r2-line); }
.dm-ev.r3 { --dm-ev-bar: var(--amber-deep);   --dm-ev-bg: var(--dm-r3-bg); --dm-ev-ink: var(--dm-r3-ink); --dm-ev-line: var(--dm-r3-line); }

/* Geometry carriers, the same device admin.css uses for real bookings: the CSP
   is style-src 'self', so a block's position cannot ride in a style attribute.
   This week is fixed, so the classes are hand-written rather than generated --
   .at-HHMM is hours after 10:00, .len-MM is the length in hours. */
.at-1000 { --at: 0 }
.at-1100 { --at: 1 }
.at-1200 { --at: 2 }
.at-1400 { --at: 4 }
.at-1500 { --at: 5 }
.at-1600 { --at: 6 }
.at-1700 { --at: 7 }
.at-1730 { --at: 7.5 }
.at-1800 { --at: 8 }
.len-60  { --len: 1 }
.len-90  { --len: 1.5 }
.len-120 { --len: 2 }
.len-180 { --len: 3 }
.now-1320 { --now: 3.33 }

/* Blocks arrive a day at a time, left to right, once. */
.dm-ev.dl1 { animation-delay: .15s }
.dm-ev.dl2 { animation-delay: .25s }
.dm-ev.dl3 { animation-delay: .35s }
.dm-ev.dl4 { animation-delay: .45s }
.dm-ev.dl5 { animation-delay: .55s }
.dm-ev.dl6 { animation-delay: .65s }
.dm-ev.dl7 { animation-delay: .75s }
@keyframes dmEvIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.dm-legend {
  display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center;
  margin: 9px 2px 0; font-size: .56rem; color: var(--dm-faint);
}
.dm-key { display: inline-flex; align-items: center; gap: .4em; }
.dm-swatch {
  width: 13px; height: 10px; border: 1px dashed var(--dm-line-strong);
  border-left: 3px solid var(--amber-deep); border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .dm-ev { animation: none; }
}

/* ---- Section scaffolding ---- */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 14px; }
.section-head p { font-size: 1.12rem; color: var(--ink-soft); margin: 0; }

/* Policy summary under the plans. Legible, but pitched below the pricing
   itself: it has to be findable before someone signs up without competing
   with the offer for attention. */
.section-head p.fine-print {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 14px;
  color: var(--ink-soft);
  opacity: 0.85;
}

.band-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-green { background: var(--green); color: var(--cream); }
.band-green h2 { color: #fff; }
.band-green .section-head p { color: color-mix(in srgb, var(--cream) 82%, transparent); }

/* ---- Problem / steps / features ---- */
.cards { display: grid; gap: 22px; }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.band-green .card { background: var(--green-deep); border-color: rgba(255,255,255,.1); color: var(--cream); }
.card h3 { font-size: 1.25rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-soft); }
.band-green .card p { color: color-mix(in srgb, var(--cream) 80%, transparent); }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--cream-deep); color: var(--green);
}
.step-n {
  font-family: var(--serif); font-size: 2.4rem; color: var(--amber-deep);
  line-height: 1; margin-bottom: 10px; display: block;
}

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 34px; margin-top: 8px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .tick {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-bright); color: #fff; display: grid; place-items: center;
  font-size: .85rem; margin-top: 2px;
}
.feature b { display: block; }
.feature span { color: var(--ink-soft); font-size: .95rem; }

/* ---- Stripe-optional callout ---- */
.callout {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  background: var(--cream-deep); border: 1px solid var(--line); border-radius: 18px; padding: 32px 36px;
}
.callout h3 { font-size: 1.5rem; margin: 0 0 8px; }
.callout p { margin: 0; color: var(--ink-soft); max-width: 56ch; }
.badge-soon { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--amber-deep); background: rgba(224,164,74,.18);
  padding: .25em .7em; border-radius: 999px; margin-left: .5em; }

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1120px; margin: 0 auto; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.price-card.feature-card { border-color: var(--green); border-width: 2px; }
.price-card h3 { font-size: 1.3rem; margin: 0 0 6px; }
.price-amount { font-family: var(--serif); font-size: 2.6rem; color: var(--ink); margin: 8px 0 4px; }
.price-amount small { font-size: 1rem; color: var(--ink-soft); font-family: var(--sans); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.price-card li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-soft); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green-bright); font-weight: 700; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-family: var(--serif); font-size: 1.18rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber-deep); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-soft); margin: 12px 0 0; }

/* ---- Final CTA ---- */
.center-actions { text-align: center; }
.mt-lg { margin-top: 48px; }
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 14px; color: #fff; }
.final-cta p { color: color-mix(in srgb, var(--cream) 82%, transparent); font-size: 1.15rem; margin: 0 0 28px; }

/* ---- Footer ---- */
.footer { background: var(--green-deep); color: color-mix(in srgb, var(--cream) 78%, transparent); padding: 48px 0 36px; }
.footer a { color: var(--cream); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols b { color: #fff; display: block; margin-bottom: 10px; font-family: var(--sans); }
.footer-cols a { display: block; padding: 4px 0; font-size: .94rem; }
.footer .brand-name { color: #fff; }
.footer-tag { max-width: 34ch; margin: 14px 0 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---- Signup wizard ---- */
.signup-shell { min-height: 100vh; display: grid; grid-template-columns: 380px 1fr; }
.signup-aside { background: var(--green); color: var(--cream); padding: 48px 40px; position: relative; }
.signup-aside .brand-name { color: #fff; }
.signup-aside h2 { color: #fff; font-size: 1.8rem; margin: 28px 0 14px; }
.signup-aside p { color: color-mix(in srgb, var(--cream) 82%, transparent); }
/* Same reassurance as the marketing CTAs, kept visible while they fill the form. */
.signup-aside .aside-hint {
  display: inline-block; margin: 14px 0 0; font-size: .84rem;
  color: color-mix(in srgb, var(--cream) 74%, transparent);
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .3em .9em;
}
.signup-steps { list-style: none; padding: 0; margin: 36px 0 0; }
.signup-steps li { display: flex; gap: 14px; align-items: center; padding: 12px 0; opacity: .55; transition: opacity .2s; }
.signup-steps li.active { opacity: 1; }
.signup-steps li.done { opacity: .9; }
.signup-steps .num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4);
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
}
.signup-steps li.active .num { background: var(--amber); color: var(--green-deep); border-color: var(--amber); }
.signup-steps li.done .num { background: var(--green-bright); border-color: var(--green-bright); color: #fff; }
.signup-main { padding: 48px clamp(24px, 6vw, 88px); display: flex; flex-direction: column; background: var(--cream); }
.signup-main .inner { width: 100%; max-width: 560px; margin: auto; }
.js-on .wiz-step { display: none; }
.js-on .wiz-step.active { display: block; animation: stepIn .25s ease both; }
/* Without JS every step shows and the single submit still works (server validates). */
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wiz-step h1 { font-size: 1.9rem; margin: 0 0 6px; }
.wiz-step .lead { color: var(--ink-soft); margin: 0 0 26px; }
.field { margin-bottom: 18px; }

/* Consent tick on the last signup step. The label is a flex row so the wrapped
   text aligns to itself rather than running back under the checkbox, and the
   box keeps its own size against .field input width rules below. */
.field-consent { margin-top: 22px; }
.field-consent .consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}
.field-consent .consent-label input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  cursor: pointer;
}
.field-consent .consent-label a { color: inherit; text-decoration: underline; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: .7em .85em; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
}
.field select {
  width: 100%; font: inherit; padding: .7em .85em; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green-bright); box-shadow: 0 0 0 3px rgba(47,125,91,.15); }
/* Honeypot: kept in the DOM and submittable, but never shown to a human. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-prefix { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.input-prefix span { padding: 0 .7em; color: var(--ink-soft); background: var(--cream-deep); align-self: stretch; display: grid; place-items: center; border-right: 1px solid var(--line); }
.input-prefix input { border: 0; box-shadow: none !important; }
.field-label-strong { display: block; font-weight: 600; font-size: .92rem; margin: 4px 0 10px; }
.room-row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; margin-bottom: 10px; }
.field-invalid { border-color: var(--terra) !important; box-shadow: 0 0 0 3px rgba(199,92,67,.15) !important; }
.room-row.hidden { display: none; }
.add-room { background: none; border: 1.5px dashed var(--line); color: var(--green); border-radius: 10px; padding: .6em 1em; font: 600 .92rem var(--sans); cursor: pointer; }
.add-room:hover { border-color: var(--green); }
.host-preview { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--green-bright); }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 12px; }
/* Groups the optional "Skip" with Continue so Back keeps the far-left slot. */
.wiz-nav-end { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.wiz-err { background: #fdecea; border: 1px solid #f5c6c0; color: #8a2a1c; border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; }
.stripe-choice { display: grid; gap: 12px; }
.choice {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer;
  display: flex; gap: 14px; align-items: flex-start; background: var(--paper);
}
.choice:hover { border-color: var(--green-bright); }
.choice input { margin-top: 4px; }
.choice b { display: block; }
.choice span { color: var(--ink-soft); font-size: .92rem; }

/* ---- Success page ---- */
/* Order is deliberate: tick + headline, then the dashboard button above the
   fold, then next steps, and only then the links to bookmark. */
.success-wrap { max-width: 640px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.success-tick { width: 72px; height: 72px; border-radius: 50%; background: var(--green-bright); color: #fff; display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 22px; }
.success-wrap h1 { font-size: 2.3rem; margin: 0 0 10px; }
.success-wrap > .lead { color: var(--ink-soft); max-width: 46ch; margin-left: auto; margin-right: auto; }
.success-wrap h3 { font-size: 1.35rem; margin: 0 0 6px; }
.success-wrap h3.mt-lg { margin-top: 48px; }
.success-cta { margin: 26px 0 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.url-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; text-align: left; margin: 18px 0; box-shadow: var(--shadow); }
.url-card .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 700; }
.url-card .val { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; color: var(--green); word-break: break-all; display: block; margin-top: 4px; }
.url-card .lead { font-size: .9rem; margin: 10px 0 0; color: var(--ink-soft); }
.url-row { display: flex; align-items: flex-start; gap: 14px; }
.url-row .val { flex: 1 1 auto; min-width: 0; }
.success-wrap .faq { text-align: left; margin-bottom: 8px; }
.success-wrap .faq p .btn { margin-top: 4px; }
.success-tick-muted { background: var(--amber); color: var(--green-deep); }

/* Copy buttons — fixed width so the "Copied" swap doesn't reflow the row. */
.btn-copy {
  flex: 0 0 auto; min-width: 104px; margin-top: 2px;
  font: 600 .86rem/1 var(--sans); color: var(--green);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 999px;
  padding: .6em 1em; cursor: pointer; transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.btn-copy:hover { border-color: var(--green); background: var(--cream-deep); }
.btn-copy:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 2px; }
.btn-copy.is-copied { background: var(--green-bright); border-color: var(--green-bright); color: #fff; }
/* Textarea used only as an execCommand('copy') target on non-secure origins. */
.copy-offscreen { position: fixed; top: -1000px; left: -1000px; opacity: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Auth (forgot / reset) ---- */
.auth-card {
  max-width: 460px; margin: 64px auto; padding: 40px 36px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.9rem; margin: 0 0 8px; }
.auth-card .lead { color: var(--ink-soft); margin: 0 0 18px; }
.auth-form { margin-top: 8px; }
.auth-form .btn { width: 100%; }
/* Centre the auth card in the viewport instead of leaving dead space below. (F6) */
.auth-main { min-height: calc(100vh - 69px); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-main .auth-card { margin: 0; }

/* Mobile-only signup progress indicator (desktop shows the numbered sidebar). (F3) */
.step-indicator { display: none; font-weight: 700; color: var(--green-bright); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin: 0 0 14px; }
/* Visual companion to .step-indicator: a filling bar so mobile users see real
   progress, not just a "Step 1 of 5" label. Hidden on desktop (the rail does it). */
.wiz-progress { display: none; height: 6px; background: color-mix(in srgb, var(--green-bright) 16%, var(--cream)); border-radius: 999px; overflow: hidden; margin: 0 0 20px; }
.wiz-progress-bar { display: block; height: 100%; width: 20%; background: var(--green-bright); border-radius: 999px; transition: width .25s ease; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .step-indicator { display: block; }
  .wiz-progress { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .demo-card { transform: none; }
  .cards.c3, .cards.c2, .feature-list, .price-grid { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  /* With .nav-links gone the brand and the CTA pair share the row, and at phone
     widths they ran straight into each other -- "RoomRotaSign in". The brand
     steps down and the pair tightens so both fit with a real gap between. */
  .brand-name { font-size: 1.15rem; }
  .nav-cta { gap: 10px; }
  .signup-shell { grid-template-columns: 1fr; }
  .signup-aside { padding: 32px 28px; }
  .signup-steps { display: none; }
}

@media (max-width: 560px) {
  /* Seven day columns on a phone leave under 40px each, which is narrower than
     the words inside a booking. Mon and Tue drop out so the still opens on
     today and the five columns left stay readable -- and the rail collapses to
     its mark, which is what a real sidebar does at this width anyway. */
  .demo-card { --dm-hr: 38px; }
  .dm-shell { grid-template-columns: 30px minmax(0, 1fr); }
  .dm-side { padding: 7px 0; }
  .dm-side-brand { padding: 0; display: grid; place-items: center; border-bottom: 0; }
  .dm-side-name, .dm-nav { display: none; }
  .dm-body { padding: 7px; }
  .dm-cal { grid-template-columns: 26px repeat(5, minmax(0, 1fr)); }
  .dm-dh.d1, .dm-dh.d2, .dm-col.d1, .dm-col.d2 { display: none; }
  /* Every millimetre back into the block, so the group name is not the thing
     that gets clipped. */
  .dm-ev { left: 1px; right: 1px; padding: 2px 2px 2px 3px; }
  /* Five controls will not sit on one phone-width line, so the search takes a
     row of its own under the week nav. */
  .dm-topbar { flex-wrap: wrap; padding: 6px 8px; }
  .dm-search { order: 3; flex: 1 0 100%; }
  .dm-hr i { right: 2px; font-size: .46rem; }
  .dm-ev-t, .dm-ev-r { font-size: .48rem; }
  .dm-ev-n { font-size: .56rem; }
  .success-wrap { padding: 48px 18px; }
  .success-wrap h1 { font-size: 1.9rem; }
  /* A full-width URL plus a copy button won't fit side by side on a phone. */
  .url-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-copy { width: 100%; }
  .success-cta .btn { width: 100%; justify-content: center; }
  /* Three controls won't sit on one phone-width line, so step 3 stacks them in
     priority order: Continue, then Skip, then Back. */
  section[data-step="3"] .wiz-nav { flex-direction: column-reverse; align-items: stretch; }
  section[data-step="3"] .wiz-nav .btn { justify-content: center; width: 100%; }
  .wiz-nav-end { width: 100%; flex-direction: column-reverse; align-items: stretch; }
}

/* On the narrowest phones five day columns are 47px, and the group name starts
   losing letters. Saturday is the last day worth keeping, so Sunday goes. */
@media (max-width: 400px) {
  .dm-cal { grid-template-columns: 26px repeat(4, minmax(0, 1fr)); }
  .dm-dh.d7, .dm-col.d7 { display: none; }
}

/* ===================================================== motion ============ */
/*
   Marketing + public booking pages. Same principle as the admin: no scroll
   reveals, no skeletons for content that arrives with the HTML. The only
   additions are a cross-fade between pages and a pending state on the submits
   that leave for Stripe.
*/
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: rrFadeOut 90ms ease both; }
::view-transition-new(root) { animation: rrFadeIn 140ms ease both; }
@keyframes rrFadeOut { to { opacity: 0; } }
@keyframes rrFadeIn { from { opacity: 0; } }

/* The booking submit redirects to Stripe Checkout. Until it does, the button
   has to look like it heard the click. */
button[data-pending-active],
.btn[data-pending-active] { opacity: .72; cursor: progress; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* The contact form reuses the wizard's .field furniture, but it lives inside
   .legal-content, which is a reading measure. Without a cap the inputs run the
   full text column and read as a wall of boxes. */
.contact-form { max-width: 34rem; margin: 22px 0 8px; }
.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-form .cf-turnstile { margin: 4px 0 12px; min-height: 65px; }
.contact-form button { margin-top: 4px; }
