/*
 * Bevel Yard: components
 * Every value comes from tokens.css. Load tokens.css first.
 */

/* Base */
.by { margin: 0; background: var(--by-floorplan); color: var(--by-text); font-family: var(--by-body); font-size: var(--by-text-body); line-height: var(--by-leading); -webkit-font-smoothing: antialiased; overflow-x: clip; }
:where(.by) *, :where(.by) *::before, :where(.by) *::after { box-sizing: border-box; }
:where(.by) img, :where(.by) svg { max-width: 100%; }
:where(.by) p { margin: 0 0 var(--by-space-4); }
:where(.by) a { color: var(--by-cable); text-decoration: none; }
:where(.by) a:hover { text-decoration: underline; text-underline-offset: 3px; }
:where(.by) h1, :where(.by) h2, :where(.by) h3 { font-family: var(--by-head); font-weight: 700; line-height: 1.1; margin: 0 0 var(--by-space-4); color: var(--by-text); }
:where(.by) a:focus-visible, :where(.by) button:focus-visible, :where(.by) input:focus-visible, :where(.by) select:focus-visible, :where(.by) textarea:focus-visible { outline: 3px solid var(--by-amber); outline-offset: 2px; }
:where(.by) ::selection { background: var(--by-amber); color: var(--by-ink); }
.by-container { width: 100%; max-width: var(--by-container); margin: 0 auto; padding: 0 var(--by-space-5); }
.by-narrow { max-width: var(--by-narrow); margin-left: auto; margin-right: auto; }
.by-center { text-align: center; }
.by-dim { color: var(--by-dim); }
.by-amber { color: var(--by-amber); }
.by-mono { font-family: var(--by-mono); }
.by-micro { font: 400 var(--by-text-micro)/1.4 var(--by-mono); color: var(--by-faint); text-transform: uppercase; letter-spacing: .08em; }
.by-section { padding: var(--by-space-7) 0; }
.by-section--tight { padding: var(--by-space-6) 0; }
.by-eyebrow { display: inline-block; margin-bottom: var(--by-space-3); font: 400 13px/1 var(--by-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--by-amber); }
.by-lead { font-size: var(--by-text-lead); color: var(--by-dim); }

/* Top bar: a thin black strip of plain links, like a site rail */
.by-rail { background: var(--by-bar); border-bottom: 2px solid var(--by-frame-lo); }
.by-rail__in { display: flex; align-items: center; gap: var(--by-space-3); min-height: 48px; font-size: var(--by-text-small); }
.by-rail__in a { white-space: nowrap; }
.by-rail__sep { color: var(--by-faint); }
.by-rail__end { margin-left: auto; display: flex; gap: var(--by-space-3); align-items: center; }
@media (max-width: 760px) { .by-rail__hide { display: none; } }

/* Logo: a bolted amber plate with a gear */
.by-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--by-text); white-space: nowrap; }
.by-logo:hover { text-decoration: none; }
.by-logo b { font: 700 28px/1 var(--by-head); letter-spacing: .04em; text-transform: uppercase; color: var(--by-amber); text-shadow: 2px 2px 0 var(--by-amber-lo), 4px 4px 0 var(--by-ink); }
.by-gear { width: 34px; height: 34px; flex: none; }

/* Header: logo on the floor, grey plate buttons for the menu */
.by-head { display: flex; align-items: center; gap: var(--by-space-5); padding: var(--by-space-5) 0; flex-wrap: wrap; }
.by-menu { display: flex; gap: var(--by-space-2); margin: 0 0 0 auto; padding: 0; list-style: none; flex-wrap: wrap; }
.by-menu a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 14px; background: var(--by-plate); box-shadow: var(--by-key); color: var(--by-ink); font: 600 15px/1 var(--by-body); white-space: nowrap; }
.by-menu a::after { content: ""; width: 0; height: 0; border: 5px solid transparent; border-top-color: var(--by-ink); margin-top: 5px; }
.by-menu a:hover { background: var(--by-plate-hi); text-decoration: none; }
.by-menu a[aria-current] { background: var(--by-amber); }
@media (max-width: 760px) { .by-menu { margin: 0; width: 100%; } .by-menu a { padding: 6px 10px; font-size: 14px; } .by-menu a::after { display: none; } }

/* Panel: the raised gunmetal frame with an amber title */
.by-panel { background: var(--by-frame); box-shadow: var(--by-raised), var(--by-drop); padding: var(--by-space-3); }
.by-panel__title { display: flex; align-items: center; gap: var(--by-space-3); margin: 0; padding: 6px var(--by-space-2) var(--by-space-3); font: 700 20px/1.2 var(--by-head); color: var(--by-amber); }
.by-panel__title .by-micro { margin-left: auto; }
.by-well { background: var(--by-well); box-shadow: var(--by-sunken); padding: var(--by-space-4); }
.by-panel > .by-well + .by-well { margin-top: var(--by-space-3); }
.by-well--flush { padding: 0; }
.by-well--foot { display: flex; justify-content: flex-end; align-items: center; gap: var(--by-space-2); padding: 10px var(--by-space-4); font-size: var(--by-text-small); }

/* Readout rows: label left, value right, separated by sunken lines */
.by-rows { margin: 0; padding: 0; list-style: none; }
.by-rows li { display: flex; justify-content: space-between; gap: var(--by-space-4); padding: 12px var(--by-space-4); font-weight: 600; }
.by-rows li + li { border-top: var(--by-rule); box-shadow: inset 0 1px 0 #34353a; }
.by-rows span:last-child { font-family: var(--by-mono); font-weight: 400; color: var(--by-text); }

/* Buttons: signal green bars with a chevron tip, and grey plates */
.by-btn { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 44px; padding: 8px calc(var(--by-chev) + 16px) 8px 20px; border: 0; border-radius: var(--by-radius); clip-path: var(--by-chevron); background: var(--by-go); box-shadow: var(--by-key); color: var(--by-ink); font: 700 16px/1 var(--by-body); white-space: nowrap; cursor: pointer; transition: background var(--by-snap); }
.by-btn:hover { background: var(--by-go-hi); text-decoration: none; }
.by-btn:active { box-shadow: var(--by-key-down); transform: translateY(1px); }
.by-btn--amber { background: var(--by-amber); }
.by-btn--amber:hover { background: var(--by-amber-hi); }
.by-btn--plate { clip-path: none; padding: 8px 18px; background: var(--by-plate); }
.by-btn--plate:hover { background: var(--by-plate-hi); }
.by-btn--block { display: flex; width: 100%; }
.by-btn--sm { min-height: 34px; font-size: 14px; padding-top: 6px; padding-bottom: 6px; }
.by-stack { display: grid; gap: var(--by-space-3); }

/* Square icon key, like a download button sitting in a well */
.by-key { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; background: var(--by-plate); box-shadow: var(--by-key); color: var(--by-ink); }
.by-key svg { width: 16px; height: 16px; }

/* Hero: a big panel holding the headline and a drawn machine */
.by-hero { padding: var(--by-space-5) 0 var(--by-space-7); }
.by-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--by-space-4); }
.by-hero h1 { font-size: var(--by-text-hero); line-height: 1.02; letter-spacing: -.01em; }
.by-hero h1 em { font-style: normal; color: var(--by-amber); }
.by-hero__actions { display: flex; gap: var(--by-space-3); flex-wrap: wrap; margin-top: var(--by-space-5); }
@media (max-width: 900px) { .by-hero__grid { grid-template-columns: 1fr; } }

/* Screen: a dark sunken scene for drawn machines (inline SVG) */
.by-screen { position: relative; aspect-ratio: 16 / 10; background: #101113; box-shadow: var(--by-sunken); overflow: hidden; }
.by-screen svg { display: block; width: 100%; height: 100%; }
.by-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; translate: -50% -50%; background: rgba(18, 18, 18, .85); box-shadow: var(--by-key); display: grid; place-items: center; }
.by-play::before { content: ""; border: 10px solid transparent; border-left: 16px solid var(--by-text); margin-left: 14px; }

/* Belt: a moving conveyor strip used as a divider */
.by-belt { height: 10px; background: var(--by-belt-stripe); background-size: 14px 10px; box-shadow: 0 -2px 0 var(--by-ink), 0 2px 0 var(--by-ink); animation: by-belt 900ms linear infinite; }
.by-hazard { height: 12px; background: var(--by-hazard); }
@keyframes by-belt { to { background-position: 14px 0; } }
@media (prefers-reduced-motion: reduce) { .by-belt { animation: none; } }

/* Grid of panels */
.by-grid { display: grid; gap: var(--by-space-4); }
.by-grid--2 { grid-template-columns: repeat(2, 1fr); }
.by-grid--3 { grid-template-columns: repeat(3, 1fr); }
.by-grid--side { grid-template-columns: 2fr 1fr; }
@media (max-width: 900px) { .by-grid--3, .by-grid--side { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .by-grid--2 { grid-template-columns: 1fr; } }

/* Feature tile: icon plate, title, text */
.by-tile h3 { font-size: var(--by-text-h3); margin-bottom: var(--by-space-2); }
.by-tile p { color: var(--by-dim); font-size: var(--by-text-small); margin: 0; }
.by-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--by-space-4); background: var(--by-frame); box-shadow: var(--by-raised); color: var(--by-amber); }
.by-icon svg { width: 26px; height: 26px; }

/* Badges and status lamps */
.by-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; background: var(--by-well-deep); box-shadow: var(--by-sunken); font: 400 12px/1.3 var(--by-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--by-dim); white-space: nowrap; }
.by-badge--amber { background: var(--by-amber); color: var(--by-ink); box-shadow: var(--by-key); }
.by-lamp { width: 9px; height: 9px; flex: none; background: var(--by-go); box-shadow: 0 0 0 2px var(--by-ink), 0 0 8px var(--by-go); }
.by-lamp--amber { background: var(--by-amber); box-shadow: 0 0 0 2px var(--by-ink), 0 0 8px var(--by-amber); }
.by-lamp--stop { background: var(--by-stop); box-shadow: 0 0 0 2px var(--by-ink), 0 0 8px var(--by-stop); }

/* Stat: big mono number in a well */
.by-stat b { display: block; font: 400 clamp(32px, 4vw, 44px)/1 var(--by-mono); color: var(--by-amber); }
.by-stat span { display: block; margin-top: var(--by-space-2); font-size: var(--by-text-small); color: var(--by-dim); }

/* Quote */
.by-quote p { font-size: var(--by-text-lead); margin-bottom: var(--by-space-3); }
.by-quote cite { font-style: normal; font: 400 13px/1.4 var(--by-mono); color: var(--by-faint); text-transform: uppercase; letter-spacing: .06em; }

/* Pricing */
.by-plan { display: flex; flex-direction: column; }
.by-plan .by-well { flex: 1; display: flex; flex-direction: column; }
.by-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: var(--by-space-3); }
.by-price b { font: 400 48px/1 var(--by-mono); color: var(--by-text); }
.by-price span { color: var(--by-faint); font-size: var(--by-text-small); }
.by-checks { margin: var(--by-space-4) 0 var(--by-space-5); padding: 0; list-style: none; font-size: var(--by-text-small); flex: 1; }
.by-checks li { position: relative; padding: 6px 0 6px 26px; }
.by-checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 10px; background: var(--by-go); clip-path: polygon(0 0, 60% 0, 100% 50%, 60% 100%, 0 100%); }
.by-checks li.is-off { color: var(--by-faint); }
.by-checks li.is-off::before { background: var(--by-frame-hi); }
.by-plan--hot { box-shadow: var(--by-raised), 0 0 0 3px var(--by-amber), 0 8px 0 rgba(0, 0, 0, .35); }
.by-table { width: 100%; border-collapse: collapse; font-size: var(--by-text-small); }
.by-table th, .by-table td { padding: 12px var(--by-space-4); text-align: left; border-bottom: var(--by-rule); }
.by-table th { font: 400 12px/1.3 var(--by-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--by-faint); }
.by-table td + td, .by-table th + th { text-align: center; }
.by-yes { color: var(--by-go-hi); font-family: var(--by-mono); }
.by-no { color: var(--by-faint); font-family: var(--by-mono); }
.by-scroll { overflow-x: auto; }

/* FAQ */
.by-faq details { padding: 14px var(--by-space-4); }
.by-faq details + details { border-top: var(--by-rule); box-shadow: inset 0 1px 0 #34353a; }
.by-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: var(--by-space-4); }
.by-faq summary::-webkit-details-marker { display: none; }
.by-faq summary::after { content: "+"; font-family: var(--by-mono); color: var(--by-amber); }
.by-faq details[open] summary::after { content: "-"; }
.by-faq details p { margin: var(--by-space-3) 0 0; color: var(--by-dim); font-size: var(--by-text-small); }

/* Article */
.by-article h1 { font-size: var(--by-text-h1); }
.by-meta { display: flex; flex-wrap: wrap; gap: var(--by-space-3); align-items: center; margin-bottom: var(--by-space-5); }
.by-prose { font-size: 18px; line-height: 1.7; }
.by-prose h2 { font-size: var(--by-text-h2); color: var(--by-amber); margin-top: var(--by-space-6); }
.by-prose a { text-decoration: underline; text-underline-offset: 3px; }
.by-prose ul { padding-left: 22px; }
.by-prose li { margin-bottom: var(--by-space-2); }
.by-prose code { font-family: var(--by-mono); font-size: .92em; padding: 1px 6px; background: var(--by-well-deep); box-shadow: var(--by-sunken); }
.by-prose blockquote { margin: var(--by-space-5) 0; padding: var(--by-space-4) var(--by-space-5); background: var(--by-well-deep); box-shadow: var(--by-sunken); border-left: 4px solid var(--by-amber); font-size: 20px; }
.by-figure { margin: var(--by-space-5) 0; }
.by-figure figcaption { margin-top: var(--by-space-2); }

/* Forms */
.by-field { display: grid; gap: 6px; margin-bottom: var(--by-space-4); }
.by-label { font: 400 13px/1.2 var(--by-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--by-dim); }
.by-input, .by-select { width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: var(--by-radius); background: var(--by-well-deep); box-shadow: var(--by-sunken); color: var(--by-text); font: 400 16px/1.3 var(--by-body); }
.by-input::placeholder { color: var(--by-faint); }
.by-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--by-amber) 50%), linear-gradient(-45deg, transparent 50%, var(--by-amber) 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.by-hint { font-size: 13px; color: var(--by-faint); }
.by-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--by-text-small); color: var(--by-dim); margin-bottom: var(--by-space-4); }
.by-check input { appearance: none; width: 20px; height: 20px; flex: none; margin: 2px 0 0; background: var(--by-well-deep); box-shadow: var(--by-sunken); cursor: pointer; }
.by-check input:checked { background: var(--by-go); box-shadow: var(--by-key); }
.by-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--by-space-2); margin-bottom: var(--by-space-4); }
.by-choice label { cursor: pointer; }
.by-choice input { position: absolute; opacity: 0; }
.by-choice span { display: block; padding: 10px 8px; text-align: center; background: var(--by-plate); box-shadow: var(--by-key); color: var(--by-ink); font-weight: 700; font-size: 14px; }
.by-choice input:checked + span { background: var(--by-amber); }
.by-choice input:focus-visible + span { outline: 3px solid var(--by-amber); outline-offset: 2px; }

/* CTA band: hazard edged panel */
.by-cta { text-align: center; }
.by-cta h2 { font-size: var(--by-text-h1); }

/* Footer */
.by-foot { background: var(--by-bar); border-top: 2px solid var(--by-frame-lo); padding: var(--by-space-6) 0 var(--by-space-5); font-size: var(--by-text-small); color: var(--by-dim); }
.by-foot__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--by-space-5); }
.by-foot h4 { margin: 0 0 var(--by-space-3); font: 400 12px/1 var(--by-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--by-amber); }
.by-foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.by-foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--by-space-3); margin-top: var(--by-space-6); padding-top: var(--by-space-4); border-top: 2px solid var(--by-frame-lo); }
@media (max-width: 760px) { .by-foot__grid { grid-template-columns: 1fr 1fr; } .by-foot__grid > :first-child { grid-column: 1 / -1; } }
