/* Bits & Photons — www.bitsandphotons.com
   The parent's four colours (Product/Design/Design System/Bits & Photons/colour.md), Inter only.
   The product screens carry YieldSpec's own colours inside their pictures. */

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/Inter-Variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/Inter-Variable-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground: #FFFFFF; --panel: #EDECE9; --ink: #191817; --quiet: #6B6660; --hairline: #E2E0DB;
  --green: #0E8A4F; --green-mark: #3E9E6B; --green-band: #E8F3ED; --red: #C8102E;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --features: 'cv05' 1, 'cv08' 1, 'ss02' 1, 'zero' 1;
  --page: 1200px; --gutter: clamp(16px, 4vw, 40px); --header: 68px;
}

* { box-sizing: border-box; }
html { font-family: var(--sans); font-feature-settings: var(--features); color: var(--ink); background: var(--ground); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--ground); font-size: 17px; line-height: 1.5; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; font-feature-settings: var(--features); color: inherit; }
figure { margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.skip:focus { top: 12px; }
.wrap { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(25, 24, 23, .07), 0 6px 20px rgba(25, 24, 23, .05); }
.site-header .btn { border-radius: 999px; }
.site-header .btn--ghost { border-color: var(--hairline); background: #fff; box-shadow: 0 1px 2px rgba(25, 24, 23, .06); }
.site-header .btn--ghost:hover { border-color: #C9C6C0; background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header); gap: 12px; }
.lockup { display: block; } .lockup img { height: 20px; width: auto; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 15px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn--ink { background: var(--ink); color: #fff; } .btn--ink:hover { background: #3A3836; }
.btn--ghost { color: var(--ink); background: transparent; } .btn--ghost:hover { background: var(--panel); }
.btn--line { color: var(--ink); border-color: var(--hairline); background: #fff; } .btn--line:hover { border-color: #A9A8A3; }

/* the email-first call to action */
.cta-form { display: flex; align-items: center; gap: 6px; width: 100%; max-width: 440px; padding: 5px 5px 5px 18px; background: #fff; border: 1px solid var(--hairline); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.cta-form:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(25, 24, 23, .08); }
.cta-form input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: 16px; }
.cta-form input::placeholder { color: var(--quiet); }
.cta-form input:focus-visible { outline: none; }
.cta-form .btn { height: 44px; padding: 0 18px; }

/* type */
.h1 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.03; font-size: clamp(36px, 5.2vw, 68px); text-wrap: balance; }
.h2 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; font-size: clamp(24px, 2.5vw, 32px); text-wrap: balance; }
.h3 { margin: 0 0 12px; font-size: 21px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
.lede { margin-top: 22px; font-size: 18px; line-height: 1.5; color: #3B3835; max-width: 32em; }
.section__lede { margin-top: 16px; font-size: 18px; line-height: 1.5; color: var(--quiet); }
.kicker { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); margin-bottom: 12px; }

/* the reading marks */
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-mark); flex: none; display: inline-block; }
.dot--act { border-radius: 2px; }
.dot--risk { background: var(--red); }
.tag { display: inline-flex; align-items: center; gap: 7px; background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 6px 18px rgba(25, 24, 23, .14); }

/* the deck cover's product card */
.pcard { width: 340px; background: #fff; border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px 14px; font-size: 14px; line-height: 1.35; box-shadow: 0 14px 40px rgba(25, 24, 23, .12); }
.pcard__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pcard__title { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); }
.pcard__state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pcard__rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pcard__rows li { display: flex; align-items: center; gap: 8px; }
.pcard__chart { margin-top: 12px; }
.pcard__chart-label { font-size: 12px; color: var(--quiet); margin-bottom: 6px; }
.pcard__timeline { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--quiet); }
.pcard__squares { display: flex; gap: 3px; flex: 1; }
.pcard__squares i { width: 10px; height: 10px; border-radius: 2px; background: var(--ink); opacity: .85; transition: background-color .2s, opacity .2s; }
.pcard__squares i.is-salt { background: var(--green-mark); opacity: 1; }
.pcard__squares i.is-empty { background: var(--hairline); opacity: 1; }

/* ---- the hero: the deck's cover edge to edge, the words low on the calm floor ---- */
.floor { position: relative; overflow: hidden; container-type: size; height: calc(100vh - var(--header)); height: calc(100svh - var(--header)); min-height: 620px; max-height: 1000px; background: #EFEBE5; }
.scene {
  position: absolute; left: 50%; top: 0; aspect-ratio: 16 / 9;
  width: max(100cqw, calc(100cqh * 16 / 9));
  transform: translate(var(--sx, -50%), var(--py, 0px)) scale(1.04); transform-origin: 50% 0;
  will-change: transform;
}
.scene__plate { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__camera { position: absolute; left: 66.458%; top: 0.926%; width: 6.667%; height: auto; }
.scene__ring { position: absolute; left: 69.7%; top: 6.4%; width: 5.4%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--ink); transform: translate(-50%, -50%); }
.scene__camtag { position: absolute; left: 73.4%; top: 4.2%; background: var(--ink); color: #fff; font-size: clamp(11px, .8vw, 14px); font-weight: 600; letter-spacing: .04em; border-radius: 7px; padding: 4px 9px; font-variant-numeric: tabular-nums; }
.scene__box { position: absolute; border: 2px solid #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(25, 24, 23, .18); }
.scene__box .tag { position: absolute; left: -2px; font-size: clamp(12px, .95vw, 15px); }
.scene__box--pour { left: 63.28%; top: 39.8%; width: 5.73%; height: 16.2%; }
.scene__box--pour .tag { bottom: calc(100% + 10px); }
.scene__box--bowl { left: 71.6%; top: 48.4%; width: 17.4%; height: 12.6%; }
.scene__box--bowl .tag { bottom: calc(100% + 10px); }

/* the words sit just below the middle of the hero, on the calm wall: their centre at about 54% of the visible hero,
   so the headline is at eye level and the email field well above the fold, whatever the screen */
.floor__text { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(24px, 8vh, 96px); background: linear-gradient(to right, rgba(255, 255, 255, .62), rgba(255, 255, 255, .38) 34%, rgba(255, 255, 255, 0) 58%); pointer-events: none; }
.floor__text .wrap { width: 100%; pointer-events: auto; }
.floor .h1 { font-size: clamp(54px, 6.6vw, 104px); letter-spacing: -0.035em; line-height: 1; max-width: 6.2em; }
.floor__line { margin-top: 18px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; color: #2B2826; max-width: 21em; }
.floor .cta-form { margin-top: 28px; }
.floor__card { position: absolute; z-index: 3; right: max(var(--gutter), calc((100vw - var(--page)) / 2)); bottom: clamp(20px, 4vh, 40px); }

/* the camera's readings arrive once, beat by beat (site.js); without scripts or motion they are simply there */
.floor [data-beat] { transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .floor [data-beat]:not(.is-on) { opacity: 0; }
  .floor .scene__camera:not(.is-on) { transform: translateY(-22%); }
  .floor .scene__ring:not(.is-on) { transform: translate(-50%, -50%) scale(.55); }
  .floor .scene__box:not(.is-on) { transform: scale(.94); }
  .floor .floor__card:not(.is-on) { transform: translateY(18px); }
}
.floor .scene__ring.is-done { opacity: 0; }
@media (prefers-reduced-motion: reduce), (scripting: none) { .floor .scene__ring { display: none; } }
[data-line] { stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0); transition: stroke-dashoffset 1.3s ease; }

/* ---- the product, screen by screen ------------------------------------- */
.gallery { padding-top: 24px; }
.cap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: baseline; padding-top: clamp(80px, 11vw, 144px); padding-bottom: 32px; }
.cap p { font-size: 18px; color: var(--quiet); max-width: 30em; }
.tray { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
.tray__in { position: relative; background: var(--panel); border-radius: 28px; padding: clamp(14px, 4.4vw, 64px); }
/* a live screen: real HTML at its own size, scaled to the frame by site.js */
.live { width: 100%; min-width: 0; position: relative; overflow: hidden; border-radius: 12px; outline: 1px solid rgba(25, 24, 23, .10); outline-offset: -1px; background: #fff; transform: translateY(calc((1 - var(--q, 1)) * 48px)); will-change: transform; }
.live > * { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--fit, 1)); }
.side .live { outline: 0; background: transparent; overflow: visible; border-radius: 0; transform: none; }
.still { display: none; width: 100%; border-radius: 10px; outline: 1px solid rgba(25, 24, 23, .10); outline-offset: -1px; }
.tray__in--side { display: grid; grid-template-columns: minmax(0, 1fr) clamp(190px, 19vw, 266px); gap: clamp(20px, 3vw, 44px); align-items: end; }
.side { width: 100%; transform: translateY(calc((1 - var(--q2, 1)) * 120px)); opacity: calc(var(--q2, 1) * 1.3); }
.side--hmi { align-self: center; }
/* ---- Stabilize, Optimize ----------------------------------------------- */
.benefits { padding-top: clamp(96px, 13vw, 176px); display: grid; gap: clamp(64px, 9vw, 120px); }
.benefit { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.benefit--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.benefit--flip .benefit__pic { order: 2; }
.benefit__pic { background: var(--panel); border-radius: 24px; padding: clamp(14px, 3vw, 40px); }
.benefit__pic .live { box-shadow: none; }
.benefit__text p:not(.kicker) { margin-top: 16px; font-size: 18px; color: var(--quiet); max-width: 26em; }

/* ---- closing, footer --------------------------------------------------- */
.closing { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; margin-top: clamp(112px, 14vw, 184px); padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--hairline); }
.h1--end { font-size: clamp(30px, 3.2vw, 44px); }
.site-footer { padding: 56px 0 44px; font-size: 14px; color: var(--quiet); }
.site-footer__about { padding-bottom: 28px; }
.site-footer__about p { font-size: 15px; line-height: 1.55; color: var(--ink); max-width: 40em; }
.site-footer__line { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer__line span { margin-right: auto; }
.site-footer a { color: var(--ink); text-underline-offset: 3px; }

/* ---- the YieldSpec frame behind /signin --------------------------------- */
.app__frame { display: grid; grid-template-columns: 168px 1fr; background: #F7F7F5; border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; font-size: 12.5px; line-height: 1.4; }
.app__nav { padding: 14px 10px; }
.app__brand { display: flex; align-items: center; gap: 8px; padding: 0 6px 14px; }
.app__brand b { display: block; font-size: 13px; } .app__brand small { display: block; color: var(--quiet); font-size: 11px; }
.app__y { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; flex: none; }
.app__nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; }
.app__nav li { padding: 6px 8px; border-radius: 7px; } .app__nav li.sub { padding-left: 22px; } .app__nav li.gap { margin-top: 10px; } .app__nav li.is-on { background: #EAE9E6; font-weight: 500; }
.app__main { background: #fff; border-left: 1px solid var(--hairline); display: flex; flex-direction: column; min-width: 0; }
.app__bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--hairline); color: var(--quiet); }
.app__search { margin-left: auto; border: 1px solid var(--hairline); border-radius: 7px; padding: 3px 10px; width: 150px; }
.app__body { padding: 18px 20px; }
.app__h { margin: 0 0 10px; font-size: 20px; font-weight: 600; }
.app__table { width: 100%; border-collapse: collapse; }
.app__table th { text-align: left; font-weight: 500; color: var(--quiet); padding: 6px 8px; border-bottom: 1px solid var(--hairline); }
.app__table td { padding: 8px; border-bottom: 1px solid #F0EFEC; }
.app__table td b { display: block; font-weight: 500; } .app__table td small { display: block; color: var(--quiet); font-size: 11.5px; }
.sev { display: inline-block; border-radius: 6px; padding: 1px 7px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.sev--risk { background: #FCE8EA; color: #8E0B21; } .sev--out { background: #FBEFD5; color: #7A4B00; } .sev--unusual { background: #E3ECFA; color: #0A3E91; }

/* ---- motion off: everything at rest, the cover in one frame ------------- */
@media (prefers-reduced-motion: reduce) {
}

/* ---- tablets: keep the camera and the mixer in view ---------------------- */
@media (min-width: 761px) and (max-width: 1100px) { .scene { --sx: -56%; } .floor__card.pcard { width: 270px; } .floor__card .pcard__chart, .floor__card .pcard__timeline { display: none; } .floor .h1 { max-width: 5em; } }

/* ---- phones ---------------------------------------------------------- */
@media (max-width: 760px) {
  :root { --header: 60px; }
  .lockup img { height: 16px; }
  .nav-actions { gap: 2px; } .site-header .btn { height: 36px; padding: 0 11px; font-size: 14px; }
  .cta-form { padding-left: 14px; } .cta-form .btn { padding: 0 14px; }
  .h1 { font-size: 34px; }
  .lede { font-size: 16px; margin-top: 14px; }
  .floor { min-height: 560px; }
  .scene { --sx: -60%; }
  .floor .h1 { font-size: 52px; }
  .floor__line { font-size: 17px; }
  .floor__text { inset: auto 0 0 0; display: block; padding: 220px 0 clamp(28px, 6vh, 56px); background: linear-gradient(to top, rgba(255, 255, 255, .92), rgba(255, 255, 255, .75) 60%, rgba(255, 255, 255, 0)); }
  .floor__card, .scene__box--bowl { display: none; }
  .scene__box .tag { font-size: 12px; padding: 4px 8px; }
  .cap { grid-template-columns: 1fr; gap: 12px; padding-top: 72px; padding-bottom: 20px; }
  .cap p { font-size: 16px; }
  .tray { padding: 0 8px; } .tray__in { border-radius: 18px; padding: 12px; } .tray .shot { border-radius: 8px; }
  .live:not(.side .live) { display: none; } .still { display: block; }
  .tray__in--side { grid-template-columns: 1fr; gap: 16px; justify-items: center; }
  .side { width: 190px; } .side--hmi { width: 230px; }
  .benefit, .benefit--flip { grid-template-columns: 1fr; gap: 24px; } .benefit--flip .benefit__pic { order: 0; }
  .benefit__pic { border-radius: 18px; padding: 12px; }
  .benefit__text p:not(.kicker) { font-size: 16px; }
  .closing { padding-top: 40px; padding-bottom: 40px; }
  .site-footer__line { flex-direction: column; align-items: flex-start; gap: 8px; }
}

.ys-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* live pieces hold their space before site.js scales them, so nothing jumps */
.live--win { aspect-ratio: 1280 / 800; } .live--phone { aspect-ratio: 340 / 500; } .live--hmi { aspect-ratio: 300 / 286; } .live--yield { aspect-ratio: 1000 / 260; }

/* short laptop screens: the hero card keeps its readings and drops its chart, so it clears the salt tag */
@media (min-width: 761px) and (max-height: 820px) { .floor__card .pcard__chart, .floor__card .pcard__timeline { display: none; } }
