/* ==========================================================================
   Recho — skeuomorphic design system
   Materials come from the Recho device itself: beige soft-plastic housing,
   charcoal rubber keys, a red key, black OLED glass and green status LEDs.
   Light comes from the top; shadows fall below. One material per component.
   ========================================================================== */

/* Self-hosted fonts (Inter Tight 400–800, JetBrains Mono 400–700), latin + latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-tight-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-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;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --page: #E6E2DA;
  --ink: #2B2721; --ink-2: #6A6358; --ink-3: #8E8678;
  /* beige soft plastic */
  --pl-top: #F7F2E7; --pl-mid: #EBE3D2; --pl-bot: #D9CDB4;
  --pl-edge-top: rgba(255,255,255,.9); --pl-edge-bot: rgba(120,100,70,.35);
  --pl-shadow: rgba(74,60,38,.20);
  /* charcoal rubber */
  --rb-top: #4A4A4E; --rb-bot: #232326;
  /* red key (from the device) */
  --red-top: #EF5A49; --red-bot: #B8281C;
  /* brand purple (from the logo) */
  --pu-top: #9466F0; --pu-bot: #5A27C6; --pu-ink: #5A27C6;
  /* signal */
  --led: #46E39B; --led-ink: #1F8F5B; --amber: #FFB547; --alarm: #FF6B5B;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.23,1,.32,1);
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
a, button, summary, select, label, [role="button"] { touch-action: manipulation; }
.key, .chip, .jb-card, .jb-tab, .jb-filter, .jb-avf, .jb-move button, .faq summary, .dpad { -webkit-user-select: none; user-select: none; }
body {
  font-family: var(--sans); color: var(--ink); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  background-color: var(--page);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 65%, rgba(60,50,30,.06) 0 1px, transparent 1.5px);
  background-size: 18px 18px, 22px 22px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--pu-bot); color: #fff; }
:focus-visible { outline: 3px solid rgba(90,39,198,.55); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- material primitives ---------- */
.plastic {
  position: relative; border: 1px solid transparent;
  background:
    linear-gradient(180deg, var(--pl-top), var(--pl-mid) 50%, var(--pl-bot)) padding-box,
    linear-gradient(180deg, var(--pl-edge-top), rgba(255,255,255,.2) 45%, var(--pl-edge-bot)) border-box;
  box-shadow: 0 22px 40px var(--pl-shadow), 0 6px 14px rgba(74,60,38,.12), inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(120,100,70,.25);
}
.plastic::after { content: ''; position: absolute; inset: 1px 1px auto; height: 38%; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.45), transparent); pointer-events: none; }
.plastic > * { position: relative; z-index: 1; }
.well {
  border-radius: 18px; background: linear-gradient(180deg, #D3C6AB, #E2D8C3);
  box-shadow: inset 0 4px 12px rgba(74,60,38,.32), inset 0 -1px 0 rgba(255,255,255,.7), 0 1px 0 rgba(255,255,255,.6);
}
.screw { position: absolute; z-index: 2; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFFDF7, #B9AC92 70%); box-shadow: inset 0 -1px 1px rgba(0,0,0,.25), 0 1px 0 rgba(255,255,255,.8); }
.screw::after { content: ''; position: absolute; left: 2px; right: 2px; top: 4.5px; height: 1px; background: rgba(90,75,50,.55); transform: rotate(35deg); }
.s1 { top: 12px; left: 12px; } .s2 { top: 12px; right: 12px; } .s3 { bottom: 12px; left: 12px; } .s4 { bottom: 12px; right: 12px; }
.emboss { text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 -1px 0 rgba(60,50,30,.12); }
.engrave { font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7A705F; text-shadow: 0 1px 0 rgba(255,255,255,.75); }

/* ---------- keys ---------- */
.key {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 52px; padding: 0 24px; border-radius: 14px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .2s;
}
.key:active, .key.is-pressed { transform: translateY(2px); }
.key-beige { color: var(--ink); background: linear-gradient(180deg, var(--pl-top), var(--pl-bot)) padding-box, linear-gradient(180deg, #fff, rgba(120,100,70,.4)) border-box; box-shadow: 0 6px 0 #BFB196, 0 10px 18px rgba(74,60,38,.25), inset 0 1px 0 #fff; }
.key-beige:active, .key-beige.is-pressed { box-shadow: 0 2px 0 #BFB196, 0 4px 8px rgba(74,60,38,.2), inset 0 2px 4px rgba(74,60,38,.2); }
.key-purple { color: #fff; text-shadow: 0 -1px 0 rgba(40,0,90,.4); background: linear-gradient(180deg, var(--pu-top), var(--pu-bot)) padding-box, linear-gradient(180deg, rgba(255,255,255,.6), rgba(30,0,80,.5)) border-box; box-shadow: 0 6px 0 #3E1590, 0 12px 22px rgba(70,20,160,.35), inset 0 1px 0 rgba(255,255,255,.45); }
.key-purple:active, .key-purple.is-pressed { box-shadow: 0 2px 0 #3E1590, 0 4px 10px rgba(70,20,160,.3), inset 0 2px 6px rgba(20,0,60,.35); }
.key-rubber { color: #E9E6E0; background: linear-gradient(180deg, var(--rb-top), var(--rb-bot)) padding-box, linear-gradient(180deg, rgba(255,255,255,.25), rgba(0,0,0,.6)) border-box; box-shadow: 0 5px 0 #141416, 0 9px 16px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.18); }
.key-rubber:active, .key-rubber.is-pressed { box-shadow: 0 1px 0 #141416, 0 3px 6px rgba(0,0,0,.3), inset 0 2px 5px rgba(0,0,0,.5); }
.key-red { color: #fff; text-shadow: 0 -1px 0 rgba(90,0,0,.4); background: linear-gradient(180deg, var(--red-top), var(--red-bot)) padding-box, linear-gradient(180deg, rgba(255,255,255,.55), rgba(80,0,0,.5)) border-box; box-shadow: 0 5px 0 #7E160E, 0 10px 18px rgba(150,20,10,.35), inset 0 1px 0 rgba(255,255,255,.4); }
.key-red:active, .key-red.is-pressed { box-shadow: 0 1px 0 #7E160E, 0 3px 6px rgba(150,20,10,.3), inset 0 2px 5px rgba(60,0,0,.45); }
.key-sm { height: 40px; padding: 0 16px; font-size: .88rem; border-radius: 11px; }
.key[disabled] { filter: grayscale(.4) brightness(.95); cursor: progress; }
@media (hover: hover) and (pointer: fine) { .key:hover { filter: brightness(1.04); } }
.hint { animation: hint 1.6s var(--ease) infinite; }
@keyframes hint { 50% { filter: brightness(1.12); box-shadow: 0 5px 0 #7E160E, 0 10px 18px rgba(150,20,10,.35), 0 0 0 6px rgba(239,90,73,.18), inset 0 1px 0 rgba(255,255,255,.4); } }
.keys { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- OLED glass ---------- */
.bezel { border-radius: 20px; padding: 10px; background: linear-gradient(180deg, #2D2D30, #121214); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 6px rgba(0,0,0,.6), 0 2px 0 rgba(255,255,255,.7); }
.bezel.sm { padding: 6px; border-radius: 14px; }
.oled {
  position: relative; overflow: hidden; border-radius: 12px; background: #030405; padding: 16px 18px;
  color: #F4F4F4; font-family: var(--mono); font-size: .9rem; line-height: 1.55;
  text-shadow: 0 0 6px rgba(255,255,255,.35); box-shadow: inset 0 0 24px rgba(0,0,0,.9);
}
.bezel.sm .oled { padding: 10px 12px; font-size: .76rem; border-radius: 9px; }
.oled::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); pointer-events: none; }
.oled::after { content: ''; position: absolute; inset: -40% -10% auto 30%; height: 120%; background: linear-gradient(115deg, rgba(255,255,255,.09), transparent 45%); transform: rotate(8deg); pointer-events: none; }
.oled .dim { color: #8B8B8B; text-shadow: none; }
.oled .ok { color: var(--led); text-shadow: 0 0 8px rgba(70,227,155,.55); }
.oled .warn { color: var(--amber); text-shadow: 0 0 8px rgba(255,181,71,.5); }
.oled .bad { color: var(--alarm); text-shadow: 0 0 8px rgba(255,107,91,.5); }
.oled .row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.oled .row span:first-child { color: #8B8B8B; text-shadow: none; }
.oled .row b { font-weight: 500; text-align: right; }
.caret { display: inline-block; width: .55em; height: 1.05em; background: #F4F4F4; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- LEDs ---------- */
.led { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 35%, #6B6458, #2F2B25); box-shadow: inset 0 1px 2px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.7); transition: background .3s, box-shadow .3s; }
.led.on { background: radial-gradient(circle at 35% 35%, #C9FFE4, var(--led) 55%, #159A5E); box-shadow: 0 0 10px rgba(70,227,155,.8), 0 0 2px rgba(70,227,155,1), 0 1px 0 rgba(255,255,255,.7); }
.led.amber.on { background: radial-gradient(circle at 35% 35%, #FFF0D0, var(--amber) 55%, #B36A00); box-shadow: 0 0 10px rgba(255,181,71,.8); }
.led.red.on { background: radial-gradient(circle at 35% 35%, #FFD9D3, var(--alarm) 55%, #A3241A); box-shadow: 0 0 10px rgba(255,107,91,.75); }
.led.purple.on { background: radial-gradient(circle at 35% 35%, #EADFFF, #A57CFF 55%, #5A27C6); box-shadow: 0 0 10px rgba(165,124,255,.75); }

/* ---------- nav ---------- */
.nav { position: sticky; top: max(12px, env(safe-area-inset-top)); z-index: 40; max-width: var(--maxw); margin: 12px auto 0; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.nav-bar { border-radius: 20px; height: 64px; display: flex; align-items: center; gap: 1.6rem; padding: 0 10px 0 18px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand img { width: 32px; filter: drop-shadow(0 1px 0 rgba(255,255,255,.8)); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.nav-links a[aria-current="page"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .nav-links a:not(.key):hover { color: var(--ink); } }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: rgba(90,39,198,.5); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 40px; padding: 0; }
.nav-menu { display: none; margin-top: 10px; border-radius: 20px; padding: 10px; }
.nav-menu a { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; font-weight: 700; font-size: 1.05rem; border-radius: 12px; }
.nav-menu a + a { border-top: 1px solid rgba(120,100,70,.15); }
.nav-menu .key { margin-top: 10px; width: 100%; border-top: 0; }
.nav.open .nav-menu { display: block; }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- typography + sections ---------- */
h1, .h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.03; letter-spacing: -.045em; font-weight: 800; }
h1 .accent, h2 .accent { color: var(--pu-ink); }
h2, .h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.06; letter-spacing: -.04em; font-weight: 800; }
h3 { font-size: 1.2rem; letter-spacing: -.025em; line-height: 1.25; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--ink-2); }
.muted { color: var(--ink-2); }
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section.tight { padding-top: 0; }
.head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.head h2 { margin: .8rem 0 .9rem; }
.head .lead { margin: 0 auto; max-width: 620px; }
.badge { display: inline-flex; align-items: center; gap: .6rem; border-radius: 12px; padding: 8px 14px; }
.textlink { color: var(--pu-ink); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(90,39,198,.35); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .textlink:hover { text-decoration-color: currentColor; } }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px); }
.hgrid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hgrid h1 { margin: 1.3rem 0 1.2rem; }
.hgrid .lead { max-width: 520px; }
.hgrid .keys { margin-top: 2.2rem; }
.hero-note { margin-top: 1.6rem; font-size: .92rem; color: var(--ink-2); }
@media (max-width: 980px) { .hgrid { grid-template-columns: 1fr; } }

.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.page-hero h1 { margin: 1.2rem auto 1rem; max-width: 900px; }
.page-hero .lead { max-width: 680px; margin: 0 auto; }
.page-hero .keys { justify-content: center; margin-top: 2rem; }
.crumb { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); margin-bottom: 1rem; }
.crumb a { color: var(--ink-2); }

/* console (hero device panel) */
.console { border-radius: 40px; padding: 26px; }
.console-grid { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.photo-well { padding: 12px; display: flex; }
.photo-well picture { flex: 1; display: flex; min-width: 0; }
.photo-well img { flex: 1; width: 100%; min-height: 100%; border-radius: 12px; object-fit: cover; object-position: 50% 35%; }
.photo-well.portrait img { aspect-ratio: 3 / 4; min-height: 0; }
.ctrl { display: flex; flex-direction: column; gap: 16px; }
.ctrl .oled { min-height: 150px; }
.ctrl-keys { display: flex; gap: 12px; }
.ctrl-keys .key { flex: 1; }
.label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.routes { padding: 14px 16px; display: grid; gap: 10px; }
.route { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: #6E6555; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.route b { margin-left: auto; font-weight: 500; letter-spacing: .02em; color: #9A907E; transition: color .3s; }
.route.lit b { color: var(--led-ink); }
@media (max-width: 600px) {
  .console { padding: 16px; border-radius: 30px; }
  .console-grid { grid-template-columns: 1fr; }
  .console .photo-well { max-width: 300px; width: 100%; margin: 0 auto; }
  .console .photo-well img { aspect-ratio: 3 / 4; }
}

/* ---------- modules / cards ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { border-radius: 26px; padding: 30px 24px 26px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card .bezel { margin-top: 18px; }
.num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--pu-ink); margin-bottom: 16px; }
.ico svg { filter: drop-shadow(0 1px 0 rgba(255,255,255,.75)); }

/* recessed list rows (problems, specs, perks) */
.rows { display: grid; gap: 12px; }
.rowx { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 16px 18px; border-radius: 18px; }
.rowx .led { margin-top: 6px; }
.rowx b { display: block; letter-spacing: -.015em; }
.rowx span.t { color: var(--ink-2); font-size: .95rem; }

/* compare panels */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare > div { border-radius: 30px; padding: clamp(24px, 3vw, 34px); }
.compare h3 { font-size: 1.5rem; margin-bottom: 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.compare .well .rowx { background: rgba(255,255,255,.18); }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }

/* switchboard (team routing panel) */
.board { border-radius: 36px; padding: clamp(22px, 3vw, 34px); }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; padding: 0 6px; }
.sw-row { display: grid; grid-template-columns: auto 170px 1fr auto; gap: 18px; align-items: center; padding: 12px 16px; border-radius: 18px; }
.sw-row .name { font-weight: 700; letter-spacing: -.015em; }
.sw-row .oled { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toggle { width: 58px; height: 30px; border-radius: 999px; position: relative; flex: none; background: linear-gradient(180deg, #1E7F52, #2DB874); box-shadow: inset 0 2px 5px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.7); }
.toggle::after { content: ''; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(180deg, #fff, #DCD3C1); box-shadow: 0 2px 4px rgba(0,0,0,.3), inset 0 -1px 0 rgba(0,0,0,.1); }
@media (max-width: 760px) { .sw-row { grid-template-columns: auto 1fr auto; } .sw-row .bezel { grid-column: 1 / -1; order: 5; } }
.note { text-align: center; color: var(--ink-3); font-size: .85rem; margin-top: 16px; }

/* chips (small plastic tags) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: .45rem; height: 34px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: .86rem; color: var(--ink);
  background: linear-gradient(180deg, var(--pl-top), var(--pl-bot)) padding-box, linear-gradient(180deg, #fff, rgba(120,100,70,.35)) border-box; border: 1px solid transparent;
  box-shadow: 0 3px 0 #C9BCA2, 0 5px 10px rgba(74,60,38,.15), inset 0 1px 0 #fff; }
a.chip:active { transform: translateY(2px); box-shadow: 0 1px 0 #C9BCA2, inset 0 1px 0 #fff; }

/* big monitor (live board / dashboards) */
.monitor { border-radius: 30px; padding: 14px; }
.monitor > .oled { padding: 0; min-height: 0; }
.mon-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .72rem; letter-spacing: .1em; }
.mon-voice { padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .82rem; display: flex; gap: 10px; align-items: baseline; }
.mon-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mon-col { padding: 14px; border-right: 1px solid rgba(255,255,255,.08); }
.mon-col:last-child { border-right: 0; }
.mon-h { display: flex; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .12em; color: #8B8B8B; margin-bottom: 12px; text-shadow: none; }
.mon-h .n { margin-left: auto; }
.tile { border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: .78rem; background: rgba(255,255,255,.03); }
.tile.new { border-color: rgba(70,227,155,.55); box-shadow: 0 0 0 1px rgba(70,227,155,.25), 0 0 18px rgba(70,227,155,.12); }
.tile .tt { color: #fff; margin: 4px 0 6px; }
.tile .meta { display: flex; justify-content: space-between; gap: 8px; color: #8B8B8B; text-shadow: none; font-size: .7rem; }
.pri { font-size: .64rem; letter-spacing: .1em; }
.pri.urgent { color: var(--alarm); } .pri.medium { color: var(--amber); } .pri.low { color: var(--led); }
.feed .item { padding: 10px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.feed .item:last-child { border-bottom: 0; }
.feed .item .meta { display: flex; justify-content: space-between; color: #8B8B8B; text-shadow: none; font-size: .72rem; }
@media (max-width: 760px) { .mon-cols { grid-template-columns: 1fr; } .mon-col { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); } }

/* stats as OLED counters */
.stat { border-radius: 26px; padding: 22px; }
.stat .bezel.sm .oled, .stat .oled { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.03em; padding: 10px 16px; text-align: right; }
.stat p { margin-top: 14px; color: var(--ink-2); }

/* keypad (industry grid) */
.keypad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.keypad .key { height: auto; min-height: 92px; flex-direction: column; align-items: flex-start; justify-content: center; gap: .2rem; padding: 14px 16px; white-space: normal; text-align: left; border-radius: 16px; }
.keypad .key small { font-weight: 500; font-size: .78rem; opacity: .75; }
@media (max-width: 980px) { .keypad { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .keypad { grid-template-columns: repeat(2, 1fr); } }

/* industry panel */
.industry { border-radius: 36px; padding: clamp(22px, 3.4vw, 40px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(22px, 4vw, 44px); align-items: start; }
.industry.flip { grid-template-columns: .9fr 1.1fr; }
.industry.flip > div:first-of-type { order: 2; }
.industry h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: .8rem 0 .8rem; }
.industry .lead { margin-bottom: 1.2rem; }
.industry .chips { margin-bottom: 1.4rem; }
.industry .photo-well img { aspect-ratio: 4 / 3; min-height: 0; }
.metric { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 16px; }
.metric .bezel { flex: none; }
.metric .oled { font-size: 1.05rem; font-weight: 700; padding: 6px 12px; }
.metric p { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 900px) { .industry, .industry.flip { grid-template-columns: 1fr; } .industry.flip > div:first-of-type { order: 0; } }

/* comparison table */
.table { border-radius: 30px; padding: 12px; }
.table .tr { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; align-items: center; padding: 14px 16px; }
.table .tr + .tr { border-top: 1px solid rgba(120,100,70,.18); }
.table .th { font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7A705F; }
.table .yes { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.table .no { color: var(--ink-3); }
@media (max-width: 640px) { .table .tr { grid-template-columns: 1fr 1fr; } .table .tr > :first-child { grid-column: 1 / -1; font-weight: 700; } .table .th > :first-child { display: none; } }

/* FAQ: plastic accordions */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 18px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .led { transition: background .3s, box-shadow .3s; }
.faq details[open] summary .led { background: radial-gradient(circle at 35% 35%, #EADFFF, #A57CFF 55%, #5A27C6); box-shadow: 0 0 10px rgba(165,124,255,.75); }
.faq .ans { margin: 0 14px 14px; padding: 16px 18px; border-radius: 14px; color: var(--ink-2); }

/* document / prose panel */
.doc { border-radius: 30px; padding: clamp(24px, 4vw, 48px); }
.doc h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -.025em; margin: 2rem 0 .6rem; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #4A443A; }
.doc p + p { margin-top: .8rem; }
.doc ul { margin: .6rem 0 .8rem 1.2rem; display: grid; gap: .5rem; }
.doc a { color: var(--pu-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.notice { border-radius: 16px; padding: 16px 18px; margin-bottom: 1.6rem; font-size: .95rem; color: #4A443A; }

/* forms: carved inputs */
.form { border-radius: 30px; padding: clamp(22px, 3.5vw, 36px); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7A705F; text-shadow: 0 1px 0 rgba(255,255,255,.75); }
.field .req { color: var(--red-bot); }
.input, .field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); border: 0; outline: none; border-radius: 14px; padding: 14px 16px;
  background: linear-gradient(180deg, #DCD1B9, #EAE2D1);
  box-shadow: inset 0 3px 8px rgba(74,60,38,.28), inset 0 -1px 0 rgba(255,255,255,.7), 0 1px 0 rgba(255,255,255,.6);
  transition: box-shadow .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6A6358 50%), linear-gradient(135deg, #6A6358 50%, transparent 50%), linear-gradient(180deg, #DCD1B9, #EAE2D1); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%, 0 0; background-size: 6px 6px, 6px 6px, 100% 100%; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 3px 8px rgba(74,60,38,.28), 0 0 0 3px rgba(90,39,198,.35); }
.field input::placeholder, .field textarea::placeholder { color: #9A907E; }
.phone { display: flex; gap: 10px; }
.phone .prefix { display: grid; place-items: center; padding: 0 14px; border-radius: 14px; font-weight: 700; }
.char-count { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); text-align: right; }
.form-note { font-size: .85rem; color: var(--ink-2); margin-top: 16px; }
.form-note a { color: var(--pu-ink); font-weight: 600; text-decoration: underline; }
.success { display: none; text-align: center; padding: 30px 10px; }
.success .led { width: 22px; height: 22px; margin-bottom: 14px; }

/* contact info */
.info { display: grid; gap: 4px; }
.info .rowx { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; }
.info .rowx a { font-weight: 700; }

/* founder note */
.founder { border-radius: 30px; padding: clamp(24px, 4vw, 40px); }
.founder .who { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; }
.founder blockquote { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; letter-spacing: -.015em; margin-bottom: 1.6rem; }

/* CTA strip */
.cta { border-radius: 36px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.3fr auto; gap: 28px; align-items: center; }
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .5rem; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* footer: the base plate */
.footer { max-width: var(--maxw); margin: clamp(20px, 3vw, 40px) auto 0; padding: 0 max(var(--gutter), env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); }
.foot { border-radius: 30px; padding: clamp(24px, 3.5vw, 40px); }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 24px; }
.foot p { color: var(--ink-2); font-size: .92rem; max-width: 320px; margin-top: .6rem; }
.foot .foot-h { margin: 0 0 .8rem; }
.foot-col { display: grid; gap: .5rem; align-content: start; font-size: .92rem; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding: 12px 16px; border-radius: 14px; font-size: .8rem; color: var(--ink-2); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hint, .caret { animation: none; }
  .key, .led { transition: none; }
}
@media (prefers-contrast: more) {
  .plastic, .well { outline: 1px solid rgba(43,39,33,.5); }
  .muted, .lead, .card p { color: #3E382F; }
}

/* ==========================================================================
   Jira-style request board (light app screen inside the device monitor)
   ========================================================================== */
.jb { position: relative; overflow: hidden; border-radius: 14px; background: #fff; color: #172B4D; font-family: var(--sans); font-size: 15px; text-align: left; }
.jb button { font: inherit; color: inherit; }
.jb-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: #F7F8F9; border-bottom: 1px solid #DCDFE4; }
.jb-app { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; margin-right: 6px; }
.jb-app img { width: 22px; }
.jb-tabs { display: flex; gap: 2px; background: #E9EBEE; border-radius: 8px; padding: 3px; overflow-x: auto; max-width: 100%; }
.jb-tab { border: 0; background: none; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: .82rem; color: #44546F; cursor: pointer; white-space: nowrap; }
.jb-tab[aria-selected="true"] { background: #fff; color: #0C66E4; box-shadow: 0 1px 2px rgba(9,30,66,.2); }
.jb-top .key { margin-left: auto; }
.jb-head { padding: 14px 18px 4px; }
.jb-crumb { font-size: .78rem; color: #626F86; }
.jb-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; margin: 2px 0 12px; }
.jb-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.jb-search { height: 34px; width: 210px; max-width: 100%; border: 2px solid #DCDFE4; border-radius: 6px; padding: 0 10px 0 30px; font: inherit; font-size: 16px; color: #172B4D; outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23626F86' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center; }
.jb-search:focus { border-color: #388BFF; }
.jb-avs { display: flex; align-items: center; padding-left: 6px; }
.jb-avf { border: 2px solid #fff; margin-left: -6px; border-radius: 50%; padding: 0; cursor: pointer; background: none; transition: transform .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .jb-avf:hover { transform: translateY(-2px); } }
.jb-avf[aria-pressed="true"] { border-color: #0C66E4; box-shadow: 0 0 0 2px #fff; transform: translateY(-2px); z-index: 1; }
.jb-filter { height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid #DCDFE4; background: #fff; font-size: .8rem; font-weight: 600; color: #44546F; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.jb-filter[aria-pressed="true"] { background: #E9F2FF; border-color: #0C66E4; color: #0C66E4; }
.jb-av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: .62rem; font-weight: 700; flex: none; }
.jb-voice { display: none; align-items: center; gap: 10px; margin: 10px 18px 0; padding: 10px 14px; border-radius: 10px; background: #030405; color: #F4F4F4; font-family: var(--mono); font-size: .8rem; box-shadow: inset 0 0 18px rgba(0,0,0,.9); text-shadow: 0 0 6px rgba(255,255,255,.3); }
.jb-voice.on { display: flex; }
.jb-voice .dot { width: 9px; height: 9px; border-radius: 50%; background: #FF453A; box-shadow: 0 0 8px #FF453A; flex: none; }
.jb-voice .dot.ok { background: var(--led); box-shadow: 0 0 8px var(--led); }
.jb-cols { display: grid; grid-template-columns: repeat(3, minmax(250px, 1fr)); gap: 12px; padding: 12px 18px 18px; overflow-x: auto; }
.jb-col { background: #F1F2F4; border-radius: 10px; display: flex; flex-direction: column; height: 520px; min-width: 0; }
.jb-col-h { display: flex; align-items: center; gap: 6px; padding: 12px 12px 8px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: #44546F; }
.jb-col-h .n { font-weight: 600; color: #626F86; }
.jb-col-h .ck { margin-left: auto; color: #22A06B; }
.jb-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 0 8px 8px; border-radius: 0 0 10px 10px; transition: background-color .15s; }
.jb-list.over { background: #E9F2FF; outline: 2px dashed #388BFF; outline-offset: -4px; }
.jb-empty { padding: 18px 8px; text-align: center; font-size: .8rem; color: #626F86; }
.jb-card { display: block; width: 100%; text-align: left; border: 0; background: #fff; border-radius: 6px; padding: 10px 10px 8px; cursor: grab;
  box-shadow: 0 1px 1px rgba(9,30,66,.25), 0 0 1px rgba(9,30,66,.31); transition: background-color .15s; }
@media (hover: hover) and (pointer: fine) { .jb-card:hover { background: #F7F8F9; } }
.jb-card:active { background: #F1F2F4; }
.jb-card:active { cursor: grabbing; }
.jb-card.dragging { opacity: .45; }
.jb-card.is-open { box-shadow: 0 0 0 2px #388BFF; }
.jb-card.jb-new { animation: jbNew 2.6s var(--ease); }
@keyframes jbNew { 0% { opacity: 0; transform: translateY(-8px); box-shadow: 0 0 0 3px rgba(70,227,155,.9); } 15% { opacity: 1; transform: none; } 70% { box-shadow: 0 0 0 3px rgba(70,227,155,.6); } }
.jb-flash { animation: jbFlash 1.2s var(--ease); }
@keyframes jbFlash { 0% { box-shadow: 0 0 0 3px #388BFF; } }
.jb-sum { font-size: .88rem; line-height: 1.35; margin-bottom: 8px; color: #172B4D; }
.jb-labs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.jb-lab { background: #DFE1E6; color: #44546F; border-radius: 3px; padding: 1px 5px; font-size: .66rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.jb-lab.voice { background: #F3F0FF; color: #5E4DB2; }
.jb-meta { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: #44546F; }
.jb-meta .jb-av { margin-left: auto; width: 24px; height: 24px; }
.jb-key { font-weight: 600; }
.jb-card.done .jb-key { text-decoration: line-through; }
.jb-ico { width: 16px; height: 16px; flex: none; }
.jb-ago { color: #626F86; }

/* detail drawer */
.jb-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 5; background: #fff; display: flex; flex-direction: column;
  box-shadow: -10px 0 30px rgba(9,30,66,.2); transform: translateX(105%); transition: transform .3s var(--ease); visibility: hidden; }
.jb-drawer.open { transform: none; visibility: visible; }
.jb-dh { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid #DCDFE4; font-size: .82rem; color: #44546F; }
.jb-x { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 6px; background: none; cursor: pointer; display: grid; place-items: center; color: #44546F; }
@media (hover: hover) and (pointer: fine) { .jb-x:hover { background: #F1F2F4; } }
.jb-db { padding: 16px 18px 22px; overflow-y: auto; display: grid; gap: 16px; align-content: start; }
.jb-db h4 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; }
.jb-status { appearance: none; -webkit-appearance: none; height: 32px; border: 0; border-radius: 4px; padding: 0 28px 0 10px; font: inherit; font-weight: 700; font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; cursor: pointer;
  background-repeat: no-repeat; background-position: right 9px center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23172B4D' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.jb-status.todo { background-color: #DFE1E6; color: #44546F; }
.jb-status.progress { background-color: #CCE0FF; color: #0055CC; }
.jb-status.done { background-color: #BAF3DB; color: #216E4E; }
.jb-sec { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #626F86; margin-bottom: 6px; }
.jb-db .oled { font-size: .82rem; }
.jb-fields { display: grid; grid-template-columns: 96px 1fr; gap: 10px 12px; font-size: .86rem; align-items: center; }
.jb-fields dt { color: #626F86; }
.jb-fields dd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.jb-log { list-style: none; display: grid; gap: 10px; font-size: .84rem; }
.jb-log li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; }
.jb-log li::before { content: ''; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #8590A2; }
.jb-log li.g::before { background: #22A06B; }
.jb-log small { display: block; color: #626F86; font-size: .74rem; }
.jb-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 760px) {
  .jb-cols { grid-template-columns: repeat(3, 82%); scroll-snap-type: x mandatory; }
  .jb-col { scroll-snap-align: start; height: 460px; }
  .jb-top .key { margin-left: 0; width: 100%; }
  .jb-search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .jb-card.jb-new, .jb-flash { animation: none; } .jb-drawer { transition: none; } }

/* ==========================================================================
   Device replica controls (hero console): screen, Record / Send keys, D-pad
   ========================================================================== */
.key-grey { color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.35); background: linear-gradient(180deg, #B4B7BC, #74777D) padding-box, linear-gradient(180deg, rgba(255,255,255,.6), rgba(0,0,0,.45)) border-box; box-shadow: 0 5px 0 #4C4E52, 0 10px 18px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.45); }
.key-grey:active, .key-grey.is-pressed { box-shadow: 0 1px 0 #4C4E52, 0 3px 6px rgba(0,0,0,.25), inset 0 2px 5px rgba(0,0,0,.4); }
.key-grey.hint { animation: hintGrey 1.6s var(--ease) infinite; }
@keyframes hintGrey { 50% { filter: brightness(1.12); box-shadow: 0 5px 0 #4C4E52, 0 10px 18px rgba(0,0,0,.28), 0 0 0 6px rgba(70,227,155,.28), inset 0 1px 0 rgba(255,255,255,.45); } }
.key-red.recording { filter: brightness(1.15); box-shadow: 0 1px 0 #7E160E, 0 0 0 5px rgba(239,90,73,.25), 0 0 22px rgba(239,90,73,.6), inset 0 2px 5px rgba(60,0,0,.45); transform: translateY(2px); }
.dpad { display: grid; grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(3, 46px); gap: 6px; }
.dpad .key { width: 46px; height: 46px; padding: 0; border-radius: 12px; font-size: .8rem; }
.dpad .up { grid-area: 1 / 2; } .dpad .left { grid-area: 2 / 1; } .dpad .ok { grid-area: 2 / 2; font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; }
.dpad .right { grid-area: 2 / 3; } .dpad .down { grid-area: 3 / 2; }
#devOled { height: 196px; display: flex; flex-direction: column; padding: 14px 16px; }
.o-h { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; overflow: hidden; font-size: .66rem; letter-spacing: .1em; color: #8B8B8B; text-shadow: none; margin-bottom: 8px; }
.o-b { flex: 1; overflow: hidden; font-size: .84rem; }
.o-f { font-size: .62rem; letter-spacing: .06em; color: #8B8B8B; text-shadow: none; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-rec { color: #FF6B5B; text-shadow: 0 0 8px rgba(255,107,91,.6); }
.o-wave { display: flex; align-items: center; gap: 3px; height: 26px; margin: 2px 0 8px; }
.o-wave i { width: 4px; height: 100%; border-radius: 2px; background: #FF6B5B; box-shadow: 0 0 6px rgba(255,107,91,.5); transform: scaleY(var(--s, .5)); animation: owave .8s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -70ms); }
@keyframes owave { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.o-menu { display: grid; gap: 1px; font-size: .8rem; }
.o-menu div { padding: 2px 8px; border-radius: 4px; }
.o-menu div.on { background: #F4F4F4; color: #050505; text-shadow: none; }
.o-bar { height: 6px; border-radius: 3px; background: #262626; overflow: hidden; margin: 10px 0 8px; }
.o-bar i { display: block; height: 100%; width: 0; background: var(--led); box-shadow: 0 0 8px var(--led); }
.o-big { font-size: 1.05rem; margin-top: 6px; }
@media (max-width: 600px) {
  .dpad { grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); }
  .dpad .key { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .o-wave i { animation: none; } .key-grey.hint { animation: none; } }

/* device body replica: modelled on the real Recho housing */
.devbody {
  position: relative; width: min(100%, 340px); margin: 30px auto 0; padding: 26px 22px 24px; border-radius: 46px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.35) 0 1px, transparent 1.4px) 0 0 / 7px 7px,
    radial-gradient(circle at 70% 60%, rgba(110,85,50,.10) 0 1px, transparent 1.4px) 0 0 / 9px 9px,
    linear-gradient(160deg, #F5EEDF 0%, #E9DDC4 50%, #D8C8A8 100%);
  box-shadow:
    -8px 10px 0 #2A2724,                       /* the black rear shell, visible at the edge */
    -8px 10px 0 1px rgba(0,0,0,.35),
    0 34px 50px rgba(60,45,25,.32),
    inset 0 2px 1px rgba(255,255,255,.95),
    inset 0 -4px 8px rgba(120,95,60,.28),
    inset 3px 0 6px rgba(255,255,255,.4);
}
.dev-clip { position: absolute; top: -26px; left: 50%; width: 34px; height: 38px; margin-left: -17px; border-radius: 17px 17px 9px 9px;
  border: 5px solid #B9BDC3; border-bottom-color: #8E9298; box-shadow: inset 0 1px 1px rgba(255,255,255,.7), 0 2px 3px rgba(0,0,0,.3); z-index: -1; }
.dev-clip::after { content: ''; position: absolute; left: 50%; bottom: -10px; width: 22px; height: 12px; margin-left: -11px; border-radius: 4px;
  background: linear-gradient(180deg, #D0D3D8, #8E9298); box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.dev-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 16px; align-items: start; }
.dev-screen.bezel { padding: 7px; border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 6px rgba(0,0,0,.6), 0 2px 1px rgba(255,255,255,.9), 0 -1px 2px rgba(120,95,60,.3); }
.dev-btns { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 6px; }
.dev-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dev-btns .dk { width: 62px; height: 62px; padding: 0; border-radius: 16px; }
.dev-lbl { font-family: var(--mono); font-size: .6rem; font-weight: 700; letter-spacing: .14em; color: #7A705F; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.dev-slit { width: 30px; height: 6px; margin: 4px 0 6px; border-radius: 3px; background: #1F1C19; box-shadow: inset 0 1px 2px #000, 0 1px 0 rgba(255,255,255,.85); }
.dev-lower { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 16px; margin-top: 18px; }
.devbody .dpad { justify-content: center; gap: 5px; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 48px); }
.devbody .dpad .key { width: 48px; height: 48px; border-radius: 11px; }
.dev-hint { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; text-align: center; padding-bottom: 4px; }
.dev-hint .engrave { font-size: .55rem; letter-spacing: .1em; }
.dev-port { width: 74px; height: 12px; margin: 18px auto 0; border-radius: 6px; background: #1F1C19; box-shadow: inset 0 2px 3px #000, 0 1px 0 rgba(255,255,255,.8); }
.devbody #devOled { height: 200px; }
@media (max-width: 600px) {
  .devbody { padding: 22px 16px 20px; border-radius: 38px; }
  .dev-row, .dev-lower { grid-template-columns: minmax(0, 1fr) 66px; gap: 12px; }
  .dev-btns .dk { width: 56px; height: 56px; }
  .devbody .dpad { grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); }
  .devbody .dpad .key { width: 44px; height: 44px; }
}

/* move buttons in the ticket panel (works for touch, where drag and drop doesn't) */
.jb-move { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #F1F2F4; border-radius: 8px; padding: 4px; }
.jb-move button { min-height: 40px; border: 0; border-radius: 6px; background: none; font-weight: 700; font-size: .78rem; letter-spacing: .02em; color: #44546F; cursor: pointer; }
.jb-move button[aria-pressed="true"].todo { background: #DFE1E6; color: #172B4D; }
.jb-move button[aria-pressed="true"].progress { background: #CCE0FF; color: #0055CC; }
.jb-move button[aria-pressed="true"].done { background: #BAF3DB; color: #216E4E; }
.jb-tip { display: none; padding: 0 18px; font-size: .78rem; color: #626F86; }

/* ---------- touch / phone comfort ---------- */
@media (pointer: coarse) {
  .key-sm { height: 44px; }
  .nav-toggle { height: 44px; width: 48px; }
  .chip { height: 40px; }
  .jb-tab { padding: 10px 14px; }
  .jb-filter { height: 40px; padding: 0 12px; }
  .jb-avf .jb-av { width: 34px; height: 34px; font-size: .68rem; }
  .jb-avs { gap: 2px; }
  .jb-x { width: 44px; height: 44px; }
  .jb-tip { display: block; }
  .foot-col { gap: .85rem; }
  .faq summary { min-height: 56px; }
}
@media (max-width: 600px) {
  .console .photo-well { max-width: 240px; }
  .hero { padding-top: 28px; }
  .section { padding: 56px 0; }
  .head { margin-bottom: 32px; }
  .card { padding: 24px 20px 22px; }
  .board, .industry, .cta, .doc, .form, .founder { border-radius: 26px; }
}
@media (max-width: 360px) {
  .dev-row, .dev-lower { grid-template-columns: minmax(0, 1fr) 58px; gap: 10px; }
  .dev-btns .dk { width: 52px; height: 52px; border-radius: 14px; }
  .devbody { padding: 20px 12px 18px; }
  .devbody .dpad { grid-template-columns: repeat(3, 42px); grid-template-rows: repeat(3, 42px); }
  .devbody .dpad .key { width: 42px; height: 42px; }
  .devbody #devOled { padding: 12px; font-size: .9em; }
  .console { padding: 12px; }
  .keys .key { flex: 1 1 100%; }
}
.keypad { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.keypad .key { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 980px) { .keypad { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .keypad { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 360px) { .keypad .key { padding: 12px; font-size: .9rem; min-height: 84px; } .board { padding: 16px; } }
a.card { display: block; color: inherit; transition: transform .2s var(--ease); }
a.card:active { transform: translateY(2px); }
@media (hover: hover) and (pointer: fine) { a.card:hover { transform: translateY(-3px); } }
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
