/*
 * Chair Weasel Hub - the marketing site's own look.
 *
 * Deliberately hand-written plain CSS layered over the CDN Bootstrap the
 * layout already loads. This app has no Node/Yarn/esbuild/sass pipeline on
 * purpose (see the README's architecture notes), so there's nothing to
 * compile - Sprockets picks this up via require_tree in application.css.
 *
 * The look, since the 2026-09-07 refresh: warm, precise, and confident
 * rather than loud. The audience is small independent restaurants and the
 * job of this site is to read as a company that will still be here in two
 * years - so the personality comes from restraint and good type, not from
 * decoration.
 *
 * **The palette is the logo's, not a choice made here.** Every value below
 * is lifted from menuhosted-icon.svg, which is why the site and the mark
 * agree without anyone matching them by eye. What went: the aubergine and
 * gold, which had drifted close enough to a well-known AI product's colours
 * to read as borrowed; the chunky offset shadows; and emoji icons, which
 * were friendly but read as a side project rather than a product.
 */

:root {
  /* From the logo. Do not add a colour here that is not in the mark. */
  --cw-ink: #201c1b;        /* warm charcoal - nav, footer, body text */
  --cw-cream: #fbf3ea;      /* the page */
  --cw-brand: #d9452f;      /* brick, exactly as the logo draws it */
  --cw-green: #2fa96a;      /* live states, the founding rate */
  --cw-line: #e2dad0;       /* rules, borders, the card shadow */

  /* Derived, and only these. */
  --cw-ink-soft: #4a4341;   /* body copy against cream */
  --cw-muted: #6b615e;      /* captions, metadata */

  /* ── The brick has two jobs and cannot do both at one value ──────────
   *
   * Measured, not guessed. --cw-brand is the logo's own red and stays that
   * way: the mark is not ours to recolour, and as a GRAPHIC it only needs
   * 3:1, which it clears on cream (3.95), white (4.34) and ink (3.89).
   *
   * As TEXT it needs 4.5 and does not get there - 3.95:1 on the cream page.
   * As a button FILL under a white label it manages 4.34:1, which also
   * fails. So small brick text and the button fill both use --cw-brand-ink,
   * which is the same hue carried far enough to read: 4.86:1 as text on
   * cream, 4.86:1 as a fill under white.
   *
   * The two are close enough that nobody will see a seam between the mark
   * and the button beside it, and far enough apart to matter to a reader.
   */
  --cw-brand-ink: #c33922;  /* brick as TEXT, and as a button fill */
  --cw-brand-dark: #a8301c; /* the hover, darker again */
  --cw-paper: #ffffff;
  --cw-tint: #f5ebdf;       /* the one alternate section ground */

  --cw-radius: 5px;
  /* Soft and warm rather than a hard drop of ink - it separates a card from
     the page without the page looking like a comic panel. */
  --cw-shadow: 6px 6px 0 var(--cw-line);

  --cw-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --cw-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

body {
  background: var(--cw-cream);
  color: var(--cw-ink);
  font-family: var(--cw-sans);
  -webkit-font-smoothing: antialiased;
}

/* **Fraunces is the wordmark's, and only the wordmark's.**
 *
 * It carried every heading, the numbers strip and the prices until
 * 2026-09-07. Stuart picked this on a three-up comparison: with the serif
 * everywhere the page reads warm and conventional - the most common move in
 * this corner of the market, and the same reason the aubergine and gold went.
 * Confined to the logo it becomes a signature rather than the site's voice,
 * and the page reads like something built by people who make software.
 *
 * Plex needs the tighter tracking a serif did not: -0.035em against Fraunces'
 * -0.02em, or large headings sit loose. */
h1, h2, h3, .cw-display {
  font-family: var(--cw-sans);
  font-weight: 600;
  letter-spacing: -0.035em;
}

/* ---- buttons -------------------------------------------------------- */

/* No offset shadow and no press-in. The old button was the loudest thing on
   the page; a solid brick rectangle that darkens on hover says the same
   thing without asking to be admired. */
.cw-btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border: 1.5px solid var(--cw-brand-ink);
  border-radius: var(--cw-radius);
  background: var(--cw-brand-ink);
  color: var(--cw-paper);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cw-btn:hover,
.cw-btn:focus {
  background: var(--cw-brand-dark);
  border-color: var(--cw-brand-dark);
  color: var(--cw-paper);
}

/* The secondary action is an outline in the ink, not a second filled
   button - one primary action per page, repeated. */
.cw-btn--ghost {
  background: transparent;
  border-color: var(--cw-ink);
  color: var(--cw-ink);
}

.cw-btn--ghost:hover,
.cw-btn--ghost:focus {
  background: var(--cw-ink);
  color: var(--cw-cream);
}

/* ---- links ----------------------------------------------------------
 *
 * The site had no link colour at all until 2026-09-07, so every link outside
 * the nav, the footer and the demo list rendered in Bootstrap's default blue
 * - on a warm cream page, in a guide and a set of legal pages nobody had
 * looked at with fresh eyes. It was the only blue on the site.
 *
 * --cw-brand-ink rather than the logo red, for the reason set out at the top:
 * as text the logo red is 3.95:1 here and this is 4.86:1. Underlined, so the
 * colour is not the only thing marking a link.
 */

a {
  color: var(--cw-brand-ink);
  text-underline-offset: 0.15em;
}

a:hover,
a:focus {
  color: var(--cw-brand-dark);
}

/* The nav, footer and demo list set their own and come later in the file. */

/* ---- layout --------------------------------------------------------- */

.cw-section {
  padding: 4rem 0;
}

.cw-section--tint {
  background: var(--cw-tint);
  border-top: 1px solid var(--cw-line);
  border-bottom: 1px solid var(--cw-line);
}

/* Was a gold pill. A line of letterspaced mono says the same thing and
   stops competing with the headline underneath it. */
.cw-eyebrow {
  display: block;
  font-family: var(--cw-mono);
  color: var(--cw-brand-ink);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- hero ----------------------------------------------------------- */

/* Flat. The two radial washes were the last of the old palette and the
   thing that most made the page look like a template. */
.cw-hero {
  padding: 3.9rem 0 2.9rem;
  background: var(--cw-cream);
}

.cw-hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  line-height: 1.03;
  margin-bottom: 1rem;
}

.cw-hero .cw-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  color: var(--cw-ink-soft);
  max-width: 30rem;
  text-wrap: pretty;
}

/* Was a gold marker-pen sweep behind two words of the headline. The
   headline no longer needs the help, and a highlighter is the most
   consumer-looking device on a page trying to read as a tool. Kept as a
   class because the markup still uses it; it now just colours the words. */
.cw-mark {
  color: var(--cw-brand);
}

/* ---- the numbers strip under the hero -------------------------------- */

.cw-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--cw-line);
  border-bottom: 1px solid var(--cw-line);
}

.cw-stat {
  padding: 1.35rem 1.5rem;
  border-right: 1px solid var(--cw-line);
}

.cw-stat:last-child { border-right: 0; }

.cw-stat__value {
  display: block;
  font-family: var(--cw-sans);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cw-stat__label {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--cw-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--cw-muted);
}

/* Two-up on phones rather than four columns squeezed to nothing - the
   labels wrap to two lines and four of those is unreadable at 390px. */
@media (max-width: 767.98px) {
  .cw-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cw-stat:nth-child(2n) { border-right: 0; }
  .cw-stat:nth-child(-n + 2) { border-bottom: 1px solid var(--cw-line); }
}

/* ---- cards ---------------------------------------------------------- */

.cw-card {
  height: 100%;
  padding: 1.6rem;
  background: var(--cw-paper);
  border: 1px solid var(--cw-ink);
  border-radius: var(--cw-radius);
}

.cw-card h3 {
  font-size: 1.2rem;
  margin: 0.6rem 0 0.4rem;
}

.cw-card p {
  color: var(--cw-ink-soft);
  margin: 0;
}

/* Was sized for a 2rem emoji. Now a stroked SVG, brick, on the 24px grid -
   see the icon partial. */
.cw-icon {
  display: block;
  width: 22px;
  height: 22px;
  color: var(--cw-brand);
}

/* ---- numbered steps ------------------------------------------------- */

/* Was a mint disc. A plain mono ordinal over a rule reads as a sequence
   without needing a shape drawn around it. */
.cw-step-num {
  font-family: var(--cw-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--cw-brand-ink);
}

/* ---- browser-frame mockup for the demo screenshot ------------------- */

.cw-frame {
  border: 1px solid var(--cw-ink);
  border-radius: var(--cw-radius);
  overflow: hidden;
  box-shadow: var(--cw-shadow);
  background: var(--cw-paper);
}

.cw-frame__bar {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: var(--cw-ink);
}

.cw-frame__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cw-green);
}

.cw-frame__url {
  margin-left: 0.5rem;
  color: #b7aca6;
  font-size: 0.75rem;
  font-family: var(--cw-mono);
}

/* ---- the editor panel in the hero ----------------------------------- */
/*
 * Three dish rows in three states: saved, being edited, sold out. The whole
 * argument of the page in one picture, which is why it sits where a stock
 * photo usually would.
 */

.cw-frame__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--cw-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--cw-green);
}

.cw-editor {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.1rem;
}

.cw-editor__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--cw-line);
  border-radius: 4px;
}

.cw-editor__name {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
}

.cw-editor__meta {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--cw-mono);
  font-size: 0.68rem;
  color: var(--cw-muted);
}

.cw-editor__price {
  font-family: var(--cw-mono);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

/* The row being edited is the only brick on the panel, so the eye goes
   straight to the thing the headline is talking about. */
.cw-editor__row--editing {
  border: 1.5px solid var(--cw-brand);
  background: #fdf1ee;
}

.cw-editor__row--editing .cw-editor__meta,
.cw-editor__row--editing .cw-editor__price {
  color: var(--cw-brand-ink);
}

.cw-editor__row--sold-out {
  opacity: 0.55;
}

.cw-editor__row--sold-out .cw-editor__name {
  text-decoration: line-through;
}

/* The demo list reads as three cards once it has a section to itself. */
/* Four demos, and the column counts are chosen so none of them is ever left
   sitting alone on a row: four across, then two-by-two, then one. A plain
   repeat(3) was fine for three and orphans the fourth. */
.cw-demo-list--wide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 991.98px) {
  .cw-demo-list--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .cw-demo-list--wide { grid-template-columns: 1fr; }
}

/* ---- nav / footer --------------------------------------------------- */

.cw-nav {
  background: var(--cw-ink);
  padding: 0.9rem 0;
}

.cw-nav a {
  color: #e8e0d9;
  text-decoration: none;
  font-weight: 500;
}

.cw-nav a:hover {
  color: var(--cw-cream);
}

.cw-brand {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cw-cream) !important;
}

.cw-footer {
  background: var(--cw-ink);
  color: #c9c0ba;
  padding: 2rem 0;
  font-family: var(--cw-mono);
  font-size: 0.8rem;
}

.cw-footer a {
  color: #e8e0d9;
}

/* ---- forms ---------------------------------------------------------- */

/* Bootstrap's own focus ring is its blue, which would be the only blue on
   the page - the same "defaults don't follow the theme" trap the restaurant
   app kept hitting. */
.cw-form .form-control:focus,
.cw-form .form-select:focus {
  border-color: var(--cw-brand);
  box-shadow: 0 0 0 0.25rem rgba(255, 90, 54, 0.25);
}

.cw-panel {
  padding: 2rem;
  background: var(--cw-paper);
  border: 2px solid var(--cw-ink);
  border-radius: var(--cw-radius);
  box-shadow: var(--cw-shadow);
}

@media (max-width: 575.98px) {
  .cw-section { padding: 2.5rem 0; }
  .cw-hero { padding: 3rem 0 2.5rem; }
  :root { --cw-shadow: 3px 3px 0 var(--cw-ink); }

  /* Brand plus two links won't sit on one line at 390px, and wrapping put
     "Admin login" alone on a second row. Tightening the type fits all three. */
  .cw-nav { font-size: 0.85rem; }
  .cw-nav .container { gap: 0.7rem !important; }
  .cw-brand { font-size: 1.1rem; }
}

/* ---- guide ---------------------------------------------------------- */

.cw-prose {
  max-width: 42rem;
}

.cw-prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.cw-prose h2:first-child {
  margin-top: 0;
}

.cw-prose p,
.cw-prose li {
  color: var(--cw-ink-soft);
  line-height: 1.65;
}

.cw-prose ol,
.cw-prose ul {
  padding-left: 1.2rem;
}

/* The bits people get caught by. Deliberately loud - these exist because
   the setting behaves in a way the label alone doesn't convey. */
.cw-note {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border: 2px solid var(--cw-ink);
  border-left-width: 8px;
  border-radius: var(--cw-radius);
  background: var(--cw-paper);
}

.cw-note p:last-child { margin-bottom: 0; }
.cw-note strong { color: var(--cw-ink); }

/* Anchor targets sit under nothing sticky here, but a little breathing
   room stops a deep link landing with the heading flush to the top. */
.cw-prose [id] { scroll-margin-top: 1.5rem; }

/* Legend for the row of icons under each dish, in the guide. Grid rather
   than a plain list so the icons form a column and the descriptions line up
   beside them regardless of how long each one runs. */
.cw-control-legend {
	list-style: none;
	padding: 0;
	margin: 1.25rem 0;
	display: grid;
	gap: 0.9rem;
}

.cw-control-legend > li {
	display: grid;
	grid-template-columns: 1.9rem 1fr;
	align-items: start;
	gap: 0.75rem;
}

.cw-control-icon {
	color: var(--cw-brand);
	vertical-align: -0.2em;
}

/* Inline in prose (e.g. "the six dots (icon) at the left") it should read as
   part of the sentence rather than as a bullet. */
.cw-prose p .cw-control-icon {
	color: inherit;
	opacity: 0.8;
}

/* Pricing ------------------------------------------------------------- */

.cw-price {
	margin: 0.75rem 0 1rem;
	line-height: 1.1;
}

.cw-price__amount {
	display: block;
	font-family: var(--cw-sans);
	font-size: clamp(2.75rem, 7vw, 4rem);
	font-weight: 700;
	color: var(--cw-ink);
}

.cw-price__unit {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.95rem;
	color: var(--cw-ink-soft);
}

/* The founding rate is the offer with a deadline built into it, so it gets
   the accent treatment rather than sitting level with the list price. */
.cw-card--accent {
	border-color: var(--cw-brand);
	background: linear-gradient(180deg, rgba(255, 176, 58, 0.14), transparent 55%), #fff;
}

.cw-card--accent .cw-price__amount {
	color: var(--cw-brand);
}

.cw-tick-list {
	list-style: none;
	padding: 0;
	margin: 1.25rem 0 0;
	display: grid;
	gap: 0.5rem;
}

.cw-tick-list li {
	position: relative;
	padding-left: 1.6rem;
	font-size: 0.95rem;
}

.cw-tick-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
	color: var(--cw-green);
}

/* .cw-card p zeroes margins, which is right for a single-paragraph feature
   card and wrong for the pricing cards, where consecutive paragraphs ran
   together into one block. Restore spacing between siblings only. */
.cw-price-card p + p {
	margin-top: 0.75rem;
}

.cw-price-card {
	display: flex;
	flex-direction: column;
}

/* Pushes the list to the bottom so the two cards' lists start level even
   when their descriptions differ in length. */
.cw-price-card .cw-tick-list {
	margin-top: auto;
}

/* The three live demo sites, in the hero's browser frame. */
.cw-demo-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.cw-demo-list a {
	display: block;
	padding: 0.65rem 0.85rem;
	border: 2px solid var(--cw-ink);
	border-radius: 10px;
	background: var(--cw-cream);
	text-decoration: none;
	color: inherit;
	transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.cw-demo-list a:hover {
	transform: translate(-1px, -1px);
	box-shadow: 3px 3px 0 var(--cw-ink);
}

.cw-demo-list strong {
	display: block;
	font-size: 0.95rem;
}

.cw-demo-list span {
	display: block;
	font-size: 0.82rem;
	color: var(--cw-ink-soft);
}

/* Product demo clip. A fixed aspect ratio so the page doesn't jump as the
   video loads - layout shift on the one section meant to build confidence
   would be a poor trade. */
.cw-video-frame {
  border: 2px solid var(--cw-ink);
  border-radius: var(--cw-radius);
  box-shadow: var(--cw-shadow);
  overflow: hidden;
  background: var(--cw-ink);
  /* Matches the clip exactly (1280x720). object-fit: cover below means a
     mismatch here silently crops the top and bottom of the frame - which
     would eat the captions, since they sit in the lower third. */
  aspect-ratio: 16 / 9;
}

.cw-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The fallback text inside the <video> element - shown only when the
     browser cannot play the clip - inherited the page's near-black on the
     element's black box: 1.24:1, measured. It is the one message that only
     ever appears when something has already gone wrong, so it is the last
     one that should be unreadable. */
  color: var(--cw-cream);
  font-family: var(--cw-sans);
  font-size: 0.9rem;
  text-align: center;
}

/* Someone who has asked their system not to animate things should not be
   handed a looping video. The browser honours the attribute; this stops the
   frame drawing attention to itself either way. */
@media (prefers-reduced-motion: reduce) {
  .cw-video { animation: none; }
}

/* Click-to-load video facade. The button IS the thumbnail, so the whole
   image is the hit area rather than a small play glyph. */
.cw-video-facade__button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid var(--cw-ink);
  border-radius: var(--cw-radius);
  box-shadow: var(--cw-shadow);
  background: var(--cw-ink);
  overflow: hidden;
  cursor: pointer;
}

.cw-video-facade__button img {
  display: block;
  width: 100%;
  height: auto;
}

.cw-video-facade__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--cw-paper);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  background: rgba(35, 20, 47, 0.25);
  transition: background 0.15s ease;
}

.cw-video-facade__button:hover .cw-video-facade__play,
.cw-video-facade__button:focus-visible .cw-video-facade__play {
  background: rgba(35, 20, 47, 0.45);
}

/* The iframe that replaces the button once clicked. */
.cw-video-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--cw-ink);
  border-radius: var(--cw-radius);
  box-shadow: var(--cw-shadow);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
