/*
 * 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);
}

/* A real screenshot of the demo truck, on the food-truck page. Same border
   and offset shadow as .cw-frame, so it reads as the same kind of object as
   the homepage's product drawing. Capped narrow: these are phone screens,
   and at full column width a phone screenshot turns into a poster. The
   event card is tall, so the hero one is capped in height too. */
.cw-shot-wrap {
  display: flex;
  justify-content: center;
}

.cw-shot {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border: 1px solid var(--cw-ink);
  border-radius: var(--cw-radius);
  box-shadow: var(--cw-shadow);
  background: var(--cw-paper);
}

.cw-hero .cw-shot {
  max-height: 560px;
  width: auto;
  max-width: 100%;
}

.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);
}

/* Sold out is shown by a struck-through name and price and a brick label,
   not by fading the row. Until 2026-09-24 it was opacity 0.55, which put
   "sold out today" at 2.3:1 - the one phrase the drawing exists to show was
   the hardest thing in it to read. The muted grey here is 6.0:1 on white and
   the brick 5.3:1. */
.cw-editor__row--sold-out .cw-editor__name,
.cw-editor__row--sold-out .cw-editor__price {
  color: var(--cw-muted);
  text-decoration: line-through;
}

.cw-editor__row--sold-out .cw-editor__meta {
  color: var(--cw-brand-ink);
  font-weight: 600;
}

/* 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);
}
/* The phone-first food-truck page, /trucks (marketing/trucks.html.erb).
 *
 * Louder than the rest of the site on purpose: a dark hero with a warm glow,
 * a phone that plays the product, and blocks that ease in as they scroll into
 * view. Built from the site's own palette and type (chairweasel.css), and
 * everything is under .cw-t so nothing here reaches another page.
 *
 * Every animation stops for prefers-reduced-motion (bottom of this file), and
 * nothing is hidden unless JavaScript has connected the reveal controller.
 */

.cw-t {
  --t-glow: #ff7a3d;
  --t-night: #17120f;
  --t-radius: 16px;
  --t-soft-shadow: 0 18px 40px -18px rgba(32, 28, 27, 0.35);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.cw-t-btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 12px;
  background: var(--cw-brand-ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(195, 57, 34, 0.7);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.cw-t-btn:hover,
.cw-t-btn:focus-visible {
  background: var(--cw-brand-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(195, 57, 34, 0.8);
}

.cw-t-btn:focus-visible {
  outline: 3px solid #ffd2a8;
  outline-offset: 3px;
}

/* A light sweeping across the big button every few seconds. */
.cw-t-btn--big {
  padding: 1.05rem 2rem;
  font-size: 1.15rem;
}

.cw-t-btn--big::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: cw-t-sheen 4.5s ease-in-out 1.5s infinite;
}

@keyframes cw-t-sheen {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.cw-t-btn--ghost {
  background: transparent;
  color: var(--cw-ink);
  box-shadow: inset 0 0 0 2px var(--cw-ink);
}

.cw-t-btn--ghost:hover,
.cw-t-btn--ghost:focus-visible {
  background: var(--cw-ink);
  color: var(--cw-cream);
  box-shadow: inset 0 0 0 2px var(--cw-ink);
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.cw-t-hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3.5rem;
  background:
    radial-gradient(60rem 30rem at 85% 30%, rgba(255, 122, 61, 0.35), transparent 60%),
    radial-gradient(40rem 24rem at 0% 100%, rgba(217, 69, 47, 0.28), transparent 60%),
    var(--t-night);
  color: var(--cw-cream);
}

.cw-t-eyebrow {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 122, 61, 0.16);
  color: #ffb98a;
  font-family: var(--cw-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-t-hero__title {
  margin: 1rem 0 0;
  color: #fff;
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  line-height: 1.05;
  text-wrap: balance;
}

.cw-t-hero__lede {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: #e9ddd2;
  font-size: 1.15rem;
  line-height: 1.55;
}

.cw-t-hero__actions {
  margin-top: 1.75rem;
}

.cw-t-hero__small {
  margin: 0.9rem 0 0;
  color: #cbbdb2;
  font-size: 0.95rem;
}

.cw-t-hero__small a {
  color: #ffd2a8;
}

.cw-t-final .cw-t-hero__small {
  color: #cbbdb2;
}

/* ── The hero's phone ────────────────────────────────────────────────── */

.cw-t-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.cw-t-phone {
  position: relative;
  width: min(290px, 78vw);
  aspect-ratio: 9 / 18.5;
  border: 10px solid #0d0b0a;
  border-radius: 42px;
  background: #0d0b0a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -30px rgba(0, 0, 0, 0.75),
    0 0 120px -20px rgba(255, 122, 61, 0.45);
  transform: rotate(-3deg);
  animation: cw-t-float 6s ease-in-out infinite;
}

/* The camera notch. */
.cw-t-phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 3;
  width: 34%;
  height: 20px;
  border-radius: 999px;
  background: #0d0b0a;
  transform: translateX(-50%);
}

@keyframes cw-t-float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-10px); }
}

.cw-t-phone__screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  color: var(--cw-ink);
}

.cw-t-url {
  position: absolute;
  top: 38px;
  left: 50%;
  z-index: 2;
  max-width: 88%;
  overflow: hidden;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #f1ebe4;
  color: var(--cw-muted);
  font-family: var(--cw-mono);
  font-size: 0.6rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  transform: translateX(-50%);
}

.cw-t-board,
.cw-t-menu {
  position: absolute;
  inset: 68px 12px 14px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cw-t-board img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.35);
}

.cw-t-board__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22%;
  border-bottom: 2px solid var(--t-glow);
  background: linear-gradient(to bottom, transparent, rgba(255, 122, 61, 0.28));
  opacity: 0;
}

.is-scan .cw-t-board__scan {
  opacity: 1;
  animation: cw-t-scan 1.6s ease-in-out forwards;
}

@keyframes cw-t-scan {
  from { top: -22%; }
  to { top: 100%; }
}

.cw-t-board__label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(23, 18, 15, 0.86);
  color: #fff;
  font-size: 0.72rem;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.is-scan .cw-t-board__label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.is-menu .cw-t-board {
  opacity: 0;
  transform: scale(0.94);
}

.cw-t-menu {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.25rem 0.1rem;
  opacity: 0;
  pointer-events: none;
}

.is-menu .cw-t-menu {
  opacity: 1;
}

.cw-t-menu__title {
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
}

.cw-t-menu__note {
  color: var(--cw-muted);
  font-size: 0.72rem;
  text-align: center;
}

.cw-t-menu__note--foot {
  margin-top: 0.2rem;
}

.cw-t-dish {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 0.5rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--cw-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px -8px rgba(32, 28, 27, 0.4);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.4s ease;
  transition-delay: calc(var(--i) * 0.18s + 0.15s);
}

.is-menu .cw-t-dish {
  opacity: 1;
  transform: none;
}

.cw-t-dish__name {
  flex: 1 1 60%;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
}

.cw-t-dish__price {
  font-family: var(--cw-mono);
  font-size: 0.8rem;
}

.cw-t-dish__badge {
  display: none;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--cw-ink);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
}

.is-soldout .cw-t-dish--soldout {
  background: #f6f1ec;
}

.is-soldout .cw-t-dish--soldout .cw-t-dish__name,
.is-soldout .cw-t-dish--soldout .cw-t-dish__price {
  color: var(--cw-muted);
  text-decoration: line-through;
}

.is-soldout .cw-t-dish--soldout .cw-t-dish__badge {
  display: inline-block;
  animation: cw-t-pop 0.35s ease-out;
}

.cw-t-dish__new {
  display: none;
}

.is-price .cw-t-dish--price {
  background: #eaf7ef;
}

.is-price .cw-t-dish__old {
  margin-right: 0.35rem;
  color: var(--cw-muted);
  font-size: 0.7rem;
  text-decoration: line-through;
}

.is-price .cw-t-dish__new {
  display: inline;
  color: #1d7a49;
  font-weight: 600;
  animation: cw-t-pop 0.35s ease-out;
}

/* Where the truck is today, pinned to the bottom of the phone's screen. */
.cw-t-today {
  display: grid;
  gap: 0.2rem;
  margin-top: auto;
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  background: var(--t-night);
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease 0.8s, transform 0.4s ease 0.8s;
}

.is-menu .cw-t-today {
  opacity: 1;
  transform: none;
}

.cw-t-today__label {
  color: #ffb98a;
  font-family: var(--cw-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-t-today__where {
  font-size: 0.8rem;
  font-weight: 600;
}

.cw-t-today__btn {
  justify-self: start;
  margin-top: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  background: var(--cw-brand-ink);
  font-size: 0.72rem;
  font-weight: 600;
}

@keyframes cw-t-pop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

/* A fingertip: a ring that lands and fades where the tap happens. */
.cw-t-tap {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background: rgba(255, 122, 61, 0.35);
  box-shadow: 0 0 0 2px rgba(255, 122, 61, 0.7);
  opacity: 0;
  pointer-events: none;
}

.is-tap-soldout .cw-t-tap--soldout,
.is-tap-price .cw-t-tap--price {
  animation: cw-t-tap 0.7s ease-out forwards;
}

@keyframes cw-t-tap {
  0% { opacity: 0; transform: scale(1.6); }
  40% { opacity: 1; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* The four steps under the phone. On a phone only the current one shows. */
.cw-t-steps {
  width: min(320px, 90vw);
  margin-top: 1.75rem;
}

.cw-t-steps ol {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cw-t-step;
}

.cw-t-steps li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #a99a8f;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  counter-increment: cw-t-step;
}

.cw-t-steps li::before {
  content: counter(cw-t-step);
  display: grid;
  flex: none;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cbbdb2;
  font-family: var(--cw-mono);
  font-size: 0.8rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cw-t-steps li.is-current {
  color: #fff;
}

.cw-t-steps li.is-current::before {
  background: var(--t-glow);
  color: var(--t-night);
}

@media (max-width: 575.98px) {
  .cw-t-stage:not(.is-still) .cw-t-steps li:not(.is-current) {
    display: none;
  }

  .cw-t-steps {
    min-height: 1.6rem;
  }
}

/* ── Sections ────────────────────────────────────────────────────────── */

.cw-t-section {
  padding: 3.5rem 0;
}

.cw-t-section--tint {
  background: var(--cw-tint);
}

.cw-t-h2 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  text-align: center;
  text-wrap: balance;
}

.cw-t-sub {
  max-width: 36rem;
  margin: 0.6rem auto 0;
  color: var(--cw-ink-soft);
  font-size: 1.1rem;
  text-align: center;
}

.cw-t-section .row .cw-t-h2 {
  text-align: left;
}

.cw-t-body {
  margin-top: 0.75rem;
  color: var(--cw-ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cw-t-card {
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--cw-line);
  border-radius: var(--t-radius);
  background: var(--cw-paper);
  box-shadow: var(--t-soft-shadow);
}

.cw-t-card h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.2rem;
}

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

/* ── The three small moving pictures ─────────────────────────────────── */

.cw-t-mini {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  overflow: hidden;
  border-radius: 12px;
  background: #f6efe7;
}

.cw-t-mini__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 85%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px -8px rgba(32, 28, 27, 0.5);
}

.cw-t-mini__name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
}

.cw-t-mini__badge {
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--cw-ink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0;
}

.cw-t-mini__toggle {
  width: 26px;
  height: 26px;
  border: 2px solid var(--cw-muted);
  border-radius: 50%;
}

.cw-t-mini--soldout .cw-t-mini__name { animation: cw-t-mini-strike 4s infinite; }
.cw-t-mini--soldout .cw-t-mini__badge { animation: cw-t-mini-badge 4s infinite; }
.cw-t-mini--soldout .cw-t-mini__toggle { animation: cw-t-mini-toggle 4s infinite; }

@keyframes cw-t-mini-strike {
  0%, 38% { color: var(--cw-ink); text-decoration-color: transparent; }
  45%, 90% { color: var(--cw-muted); text-decoration: line-through; }
  100% { color: var(--cw-ink); }
}

@keyframes cw-t-mini-badge {
  0%, 38% { opacity: 0; transform: scale(0.7); }
  45%, 90% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; }
}

@keyframes cw-t-mini-toggle {
  0%, 30% { background: transparent; border-color: var(--cw-muted); }
  38% { background: rgba(255, 122, 61, 0.35); border-color: var(--t-glow); transform: scale(0.85); }
  45%, 90% { background: var(--cw-ink); border-color: var(--cw-ink); transform: scale(1); }
  100% { background: transparent; border-color: var(--cw-muted); }
}

.cw-t-mini--map {
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(32, 28, 27, 0.07) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(32, 28, 27, 0.07) 23px 24px),
    linear-gradient(135deg, #e8f1e4, #f6efe7);
}

.cw-t-mini__pin {
  position: absolute;
  top: 28px;
  left: calc(50% - 13px);
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 0;
  background: var(--cw-brand);
  box-shadow: inset 0 0 0 7px var(--cw-brand), inset 0 0 0 13px #fff;
  transform: rotate(-45deg);
  animation: cw-t-pin 3.2s ease-out infinite;
}

@keyframes cw-t-pin {
  0% { transform: translateY(-60px) rotate(-45deg); opacity: 0; }
  18% { transform: translateY(4px) rotate(-45deg); opacity: 1; }
  26% { transform: translateY(-4px) rotate(-45deg); }
  32%, 92% { transform: translateY(0) rotate(-45deg); opacity: 1; }
  100% { transform: translateY(0) rotate(-45deg); opacity: 0; }
}

.cw-t-mini__ripple {
  position: absolute;
  top: 54px;
  left: calc(50% - 4px);
  width: 22px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--cw-brand);
  opacity: 0;
  animation: cw-t-ripple 3.2s ease-out infinite;
}

@keyframes cw-t-ripple {
  0%, 26% { opacity: 0; transform: translateX(-6px) scale(0.6); }
  34% { opacity: 0.8; }
  70%, 100% { opacity: 0; transform: translateX(-6px) scale(2.6); }
}

.cw-t-mini__label {
  position: absolute;
  bottom: 12px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 12px -8px rgba(32, 28, 27, 0.5);
}

.cw-t-mini--price {
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-content: center;
  padding: 0 1rem;
}

.cw-t-mini--price .cw-t-mini__name {
  flex: 0 0 auto;
}

.cw-t-mini__flip {
  display: inline-flex;
  flex-direction: column;
  height: 1.5rem;
  overflow: hidden;
  font-family: var(--cw-mono);
  font-size: 1.05rem;
  line-height: 1.5rem;
}

.cw-t-mini__flip span {
  animation: cw-t-flip 4s ease-in-out infinite;
}

.cw-t-mini__flip span:last-child {
  color: #1d7a49;
  font-weight: 600;
}

@keyframes cw-t-flip {
  0%, 35% { transform: translateY(0); }
  45%, 90% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

.cw-t-mini__chip {
  flex-basis: 100%;
  width: max-content;
  max-width: max-content;
  margin: 0 auto;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--cw-brand-ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  animation: cw-t-chip 4s ease-in-out infinite;
}

@keyframes cw-t-chip {
  0%, 38% { opacity: 0.25; transform: scale(0.92); }
  48%, 90% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.25; }
}

/* ── The demo truck in a still phone ─────────────────────────────────── */

.cw-t-phone--still {
  width: min(270px, 70vw);
  margin: 0 auto;
  aspect-ratio: auto;
  transform: rotate(2deg);
  animation: none;
  box-shadow: 0 30px 60px -30px rgba(32, 28, 27, 0.6);
}

.cw-t-phone--still::before {
  display: none;
}

.cw-t-phone--still .cw-t-phone__screen {
  position: static;
}

.cw-t-phone--still img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Price ───────────────────────────────────────────────────────────── */

.cw-t-price {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--t-radius);
  background: var(--cw-paper);
  box-shadow: var(--t-soft-shadow);
}

.cw-t-price--founding {
  border: 2px solid var(--cw-green);
}

.cw-t-price__tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(47, 169, 106, 0.14);
  color: #1d7a49;
  font-size: 0.85rem;
  font-weight: 600;
}

.cw-t-price__amount {
  margin: 0.6rem 0 0.4rem;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.cw-t-price__amount small {
  color: var(--cw-muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

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

.cw-t-includes {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cw-t-includes li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 1.05rem;
}

.cw-t-includes li::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--cw-green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 80% no-repeat;
}

/* ── Questions ───────────────────────────────────────────────────────── */

.cw-t-faq {
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
  margin: 1.75rem auto 0;
}

.cw-t-faq details {
  border: 1px solid var(--cw-line);
  border-radius: 12px;
  background: var(--cw-paper);
}

.cw-t-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.cw-t-faq summary::-webkit-details-marker {
  display: none;
}

.cw-t-faq summary::after {
  content: "+";
  flex: none;
  color: var(--cw-brand-ink);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.cw-t-faq details[open] summary::after {
  transform: rotate(45deg);
}

.cw-t-faq details p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--cw-ink-soft);
}

/* ── The closing band ────────────────────────────────────────────────── */

.cw-t-final {
  padding: 4rem 0 4.5rem;
  background:
    radial-gradient(40rem 20rem at 50% 0%, rgba(255, 122, 61, 0.3), transparent 65%),
    var(--t-night);
  color: var(--cw-cream);
}

.cw-t-final .cw-t-h2 {
  color: #fff;
}

.cw-t-final .cw-t-sub {
  color: #e9ddd2;
}

/* ── Sticky button on phones ─────────────────────────────────────────── */

.cw-t-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(23, 18, 15, 0.92);
  backdrop-filter: blur(8px);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.cw-t-sticky.is-shown {
  transform: none;
}

.cw-t-sticky .cw-t-btn {
  display: block;
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .cw-t-sticky {
    display: none;
  }
}

/* ── Easing in on scroll ─────────────────────────────────────────────── */

.cw-t.is-animating .cw-t-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cw-t.is-animating .cw-t-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ── Reduced motion: everything still, nothing hidden ────────────────── */

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

  .cw-t-phone {
    transform: rotate(-2deg);
  }

  .cw-t-mini__badge,
  .cw-t-mini__ripple {
    opacity: 1;
  }

  .cw-t-mini__flip span {
    transform: translateY(-100%);
  }
}
/*
 * 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.
 *


 */
