/*
 * 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 is warm and a bit loud rather than corporate-SaaS: the audience
 * is small independent restaurants, and the product's whole pitch is that
 * their site will look like theirs rather than like a template. Chunky
 * offset button shadows, a soft serif for display type, emoji for icons
 * (zero dependencies, and friendlier than a line-icon set).
 */

:root {
  --cw-ink: #23142f;
  --cw-ink-soft: #6b5a76;
  --cw-brand: #ff5a36;
  --cw-brand-dark: #d63f1e;
  --cw-sun: #ffb03a;
  --cw-mint: #2ec4a6;
  --cw-cream: #fff7ef;
  --cw-paper: #ffffff;
  --cw-line: #efe0d3;
  --cw-radius: 14px;
  --cw-shadow: 4px 4px 0 var(--cw-ink);
}

body {
  background: var(--cw-cream);
  color: var(--cw-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, .cw-display {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

/* The offset shadow is the main piece of personality. It presses in on
   click, which is the sort of small physical feedback that makes a page
   feel handmade rather than generated. */
.cw-btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 2px solid var(--cw-ink);
  border-radius: var(--cw-radius);
  background: var(--cw-brand);
  color: var(--cw-paper);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: var(--cw-shadow);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease;
}

.cw-btn:hover,
.cw-btn:focus {
  background: var(--cw-brand-dark);
  color: var(--cw-paper);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--cw-ink);
}

.cw-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--cw-ink);
}

.cw-btn--ghost {
  background: var(--cw-paper);
  color: var(--cw-ink);
}

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

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

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

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

.cw-eyebrow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--cw-sun);
  color: var(--cw-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.cw-hero {
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(900px 380px at 15% -8%, rgba(255, 176, 58, 0.5), transparent 60%),
    radial-gradient(760px 340px at 88% 4%, rgba(46, 196, 166, 0.32), transparent 62%),
    var(--cw-cream);
}

.cw-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.03;
  margin-bottom: 1rem;
}

.cw-hero .cw-lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--cw-ink-soft);
  max-width: 34rem;
}

/* A marker-pen highlight behind a word or two of the headline. */
.cw-mark {
  background: linear-gradient(transparent 58%, var(--cw-sun) 58%);
  padding: 0 0.1em;
}

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

.cw-card {
  height: 100%;
  padding: 1.75rem;
  background: var(--cw-paper);
  border: 2px solid var(--cw-ink);
  border-radius: var(--cw-radius);
  box-shadow: var(--cw-shadow);
}

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

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

.cw-icon {
  font-size: 2rem;
  line-height: 1;
}

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

.cw-step-num {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid var(--cw-ink);
  border-radius: 50%;
  background: var(--cw-mint);
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
}

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

.cw-frame {
  border: 2px solid var(--cw-ink);
  border-radius: var(--cw-radius);
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--cw-ink);
  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.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--cw-sun);
}

.cw-frame__url {
  margin-left: 0.5rem;
  color: #cbb9d6;
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

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

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

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

.cw-brand {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cw-paper) !important;
}

.cw-footer {
  background: var(--cw-ink);
  color: #cbb9d6;
  padding: 2.5rem 0;
}

.cw-footer a {
  color: var(--cw-sun);
}

/* ---- 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: "Fraunces", Georgia, serif;
	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-mint);
}

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

/* 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.
 *


 */
